@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 SchemaServiceClient {
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}'),
@@ -205,7 +208,7 @@ class SchemaServiceClient {
205
208
  this.descriptors.page = {
206
209
  listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas')
207
210
  };
208
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
211
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
209
212
  // This API contains "long-running operations", which return a
210
213
  // an Operation object that allows for tracking of the operation,
211
214
  // rather than holding a request open.
@@ -215,7 +218,7 @@ class SchemaServiceClient {
215
218
  };
216
219
  if (opts.fallback) {
217
220
  lroOptions.protoJson = protoFilesRoot;
218
- 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: '*', }],
221
+ 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: '*', }],
219
222
  }, { 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/*}', }],
220
223
  }, { 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', }],
221
224
  }];
@@ -372,6 +375,12 @@ class SchemaServiceClient {
372
375
  ?.then(([response, options, rawResponse]) => {
373
376
  this._log.info('getSchema response %j', response);
374
377
  return [response, options, rawResponse];
378
+ }).catch((error) => {
379
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
380
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
381
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
382
+ }
383
+ throw error;
375
384
  });
376
385
  }
377
386
  createSchema(request, optionsOrCallback, callback) {
@@ -943,6 +952,51 @@ class SchemaServiceClient {
943
952
  matchEngineFromEngineName(engineName) {
944
953
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
945
954
  }
955
+ /**
956
+ * Return a fully-qualified identityMappingStore resource name string.
957
+ *
958
+ * @param {string} project
959
+ * @param {string} location
960
+ * @param {string} identity_mapping_store
961
+ * @returns {string} Resource name string.
962
+ */
963
+ identityMappingStorePath(project, location, identityMappingStore) {
964
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
965
+ project: project,
966
+ location: location,
967
+ identity_mapping_store: identityMappingStore,
968
+ });
969
+ }
970
+ /**
971
+ * Parse the project from IdentityMappingStore resource.
972
+ *
973
+ * @param {string} identityMappingStoreName
974
+ * A fully-qualified path representing IdentityMappingStore resource.
975
+ * @returns {string} A string representing the project.
976
+ */
977
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
978
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
979
+ }
980
+ /**
981
+ * Parse the location from IdentityMappingStore resource.
982
+ *
983
+ * @param {string} identityMappingStoreName
984
+ * A fully-qualified path representing IdentityMappingStore resource.
985
+ * @returns {string} A string representing the location.
986
+ */
987
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
988
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
989
+ }
990
+ /**
991
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
992
+ *
993
+ * @param {string} identityMappingStoreName
994
+ * A fully-qualified path representing IdentityMappingStore resource.
995
+ * @returns {string} A string representing the identity_mapping_store.
996
+ */
997
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
998
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
999
+ }
946
1000
  /**
947
1001
  * Return a fully-qualified project resource name string.
948
1002
  *
@@ -964,6 +1018,84 @@ class SchemaServiceClient {
964
1018
  matchProjectFromProjectName(projectName) {
965
1019
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
966
1020
  }
1021
+ /**
1022
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1023
+ *
1024
+ * @param {string} project
1025
+ * @param {string} location
1026
+ * @returns {string} Resource name string.
1027
+ */
1028
+ projectLocationCmekConfigPath(project, location) {
1029
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
1030
+ project: project,
1031
+ location: location,
1032
+ });
1033
+ }
1034
+ /**
1035
+ * Parse the project from ProjectLocationCmekConfig resource.
1036
+ *
1037
+ * @param {string} projectLocationCmekConfigName
1038
+ * A fully-qualified path representing project_location_cmekConfig resource.
1039
+ * @returns {string} A string representing the project.
1040
+ */
1041
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1042
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
1043
+ }
1044
+ /**
1045
+ * Parse the location from ProjectLocationCmekConfig resource.
1046
+ *
1047
+ * @param {string} projectLocationCmekConfigName
1048
+ * A fully-qualified path representing project_location_cmekConfig resource.
1049
+ * @returns {string} A string representing the location.
1050
+ */
1051
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1052
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
1053
+ }
1054
+ /**
1055
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1056
+ *
1057
+ * @param {string} project
1058
+ * @param {string} location
1059
+ * @param {string} cmek_config
1060
+ * @returns {string} Resource name string.
1061
+ */
1062
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
1063
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
1064
+ project: project,
1065
+ location: location,
1066
+ cmek_config: cmekConfig,
1067
+ });
1068
+ }
1069
+ /**
1070
+ * Parse the project from ProjectLocationCmekConfigs resource.
1071
+ *
1072
+ * @param {string} projectLocationCmekConfigsName
1073
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1074
+ * @returns {string} A string representing the project.
1075
+ */
1076
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1077
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
1078
+ }
1079
+ /**
1080
+ * Parse the location from ProjectLocationCmekConfigs resource.
1081
+ *
1082
+ * @param {string} projectLocationCmekConfigsName
1083
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1084
+ * @returns {string} A string representing the location.
1085
+ */
1086
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1087
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
1088
+ }
1089
+ /**
1090
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1091
+ *
1092
+ * @param {string} projectLocationCmekConfigsName
1093
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1094
+ * @returns {string} A string representing the cmek_config.
1095
+ */
1096
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1097
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
1098
+ }
967
1099
  /**
968
1100
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
969
1101
  *
@@ -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
  ]
@@ -1701,6 +1701,39 @@ export declare class SearchServiceClient {
1701
1701
  * @returns {string} A string representing the engine.
1702
1702
  */
1703
1703
  matchEngineFromEngineName(engineName: string): string | number;
1704
+ /**
1705
+ * Return a fully-qualified identityMappingStore resource name string.
1706
+ *
1707
+ * @param {string} project
1708
+ * @param {string} location
1709
+ * @param {string} identity_mapping_store
1710
+ * @returns {string} Resource name string.
1711
+ */
1712
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
1713
+ /**
1714
+ * Parse the project from IdentityMappingStore resource.
1715
+ *
1716
+ * @param {string} identityMappingStoreName
1717
+ * A fully-qualified path representing IdentityMappingStore resource.
1718
+ * @returns {string} A string representing the project.
1719
+ */
1720
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1721
+ /**
1722
+ * Parse the location from IdentityMappingStore resource.
1723
+ *
1724
+ * @param {string} identityMappingStoreName
1725
+ * A fully-qualified path representing IdentityMappingStore resource.
1726
+ * @returns {string} A string representing the location.
1727
+ */
1728
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1729
+ /**
1730
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
1731
+ *
1732
+ * @param {string} identityMappingStoreName
1733
+ * A fully-qualified path representing IdentityMappingStore resource.
1734
+ * @returns {string} A string representing the identity_mapping_store.
1735
+ */
1736
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1704
1737
  /**
1705
1738
  * Return a fully-qualified project resource name string.
1706
1739
  *
@@ -1716,6 +1749,63 @@ export declare class SearchServiceClient {
1716
1749
  * @returns {string} A string representing the project.
1717
1750
  */
1718
1751
  matchProjectFromProjectName(projectName: string): string | number;
1752
+ /**
1753
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1754
+ *
1755
+ * @param {string} project
1756
+ * @param {string} location
1757
+ * @returns {string} Resource name string.
1758
+ */
1759
+ projectLocationCmekConfigPath(project: string, location: string): string;
1760
+ /**
1761
+ * Parse the project from ProjectLocationCmekConfig resource.
1762
+ *
1763
+ * @param {string} projectLocationCmekConfigName
1764
+ * A fully-qualified path representing project_location_cmekConfig resource.
1765
+ * @returns {string} A string representing the project.
1766
+ */
1767
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
1768
+ /**
1769
+ * Parse the location from ProjectLocationCmekConfig resource.
1770
+ *
1771
+ * @param {string} projectLocationCmekConfigName
1772
+ * A fully-qualified path representing project_location_cmekConfig resource.
1773
+ * @returns {string} A string representing the location.
1774
+ */
1775
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
1776
+ /**
1777
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1778
+ *
1779
+ * @param {string} project
1780
+ * @param {string} location
1781
+ * @param {string} cmek_config
1782
+ * @returns {string} Resource name string.
1783
+ */
1784
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
1785
+ /**
1786
+ * Parse the project from ProjectLocationCmekConfigs resource.
1787
+ *
1788
+ * @param {string} projectLocationCmekConfigsName
1789
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1790
+ * @returns {string} A string representing the project.
1791
+ */
1792
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1793
+ /**
1794
+ * Parse the location from ProjectLocationCmekConfigs resource.
1795
+ *
1796
+ * @param {string} projectLocationCmekConfigsName
1797
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1798
+ * @returns {string} A string representing the location.
1799
+ */
1800
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1801
+ /**
1802
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1803
+ *
1804
+ * @param {string} projectLocationCmekConfigsName
1805
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1806
+ * @returns {string} A string representing the cmek_config.
1807
+ */
1808
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1719
1809
  /**
1720
1810
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1721
1811
  *
@@ -163,7 +163,10 @@ class SearchServiceClient {
163
163
  // Create useful helper objects for these.
164
164
  this.pathTemplates = {
165
165
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
166
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
166
167
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
168
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
169
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
167
170
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
168
171
  projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
169
172
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -1525,6 +1528,51 @@ class SearchServiceClient {
1525
1528
  matchEngineFromEngineName(engineName) {
1526
1529
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1527
1530
  }
1531
+ /**
1532
+ * Return a fully-qualified identityMappingStore resource name string.
1533
+ *
1534
+ * @param {string} project
1535
+ * @param {string} location
1536
+ * @param {string} identity_mapping_store
1537
+ * @returns {string} Resource name string.
1538
+ */
1539
+ identityMappingStorePath(project, location, identityMappingStore) {
1540
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
1541
+ project: project,
1542
+ location: location,
1543
+ identity_mapping_store: identityMappingStore,
1544
+ });
1545
+ }
1546
+ /**
1547
+ * Parse the project from IdentityMappingStore resource.
1548
+ *
1549
+ * @param {string} identityMappingStoreName
1550
+ * A fully-qualified path representing IdentityMappingStore resource.
1551
+ * @returns {string} A string representing the project.
1552
+ */
1553
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
1554
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
1555
+ }
1556
+ /**
1557
+ * Parse the location from IdentityMappingStore resource.
1558
+ *
1559
+ * @param {string} identityMappingStoreName
1560
+ * A fully-qualified path representing IdentityMappingStore resource.
1561
+ * @returns {string} A string representing the location.
1562
+ */
1563
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
1564
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
1565
+ }
1566
+ /**
1567
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
1568
+ *
1569
+ * @param {string} identityMappingStoreName
1570
+ * A fully-qualified path representing IdentityMappingStore resource.
1571
+ * @returns {string} A string representing the identity_mapping_store.
1572
+ */
1573
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
1574
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
1575
+ }
1528
1576
  /**
1529
1577
  * Return a fully-qualified project resource name string.
1530
1578
  *
@@ -1546,6 +1594,84 @@ class SearchServiceClient {
1546
1594
  matchProjectFromProjectName(projectName) {
1547
1595
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
1548
1596
  }
1597
+ /**
1598
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1599
+ *
1600
+ * @param {string} project
1601
+ * @param {string} location
1602
+ * @returns {string} Resource name string.
1603
+ */
1604
+ projectLocationCmekConfigPath(project, location) {
1605
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
1606
+ project: project,
1607
+ location: location,
1608
+ });
1609
+ }
1610
+ /**
1611
+ * Parse the project from ProjectLocationCmekConfig resource.
1612
+ *
1613
+ * @param {string} projectLocationCmekConfigName
1614
+ * A fully-qualified path representing project_location_cmekConfig resource.
1615
+ * @returns {string} A string representing the project.
1616
+ */
1617
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1618
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
1619
+ }
1620
+ /**
1621
+ * Parse the location from ProjectLocationCmekConfig resource.
1622
+ *
1623
+ * @param {string} projectLocationCmekConfigName
1624
+ * A fully-qualified path representing project_location_cmekConfig resource.
1625
+ * @returns {string} A string representing the location.
1626
+ */
1627
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1628
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
1629
+ }
1630
+ /**
1631
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1632
+ *
1633
+ * @param {string} project
1634
+ * @param {string} location
1635
+ * @param {string} cmek_config
1636
+ * @returns {string} Resource name string.
1637
+ */
1638
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
1639
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
1640
+ project: project,
1641
+ location: location,
1642
+ cmek_config: cmekConfig,
1643
+ });
1644
+ }
1645
+ /**
1646
+ * Parse the project from ProjectLocationCmekConfigs resource.
1647
+ *
1648
+ * @param {string} projectLocationCmekConfigsName
1649
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1650
+ * @returns {string} A string representing the project.
1651
+ */
1652
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1653
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
1654
+ }
1655
+ /**
1656
+ * Parse the location from ProjectLocationCmekConfigs resource.
1657
+ *
1658
+ * @param {string} projectLocationCmekConfigsName
1659
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1660
+ * @returns {string} A string representing the location.
1661
+ */
1662
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1663
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
1664
+ }
1665
+ /**
1666
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1667
+ *
1668
+ * @param {string} projectLocationCmekConfigsName
1669
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1670
+ * @returns {string} A string representing the cmek_config.
1671
+ */
1672
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1673
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
1674
+ }
1549
1675
  /**
1550
1676
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1551
1677
  *
@@ -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
  ]
@@ -405,6 +405,39 @@ export declare class SearchTuningServiceClient {
405
405
  * @returns {string} A string representing the engine.
406
406
  */
407
407
  matchEngineFromEngineName(engineName: string): string | number;
408
+ /**
409
+ * Return a fully-qualified identityMappingStore resource name string.
410
+ *
411
+ * @param {string} project
412
+ * @param {string} location
413
+ * @param {string} identity_mapping_store
414
+ * @returns {string} Resource name string.
415
+ */
416
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
417
+ /**
418
+ * Parse the project from IdentityMappingStore resource.
419
+ *
420
+ * @param {string} identityMappingStoreName
421
+ * A fully-qualified path representing IdentityMappingStore resource.
422
+ * @returns {string} A string representing the project.
423
+ */
424
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
425
+ /**
426
+ * Parse the location from IdentityMappingStore resource.
427
+ *
428
+ * @param {string} identityMappingStoreName
429
+ * A fully-qualified path representing IdentityMappingStore resource.
430
+ * @returns {string} A string representing the location.
431
+ */
432
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
433
+ /**
434
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
435
+ *
436
+ * @param {string} identityMappingStoreName
437
+ * A fully-qualified path representing IdentityMappingStore resource.
438
+ * @returns {string} A string representing the identity_mapping_store.
439
+ */
440
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
408
441
  /**
409
442
  * Return a fully-qualified project resource name string.
410
443
  *
@@ -420,6 +453,63 @@ export declare class SearchTuningServiceClient {
420
453
  * @returns {string} A string representing the project.
421
454
  */
422
455
  matchProjectFromProjectName(projectName: string): string | number;
456
+ /**
457
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
458
+ *
459
+ * @param {string} project
460
+ * @param {string} location
461
+ * @returns {string} Resource name string.
462
+ */
463
+ projectLocationCmekConfigPath(project: string, location: string): string;
464
+ /**
465
+ * Parse the project from ProjectLocationCmekConfig resource.
466
+ *
467
+ * @param {string} projectLocationCmekConfigName
468
+ * A fully-qualified path representing project_location_cmekConfig resource.
469
+ * @returns {string} A string representing the project.
470
+ */
471
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
472
+ /**
473
+ * Parse the location from ProjectLocationCmekConfig resource.
474
+ *
475
+ * @param {string} projectLocationCmekConfigName
476
+ * A fully-qualified path representing project_location_cmekConfig resource.
477
+ * @returns {string} A string representing the location.
478
+ */
479
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
480
+ /**
481
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
482
+ *
483
+ * @param {string} project
484
+ * @param {string} location
485
+ * @param {string} cmek_config
486
+ * @returns {string} Resource name string.
487
+ */
488
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
489
+ /**
490
+ * Parse the project from ProjectLocationCmekConfigs resource.
491
+ *
492
+ * @param {string} projectLocationCmekConfigsName
493
+ * A fully-qualified path representing project_location_cmekConfigs resource.
494
+ * @returns {string} A string representing the project.
495
+ */
496
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
497
+ /**
498
+ * Parse the location from ProjectLocationCmekConfigs resource.
499
+ *
500
+ * @param {string} projectLocationCmekConfigsName
501
+ * A fully-qualified path representing project_location_cmekConfigs resource.
502
+ * @returns {string} A string representing the location.
503
+ */
504
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
505
+ /**
506
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
507
+ *
508
+ * @param {string} projectLocationCmekConfigsName
509
+ * A fully-qualified path representing project_location_cmekConfigs resource.
510
+ * @returns {string} A string representing the cmek_config.
511
+ */
512
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
423
513
  /**
424
514
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
425
515
  *