@google-cloud/discoveryengine 2.0.1 → 2.2.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 (167) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +7 -2
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
  4. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
  6. package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
  9. package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
  10. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
  12. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
  15. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
  16. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
  17. package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
  19. package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
  24. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
  26. package/build/protos/protos.d.ts +4390 -300
  27. package/build/protos/protos.js +13785 -2922
  28. package/build/protos/protos.json +1355 -14
  29. package/build/src/index.d.ts +4 -1
  30. package/build/src/index.js +4 -21
  31. package/build/src/v1/completion_service_client.d.ts +313 -76
  32. package/build/src/v1/completion_service_client.js +451 -262
  33. package/build/src/v1/completion_service_proto_list.json +3 -0
  34. package/build/src/v1/control_service_client.d.ts +318 -81
  35. package/build/src/v1/control_service_client.js +422 -132
  36. package/build/src/v1/control_service_proto_list.json +3 -0
  37. package/build/src/v1/conversational_search_service_client.d.ts +341 -134
  38. package/build/src/v1/conversational_search_service_client.js +395 -223
  39. package/build/src/v1/conversational_search_service_client_config.json +5 -0
  40. package/build/src/v1/conversational_search_service_proto_list.json +3 -0
  41. package/build/src/v1/data_store_service_client.d.ts +359 -122
  42. package/build/src/v1/data_store_service_client.js +460 -280
  43. package/build/src/v1/data_store_service_proto_list.json +3 -0
  44. package/build/src/v1/document_service_client.d.ts +364 -121
  45. package/build/src/v1/document_service_client.js +469 -300
  46. package/build/src/v1/document_service_proto_list.json +3 -0
  47. package/build/src/v1/engine_service_client.d.ts +340 -103
  48. package/build/src/v1/engine_service_client.js +460 -279
  49. package/build/src/v1/engine_service_proto_list.json +3 -0
  50. package/build/src/v1/gapic_metadata.json +59 -0
  51. package/build/src/v1/grounded_generation_service_client.d.ts +286 -51
  52. package/build/src/v1/grounded_generation_service_client.js +405 -100
  53. package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
  54. package/build/src/v1/index.d.ts +1 -0
  55. package/build/src/v1/index.js +3 -1
  56. package/build/src/v1/project_service_client.d.ts +313 -76
  57. package/build/src/v1/project_service_client.js +434 -222
  58. package/build/src/v1/project_service_proto_list.json +3 -0
  59. package/build/src/v1/rank_service_client.d.ts +285 -48
  60. package/build/src/v1/rank_service_client.js +398 -85
  61. package/build/src/v1/rank_service_proto_list.json +3 -0
  62. package/build/src/v1/recommendation_service_client.d.ts +142 -49
  63. package/build/src/v1/recommendation_service_client.js +198 -82
  64. package/build/src/v1/recommendation_service_proto_list.json +3 -0
  65. package/build/src/v1/schema_service_client.d.ts +348 -111
  66. package/build/src/v1/schema_service_client.js +457 -273
  67. package/build/src/v1/schema_service_proto_list.json +3 -0
  68. package/build/src/v1/search_service_client.d.ts +748 -559
  69. package/build/src/v1/search_service_client.js +302 -133
  70. package/build/src/v1/search_service_proto_list.json +3 -0
  71. package/build/src/v1/search_tuning_service_client.d.ts +314 -77
  72. package/build/src/v1/search_tuning_service_client.js +439 -235
  73. package/build/src/v1/search_tuning_service_proto_list.json +3 -0
  74. package/build/src/v1/serving_config_service_client.d.ts +1851 -0
  75. package/build/src/v1/serving_config_service_client.js +2642 -0
  76. package/build/src/v1/serving_config_service_client_config.json +30 -0
  77. package/build/src/v1/serving_config_service_proto_list.json +39 -0
  78. package/build/src/v1/site_search_engine_service_client.d.ts +504 -151
  79. package/build/src/v1/site_search_engine_service_client.js +625 -351
  80. package/build/src/v1/site_search_engine_service_client_config.json +12 -0
  81. package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
  82. package/build/src/v1/user_event_service_client.d.ts +335 -86
  83. package/build/src/v1/user_event_service_client.js +447 -253
  84. package/build/src/v1/user_event_service_proto_list.json +3 -0
  85. package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
  86. package/build/src/v1alpha/acl_config_service_client.js +82 -106
  87. package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
  88. package/build/src/v1alpha/chunk_service_client.js +92 -120
  89. package/build/src/v1alpha/completion_service_client.d.ts +77 -77
  90. package/build/src/v1alpha/completion_service_client.js +134 -280
  91. package/build/src/v1alpha/control_service_client.d.ts +85 -85
  92. package/build/src/v1alpha/control_service_client.js +105 -151
  93. package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
  94. package/build/src/v1alpha/conversational_search_service_client.js +145 -237
  95. package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
  96. package/build/src/v1alpha/data_store_service_client.js +151 -316
  97. package/build/src/v1alpha/document_service_client.d.ts +126 -126
  98. package/build/src/v1alpha/document_service_client.js +156 -328
  99. package/build/src/v1alpha/engine_service_client.d.ts +106 -106
  100. package/build/src/v1alpha/engine_service_client.js +155 -325
  101. package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
  102. package/build/src/v1alpha/estimate_billing_service_client.js +118 -243
  103. package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
  104. package/build/src/v1alpha/evaluation_service_client.js +143 -295
  105. package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
  106. package/build/src/v1alpha/grounded_generation_service_client.js +79 -100
  107. package/build/src/v1alpha/project_service_client.d.ts +78 -78
  108. package/build/src/v1alpha/project_service_client.js +126 -262
  109. package/build/src/v1alpha/rank_service_client.d.ts +47 -47
  110. package/build/src/v1alpha/rank_service_client.js +81 -104
  111. package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
  112. package/build/src/v1alpha/recommendation_service_client.js +79 -100
  113. package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
  114. package/build/src/v1alpha/sample_query_service_client.js +144 -301
  115. package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
  116. package/build/src/v1alpha/sample_query_set_service_client.js +106 -153
  117. package/build/src/v1alpha/schema_service_client.d.ts +112 -112
  118. package/build/src/v1alpha/schema_service_client.js +140 -292
  119. package/build/src/v1alpha/search_service_client.d.ts +327 -327
  120. package/build/src/v1alpha/search_service_client.js +88 -112
  121. package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
  122. package/build/src/v1alpha/search_tuning_service_client.js +122 -253
  123. package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
  124. package/build/src/v1alpha/serving_config_service_client.js +97 -133
  125. package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
  126. package/build/src/v1alpha/site_search_engine_service_client.js +184 -387
  127. package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
  128. package/build/src/v1alpha/user_event_service_client.js +130 -271
  129. package/build/src/v1beta/completion_service_client.d.ts +78 -78
  130. package/build/src/v1beta/completion_service_client.js +136 -279
  131. package/build/src/v1beta/control_service_client.d.ts +84 -84
  132. package/build/src/v1beta/control_service_client.js +103 -147
  133. package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
  134. package/build/src/v1beta/conversational_search_service_client.js +143 -233
  135. package/build/src/v1beta/data_store_service_client.d.ts +124 -124
  136. package/build/src/v1beta/data_store_service_client.js +141 -288
  137. package/build/src/v1beta/document_service_client.d.ts +124 -124
  138. package/build/src/v1beta/document_service_client.js +150 -309
  139. package/build/src/v1beta/engine_service_client.d.ts +106 -106
  140. package/build/src/v1beta/engine_service_client.js +153 -315
  141. package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
  142. package/build/src/v1beta/evaluation_service_client.js +141 -285
  143. package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
  144. package/build/src/v1beta/grounded_generation_service_client.js +86 -114
  145. package/build/src/v1beta/project_service_client.d.ts +76 -76
  146. package/build/src/v1beta/project_service_client.js +115 -231
  147. package/build/src/v1beta/rank_service_client.d.ts +47 -47
  148. package/build/src/v1beta/rank_service_client.js +79 -99
  149. package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
  150. package/build/src/v1beta/recommendation_service_client.js +77 -96
  151. package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
  152. package/build/src/v1beta/sample_query_service_client.js +142 -291
  153. package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
  154. package/build/src/v1beta/sample_query_set_service_client.js +104 -149
  155. package/build/src/v1beta/schema_service_client.d.ts +111 -111
  156. package/build/src/v1beta/schema_service_client.js +138 -282
  157. package/build/src/v1beta/search_service_client.d.ts +665 -665
  158. package/build/src/v1beta/search_service_client.js +97 -128
  159. package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
  160. package/build/src/v1beta/search_tuning_service_client.js +120 -243
  161. package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
  162. package/build/src/v1beta/serving_config_service_client.js +95 -129
  163. package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
  164. package/build/src/v1beta/site_search_engine_service_client.js +186 -386
  165. package/build/src/v1beta/user_event_service_client.d.ts +78 -78
  166. package/build/src/v1beta/user_event_service_client.js +128 -261
  167. package/package.json +4 -4
@@ -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
  }
@@ -213,7 +207,7 @@ class SchemaServiceClient {
213
207
  // (e.g. 50 results at a time, with tokens to get subsequent
214
208
  // pages). Denote the keys used for pagination and results.
215
209
  this.descriptors.page = {
216
- listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas'),
210
+ listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas')
217
211
  };
218
212
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
219
213
  // This API contains "long-running operations", which return a
@@ -221,115 +215,16 @@ class SchemaServiceClient {
221
215
  // rather than holding a request open.
222
216
  const lroOptions = {
223
217
  auth: this.auth,
224
- grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
218
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
225
219
  };
226
220
  if (opts.fallback) {
227
221
  lroOptions.protoJson = protoFilesRoot;
228
- lroOptions.httpRules = [
229
- {
230
- selector: 'google.longrunning.Operations.CancelOperation',
231
- post: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
232
- body: '*',
233
- additional_bindings: [
234
- {
235
- post: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
236
- body: '*',
237
- },
238
- ],
239
- },
240
- {
241
- selector: 'google.longrunning.Operations.GetOperation',
242
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
243
- additional_bindings: [
244
- {
245
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
246
- },
247
- {
248
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
249
- },
250
- {
251
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
252
- },
253
- {
254
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
255
- },
256
- {
257
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
258
- },
259
- {
260
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
261
- },
262
- {
263
- get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
264
- },
265
- {
266
- get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
267
- },
268
- {
269
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
270
- },
271
- {
272
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
273
- },
274
- {
275
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
276
- },
277
- {
278
- get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
279
- },
280
- { get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
281
- {
282
- get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
283
- },
284
- { get: '/v1beta/{name=projects/*/operations/*}' },
285
- ],
286
- },
287
- {
288
- selector: 'google.longrunning.Operations.ListOperations',
289
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
290
- additional_bindings: [
291
- {
292
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
293
- },
294
- {
295
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
296
- },
297
- {
298
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
299
- },
300
- {
301
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
302
- },
303
- {
304
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
305
- },
306
- {
307
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
308
- },
309
- {
310
- get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations',
311
- },
312
- {
313
- get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
314
- },
315
- {
316
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
317
- },
318
- {
319
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
320
- },
321
- {
322
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations',
323
- },
324
- { get: '/v1beta/{name=projects/*/locations/*}/operations' },
325
- { get: '/v1beta/{name=projects/*}/operations' },
326
- ],
327
- },
328
- ];
222
+ lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
223
+ }, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', additional_bindings: [{ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}', }, { get: '/v1beta/{name=projects/*/operations/*}', }],
224
+ }, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations', additional_bindings: [{ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*}/operations', }, { get: '/v1beta/{name=projects/*}/operations', }],
225
+ }];
329
226
  }
330
- this.operationsClient = this._gaxModule
331
- .lro(lroOptions)
332
- .operationsClient(opts);
227
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
333
228
  const createSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.Schema');
334
229
  const createSchemaMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata');
335
230
  const updateSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.Schema');
@@ -339,7 +234,7 @@ class SchemaServiceClient {
339
234
  this.descriptors.longrunning = {
340
235
  createSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createSchemaResponse.decode.bind(createSchemaResponse), createSchemaMetadata.decode.bind(createSchemaMetadata)),
341
236
  updateSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateSchemaResponse.decode.bind(updateSchemaResponse), updateSchemaMetadata.decode.bind(updateSchemaMetadata)),
342
- deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata)),
237
+ deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata))
343
238
  };
344
239
  // Put together the default options sent with requests.
345
240
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.SchemaService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -368,20 +263,13 @@ class SchemaServiceClient {
368
263
  }
369
264
  // Put together the "service stub" for
370
265
  // google.cloud.discoveryengine.v1beta.SchemaService.
371
- this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback
372
- ? this._protos.lookupService('google.cloud.discoveryengine.v1beta.SchemaService')
373
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
374
- this._protos.google.cloud.discoveryengine.v1beta
375
- .SchemaService, this._opts, this._providedCustomServicePath);
266
+ this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
267
+ this._protos.lookupService('google.cloud.discoveryengine.v1beta.SchemaService') :
268
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
269
+ this._protos.google.cloud.discoveryengine.v1beta.SchemaService, this._opts, this._providedCustomServicePath);
376
270
  // Iterate over each of the methods that the service provides
377
271
  // and create an API call method for each.
378
- const schemaServiceStubMethods = [
379
- 'getSchema',
380
- 'listSchemas',
381
- 'createSchema',
382
- 'updateSchema',
383
- 'deleteSchema',
384
- ];
272
+ const schemaServiceStubMethods = ['getSchema', 'listSchemas', 'createSchema', 'updateSchema', 'deleteSchema'];
385
273
  for (const methodName of schemaServiceStubMethods) {
386
274
  const callPromise = this.schemaServiceStub.then(stub => (...args) => {
387
275
  if (this._terminated) {
@@ -406,8 +294,7 @@ class SchemaServiceClient {
406
294
  * @returns {string} The DNS address for this service.
407
295
  */
408
296
  static get servicePath() {
409
- if (typeof process === 'object' &&
410
- typeof process.emitWarning === 'function') {
297
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
411
298
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
412
299
  }
413
300
  return 'discoveryengine.googleapis.com';
@@ -418,8 +305,7 @@ class SchemaServiceClient {
418
305
  * @returns {string} The DNS address for this service.
419
306
  */
420
307
  static get apiEndpoint() {
421
- if (typeof process === 'object' &&
422
- typeof process.emitWarning === 'function') {
308
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
423
309
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
424
310
  }
425
311
  return 'discoveryengine.googleapis.com';
@@ -447,7 +333,9 @@ class SchemaServiceClient {
447
333
  * @returns {string[]} List of default scopes.
448
334
  */
449
335
  static get scopes() {
450
- return ['https://www.googleapis.com/auth/cloud-platform'];
336
+ return [
337
+ 'https://www.googleapis.com/auth/cloud-platform'
338
+ ];
451
339
  }
452
340
  /**
453
341
  * Return the project ID used by this class.
@@ -473,13 +361,10 @@ class SchemaServiceClient {
473
361
  options = options || {};
474
362
  options.otherArgs = options.otherArgs || {};
475
363
  options.otherArgs.headers = options.otherArgs.headers || {};
476
- options.otherArgs.headers['x-goog-request-params'] =
477
- this._gaxModule.routingHeader.fromParams({
478
- name: request.name ?? '',
479
- });
480
- this.initialize().catch(err => {
481
- throw err;
364
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
365
+ 'name': request.name ?? '',
482
366
  });
367
+ this.initialize().catch(err => { throw err; });
483
368
  this._log.info('getSchema request %j', request);
484
369
  const wrappedCallback = callback
485
370
  ? (error, response, options, rawResponse) => {
@@ -487,8 +372,7 @@ class SchemaServiceClient {
487
372
  callback(error, response, options, rawResponse); // We verified callback above.
488
373
  }
489
374
  : undefined;
490
- return this.innerApiCalls
491
- .getSchema(request, options, wrappedCallback)
375
+ return this.innerApiCalls.getSchema(request, options, wrappedCallback)
492
376
  ?.then(([response, options, rawResponse]) => {
493
377
  this._log.info('getSchema response %j', response);
494
378
  return [response, options, rawResponse];
@@ -507,13 +391,10 @@ class SchemaServiceClient {
507
391
  options = options || {};
508
392
  options.otherArgs = options.otherArgs || {};
509
393
  options.otherArgs.headers = options.otherArgs.headers || {};
510
- options.otherArgs.headers['x-goog-request-params'] =
511
- this._gaxModule.routingHeader.fromParams({
512
- parent: request.parent ?? '',
513
- });
514
- this.initialize().catch(err => {
515
- throw err;
394
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
395
+ 'parent': request.parent ?? '',
516
396
  });
397
+ this.initialize().catch(err => { throw err; });
517
398
  const wrappedCallback = callback
518
399
  ? (error, response, rawResponse, _) => {
519
400
  this._log.info('createSchema response %j', rawResponse);
@@ -521,8 +402,7 @@ class SchemaServiceClient {
521
402
  }
522
403
  : undefined;
523
404
  this._log.info('createSchema request %j', request);
524
- return this.innerApiCalls
525
- .createSchema(request, options, wrappedCallback)
405
+ return this.innerApiCalls.createSchema(request, options, wrappedCallback)
526
406
  ?.then(([response, rawResponse, _]) => {
527
407
  this._log.info('createSchema response %j', rawResponse);
528
408
  return [response, rawResponse, _];
@@ -559,13 +439,10 @@ class SchemaServiceClient {
559
439
  options = options || {};
560
440
  options.otherArgs = options.otherArgs || {};
561
441
  options.otherArgs.headers = options.otherArgs.headers || {};
562
- options.otherArgs.headers['x-goog-request-params'] =
563
- this._gaxModule.routingHeader.fromParams({
564
- 'schema.name': request.schema.name ?? '',
565
- });
566
- this.initialize().catch(err => {
567
- throw err;
442
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
443
+ 'schema.name': request.schema.name ?? '',
568
444
  });
445
+ this.initialize().catch(err => { throw err; });
569
446
  const wrappedCallback = callback
570
447
  ? (error, response, rawResponse, _) => {
571
448
  this._log.info('updateSchema response %j', rawResponse);
@@ -573,8 +450,7 @@ class SchemaServiceClient {
573
450
  }
574
451
  : undefined;
575
452
  this._log.info('updateSchema request %j', request);
576
- return this.innerApiCalls
577
- .updateSchema(request, options, wrappedCallback)
453
+ return this.innerApiCalls.updateSchema(request, options, wrappedCallback)
578
454
  ?.then(([response, rawResponse, _]) => {
579
455
  this._log.info('updateSchema response %j', rawResponse);
580
456
  return [response, rawResponse, _];
@@ -611,13 +487,10 @@ class SchemaServiceClient {
611
487
  options = options || {};
612
488
  options.otherArgs = options.otherArgs || {};
613
489
  options.otherArgs.headers = options.otherArgs.headers || {};
614
- options.otherArgs.headers['x-goog-request-params'] =
615
- this._gaxModule.routingHeader.fromParams({
616
- name: request.name ?? '',
617
- });
618
- this.initialize().catch(err => {
619
- throw err;
490
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
491
+ 'name': request.name ?? '',
620
492
  });
493
+ this.initialize().catch(err => { throw err; });
621
494
  const wrappedCallback = callback
622
495
  ? (error, response, rawResponse, _) => {
623
496
  this._log.info('deleteSchema response %j', rawResponse);
@@ -625,8 +498,7 @@ class SchemaServiceClient {
625
498
  }
626
499
  : undefined;
627
500
  this._log.info('deleteSchema request %j', request);
628
- return this.innerApiCalls
629
- .deleteSchema(request, options, wrappedCallback)
501
+ return this.innerApiCalls.deleteSchema(request, options, wrappedCallback)
630
502
  ?.then(([response, rawResponse, _]) => {
631
503
  this._log.info('deleteSchema response %j', rawResponse);
632
504
  return [response, rawResponse, _];
@@ -663,13 +535,10 @@ class SchemaServiceClient {
663
535
  options = options || {};
664
536
  options.otherArgs = options.otherArgs || {};
665
537
  options.otherArgs.headers = options.otherArgs.headers || {};
666
- options.otherArgs.headers['x-goog-request-params'] =
667
- this._gaxModule.routingHeader.fromParams({
668
- parent: request.parent ?? '',
669
- });
670
- this.initialize().catch(err => {
671
- throw err;
538
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
539
+ 'parent': request.parent ?? '',
672
540
  });
541
+ this.initialize().catch(err => { throw err; });
673
542
  const wrappedCallback = callback
674
543
  ? (error, values, nextPageRequest, rawResponse) => {
675
544
  this._log.info('listSchemas values %j', values);
@@ -723,15 +592,12 @@ class SchemaServiceClient {
723
592
  options = options || {};
724
593
  options.otherArgs = options.otherArgs || {};
725
594
  options.otherArgs.headers = options.otherArgs.headers || {};
726
- options.otherArgs.headers['x-goog-request-params'] =
727
- this._gaxModule.routingHeader.fromParams({
728
- parent: request.parent ?? '',
729
- });
595
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
596
+ 'parent': request.parent ?? '',
597
+ });
730
598
  const defaultCallSettings = this._defaults['listSchemas'];
731
599
  const callSettings = defaultCallSettings.merge(options);
732
- this.initialize().catch(err => {
733
- throw err;
734
- });
600
+ this.initialize().catch(err => { throw err; });
735
601
  this._log.info('listSchemas stream %j', request);
736
602
  return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
737
603
  }
@@ -777,103 +643,100 @@ class SchemaServiceClient {
777
643
  options = options || {};
778
644
  options.otherArgs = options.otherArgs || {};
779
645
  options.otherArgs.headers = options.otherArgs.headers || {};
780
- options.otherArgs.headers['x-goog-request-params'] =
781
- this._gaxModule.routingHeader.fromParams({
782
- parent: request.parent ?? '',
783
- });
646
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
647
+ 'parent': request.parent ?? '',
648
+ });
784
649
  const defaultCallSettings = this._defaults['listSchemas'];
785
650
  const callSettings = defaultCallSettings.merge(options);
786
- this.initialize().catch(err => {
787
- throw err;
788
- });
651
+ this.initialize().catch(err => { throw err; });
789
652
  this._log.info('listSchemas iterate %j', request);
790
653
  return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
791
654
  }
792
655
  /**
793
- * Gets information about a location.
794
- *
795
- * @param {Object} request
796
- * The request object that will be sent.
797
- * @param {string} request.name
798
- * Resource name for the location.
799
- * @param {object} [options]
800
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
801
- * @returns {Promise} - The promise which resolves to an array.
802
- * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
803
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
804
- * for more details and examples.
805
- * @example
806
- * ```
807
- * const [response] = await client.getLocation(request);
808
- * ```
809
- */
656
+ * Gets information about a location.
657
+ *
658
+ * @param {Object} request
659
+ * The request object that will be sent.
660
+ * @param {string} request.name
661
+ * Resource name for the location.
662
+ * @param {object} [options]
663
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
664
+ * @returns {Promise} - The promise which resolves to an array.
665
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
666
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
667
+ * for more details and examples.
668
+ * @example
669
+ * ```
670
+ * const [response] = await client.getLocation(request);
671
+ * ```
672
+ */
810
673
  getLocation(request, options, callback) {
811
674
  return this.locationsClient.getLocation(request, options, callback);
812
675
  }
813
676
  /**
814
- * Lists information about the supported locations for this service. Returns an iterable object.
815
- *
816
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
817
- * @param {Object} request
818
- * The request object that will be sent.
819
- * @param {string} request.name
820
- * The resource that owns the locations collection, if applicable.
821
- * @param {string} request.filter
822
- * The standard list filter.
823
- * @param {number} request.pageSize
824
- * The standard list page size.
825
- * @param {string} request.pageToken
826
- * The standard list page token.
827
- * @param {object} [options]
828
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
829
- * @returns {Object}
830
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
831
- * When you iterate the returned iterable, each element will be an object representing
832
- * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
833
- * so you can stop the iteration when you don't need more results.
834
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
835
- * for more details and examples.
836
- * @example
837
- * ```
838
- * const iterable = client.listLocationsAsync(request);
839
- * for await (const response of iterable) {
840
- * // process response
841
- * }
842
- * ```
843
- */
677
+ * Lists information about the supported locations for this service. Returns an iterable object.
678
+ *
679
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
680
+ * @param {Object} request
681
+ * The request object that will be sent.
682
+ * @param {string} request.name
683
+ * The resource that owns the locations collection, if applicable.
684
+ * @param {string} request.filter
685
+ * The standard list filter.
686
+ * @param {number} request.pageSize
687
+ * The standard list page size.
688
+ * @param {string} request.pageToken
689
+ * The standard list page token.
690
+ * @param {object} [options]
691
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
692
+ * @returns {Object}
693
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
694
+ * When you iterate the returned iterable, each element will be an object representing
695
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
696
+ * so you can stop the iteration when you don't need more results.
697
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
698
+ * for more details and examples.
699
+ * @example
700
+ * ```
701
+ * const iterable = client.listLocationsAsync(request);
702
+ * for await (const response of iterable) {
703
+ * // process response
704
+ * }
705
+ * ```
706
+ */
844
707
  listLocationsAsync(request, options) {
845
708
  return this.locationsClient.listLocationsAsync(request, options);
846
709
  }
847
710
  /**
848
- * Gets the latest state of a long-running operation. Clients can use this
849
- * method to poll the operation result at intervals as recommended by the API
850
- * service.
851
- *
852
- * @param {Object} request - The request object that will be sent.
853
- * @param {string} request.name - The name of the operation resource.
854
- * @param {Object=} options
855
- * Optional parameters. You can override the default settings for this call,
856
- * e.g, timeout, retries, paginations, etc. See {@link
857
- * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
858
- * for the details.
859
- * @param {function(?Error, ?Object)=} callback
860
- * The function which will be called with the result of the API call.
861
- *
862
- * The second parameter to the callback is an object representing
863
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
864
- * @return {Promise} - The promise which resolves to an array.
865
- * The first element of the array is an object representing
866
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
867
- * The promise has a method named "cancel" which cancels the ongoing API call.
868
- *
869
- * @example
870
- * ```
871
- * const client = longrunning.operationsClient();
872
- * const name = '';
873
- * const [response] = await client.getOperation({name});
874
- * // doThingsWith(response)
875
- * ```
876
- */
711
+ * Gets the latest state of a long-running operation. Clients can use this
712
+ * method to poll the operation result at intervals as recommended by the API
713
+ * service.
714
+ *
715
+ * @param {Object} request - The request object that will be sent.
716
+ * @param {string} request.name - The name of the operation resource.
717
+ * @param {Object=} options
718
+ * Optional parameters. You can override the default settings for this call,
719
+ * e.g, timeout, retries, paginations, etc. See {@link
720
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
721
+ * for the details.
722
+ * @param {function(?Error, ?Object)=} callback
723
+ * The function which will be called with the result of the API call.
724
+ *
725
+ * The second parameter to the callback is an object representing
726
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
727
+ * @return {Promise} - The promise which resolves to an array.
728
+ * The first element of the array is an object representing
729
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
730
+ * The promise has a method named "cancel" which cancels the ongoing API call.
731
+ *
732
+ * @example
733
+ * ```
734
+ * const client = longrunning.operationsClient();
735
+ * const name = '';
736
+ * const [response] = await client.getOperation({name});
737
+ * // doThingsWith(response)
738
+ * ```
739
+ */
877
740
  getOperation(request, optionsOrCallback, callback) {
878
741
  let options;
879
742
  if (typeof optionsOrCallback === 'function' && callback === undefined) {
@@ -1107,8 +970,7 @@ class SchemaServiceClient {
1107
970
  * @returns {string} A string representing the project.
1108
971
  */
1109
972
  matchProjectFromEvaluationName(evaluationName) {
1110
- return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1111
- .project;
973
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName).project;
1112
974
  }
1113
975
  /**
1114
976
  * Parse the location from Evaluation resource.
@@ -1118,8 +980,7 @@ class SchemaServiceClient {
1118
980
  * @returns {string} A string representing the location.
1119
981
  */
1120
982
  matchLocationFromEvaluationName(evaluationName) {
1121
- return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1122
- .location;
983
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName).location;
1123
984
  }
1124
985
  /**
1125
986
  * Parse the evaluation from Evaluation resource.
@@ -1129,8 +990,7 @@ class SchemaServiceClient {
1129
990
  * @returns {string} A string representing the evaluation.
1130
991
  */
1131
992
  matchEvaluationFromEvaluationName(evaluationName) {
1132
- return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1133
- .evaluation;
993
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName).evaluation;
1134
994
  }
1135
995
  /**
1136
996
  * Return a fully-qualified groundingConfig resource name string.
@@ -3368,8 +3228,7 @@ class SchemaServiceClient {
3368
3228
  * @returns {string} A string representing the project.
3369
3229
  */
3370
3230
  matchProjectFromSampleQueryName(sampleQueryName) {
3371
- return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3372
- .project;
3231
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).project;
3373
3232
  }
3374
3233
  /**
3375
3234
  * Parse the location from SampleQuery resource.
@@ -3379,8 +3238,7 @@ class SchemaServiceClient {
3379
3238
  * @returns {string} A string representing the location.
3380
3239
  */
3381
3240
  matchLocationFromSampleQueryName(sampleQueryName) {
3382
- return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3383
- .location;
3241
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).location;
3384
3242
  }
3385
3243
  /**
3386
3244
  * Parse the sample_query_set from SampleQuery resource.
@@ -3390,8 +3248,7 @@ class SchemaServiceClient {
3390
3248
  * @returns {string} A string representing the sample_query_set.
3391
3249
  */
3392
3250
  matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3393
- return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3394
- .sample_query_set;
3251
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query_set;
3395
3252
  }
3396
3253
  /**
3397
3254
  * Parse the sample_query from SampleQuery resource.
@@ -3401,8 +3258,7 @@ class SchemaServiceClient {
3401
3258
  * @returns {string} A string representing the sample_query.
3402
3259
  */
3403
3260
  matchSampleQueryFromSampleQueryName(sampleQueryName) {
3404
- return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3405
- .sample_query;
3261
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query;
3406
3262
  }
3407
3263
  /**
3408
3264
  * Return a fully-qualified sampleQuerySet resource name string.
@@ -3461,8 +3317,8 @@ class SchemaServiceClient {
3461
3317
  this._log.info('ending gRPC channel');
3462
3318
  this._terminated = true;
3463
3319
  stub.close();
3464
- this.locationsClient.close();
3465
- this.operationsClient.close();
3320
+ this.locationsClient.close().catch(err => { throw err; });
3321
+ void this.operationsClient.close();
3466
3322
  });
3467
3323
  }
3468
3324
  return Promise.resolve();