@google-cloud/discoveryengine 3.1.0 → 3.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.
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +147 -19
- package/build/protos/protos.d.ts +608 -126
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +185 -12
- 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.d.ts +162 -24
- package/build/src/v1/search_service_client.js +123 -26
- 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
|
@@ -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
|
});
|
|
@@ -250,7 +250,7 @@ class ChunkServiceClient {
|
|
|
250
250
|
// and create an API call method for each.
|
|
251
251
|
const chunkServiceStubMethods = ['getChunk', 'listChunks'];
|
|
252
252
|
for (const methodName of chunkServiceStubMethods) {
|
|
253
|
-
const callPromise = this.chunkServiceStub.then(
|
|
253
|
+
const callPromise = this.chunkServiceStub.then(stub => (...args) => {
|
|
254
254
|
if (this._terminated) {
|
|
255
255
|
return Promise.reject('The client has already been closed.');
|
|
256
256
|
}
|
|
@@ -342,7 +342,7 @@ class ChunkServiceClient {
|
|
|
342
342
|
this._gaxModule.routingHeader.fromParams({
|
|
343
343
|
name: request.name ?? '',
|
|
344
344
|
});
|
|
345
|
-
this.initialize().catch(
|
|
345
|
+
this.initialize().catch(err => {
|
|
346
346
|
throw err;
|
|
347
347
|
});
|
|
348
348
|
this._log.info('getChunk request %j', request);
|
|
@@ -385,7 +385,7 @@ class ChunkServiceClient {
|
|
|
385
385
|
this._gaxModule.routingHeader.fromParams({
|
|
386
386
|
parent: request.parent ?? '',
|
|
387
387
|
});
|
|
388
|
-
this.initialize().catch(
|
|
388
|
+
this.initialize().catch(err => {
|
|
389
389
|
throw err;
|
|
390
390
|
});
|
|
391
391
|
const wrappedCallback = callback
|
|
@@ -453,7 +453,7 @@ class ChunkServiceClient {
|
|
|
453
453
|
});
|
|
454
454
|
const defaultCallSettings = this._defaults['listChunks'];
|
|
455
455
|
const callSettings = defaultCallSettings.merge(options);
|
|
456
|
-
this.initialize().catch(
|
|
456
|
+
this.initialize().catch(err => {
|
|
457
457
|
throw err;
|
|
458
458
|
});
|
|
459
459
|
this._log.info('listChunks stream %j', request);
|
|
@@ -513,7 +513,7 @@ class ChunkServiceClient {
|
|
|
513
513
|
});
|
|
514
514
|
const defaultCallSettings = this._defaults['listChunks'];
|
|
515
515
|
const callSettings = defaultCallSettings.merge(options);
|
|
516
|
-
this.initialize().catch(
|
|
516
|
+
this.initialize().catch(err => {
|
|
517
517
|
throw err;
|
|
518
518
|
});
|
|
519
519
|
this._log.info('listChunks iterate %j', request);
|
|
@@ -2871,11 +2871,11 @@ class ChunkServiceClient {
|
|
|
2871
2871
|
*/
|
|
2872
2872
|
close() {
|
|
2873
2873
|
if (this.chunkServiceStub && !this._terminated) {
|
|
2874
|
-
return this.chunkServiceStub.then(
|
|
2874
|
+
return this.chunkServiceStub.then(stub => {
|
|
2875
2875
|
this._log.info('ending gRPC channel');
|
|
2876
2876
|
this._terminated = true;
|
|
2877
2877
|
stub.close();
|
|
2878
|
-
this.locationsClient.close().catch(
|
|
2878
|
+
this.locationsClient.close().catch(err => {
|
|
2879
2879
|
throw err;
|
|
2880
2880
|
});
|
|
2881
2881
|
});
|
|
@@ -384,7 +384,7 @@ class CompletionServiceClient {
|
|
|
384
384
|
'purgeCompletionSuggestions',
|
|
385
385
|
];
|
|
386
386
|
for (const methodName of completionServiceStubMethods) {
|
|
387
|
-
const callPromise = this.completionServiceStub.then(
|
|
387
|
+
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
|
388
388
|
if (this._terminated) {
|
|
389
389
|
return Promise.reject('The client has already been closed.');
|
|
390
390
|
}
|
|
@@ -476,7 +476,7 @@ class CompletionServiceClient {
|
|
|
476
476
|
this._gaxModule.routingHeader.fromParams({
|
|
477
477
|
data_store: request.dataStore ?? '',
|
|
478
478
|
});
|
|
479
|
-
this.initialize().catch(
|
|
479
|
+
this.initialize().catch(err => {
|
|
480
480
|
throw err;
|
|
481
481
|
});
|
|
482
482
|
this._log.info('completeQuery request %j', request);
|
|
@@ -519,7 +519,7 @@ class CompletionServiceClient {
|
|
|
519
519
|
this._gaxModule.routingHeader.fromParams({
|
|
520
520
|
parent: request.parent ?? '',
|
|
521
521
|
});
|
|
522
|
-
this.initialize().catch(
|
|
522
|
+
this.initialize().catch(err => {
|
|
523
523
|
throw err;
|
|
524
524
|
});
|
|
525
525
|
const wrappedCallback = callback
|
|
@@ -571,7 +571,7 @@ class CompletionServiceClient {
|
|
|
571
571
|
this._gaxModule.routingHeader.fromParams({
|
|
572
572
|
parent: request.parent ?? '',
|
|
573
573
|
});
|
|
574
|
-
this.initialize().catch(
|
|
574
|
+
this.initialize().catch(err => {
|
|
575
575
|
throw err;
|
|
576
576
|
});
|
|
577
577
|
const wrappedCallback = callback
|
|
@@ -623,7 +623,7 @@ class CompletionServiceClient {
|
|
|
623
623
|
this._gaxModule.routingHeader.fromParams({
|
|
624
624
|
parent: request.parent ?? '',
|
|
625
625
|
});
|
|
626
|
-
this.initialize().catch(
|
|
626
|
+
this.initialize().catch(err => {
|
|
627
627
|
throw err;
|
|
628
628
|
});
|
|
629
629
|
const wrappedCallback = callback
|
|
@@ -675,7 +675,7 @@ class CompletionServiceClient {
|
|
|
675
675
|
this._gaxModule.routingHeader.fromParams({
|
|
676
676
|
parent: request.parent ?? '',
|
|
677
677
|
});
|
|
678
|
-
this.initialize().catch(
|
|
678
|
+
this.initialize().catch(err => {
|
|
679
679
|
throw err;
|
|
680
680
|
});
|
|
681
681
|
const wrappedCallback = callback
|
|
@@ -3242,11 +3242,11 @@ class CompletionServiceClient {
|
|
|
3242
3242
|
*/
|
|
3243
3243
|
close() {
|
|
3244
3244
|
if (this.completionServiceStub && !this._terminated) {
|
|
3245
|
-
return this.completionServiceStub.then(
|
|
3245
|
+
return this.completionServiceStub.then(stub => {
|
|
3246
3246
|
this._log.info('ending gRPC channel');
|
|
3247
3247
|
this._terminated = true;
|
|
3248
3248
|
stub.close();
|
|
3249
|
-
this.locationsClient.close().catch(
|
|
3249
|
+
this.locationsClient.close().catch(err => {
|
|
3250
3250
|
throw err;
|
|
3251
3251
|
});
|
|
3252
3252
|
void this.operationsClient.close();
|
|
@@ -258,7 +258,7 @@ class ControlServiceClient {
|
|
|
258
258
|
'listControls',
|
|
259
259
|
];
|
|
260
260
|
for (const methodName of controlServiceStubMethods) {
|
|
261
|
-
const callPromise = this.controlServiceStub.then(
|
|
261
|
+
const callPromise = this.controlServiceStub.then(stub => (...args) => {
|
|
262
262
|
if (this._terminated) {
|
|
263
263
|
return Promise.reject('The client has already been closed.');
|
|
264
264
|
}
|
|
@@ -350,7 +350,7 @@ class ControlServiceClient {
|
|
|
350
350
|
this._gaxModule.routingHeader.fromParams({
|
|
351
351
|
parent: request.parent ?? '',
|
|
352
352
|
});
|
|
353
|
-
this.initialize().catch(
|
|
353
|
+
this.initialize().catch(err => {
|
|
354
354
|
throw err;
|
|
355
355
|
});
|
|
356
356
|
this._log.info('createControl request %j', request);
|
|
@@ -393,7 +393,7 @@ class ControlServiceClient {
|
|
|
393
393
|
this._gaxModule.routingHeader.fromParams({
|
|
394
394
|
name: request.name ?? '',
|
|
395
395
|
});
|
|
396
|
-
this.initialize().catch(
|
|
396
|
+
this.initialize().catch(err => {
|
|
397
397
|
throw err;
|
|
398
398
|
});
|
|
399
399
|
this._log.info('deleteControl request %j', request);
|
|
@@ -436,7 +436,7 @@ class ControlServiceClient {
|
|
|
436
436
|
this._gaxModule.routingHeader.fromParams({
|
|
437
437
|
'control.name': request.control.name ?? '',
|
|
438
438
|
});
|
|
439
|
-
this.initialize().catch(
|
|
439
|
+
this.initialize().catch(err => {
|
|
440
440
|
throw err;
|
|
441
441
|
});
|
|
442
442
|
this._log.info('updateControl request %j', request);
|
|
@@ -479,7 +479,7 @@ class ControlServiceClient {
|
|
|
479
479
|
this._gaxModule.routingHeader.fromParams({
|
|
480
480
|
name: request.name ?? '',
|
|
481
481
|
});
|
|
482
|
-
this.initialize().catch(
|
|
482
|
+
this.initialize().catch(err => {
|
|
483
483
|
throw err;
|
|
484
484
|
});
|
|
485
485
|
this._log.info('getControl request %j', request);
|
|
@@ -522,7 +522,7 @@ class ControlServiceClient {
|
|
|
522
522
|
this._gaxModule.routingHeader.fromParams({
|
|
523
523
|
parent: request.parent ?? '',
|
|
524
524
|
});
|
|
525
|
-
this.initialize().catch(
|
|
525
|
+
this.initialize().catch(err => {
|
|
526
526
|
throw err;
|
|
527
527
|
});
|
|
528
528
|
const wrappedCallback = callback
|
|
@@ -582,7 +582,7 @@ class ControlServiceClient {
|
|
|
582
582
|
});
|
|
583
583
|
const defaultCallSettings = this._defaults['listControls'];
|
|
584
584
|
const callSettings = defaultCallSettings.merge(options);
|
|
585
|
-
this.initialize().catch(
|
|
585
|
+
this.initialize().catch(err => {
|
|
586
586
|
throw err;
|
|
587
587
|
});
|
|
588
588
|
this._log.info('listControls stream %j', request);
|
|
@@ -634,7 +634,7 @@ class ControlServiceClient {
|
|
|
634
634
|
});
|
|
635
635
|
const defaultCallSettings = this._defaults['listControls'];
|
|
636
636
|
const callSettings = defaultCallSettings.merge(options);
|
|
637
|
-
this.initialize().catch(
|
|
637
|
+
this.initialize().catch(err => {
|
|
638
638
|
throw err;
|
|
639
639
|
});
|
|
640
640
|
this._log.info('listControls iterate %j', request);
|
|
@@ -3025,11 +3025,11 @@ class ControlServiceClient {
|
|
|
3025
3025
|
*/
|
|
3026
3026
|
close() {
|
|
3027
3027
|
if (this.controlServiceStub && !this._terminated) {
|
|
3028
|
-
return this.controlServiceStub.then(
|
|
3028
|
+
return this.controlServiceStub.then(stub => {
|
|
3029
3029
|
this._log.info('ending gRPC channel');
|
|
3030
3030
|
this._terminated = true;
|
|
3031
3031
|
stub.close();
|
|
3032
|
-
this.locationsClient.close().catch(
|
|
3032
|
+
this.locationsClient.close().catch(err => {
|
|
3033
3033
|
throw err;
|
|
3034
3034
|
});
|
|
3035
3035
|
});
|