@google-cloud/discoveryengine 3.1.0 → 3.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.
- package/build/src/v1/assistant_service_client.js +4 -4
- package/build/src/v1/cmek_config_service_client.js +9 -13
- package/build/src/v1/completion_service_client.js +10 -14
- package/build/src/v1/control_service_client.js +10 -10
- package/build/src/v1/conversational_search_service_client.js +21 -21
- package/build/src/v1/data_store_service_client.js +12 -16
- package/build/src/v1/document_service_client.js +15 -19
- package/build/src/v1/engine_service_client.js +12 -16
- package/build/src/v1/grounded_generation_service_client.js +6 -6
- package/build/src/v1/identity_mapping_store_service_client.js +16 -20
- package/build/src/v1/project_service_client.js +6 -10
- package/build/src/v1/rank_service_client.js +4 -4
- package/build/src/v1/recommendation_service_client.js +4 -4
- package/build/src/v1/schema_service_client.js +12 -16
- package/build/src/v1/search_service_client.js +9 -9
- package/build/src/v1/search_tuning_service_client.js +7 -11
- package/build/src/v1/serving_config_service_client.js +4 -4
- package/build/src/v1/session_service_client.js +10 -10
- package/build/src/v1/site_search_engine_service_client.js +24 -28
- package/build/src/v1/user_event_service_client.js +9 -13
- package/build/src/v1/user_license_service_client.js +9 -13
- package/build/src/v1alpha/acl_config_service_client.js +5 -5
- package/build/src/v1alpha/chunk_service_client.js +7 -7
- package/build/src/v1alpha/completion_service_client.js +8 -8
- package/build/src/v1alpha/control_service_client.js +10 -10
- package/build/src/v1alpha/conversational_search_service_client.js +20 -20
- package/build/src/v1alpha/data_store_service_client.js +12 -12
- package/build/src/v1alpha/document_service_client.js +14 -14
- package/build/src/v1alpha/engine_service_client.js +13 -13
- package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
- package/build/src/v1alpha/evaluation_service_client.js +11 -11
- package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
- package/build/src/v1alpha/project_service_client.js +6 -6
- package/build/src/v1alpha/rank_service_client.js +4 -4
- package/build/src/v1alpha/recommendation_service_client.js +4 -4
- package/build/src/v1alpha/sample_query_service_client.js +11 -11
- package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
- package/build/src/v1alpha/schema_service_client.js +10 -10
- package/build/src/v1alpha/search_service_client.js +6 -6
- package/build/src/v1alpha/search_tuning_service_client.js +5 -5
- package/build/src/v1alpha/serving_config_service_client.js +8 -8
- package/build/src/v1alpha/session_service_client.js +13 -13
- package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
- package/build/src/v1alpha/user_event_service_client.js +7 -7
- package/build/src/v1beta/acl_config_service_client.js +5 -5
- package/build/src/v1beta/assistant_service_client.js +11 -11
- package/build/src/v1beta/cmek_config_service_client.js +7 -7
- package/build/src/v1beta/completion_service_client.js +10 -10
- package/build/src/v1beta/control_service_client.js +10 -10
- package/build/src/v1beta/conversational_search_service_client.js +21 -21
- package/build/src/v1beta/data_store_service_client.js +10 -10
- package/build/src/v1beta/document_service_client.js +13 -13
- package/build/src/v1beta/engine_service_client.js +15 -15
- package/build/src/v1beta/evaluation_service_client.js +11 -11
- package/build/src/v1beta/grounded_generation_service_client.js +6 -6
- package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
- package/build/src/v1beta/license_config_service_client.js +11 -11
- package/build/src/v1beta/project_service_client.js +4 -4
- package/build/src/v1beta/rank_service_client.js +4 -4
- package/build/src/v1beta/recommendation_service_client.js +4 -4
- package/build/src/v1beta/sample_query_service_client.js +11 -11
- package/build/src/v1beta/sample_query_set_service_client.js +10 -10
- package/build/src/v1beta/schema_service_client.js +10 -10
- package/build/src/v1beta/search_service_client.js +9 -9
- package/build/src/v1beta/search_tuning_service_client.js +5 -5
- package/build/src/v1beta/serving_config_service_client.js +10 -10
- package/build/src/v1beta/session_service_client.js +10 -10
- package/build/src/v1beta/site_search_engine_service_client.js +22 -22
- package/build/src/v1beta/user_event_service_client.js +7 -7
- package/build/src/v1beta/user_license_service_client.js +8 -8
- package/build/src/v1beta/user_store_service_client.js +5 -5
- package/package.json +1 -1
|
@@ -253,7 +253,7 @@ class SearchServiceClient {
|
|
|
253
253
|
// and create an API call method for each.
|
|
254
254
|
const searchServiceStubMethods = ['search', 'searchLite'];
|
|
255
255
|
for (const methodName of searchServiceStubMethods) {
|
|
256
|
-
const callPromise = this.searchServiceStub.then(
|
|
256
|
+
const callPromise = this.searchServiceStub.then(stub => (...args) => {
|
|
257
257
|
if (this._terminated) {
|
|
258
258
|
return Promise.reject('The client has already been closed.');
|
|
259
259
|
}
|
|
@@ -345,7 +345,7 @@ class SearchServiceClient {
|
|
|
345
345
|
this._gaxModule.routingHeader.fromParams({
|
|
346
346
|
serving_config: request.servingConfig ?? '',
|
|
347
347
|
});
|
|
348
|
-
this.initialize().catch(
|
|
348
|
+
this.initialize().catch(err => {
|
|
349
349
|
throw err;
|
|
350
350
|
});
|
|
351
351
|
const wrappedCallback = callback
|
|
@@ -750,7 +750,7 @@ class SearchServiceClient {
|
|
|
750
750
|
});
|
|
751
751
|
const defaultCallSettings = this._defaults['search'];
|
|
752
752
|
const callSettings = defaultCallSettings.merge(options);
|
|
753
|
-
this.initialize().catch(
|
|
753
|
+
this.initialize().catch(err => {
|
|
754
754
|
throw err;
|
|
755
755
|
});
|
|
756
756
|
this._log.info('search stream %j', request);
|
|
@@ -1147,7 +1147,7 @@ class SearchServiceClient {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
const defaultCallSettings = this._defaults['search'];
|
|
1149
1149
|
const callSettings = defaultCallSettings.merge(options);
|
|
1150
|
-
this.initialize().catch(
|
|
1150
|
+
this.initialize().catch(err => {
|
|
1151
1151
|
throw err;
|
|
1152
1152
|
});
|
|
1153
1153
|
this._log.info('search iterate %j', request);
|
|
@@ -1170,7 +1170,7 @@ class SearchServiceClient {
|
|
|
1170
1170
|
this._gaxModule.routingHeader.fromParams({
|
|
1171
1171
|
serving_config: request.servingConfig ?? '',
|
|
1172
1172
|
});
|
|
1173
|
-
this.initialize().catch(
|
|
1173
|
+
this.initialize().catch(err => {
|
|
1174
1174
|
throw err;
|
|
1175
1175
|
});
|
|
1176
1176
|
const wrappedCallback = callback
|
|
@@ -1575,7 +1575,7 @@ class SearchServiceClient {
|
|
|
1575
1575
|
});
|
|
1576
1576
|
const defaultCallSettings = this._defaults['searchLite'];
|
|
1577
1577
|
const callSettings = defaultCallSettings.merge(options);
|
|
1578
|
-
this.initialize().catch(
|
|
1578
|
+
this.initialize().catch(err => {
|
|
1579
1579
|
throw err;
|
|
1580
1580
|
});
|
|
1581
1581
|
this._log.info('searchLite stream %j', request);
|
|
@@ -1972,7 +1972,7 @@ class SearchServiceClient {
|
|
|
1972
1972
|
});
|
|
1973
1973
|
const defaultCallSettings = this._defaults['searchLite'];
|
|
1974
1974
|
const callSettings = defaultCallSettings.merge(options);
|
|
1975
|
-
this.initialize().catch(
|
|
1975
|
+
this.initialize().catch(err => {
|
|
1976
1976
|
throw err;
|
|
1977
1977
|
});
|
|
1978
1978
|
this._log.info('searchLite iterate %j', request);
|
|
@@ -4676,11 +4676,11 @@ class SearchServiceClient {
|
|
|
4676
4676
|
*/
|
|
4677
4677
|
close() {
|
|
4678
4678
|
if (this.searchServiceStub && !this._terminated) {
|
|
4679
|
-
return this.searchServiceStub.then(
|
|
4679
|
+
return this.searchServiceStub.then(stub => {
|
|
4680
4680
|
this._log.info('ending gRPC channel');
|
|
4681
4681
|
this._terminated = true;
|
|
4682
4682
|
stub.close();
|
|
4683
|
-
this.locationsClient.close().catch(
|
|
4683
|
+
this.locationsClient.close().catch(err => {
|
|
4684
4684
|
throw err;
|
|
4685
4685
|
});
|
|
4686
4686
|
});
|
|
@@ -315,18 +315,14 @@ class SearchTuningServiceClient {
|
|
|
315
315
|
{
|
|
316
316
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
317
317
|
},
|
|
318
|
-
{
|
|
319
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
320
|
-
},
|
|
318
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
321
319
|
{
|
|
322
320
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
323
321
|
},
|
|
324
322
|
{
|
|
325
323
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
326
324
|
},
|
|
327
|
-
{
|
|
328
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
329
|
-
},
|
|
325
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
330
326
|
{
|
|
331
327
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
332
328
|
},
|
|
@@ -383,7 +379,7 @@ class SearchTuningServiceClient {
|
|
|
383
379
|
'listCustomModels',
|
|
384
380
|
];
|
|
385
381
|
for (const methodName of searchTuningServiceStubMethods) {
|
|
386
|
-
const callPromise = this.searchTuningServiceStub.then(
|
|
382
|
+
const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
|
|
387
383
|
if (this._terminated) {
|
|
388
384
|
return Promise.reject('The client has already been closed.');
|
|
389
385
|
}
|
|
@@ -475,7 +471,7 @@ class SearchTuningServiceClient {
|
|
|
475
471
|
this._gaxModule.routingHeader.fromParams({
|
|
476
472
|
data_store: request.dataStore ?? '',
|
|
477
473
|
});
|
|
478
|
-
this.initialize().catch(
|
|
474
|
+
this.initialize().catch(err => {
|
|
479
475
|
throw err;
|
|
480
476
|
});
|
|
481
477
|
this._log.info('listCustomModels request %j', request);
|
|
@@ -518,7 +514,7 @@ class SearchTuningServiceClient {
|
|
|
518
514
|
this._gaxModule.routingHeader.fromParams({
|
|
519
515
|
data_store: request.dataStore ?? '',
|
|
520
516
|
});
|
|
521
|
-
this.initialize().catch(
|
|
517
|
+
this.initialize().catch(err => {
|
|
522
518
|
throw err;
|
|
523
519
|
});
|
|
524
520
|
const wrappedCallback = callback
|
|
@@ -3305,11 +3301,11 @@ class SearchTuningServiceClient {
|
|
|
3305
3301
|
*/
|
|
3306
3302
|
close() {
|
|
3307
3303
|
if (this.searchTuningServiceStub && !this._terminated) {
|
|
3308
|
-
return this.searchTuningServiceStub.then(
|
|
3304
|
+
return this.searchTuningServiceStub.then(stub => {
|
|
3309
3305
|
this._log.info('ending gRPC channel');
|
|
3310
3306
|
this._terminated = true;
|
|
3311
3307
|
stub.close();
|
|
3312
|
-
this.locationsClient.close().catch(
|
|
3308
|
+
this.locationsClient.close().catch(err => {
|
|
3313
3309
|
throw err;
|
|
3314
3310
|
});
|
|
3315
3311
|
void this.operationsClient.close();
|
|
@@ -246,7 +246,7 @@ class ServingConfigServiceClient {
|
|
|
246
246
|
// and create an API call method for each.
|
|
247
247
|
const servingConfigServiceStubMethods = ['updateServingConfig'];
|
|
248
248
|
for (const methodName of servingConfigServiceStubMethods) {
|
|
249
|
-
const callPromise = this.servingConfigServiceStub.then(
|
|
249
|
+
const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
|
|
250
250
|
if (this._terminated) {
|
|
251
251
|
return Promise.reject('The client has already been closed.');
|
|
252
252
|
}
|
|
@@ -338,7 +338,7 @@ class ServingConfigServiceClient {
|
|
|
338
338
|
this._gaxModule.routingHeader.fromParams({
|
|
339
339
|
'serving_config.name': request.servingConfig.name ?? '',
|
|
340
340
|
});
|
|
341
|
-
this.initialize().catch(
|
|
341
|
+
this.initialize().catch(err => {
|
|
342
342
|
throw err;
|
|
343
343
|
});
|
|
344
344
|
this._log.info('updateServingConfig request %j', request);
|
|
@@ -2936,11 +2936,11 @@ class ServingConfigServiceClient {
|
|
|
2936
2936
|
*/
|
|
2937
2937
|
close() {
|
|
2938
2938
|
if (this.servingConfigServiceStub && !this._terminated) {
|
|
2939
|
-
return this.servingConfigServiceStub.then(
|
|
2939
|
+
return this.servingConfigServiceStub.then(stub => {
|
|
2940
2940
|
this._log.info('ending gRPC channel');
|
|
2941
2941
|
this._terminated = true;
|
|
2942
2942
|
stub.close();
|
|
2943
|
-
this.locationsClient.close().catch(
|
|
2943
|
+
this.locationsClient.close().catch(err => {
|
|
2944
2944
|
throw err;
|
|
2945
2945
|
});
|
|
2946
2946
|
});
|
|
@@ -256,7 +256,7 @@ class SessionServiceClient {
|
|
|
256
256
|
'listSessions',
|
|
257
257
|
];
|
|
258
258
|
for (const methodName of sessionServiceStubMethods) {
|
|
259
|
-
const callPromise = this.sessionServiceStub.then(
|
|
259
|
+
const callPromise = this.sessionServiceStub.then(stub => (...args) => {
|
|
260
260
|
if (this._terminated) {
|
|
261
261
|
return Promise.reject('The client has already been closed.');
|
|
262
262
|
}
|
|
@@ -348,7 +348,7 @@ class SessionServiceClient {
|
|
|
348
348
|
this._gaxModule.routingHeader.fromParams({
|
|
349
349
|
parent: request.parent ?? '',
|
|
350
350
|
});
|
|
351
|
-
this.initialize().catch(
|
|
351
|
+
this.initialize().catch(err => {
|
|
352
352
|
throw err;
|
|
353
353
|
});
|
|
354
354
|
this._log.info('createSession request %j', request);
|
|
@@ -391,7 +391,7 @@ class SessionServiceClient {
|
|
|
391
391
|
this._gaxModule.routingHeader.fromParams({
|
|
392
392
|
name: request.name ?? '',
|
|
393
393
|
});
|
|
394
|
-
this.initialize().catch(
|
|
394
|
+
this.initialize().catch(err => {
|
|
395
395
|
throw err;
|
|
396
396
|
});
|
|
397
397
|
this._log.info('deleteSession request %j', request);
|
|
@@ -434,7 +434,7 @@ class SessionServiceClient {
|
|
|
434
434
|
this._gaxModule.routingHeader.fromParams({
|
|
435
435
|
'session.name': request.session.name ?? '',
|
|
436
436
|
});
|
|
437
|
-
this.initialize().catch(
|
|
437
|
+
this.initialize().catch(err => {
|
|
438
438
|
throw err;
|
|
439
439
|
});
|
|
440
440
|
this._log.info('updateSession request %j', request);
|
|
@@ -477,7 +477,7 @@ class SessionServiceClient {
|
|
|
477
477
|
this._gaxModule.routingHeader.fromParams({
|
|
478
478
|
name: request.name ?? '',
|
|
479
479
|
});
|
|
480
|
-
this.initialize().catch(
|
|
480
|
+
this.initialize().catch(err => {
|
|
481
481
|
throw err;
|
|
482
482
|
});
|
|
483
483
|
this._log.info('getSession request %j', request);
|
|
@@ -520,7 +520,7 @@ class SessionServiceClient {
|
|
|
520
520
|
this._gaxModule.routingHeader.fromParams({
|
|
521
521
|
parent: request.parent ?? '',
|
|
522
522
|
});
|
|
523
|
-
this.initialize().catch(
|
|
523
|
+
this.initialize().catch(err => {
|
|
524
524
|
throw err;
|
|
525
525
|
});
|
|
526
526
|
const wrappedCallback = callback
|
|
@@ -606,7 +606,7 @@ class SessionServiceClient {
|
|
|
606
606
|
});
|
|
607
607
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
608
608
|
const callSettings = defaultCallSettings.merge(options);
|
|
609
|
-
this.initialize().catch(
|
|
609
|
+
this.initialize().catch(err => {
|
|
610
610
|
throw err;
|
|
611
611
|
});
|
|
612
612
|
this._log.info('listSessions stream %j', request);
|
|
@@ -684,7 +684,7 @@ class SessionServiceClient {
|
|
|
684
684
|
});
|
|
685
685
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
686
686
|
const callSettings = defaultCallSettings.merge(options);
|
|
687
|
-
this.initialize().catch(
|
|
687
|
+
this.initialize().catch(err => {
|
|
688
688
|
throw err;
|
|
689
689
|
});
|
|
690
690
|
this._log.info('listSessions iterate %j', request);
|
|
@@ -3262,11 +3262,11 @@ class SessionServiceClient {
|
|
|
3262
3262
|
*/
|
|
3263
3263
|
close() {
|
|
3264
3264
|
if (this.sessionServiceStub && !this._terminated) {
|
|
3265
|
-
return this.sessionServiceStub.then(
|
|
3265
|
+
return this.sessionServiceStub.then(stub => {
|
|
3266
3266
|
this._log.info('ending gRPC channel');
|
|
3267
3267
|
this._terminated = true;
|
|
3268
3268
|
stub.close();
|
|
3269
|
-
this.locationsClient.close().catch(
|
|
3269
|
+
this.locationsClient.close().catch(err => {
|
|
3270
3270
|
throw err;
|
|
3271
3271
|
});
|
|
3272
3272
|
});
|
|
@@ -323,18 +323,14 @@ class SiteSearchEngineServiceClient {
|
|
|
323
323
|
{
|
|
324
324
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
325
325
|
},
|
|
326
|
-
{
|
|
327
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
328
|
-
},
|
|
326
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
329
327
|
{
|
|
330
328
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
331
329
|
},
|
|
332
330
|
{
|
|
333
331
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
334
332
|
},
|
|
335
|
-
{
|
|
336
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
337
|
-
},
|
|
333
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
338
334
|
{
|
|
339
335
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
340
336
|
},
|
|
@@ -431,7 +427,7 @@ class SiteSearchEngineServiceClient {
|
|
|
431
427
|
'fetchDomainVerificationStatus',
|
|
432
428
|
];
|
|
433
429
|
for (const methodName of siteSearchEngineServiceStubMethods) {
|
|
434
|
-
const callPromise = this.siteSearchEngineServiceStub.then(
|
|
430
|
+
const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
|
|
435
431
|
if (this._terminated) {
|
|
436
432
|
return Promise.reject('The client has already been closed.');
|
|
437
433
|
}
|
|
@@ -525,7 +521,7 @@ class SiteSearchEngineServiceClient {
|
|
|
525
521
|
this._gaxModule.routingHeader.fromParams({
|
|
526
522
|
name: request.name ?? '',
|
|
527
523
|
});
|
|
528
|
-
this.initialize().catch(
|
|
524
|
+
this.initialize().catch(err => {
|
|
529
525
|
throw err;
|
|
530
526
|
});
|
|
531
527
|
this._log.info('getSiteSearchEngine request %j', request);
|
|
@@ -568,7 +564,7 @@ class SiteSearchEngineServiceClient {
|
|
|
568
564
|
this._gaxModule.routingHeader.fromParams({
|
|
569
565
|
name: request.name ?? '',
|
|
570
566
|
});
|
|
571
|
-
this.initialize().catch(
|
|
567
|
+
this.initialize().catch(err => {
|
|
572
568
|
throw err;
|
|
573
569
|
});
|
|
574
570
|
this._log.info('getTargetSite request %j', request);
|
|
@@ -611,7 +607,7 @@ class SiteSearchEngineServiceClient {
|
|
|
611
607
|
this._gaxModule.routingHeader.fromParams({
|
|
612
608
|
parent: request.parent ?? '',
|
|
613
609
|
});
|
|
614
|
-
this.initialize().catch(
|
|
610
|
+
this.initialize().catch(err => {
|
|
615
611
|
throw err;
|
|
616
612
|
});
|
|
617
613
|
this._log.info('fetchSitemaps request %j', request);
|
|
@@ -654,7 +650,7 @@ class SiteSearchEngineServiceClient {
|
|
|
654
650
|
this._gaxModule.routingHeader.fromParams({
|
|
655
651
|
parent: request.parent ?? '',
|
|
656
652
|
});
|
|
657
|
-
this.initialize().catch(
|
|
653
|
+
this.initialize().catch(err => {
|
|
658
654
|
throw err;
|
|
659
655
|
});
|
|
660
656
|
const wrappedCallback = callback
|
|
@@ -706,7 +702,7 @@ class SiteSearchEngineServiceClient {
|
|
|
706
702
|
this._gaxModule.routingHeader.fromParams({
|
|
707
703
|
parent: request.parent ?? '',
|
|
708
704
|
});
|
|
709
|
-
this.initialize().catch(
|
|
705
|
+
this.initialize().catch(err => {
|
|
710
706
|
throw err;
|
|
711
707
|
});
|
|
712
708
|
const wrappedCallback = callback
|
|
@@ -758,7 +754,7 @@ class SiteSearchEngineServiceClient {
|
|
|
758
754
|
this._gaxModule.routingHeader.fromParams({
|
|
759
755
|
'target_site.name': request.targetSite.name ?? '',
|
|
760
756
|
});
|
|
761
|
-
this.initialize().catch(
|
|
757
|
+
this.initialize().catch(err => {
|
|
762
758
|
throw err;
|
|
763
759
|
});
|
|
764
760
|
const wrappedCallback = callback
|
|
@@ -810,7 +806,7 @@ class SiteSearchEngineServiceClient {
|
|
|
810
806
|
this._gaxModule.routingHeader.fromParams({
|
|
811
807
|
name: request.name ?? '',
|
|
812
808
|
});
|
|
813
|
-
this.initialize().catch(
|
|
809
|
+
this.initialize().catch(err => {
|
|
814
810
|
throw err;
|
|
815
811
|
});
|
|
816
812
|
const wrappedCallback = callback
|
|
@@ -862,7 +858,7 @@ class SiteSearchEngineServiceClient {
|
|
|
862
858
|
this._gaxModule.routingHeader.fromParams({
|
|
863
859
|
parent: request.parent ?? '',
|
|
864
860
|
});
|
|
865
|
-
this.initialize().catch(
|
|
861
|
+
this.initialize().catch(err => {
|
|
866
862
|
throw err;
|
|
867
863
|
});
|
|
868
864
|
const wrappedCallback = callback
|
|
@@ -914,7 +910,7 @@ class SiteSearchEngineServiceClient {
|
|
|
914
910
|
this._gaxModule.routingHeader.fromParams({
|
|
915
911
|
name: request.name ?? '',
|
|
916
912
|
});
|
|
917
|
-
this.initialize().catch(
|
|
913
|
+
this.initialize().catch(err => {
|
|
918
914
|
throw err;
|
|
919
915
|
});
|
|
920
916
|
const wrappedCallback = callback
|
|
@@ -966,7 +962,7 @@ class SiteSearchEngineServiceClient {
|
|
|
966
962
|
this._gaxModule.routingHeader.fromParams({
|
|
967
963
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
968
964
|
});
|
|
969
|
-
this.initialize().catch(
|
|
965
|
+
this.initialize().catch(err => {
|
|
970
966
|
throw err;
|
|
971
967
|
});
|
|
972
968
|
const wrappedCallback = callback
|
|
@@ -1018,7 +1014,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1018
1014
|
this._gaxModule.routingHeader.fromParams({
|
|
1019
1015
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1020
1016
|
});
|
|
1021
|
-
this.initialize().catch(
|
|
1017
|
+
this.initialize().catch(err => {
|
|
1022
1018
|
throw err;
|
|
1023
1019
|
});
|
|
1024
1020
|
const wrappedCallback = callback
|
|
@@ -1070,7 +1066,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1070
1066
|
this._gaxModule.routingHeader.fromParams({
|
|
1071
1067
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1072
1068
|
});
|
|
1073
|
-
this.initialize().catch(
|
|
1069
|
+
this.initialize().catch(err => {
|
|
1074
1070
|
throw err;
|
|
1075
1071
|
});
|
|
1076
1072
|
const wrappedCallback = callback
|
|
@@ -1122,7 +1118,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1122
1118
|
this._gaxModule.routingHeader.fromParams({
|
|
1123
1119
|
parent: request.parent ?? '',
|
|
1124
1120
|
});
|
|
1125
|
-
this.initialize().catch(
|
|
1121
|
+
this.initialize().catch(err => {
|
|
1126
1122
|
throw err;
|
|
1127
1123
|
});
|
|
1128
1124
|
const wrappedCallback = callback
|
|
@@ -1174,7 +1170,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1174
1170
|
this._gaxModule.routingHeader.fromParams({
|
|
1175
1171
|
parent: request.parent ?? '',
|
|
1176
1172
|
});
|
|
1177
|
-
this.initialize().catch(
|
|
1173
|
+
this.initialize().catch(err => {
|
|
1178
1174
|
throw err;
|
|
1179
1175
|
});
|
|
1180
1176
|
const wrappedCallback = callback
|
|
@@ -1237,7 +1233,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1237
1233
|
});
|
|
1238
1234
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1239
1235
|
const callSettings = defaultCallSettings.merge(options);
|
|
1240
|
-
this.initialize().catch(
|
|
1236
|
+
this.initialize().catch(err => {
|
|
1241
1237
|
throw err;
|
|
1242
1238
|
});
|
|
1243
1239
|
this._log.info('listTargetSites stream %j', request);
|
|
@@ -1292,7 +1288,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1292
1288
|
});
|
|
1293
1289
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1294
1290
|
const callSettings = defaultCallSettings.merge(options);
|
|
1295
|
-
this.initialize().catch(
|
|
1291
|
+
this.initialize().catch(err => {
|
|
1296
1292
|
throw err;
|
|
1297
1293
|
});
|
|
1298
1294
|
this._log.info('listTargetSites iterate %j', request);
|
|
@@ -1315,7 +1311,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1315
1311
|
this._gaxModule.routingHeader.fromParams({
|
|
1316
1312
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1317
1313
|
});
|
|
1318
|
-
this.initialize().catch(
|
|
1314
|
+
this.initialize().catch(err => {
|
|
1319
1315
|
throw err;
|
|
1320
1316
|
});
|
|
1321
1317
|
const wrappedCallback = callback
|
|
@@ -1375,7 +1371,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1375
1371
|
});
|
|
1376
1372
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1377
1373
|
const callSettings = defaultCallSettings.merge(options);
|
|
1378
|
-
this.initialize().catch(
|
|
1374
|
+
this.initialize().catch(err => {
|
|
1379
1375
|
throw err;
|
|
1380
1376
|
});
|
|
1381
1377
|
this._log.info('fetchDomainVerificationStatus stream %j', request);
|
|
@@ -1427,7 +1423,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1427
1423
|
});
|
|
1428
1424
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1429
1425
|
const callSettings = defaultCallSettings.merge(options);
|
|
1430
|
-
this.initialize().catch(
|
|
1426
|
+
this.initialize().catch(err => {
|
|
1431
1427
|
throw err;
|
|
1432
1428
|
});
|
|
1433
1429
|
this._log.info('fetchDomainVerificationStatus iterate %j', request);
|
|
@@ -4185,11 +4181,11 @@ class SiteSearchEngineServiceClient {
|
|
|
4185
4181
|
*/
|
|
4186
4182
|
close() {
|
|
4187
4183
|
if (this.siteSearchEngineServiceStub && !this._terminated) {
|
|
4188
|
-
return this.siteSearchEngineServiceStub.then(
|
|
4184
|
+
return this.siteSearchEngineServiceStub.then(stub => {
|
|
4189
4185
|
this._log.info('ending gRPC channel');
|
|
4190
4186
|
this._terminated = true;
|
|
4191
4187
|
stub.close();
|
|
4192
|
-
this.locationsClient.close().catch(
|
|
4188
|
+
this.locationsClient.close().catch(err => {
|
|
4193
4189
|
throw err;
|
|
4194
4190
|
});
|
|
4195
4191
|
void this.operationsClient.close();
|
|
@@ -315,18 +315,14 @@ class UserEventServiceClient {
|
|
|
315
315
|
{
|
|
316
316
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
317
317
|
},
|
|
318
|
-
{
|
|
319
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
320
|
-
},
|
|
318
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
321
319
|
{
|
|
322
320
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
323
321
|
},
|
|
324
322
|
{
|
|
325
323
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
326
324
|
},
|
|
327
|
-
{
|
|
328
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
329
|
-
},
|
|
325
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
330
326
|
{
|
|
331
327
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
332
328
|
},
|
|
@@ -388,7 +384,7 @@ class UserEventServiceClient {
|
|
|
388
384
|
'importUserEvents',
|
|
389
385
|
];
|
|
390
386
|
for (const methodName of userEventServiceStubMethods) {
|
|
391
|
-
const callPromise = this.userEventServiceStub.then(
|
|
387
|
+
const callPromise = this.userEventServiceStub.then(stub => (...args) => {
|
|
392
388
|
if (this._terminated) {
|
|
393
389
|
return Promise.reject('The client has already been closed.');
|
|
394
390
|
}
|
|
@@ -480,7 +476,7 @@ class UserEventServiceClient {
|
|
|
480
476
|
this._gaxModule.routingHeader.fromParams({
|
|
481
477
|
parent: request.parent ?? '',
|
|
482
478
|
});
|
|
483
|
-
this.initialize().catch(
|
|
479
|
+
this.initialize().catch(err => {
|
|
484
480
|
throw err;
|
|
485
481
|
});
|
|
486
482
|
this._log.info('writeUserEvent request %j', request);
|
|
@@ -523,7 +519,7 @@ class UserEventServiceClient {
|
|
|
523
519
|
this._gaxModule.routingHeader.fromParams({
|
|
524
520
|
parent: request.parent ?? '',
|
|
525
521
|
});
|
|
526
|
-
this.initialize().catch(
|
|
522
|
+
this.initialize().catch(err => {
|
|
527
523
|
throw err;
|
|
528
524
|
});
|
|
529
525
|
this._log.info('collectUserEvent request %j', request);
|
|
@@ -566,7 +562,7 @@ class UserEventServiceClient {
|
|
|
566
562
|
this._gaxModule.routingHeader.fromParams({
|
|
567
563
|
parent: request.parent ?? '',
|
|
568
564
|
});
|
|
569
|
-
this.initialize().catch(
|
|
565
|
+
this.initialize().catch(err => {
|
|
570
566
|
throw err;
|
|
571
567
|
});
|
|
572
568
|
const wrappedCallback = callback
|
|
@@ -618,7 +614,7 @@ class UserEventServiceClient {
|
|
|
618
614
|
this._gaxModule.routingHeader.fromParams({
|
|
619
615
|
parent: request.parent ?? '',
|
|
620
616
|
});
|
|
621
|
-
this.initialize().catch(
|
|
617
|
+
this.initialize().catch(err => {
|
|
622
618
|
throw err;
|
|
623
619
|
});
|
|
624
620
|
const wrappedCallback = callback
|
|
@@ -3405,11 +3401,11 @@ class UserEventServiceClient {
|
|
|
3405
3401
|
*/
|
|
3406
3402
|
close() {
|
|
3407
3403
|
if (this.userEventServiceStub && !this._terminated) {
|
|
3408
|
-
return this.userEventServiceStub.then(
|
|
3404
|
+
return this.userEventServiceStub.then(stub => {
|
|
3409
3405
|
this._log.info('ending gRPC channel');
|
|
3410
3406
|
this._terminated = true;
|
|
3411
3407
|
stub.close();
|
|
3412
|
-
this.locationsClient.close().catch(
|
|
3408
|
+
this.locationsClient.close().catch(err => {
|
|
3413
3409
|
throw err;
|
|
3414
3410
|
});
|
|
3415
3411
|
void this.operationsClient.close();
|
|
@@ -322,18 +322,14 @@ class UserLicenseServiceClient {
|
|
|
322
322
|
{
|
|
323
323
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
324
324
|
},
|
|
325
|
-
{
|
|
326
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
327
|
-
},
|
|
325
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
328
326
|
{
|
|
329
327
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
330
328
|
},
|
|
331
329
|
{
|
|
332
330
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
333
331
|
},
|
|
334
|
-
{
|
|
335
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
336
|
-
},
|
|
332
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
337
333
|
{
|
|
338
334
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
339
335
|
},
|
|
@@ -390,7 +386,7 @@ class UserLicenseServiceClient {
|
|
|
390
386
|
'batchUpdateUserLicenses',
|
|
391
387
|
];
|
|
392
388
|
for (const methodName of userLicenseServiceStubMethods) {
|
|
393
|
-
const callPromise = this.userLicenseServiceStub.then(
|
|
389
|
+
const callPromise = this.userLicenseServiceStub.then(stub => (...args) => {
|
|
394
390
|
if (this._terminated) {
|
|
395
391
|
return Promise.reject('The client has already been closed.');
|
|
396
392
|
}
|
|
@@ -484,7 +480,7 @@ class UserLicenseServiceClient {
|
|
|
484
480
|
this._gaxModule.routingHeader.fromParams({
|
|
485
481
|
parent: request.parent ?? '',
|
|
486
482
|
});
|
|
487
|
-
this.initialize().catch(
|
|
483
|
+
this.initialize().catch(err => {
|
|
488
484
|
throw err;
|
|
489
485
|
});
|
|
490
486
|
const wrappedCallback = callback
|
|
@@ -536,7 +532,7 @@ class UserLicenseServiceClient {
|
|
|
536
532
|
this._gaxModule.routingHeader.fromParams({
|
|
537
533
|
parent: request.parent ?? '',
|
|
538
534
|
});
|
|
539
|
-
this.initialize().catch(
|
|
535
|
+
this.initialize().catch(err => {
|
|
540
536
|
throw err;
|
|
541
537
|
});
|
|
542
538
|
const wrappedCallback = callback
|
|
@@ -609,7 +605,7 @@ class UserLicenseServiceClient {
|
|
|
609
605
|
});
|
|
610
606
|
const defaultCallSettings = this._defaults['listUserLicenses'];
|
|
611
607
|
const callSettings = defaultCallSettings.merge(options);
|
|
612
|
-
this.initialize().catch(
|
|
608
|
+
this.initialize().catch(err => {
|
|
613
609
|
throw err;
|
|
614
610
|
});
|
|
615
611
|
this._log.info('listUserLicenses stream %j', request);
|
|
@@ -674,7 +670,7 @@ class UserLicenseServiceClient {
|
|
|
674
670
|
});
|
|
675
671
|
const defaultCallSettings = this._defaults['listUserLicenses'];
|
|
676
672
|
const callSettings = defaultCallSettings.merge(options);
|
|
677
|
-
this.initialize().catch(
|
|
673
|
+
this.initialize().catch(err => {
|
|
678
674
|
throw err;
|
|
679
675
|
});
|
|
680
676
|
this._log.info('listUserLicenses iterate %j', request);
|
|
@@ -3480,11 +3476,11 @@ class UserLicenseServiceClient {
|
|
|
3480
3476
|
*/
|
|
3481
3477
|
close() {
|
|
3482
3478
|
if (this.userLicenseServiceStub && !this._terminated) {
|
|
3483
|
-
return this.userLicenseServiceStub.then(
|
|
3479
|
+
return this.userLicenseServiceStub.then(stub => {
|
|
3484
3480
|
this._log.info('ending gRPC channel');
|
|
3485
3481
|
this._terminated = true;
|
|
3486
3482
|
stub.close();
|
|
3487
|
-
this.locationsClient.close().catch(
|
|
3483
|
+
this.locationsClient.close().catch(err => {
|
|
3488
3484
|
throw err;
|
|
3489
3485
|
});
|
|
3490
3486
|
void this.operationsClient.close();
|
|
@@ -242,7 +242,7 @@ class AclConfigServiceClient {
|
|
|
242
242
|
// and create an API call method for each.
|
|
243
243
|
const aclConfigServiceStubMethods = ['updateAclConfig', 'getAclConfig'];
|
|
244
244
|
for (const methodName of aclConfigServiceStubMethods) {
|
|
245
|
-
const callPromise = this.aclConfigServiceStub.then(
|
|
245
|
+
const callPromise = this.aclConfigServiceStub.then(stub => (...args) => {
|
|
246
246
|
if (this._terminated) {
|
|
247
247
|
return Promise.reject('The client has already been closed.');
|
|
248
248
|
}
|
|
@@ -334,7 +334,7 @@ class AclConfigServiceClient {
|
|
|
334
334
|
this._gaxModule.routingHeader.fromParams({
|
|
335
335
|
'acl_config.name': request.aclConfig.name ?? '',
|
|
336
336
|
});
|
|
337
|
-
this.initialize().catch(
|
|
337
|
+
this.initialize().catch(err => {
|
|
338
338
|
throw err;
|
|
339
339
|
});
|
|
340
340
|
this._log.info('updateAclConfig request %j', request);
|
|
@@ -377,7 +377,7 @@ class AclConfigServiceClient {
|
|
|
377
377
|
this._gaxModule.routingHeader.fromParams({
|
|
378
378
|
name: request.name ?? '',
|
|
379
379
|
});
|
|
380
|
-
this.initialize().catch(
|
|
380
|
+
this.initialize().catch(err => {
|
|
381
381
|
throw err;
|
|
382
382
|
});
|
|
383
383
|
this._log.info('getAclConfig request %j', request);
|
|
@@ -2755,11 +2755,11 @@ class AclConfigServiceClient {
|
|
|
2755
2755
|
*/
|
|
2756
2756
|
close() {
|
|
2757
2757
|
if (this.aclConfigServiceStub && !this._terminated) {
|
|
2758
|
-
return this.aclConfigServiceStub.then(
|
|
2758
|
+
return this.aclConfigServiceStub.then(stub => {
|
|
2759
2759
|
this._log.info('ending gRPC channel');
|
|
2760
2760
|
this._terminated = true;
|
|
2761
2761
|
stub.close();
|
|
2762
|
-
this.locationsClient.close().catch(
|
|
2762
|
+
this.locationsClient.close().catch(err => {
|
|
2763
2763
|
throw err;
|
|
2764
2764
|
});
|
|
2765
2765
|
});
|