@google-cloud/discoveryengine 2.1.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 (172) 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 +5415 -578
  22. package/build/protos/protos.js +77830 -63391
  23. package/build/protos/protos.json +1537 -92
  24. package/build/src/index.d.ts +10 -1
  25. package/build/src/index.js +8 -22
  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 +166 -76
  31. package/build/src/v1/completion_service_client.js +258 -263
  32. package/build/src/v1/completion_service_proto_list.json +6 -1
  33. package/build/src/v1/control_service_client.d.ts +171 -81
  34. package/build/src/v1/control_service_client.js +246 -132
  35. package/build/src/v1/control_service_proto_list.json +6 -1
  36. package/build/src/v1/conversational_search_service_client.d.ts +233 -143
  37. package/build/src/v1/conversational_search_service_client.js +330 -226
  38. package/build/src/v1/conversational_search_service_proto_list.json +6 -1
  39. package/build/src/v1/data_store_service_client.d.ts +218 -122
  40. package/build/src/v1/data_store_service_client.js +273 -281
  41. package/build/src/v1/data_store_service_proto_list.json +6 -1
  42. package/build/src/v1/document_service_client.d.ts +210 -120
  43. package/build/src/v1/document_service_client.js +300 -301
  44. package/build/src/v1/document_service_proto_list.json +6 -1
  45. package/build/src/v1/engine_service_client.d.ts +193 -103
  46. package/build/src/v1/engine_service_client.js +273 -280
  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 +138 -48
  50. package/build/src/v1/grounded_generation_service_client.js +217 -100
  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 +166 -76
  59. package/build/src/v1/project_service_client.js +235 -223
  60. package/build/src/v1/project_service_proto_list.json +6 -1
  61. package/build/src/v1/rank_service_client.d.ts +137 -47
  62. package/build/src/v1/rank_service_client.js +204 -85
  63. package/build/src/v1/rank_service_proto_list.json +6 -1
  64. package/build/src/v1/recommendation_service_client.d.ts +137 -47
  65. package/build/src/v1/recommendation_service_client.js +202 -82
  66. package/build/src/v1/recommendation_service_proto_list.json +6 -1
  67. package/build/src/v1/schema_service_client.d.ts +201 -111
  68. package/build/src/v1/schema_service_client.js +264 -274
  69. package/build/src/v1/schema_service_proto_list.json +6 -1
  70. package/build/src/v1/search_service_client.d.ts +661 -571
  71. package/build/src/v1/search_service_client.js +216 -113
  72. package/build/src/v1/search_service_proto_list.json +6 -1
  73. package/build/src/v1/search_tuning_service_client.d.ts +167 -77
  74. package/build/src/v1/search_tuning_service_client.js +246 -236
  75. package/build/src/v1/search_tuning_service_proto_list.json +6 -1
  76. package/build/src/v1/serving_config_service_client.d.ts +138 -48
  77. package/build/src/v1/serving_config_service_client.js +201 -80
  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 +238 -148
  80. package/build/src/v1/site_search_engine_service_client.js +324 -379
  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 +167 -77
  83. package/build/src/v1/user_event_service_client.js +260 -254
  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.d.ts +49 -49
  90. package/build/src/v1alpha/acl_config_service_client.js +94 -106
  91. package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
  92. package/build/src/v1alpha/chunk_service_client.js +98 -120
  93. package/build/src/v1alpha/completion_service_client.d.ts +77 -77
  94. package/build/src/v1alpha/completion_service_client.js +141 -281
  95. package/build/src/v1alpha/control_service_client.d.ts +85 -85
  96. package/build/src/v1alpha/control_service_client.js +129 -151
  97. package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
  98. package/build/src/v1alpha/conversational_search_service_client.js +211 -237
  99. package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
  100. package/build/src/v1alpha/data_store_service_client.js +176 -317
  101. package/build/src/v1alpha/document_service_client.d.ts +126 -126
  102. package/build/src/v1alpha/document_service_client.js +193 -329
  103. package/build/src/v1alpha/engine_service_client.d.ts +106 -106
  104. package/build/src/v1alpha/engine_service_client.js +180 -326
  105. package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
  106. package/build/src/v1alpha/estimate_billing_service_client.js +119 -244
  107. package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
  108. package/build/src/v1alpha/evaluation_service_client.js +150 -296
  109. package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
  110. package/build/src/v1alpha/grounded_generation_service_client.js +85 -100
  111. package/build/src/v1alpha/project_service_client.d.ts +78 -78
  112. package/build/src/v1alpha/project_service_client.js +139 -263
  113. package/build/src/v1alpha/rank_service_client.d.ts +47 -47
  114. package/build/src/v1alpha/rank_service_client.js +87 -104
  115. package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
  116. package/build/src/v1alpha/recommendation_service_client.js +85 -100
  117. package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
  118. package/build/src/v1alpha/sample_query_service_client.js +169 -302
  119. package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
  120. package/build/src/v1alpha/sample_query_set_service_client.js +130 -153
  121. package/build/src/v1alpha/schema_service_client.d.ts +112 -112
  122. package/build/src/v1alpha/schema_service_client.js +147 -293
  123. package/build/src/v1alpha/search_service_client.d.ts +327 -327
  124. package/build/src/v1alpha/search_service_client.js +88 -112
  125. package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
  126. package/build/src/v1alpha/search_tuning_service_client.js +129 -254
  127. package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
  128. package/build/src/v1alpha/serving_config_service_client.js +109 -133
  129. package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
  130. package/build/src/v1alpha/site_search_engine_service_client.js +203 -388
  131. package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
  132. package/build/src/v1alpha/user_event_service_client.js +143 -272
  133. package/build/src/v1beta/completion_service_client.d.ts +78 -78
  134. package/build/src/v1beta/completion_service_client.js +149 -280
  135. package/build/src/v1beta/control_service_client.d.ts +84 -84
  136. package/build/src/v1beta/control_service_client.js +127 -147
  137. package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
  138. package/build/src/v1beta/conversational_search_service_client.js +209 -233
  139. package/build/src/v1beta/data_store_service_client.d.ts +124 -124
  140. package/build/src/v1beta/data_store_service_client.js +154 -289
  141. package/build/src/v1beta/document_service_client.d.ts +124 -124
  142. package/build/src/v1beta/document_service_client.js +181 -310
  143. package/build/src/v1beta/engine_service_client.d.ts +106 -106
  144. package/build/src/v1beta/engine_service_client.js +178 -316
  145. package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
  146. package/build/src/v1beta/evaluation_service_client.js +148 -286
  147. package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
  148. package/build/src/v1beta/grounded_generation_service_client.js +98 -114
  149. package/build/src/v1beta/project_service_client.d.ts +76 -76
  150. package/build/src/v1beta/project_service_client.js +116 -232
  151. package/build/src/v1beta/rank_service_client.d.ts +47 -47
  152. package/build/src/v1beta/rank_service_client.js +85 -99
  153. package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
  154. package/build/src/v1beta/recommendation_service_client.js +83 -96
  155. package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
  156. package/build/src/v1beta/sample_query_service_client.js +167 -292
  157. package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
  158. package/build/src/v1beta/sample_query_set_service_client.js +128 -149
  159. package/build/src/v1beta/schema_service_client.d.ts +111 -111
  160. package/build/src/v1beta/schema_service_client.js +145 -283
  161. package/build/src/v1beta/search_service_client.d.ts +665 -665
  162. package/build/src/v1beta/search_service_client.js +97 -128
  163. package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
  164. package/build/src/v1beta/search_tuning_service_client.js +127 -244
  165. package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
  166. package/build/src/v1beta/serving_config_service_client.js +107 -129
  167. package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
  168. package/build/src/v1beta/site_search_engine_service_client.js +205 -387
  169. package/build/src/v1beta/user_event_service_client.d.ts +78 -78
  170. package/build/src/v1beta/user_event_service_client.js +141 -262
  171. package/package.json +7 -7
  172. package/CHANGELOG.md +0 -267
@@ -98,26 +98,17 @@ class SchemaServiceClient {
98
98
  constructor(opts, gaxInstance) {
99
99
  // Ensure that options include all the required fields.
100
100
  const staticMembers = this.constructor;
101
- if (opts?.universe_domain &&
102
- opts?.universeDomain &&
103
- opts?.universe_domain !== opts?.universeDomain) {
101
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
104
102
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
105
103
  }
106
- const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
107
- ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
108
- : undefined;
109
- this._universeDomain =
110
- opts?.universeDomain ??
111
- opts?.universe_domain ??
112
- universeDomainEnvVar ??
113
- 'googleapis.com';
104
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
105
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
114
106
  this._servicePath = 'discoveryengine.' + this._universeDomain;
115
107
  const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
116
108
  this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
117
109
  const port = opts?.port || staticMembers.port;
118
110
  const clientConfig = opts?.clientConfig ?? {};
119
- const fallback = opts?.fallback ??
120
- (typeof window !== 'undefined' && typeof window?.fetch === 'function');
111
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
121
112
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
122
113
  // Request numeric enum values if REST transport is used.
123
114
  opts.numericEnums = true;
@@ -147,7 +138,10 @@ class SchemaServiceClient {
147
138
  }
148
139
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
149
140
  // Determine the client header string.
150
- const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
141
+ const clientHeader = [
142
+ `gax/${this._gaxModule.version}`,
143
+ `gapic/${version}`,
144
+ ];
151
145
  if (typeof process === 'object' && 'versions' in process) {
152
146
  clientHeader.push(`gl-node/${process.versions.node}`);
153
147
  }
@@ -170,7 +164,10 @@ class SchemaServiceClient {
170
164
  // Create useful helper objects for these.
171
165
  this.pathTemplates = {
172
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}'),
173
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}'),
174
171
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
175
172
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
176
173
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -209,129 +206,24 @@ class SchemaServiceClient {
209
206
  // (e.g. 50 results at a time, with tokens to get subsequent
210
207
  // pages). Denote the keys used for pagination and results.
211
208
  this.descriptors.page = {
212
- listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas'),
209
+ listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas')
213
210
  };
214
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
211
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
215
212
  // This API contains "long-running operations", which return a
216
213
  // an Operation object that allows for tracking of the operation,
217
214
  // rather than holding a request open.
218
215
  const lroOptions = {
219
216
  auth: this.auth,
220
- grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
217
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
221
218
  };
222
219
  if (opts.fallback) {
223
220
  lroOptions.protoJson = protoFilesRoot;
224
- lroOptions.httpRules = [
225
- {
226
- selector: 'google.longrunning.Operations.CancelOperation',
227
- post: '/v1/{name=projects/*/operations/*}:cancel',
228
- body: '*',
229
- additional_bindings: [
230
- {
231
- post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
232
- body: '*',
233
- },
234
- {
235
- post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
236
- body: '*',
237
- },
238
- ],
239
- },
240
- {
241
- selector: 'google.longrunning.Operations.GetOperation',
242
- get: '/v1/{name=projects/*/operations/*}',
243
- additional_bindings: [
244
- {
245
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
246
- },
247
- {
248
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
249
- },
250
- {
251
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
252
- },
253
- {
254
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
255
- },
256
- {
257
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
258
- },
259
- {
260
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
261
- },
262
- {
263
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
264
- },
265
- {
266
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
267
- },
268
- {
269
- get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
270
- },
271
- {
272
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
273
- },
274
- {
275
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
276
- },
277
- {
278
- get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
279
- },
280
- {
281
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
282
- },
283
- { get: '/v1/{name=projects/*/locations/*/operations/*}' },
284
- { get: '/v1/{name=projects/*/operations/*}' },
285
- ],
286
- },
287
- {
288
- selector: 'google.longrunning.Operations.ListOperations',
289
- get: '/v1/{name=projects/*}/operations',
290
- additional_bindings: [
291
- {
292
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
293
- },
294
- {
295
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
296
- },
297
- {
298
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
299
- },
300
- {
301
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
302
- },
303
- {
304
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
305
- },
306
- {
307
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
308
- },
309
- {
310
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
311
- },
312
- {
313
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
314
- },
315
- { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
316
- {
317
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
318
- },
319
- {
320
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
321
- },
322
- { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
323
- {
324
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
325
- },
326
- { get: '/v1/{name=projects/*/locations/*}/operations' },
327
- { get: '/v1/{name=projects/*}/operations' },
328
- ],
329
- },
330
- ];
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: '*', }],
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/*}', }],
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', }],
224
+ }];
331
225
  }
332
- this.operationsClient = this._gaxModule
333
- .lro(lroOptions)
334
- .operationsClient(opts);
226
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
335
227
  const createSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Schema');
336
228
  const createSchemaMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateSchemaMetadata');
337
229
  const updateSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Schema');
@@ -341,7 +233,7 @@ class SchemaServiceClient {
341
233
  this.descriptors.longrunning = {
342
234
  createSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createSchemaResponse.decode.bind(createSchemaResponse), createSchemaMetadata.decode.bind(createSchemaMetadata)),
343
235
  updateSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateSchemaResponse.decode.bind(updateSchemaResponse), updateSchemaMetadata.decode.bind(updateSchemaMetadata)),
344
- deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata)),
236
+ deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata))
345
237
  };
346
238
  // Put together the default options sent with requests.
347
239
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.SchemaService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -370,19 +262,13 @@ class SchemaServiceClient {
370
262
  }
371
263
  // Put together the "service stub" for
372
264
  // google.cloud.discoveryengine.v1.SchemaService.
373
- this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback
374
- ? this._protos.lookupService('google.cloud.discoveryengine.v1.SchemaService')
375
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
376
- this._protos.google.cloud.discoveryengine.v1.SchemaService, this._opts, this._providedCustomServicePath);
265
+ this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
266
+ this._protos.lookupService('google.cloud.discoveryengine.v1.SchemaService') :
267
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
268
+ this._protos.google.cloud.discoveryengine.v1.SchemaService, this._opts, this._providedCustomServicePath);
377
269
  // Iterate over each of the methods that the service provides
378
270
  // and create an API call method for each.
379
- const schemaServiceStubMethods = [
380
- 'getSchema',
381
- 'listSchemas',
382
- 'createSchema',
383
- 'updateSchema',
384
- 'deleteSchema',
385
- ];
271
+ const schemaServiceStubMethods = ['getSchema', 'listSchemas', 'createSchema', 'updateSchema', 'deleteSchema'];
386
272
  for (const methodName of schemaServiceStubMethods) {
387
273
  const callPromise = this.schemaServiceStub.then(stub => (...args) => {
388
274
  if (this._terminated) {
@@ -407,8 +293,7 @@ class SchemaServiceClient {
407
293
  * @returns {string} The DNS address for this service.
408
294
  */
409
295
  static get servicePath() {
410
- if (typeof process === 'object' &&
411
- typeof process.emitWarning === 'function') {
296
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
412
297
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
413
298
  }
414
299
  return 'discoveryengine.googleapis.com';
@@ -419,8 +304,7 @@ class SchemaServiceClient {
419
304
  * @returns {string} The DNS address for this service.
420
305
  */
421
306
  static get apiEndpoint() {
422
- if (typeof process === 'object' &&
423
- typeof process.emitWarning === 'function') {
307
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
424
308
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
425
309
  }
426
310
  return 'discoveryengine.googleapis.com';
@@ -448,7 +332,9 @@ class SchemaServiceClient {
448
332
  * @returns {string[]} List of default scopes.
449
333
  */
450
334
  static get scopes() {
451
- return ['https://www.googleapis.com/auth/cloud-platform'];
335
+ return [
336
+ 'https://www.googleapis.com/auth/cloud-platform'
337
+ ];
452
338
  }
453
339
  /**
454
340
  * Return the project ID used by this class.
@@ -474,13 +360,10 @@ class SchemaServiceClient {
474
360
  options = options || {};
475
361
  options.otherArgs = options.otherArgs || {};
476
362
  options.otherArgs.headers = options.otherArgs.headers || {};
477
- options.otherArgs.headers['x-goog-request-params'] =
478
- this._gaxModule.routingHeader.fromParams({
479
- name: request.name ?? '',
480
- });
481
- this.initialize().catch(err => {
482
- throw err;
363
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
364
+ 'name': request.name ?? '',
483
365
  });
366
+ this.initialize().catch(err => { throw err; });
484
367
  this._log.info('getSchema request %j', request);
485
368
  const wrappedCallback = callback
486
369
  ? (error, response, options, rawResponse) => {
@@ -488,11 +371,16 @@ class SchemaServiceClient {
488
371
  callback(error, response, options, rawResponse); // We verified callback above.
489
372
  }
490
373
  : undefined;
491
- return this.innerApiCalls
492
- .getSchema(request, options, wrappedCallback)
374
+ return this.innerApiCalls.getSchema(request, options, wrappedCallback)
493
375
  ?.then(([response, options, rawResponse]) => {
494
376
  this._log.info('getSchema response %j', response);
495
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;
496
384
  });
497
385
  }
498
386
  createSchema(request, optionsOrCallback, callback) {
@@ -508,13 +396,10 @@ class SchemaServiceClient {
508
396
  options = options || {};
509
397
  options.otherArgs = options.otherArgs || {};
510
398
  options.otherArgs.headers = options.otherArgs.headers || {};
511
- options.otherArgs.headers['x-goog-request-params'] =
512
- this._gaxModule.routingHeader.fromParams({
513
- parent: request.parent ?? '',
514
- });
515
- this.initialize().catch(err => {
516
- throw err;
399
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
400
+ 'parent': request.parent ?? '',
517
401
  });
402
+ this.initialize().catch(err => { throw err; });
518
403
  const wrappedCallback = callback
519
404
  ? (error, response, rawResponse, _) => {
520
405
  this._log.info('createSchema response %j', rawResponse);
@@ -522,8 +407,7 @@ class SchemaServiceClient {
522
407
  }
523
408
  : undefined;
524
409
  this._log.info('createSchema request %j', request);
525
- return this.innerApiCalls
526
- .createSchema(request, options, wrappedCallback)
410
+ return this.innerApiCalls.createSchema(request, options, wrappedCallback)
527
411
  ?.then(([response, rawResponse, _]) => {
528
412
  this._log.info('createSchema response %j', rawResponse);
529
413
  return [response, rawResponse, _];
@@ -560,13 +444,10 @@ class SchemaServiceClient {
560
444
  options = options || {};
561
445
  options.otherArgs = options.otherArgs || {};
562
446
  options.otherArgs.headers = options.otherArgs.headers || {};
563
- options.otherArgs.headers['x-goog-request-params'] =
564
- this._gaxModule.routingHeader.fromParams({
565
- 'schema.name': request.schema.name ?? '',
566
- });
567
- this.initialize().catch(err => {
568
- throw err;
447
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
448
+ 'schema.name': request.schema.name ?? '',
569
449
  });
450
+ this.initialize().catch(err => { throw err; });
570
451
  const wrappedCallback = callback
571
452
  ? (error, response, rawResponse, _) => {
572
453
  this._log.info('updateSchema response %j', rawResponse);
@@ -574,8 +455,7 @@ class SchemaServiceClient {
574
455
  }
575
456
  : undefined;
576
457
  this._log.info('updateSchema request %j', request);
577
- return this.innerApiCalls
578
- .updateSchema(request, options, wrappedCallback)
458
+ return this.innerApiCalls.updateSchema(request, options, wrappedCallback)
579
459
  ?.then(([response, rawResponse, _]) => {
580
460
  this._log.info('updateSchema response %j', rawResponse);
581
461
  return [response, rawResponse, _];
@@ -612,13 +492,10 @@ class SchemaServiceClient {
612
492
  options = options || {};
613
493
  options.otherArgs = options.otherArgs || {};
614
494
  options.otherArgs.headers = options.otherArgs.headers || {};
615
- options.otherArgs.headers['x-goog-request-params'] =
616
- this._gaxModule.routingHeader.fromParams({
617
- name: request.name ?? '',
618
- });
619
- this.initialize().catch(err => {
620
- throw err;
495
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
496
+ 'name': request.name ?? '',
621
497
  });
498
+ this.initialize().catch(err => { throw err; });
622
499
  const wrappedCallback = callback
623
500
  ? (error, response, rawResponse, _) => {
624
501
  this._log.info('deleteSchema response %j', rawResponse);
@@ -626,8 +503,7 @@ class SchemaServiceClient {
626
503
  }
627
504
  : undefined;
628
505
  this._log.info('deleteSchema request %j', request);
629
- return this.innerApiCalls
630
- .deleteSchema(request, options, wrappedCallback)
506
+ return this.innerApiCalls.deleteSchema(request, options, wrappedCallback)
631
507
  ?.then(([response, rawResponse, _]) => {
632
508
  this._log.info('deleteSchema response %j', rawResponse);
633
509
  return [response, rawResponse, _];
@@ -664,13 +540,10 @@ class SchemaServiceClient {
664
540
  options = options || {};
665
541
  options.otherArgs = options.otherArgs || {};
666
542
  options.otherArgs.headers = options.otherArgs.headers || {};
667
- options.otherArgs.headers['x-goog-request-params'] =
668
- this._gaxModule.routingHeader.fromParams({
669
- parent: request.parent ?? '',
670
- });
671
- this.initialize().catch(err => {
672
- throw err;
543
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
544
+ 'parent': request.parent ?? '',
673
545
  });
546
+ this.initialize().catch(err => { throw err; });
674
547
  const wrappedCallback = callback
675
548
  ? (error, values, nextPageRequest, rawResponse) => {
676
549
  this._log.info('listSchemas values %j', values);
@@ -724,15 +597,12 @@ class SchemaServiceClient {
724
597
  options = options || {};
725
598
  options.otherArgs = options.otherArgs || {};
726
599
  options.otherArgs.headers = options.otherArgs.headers || {};
727
- options.otherArgs.headers['x-goog-request-params'] =
728
- this._gaxModule.routingHeader.fromParams({
729
- parent: request.parent ?? '',
730
- });
600
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
601
+ 'parent': request.parent ?? '',
602
+ });
731
603
  const defaultCallSettings = this._defaults['listSchemas'];
732
604
  const callSettings = defaultCallSettings.merge(options);
733
- this.initialize().catch(err => {
734
- throw err;
735
- });
605
+ this.initialize().catch(err => { throw err; });
736
606
  this._log.info('listSchemas stream %j', request);
737
607
  return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
738
608
  }
@@ -778,103 +648,100 @@ class SchemaServiceClient {
778
648
  options = options || {};
779
649
  options.otherArgs = options.otherArgs || {};
780
650
  options.otherArgs.headers = options.otherArgs.headers || {};
781
- options.otherArgs.headers['x-goog-request-params'] =
782
- this._gaxModule.routingHeader.fromParams({
783
- parent: request.parent ?? '',
784
- });
651
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
652
+ 'parent': request.parent ?? '',
653
+ });
785
654
  const defaultCallSettings = this._defaults['listSchemas'];
786
655
  const callSettings = defaultCallSettings.merge(options);
787
- this.initialize().catch(err => {
788
- throw err;
789
- });
656
+ this.initialize().catch(err => { throw err; });
790
657
  this._log.info('listSchemas iterate %j', request);
791
658
  return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
792
659
  }
793
660
  /**
794
- * Gets information about a location.
795
- *
796
- * @param {Object} request
797
- * The request object that will be sent.
798
- * @param {string} request.name
799
- * Resource name for the location.
800
- * @param {object} [options]
801
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
802
- * @returns {Promise} - The promise which resolves to an array.
803
- * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
804
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
805
- * for more details and examples.
806
- * @example
807
- * ```
808
- * const [response] = await client.getLocation(request);
809
- * ```
810
- */
661
+ * Gets information about a location.
662
+ *
663
+ * @param {Object} request
664
+ * The request object that will be sent.
665
+ * @param {string} request.name
666
+ * Resource name for the location.
667
+ * @param {object} [options]
668
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
669
+ * @returns {Promise} - The promise which resolves to an array.
670
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
671
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
672
+ * for more details and examples.
673
+ * @example
674
+ * ```
675
+ * const [response] = await client.getLocation(request);
676
+ * ```
677
+ */
811
678
  getLocation(request, options, callback) {
812
679
  return this.locationsClient.getLocation(request, options, callback);
813
680
  }
814
681
  /**
815
- * Lists information about the supported locations for this service. Returns an iterable object.
816
- *
817
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
818
- * @param {Object} request
819
- * The request object that will be sent.
820
- * @param {string} request.name
821
- * The resource that owns the locations collection, if applicable.
822
- * @param {string} request.filter
823
- * The standard list filter.
824
- * @param {number} request.pageSize
825
- * The standard list page size.
826
- * @param {string} request.pageToken
827
- * The standard list page token.
828
- * @param {object} [options]
829
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
830
- * @returns {Object}
831
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
832
- * When you iterate the returned iterable, each element will be an object representing
833
- * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
834
- * so you can stop the iteration when you don't need more results.
835
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
836
- * for more details and examples.
837
- * @example
838
- * ```
839
- * const iterable = client.listLocationsAsync(request);
840
- * for await (const response of iterable) {
841
- * // process response
842
- * }
843
- * ```
844
- */
682
+ * Lists information about the supported locations for this service. Returns an iterable object.
683
+ *
684
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
685
+ * @param {Object} request
686
+ * The request object that will be sent.
687
+ * @param {string} request.name
688
+ * The resource that owns the locations collection, if applicable.
689
+ * @param {string} request.filter
690
+ * The standard list filter.
691
+ * @param {number} request.pageSize
692
+ * The standard list page size.
693
+ * @param {string} request.pageToken
694
+ * The standard list page token.
695
+ * @param {object} [options]
696
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
697
+ * @returns {Object}
698
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
699
+ * When you iterate the returned iterable, each element will be an object representing
700
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
701
+ * so you can stop the iteration when you don't need more results.
702
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
703
+ * for more details and examples.
704
+ * @example
705
+ * ```
706
+ * const iterable = client.listLocationsAsync(request);
707
+ * for await (const response of iterable) {
708
+ * // process response
709
+ * }
710
+ * ```
711
+ */
845
712
  listLocationsAsync(request, options) {
846
713
  return this.locationsClient.listLocationsAsync(request, options);
847
714
  }
848
715
  /**
849
- * Gets the latest state of a long-running operation. Clients can use this
850
- * method to poll the operation result at intervals as recommended by the API
851
- * service.
852
- *
853
- * @param {Object} request - The request object that will be sent.
854
- * @param {string} request.name - The name of the operation resource.
855
- * @param {Object=} options
856
- * Optional parameters. You can override the default settings for this call,
857
- * e.g, timeout, retries, paginations, etc. See {@link
858
- * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
859
- * for the details.
860
- * @param {function(?Error, ?Object)=} callback
861
- * The function which will be called with the result of the API call.
862
- *
863
- * The second parameter to the callback is an object representing
864
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
865
- * @return {Promise} - The promise which resolves to an array.
866
- * The first element of the array is an object representing
867
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
868
- * The promise has a method named "cancel" which cancels the ongoing API call.
869
- *
870
- * @example
871
- * ```
872
- * const client = longrunning.operationsClient();
873
- * const name = '';
874
- * const [response] = await client.getOperation({name});
875
- * // doThingsWith(response)
876
- * ```
877
- */
716
+ * Gets the latest state of a long-running operation. Clients can use this
717
+ * method to poll the operation result at intervals as recommended by the API
718
+ * service.
719
+ *
720
+ * @param {Object} request - The request object that will be sent.
721
+ * @param {string} request.name - The name of the operation resource.
722
+ * @param {Object=} options
723
+ * Optional parameters. You can override the default settings for this call,
724
+ * e.g, timeout, retries, paginations, etc. See {@link
725
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
726
+ * for the details.
727
+ * @param {function(?Error, ?Object)=} callback
728
+ * The function which will be called with the result of the API call.
729
+ *
730
+ * The second parameter to the callback is an object representing
731
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
732
+ * @return {Promise} - The promise which resolves to an array.
733
+ * The first element of the array is an object representing
734
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
735
+ * The promise has a method named "cancel" which cancels the ongoing API call.
736
+ *
737
+ * @example
738
+ * ```
739
+ * const client = longrunning.operationsClient();
740
+ * const name = '';
741
+ * const [response] = await client.getOperation({name});
742
+ * // doThingsWith(response)
743
+ * ```
744
+ */
878
745
  getOperation(request, optionsOrCallback, callback) {
879
746
  let options;
880
747
  if (typeof optionsOrCallback === 'function' && callback === undefined) {
@@ -1085,6 +952,51 @@ class SchemaServiceClient {
1085
952
  matchEngineFromEngineName(engineName) {
1086
953
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1087
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
+ }
1088
1000
  /**
1089
1001
  * Return a fully-qualified project resource name string.
1090
1002
  *
@@ -1106,6 +1018,84 @@ class SchemaServiceClient {
1106
1018
  matchProjectFromProjectName(projectName) {
1107
1019
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
1108
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
+ }
1109
1099
  /**
1110
1100
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1111
1101
  *
@@ -3263,8 +3253,8 @@ class SchemaServiceClient {
3263
3253
  this._log.info('ending gRPC channel');
3264
3254
  this._terminated = true;
3265
3255
  stub.close();
3266
- this.locationsClient.close();
3267
- this.operationsClient.close();
3256
+ this.locationsClient.close().catch(err => { throw err; });
3257
+ void this.operationsClient.close();
3268
3258
  });
3269
3259
  }
3270
3260
  return Promise.resolve();