@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
|
@@ -386,7 +386,7 @@ class SearchTuningServiceClient {
|
|
|
386
386
|
'listCustomModels',
|
|
387
387
|
];
|
|
388
388
|
for (const methodName of searchTuningServiceStubMethods) {
|
|
389
|
-
const callPromise = this.searchTuningServiceStub.then(
|
|
389
|
+
const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
|
|
390
390
|
if (this._terminated) {
|
|
391
391
|
return Promise.reject('The client has already been closed.');
|
|
392
392
|
}
|
|
@@ -482,7 +482,7 @@ class SearchTuningServiceClient {
|
|
|
482
482
|
this._gaxModule.routingHeader.fromParams({
|
|
483
483
|
data_store: request.dataStore ?? '',
|
|
484
484
|
});
|
|
485
|
-
this.initialize().catch(
|
|
485
|
+
this.initialize().catch(err => {
|
|
486
486
|
throw err;
|
|
487
487
|
});
|
|
488
488
|
this._log.info('listCustomModels request %j', request);
|
|
@@ -525,7 +525,7 @@ class SearchTuningServiceClient {
|
|
|
525
525
|
this._gaxModule.routingHeader.fromParams({
|
|
526
526
|
data_store: request.dataStore ?? '',
|
|
527
527
|
});
|
|
528
|
-
this.initialize().catch(
|
|
528
|
+
this.initialize().catch(err => {
|
|
529
529
|
throw err;
|
|
530
530
|
});
|
|
531
531
|
const wrappedCallback = callback
|
|
@@ -3723,11 +3723,11 @@ class SearchTuningServiceClient {
|
|
|
3723
3723
|
*/
|
|
3724
3724
|
close() {
|
|
3725
3725
|
if (this.searchTuningServiceStub && !this._terminated) {
|
|
3726
|
-
return this.searchTuningServiceStub.then(
|
|
3726
|
+
return this.searchTuningServiceStub.then(stub => {
|
|
3727
3727
|
this._log.info('ending gRPC channel');
|
|
3728
3728
|
this._terminated = true;
|
|
3729
3729
|
stub.close();
|
|
3730
|
-
this.locationsClient.close().catch(
|
|
3730
|
+
this.locationsClient.close().catch(err => {
|
|
3731
3731
|
throw err;
|
|
3732
3732
|
});
|
|
3733
3733
|
void this.operationsClient.close();
|
|
@@ -267,7 +267,7 @@ class ServingConfigServiceClient {
|
|
|
267
267
|
'listServingConfigs',
|
|
268
268
|
];
|
|
269
269
|
for (const methodName of servingConfigServiceStubMethods) {
|
|
270
|
-
const callPromise = this.servingConfigServiceStub.then(
|
|
270
|
+
const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
|
|
271
271
|
if (this._terminated) {
|
|
272
272
|
return Promise.reject('The client has already been closed.');
|
|
273
273
|
}
|
|
@@ -363,7 +363,7 @@ class ServingConfigServiceClient {
|
|
|
363
363
|
this._gaxModule.routingHeader.fromParams({
|
|
364
364
|
parent: request.parent ?? '',
|
|
365
365
|
});
|
|
366
|
-
this.initialize().catch(
|
|
366
|
+
this.initialize().catch(err => {
|
|
367
367
|
throw err;
|
|
368
368
|
});
|
|
369
369
|
this._log.info('createServingConfig request %j', request);
|
|
@@ -406,7 +406,7 @@ class ServingConfigServiceClient {
|
|
|
406
406
|
this._gaxModule.routingHeader.fromParams({
|
|
407
407
|
name: request.name ?? '',
|
|
408
408
|
});
|
|
409
|
-
this.initialize().catch(
|
|
409
|
+
this.initialize().catch(err => {
|
|
410
410
|
throw err;
|
|
411
411
|
});
|
|
412
412
|
this._log.info('deleteServingConfig request %j', request);
|
|
@@ -449,7 +449,7 @@ class ServingConfigServiceClient {
|
|
|
449
449
|
this._gaxModule.routingHeader.fromParams({
|
|
450
450
|
'serving_config.name': request.servingConfig.name ?? '',
|
|
451
451
|
});
|
|
452
|
-
this.initialize().catch(
|
|
452
|
+
this.initialize().catch(err => {
|
|
453
453
|
throw err;
|
|
454
454
|
});
|
|
455
455
|
this._log.info('updateServingConfig request %j', request);
|
|
@@ -492,7 +492,7 @@ class ServingConfigServiceClient {
|
|
|
492
492
|
this._gaxModule.routingHeader.fromParams({
|
|
493
493
|
name: request.name ?? '',
|
|
494
494
|
});
|
|
495
|
-
this.initialize().catch(
|
|
495
|
+
this.initialize().catch(err => {
|
|
496
496
|
throw err;
|
|
497
497
|
});
|
|
498
498
|
this._log.info('getServingConfig request %j', request);
|
|
@@ -535,7 +535,7 @@ class ServingConfigServiceClient {
|
|
|
535
535
|
this._gaxModule.routingHeader.fromParams({
|
|
536
536
|
parent: request.parent ?? '',
|
|
537
537
|
});
|
|
538
|
-
this.initialize().catch(
|
|
538
|
+
this.initialize().catch(err => {
|
|
539
539
|
throw err;
|
|
540
540
|
});
|
|
541
541
|
const wrappedCallback = callback
|
|
@@ -588,7 +588,7 @@ class ServingConfigServiceClient {
|
|
|
588
588
|
});
|
|
589
589
|
const defaultCallSettings = this._defaults['listServingConfigs'];
|
|
590
590
|
const callSettings = defaultCallSettings.merge(options);
|
|
591
|
-
this.initialize().catch(
|
|
591
|
+
this.initialize().catch(err => {
|
|
592
592
|
throw err;
|
|
593
593
|
});
|
|
594
594
|
this._log.info('listServingConfigs stream %j', request);
|
|
@@ -633,7 +633,7 @@ class ServingConfigServiceClient {
|
|
|
633
633
|
});
|
|
634
634
|
const defaultCallSettings = this._defaults['listServingConfigs'];
|
|
635
635
|
const callSettings = defaultCallSettings.merge(options);
|
|
636
|
-
this.initialize().catch(
|
|
636
|
+
this.initialize().catch(err => {
|
|
637
637
|
throw err;
|
|
638
638
|
});
|
|
639
639
|
this._log.info('listServingConfigs iterate %j', request);
|
|
@@ -3655,11 +3655,11 @@ class ServingConfigServiceClient {
|
|
|
3655
3655
|
*/
|
|
3656
3656
|
close() {
|
|
3657
3657
|
if (this.servingConfigServiceStub && !this._terminated) {
|
|
3658
|
-
return this.servingConfigServiceStub.then(
|
|
3658
|
+
return this.servingConfigServiceStub.then(stub => {
|
|
3659
3659
|
this._log.info('ending gRPC channel');
|
|
3660
3660
|
this._terminated = true;
|
|
3661
3661
|
stub.close();
|
|
3662
|
-
this.locationsClient.close().catch(
|
|
3662
|
+
this.locationsClient.close().catch(err => {
|
|
3663
3663
|
throw err;
|
|
3664
3664
|
});
|
|
3665
3665
|
});
|
|
@@ -265,7 +265,7 @@ class SessionServiceClient {
|
|
|
265
265
|
'listSessions',
|
|
266
266
|
];
|
|
267
267
|
for (const methodName of sessionServiceStubMethods) {
|
|
268
|
-
const callPromise = this.sessionServiceStub.then(
|
|
268
|
+
const callPromise = this.sessionServiceStub.then(stub => (...args) => {
|
|
269
269
|
if (this._terminated) {
|
|
270
270
|
return Promise.reject('The client has already been closed.');
|
|
271
271
|
}
|
|
@@ -362,7 +362,7 @@ class SessionServiceClient {
|
|
|
362
362
|
this._gaxModule.routingHeader.fromParams({
|
|
363
363
|
parent: request.parent ?? '',
|
|
364
364
|
});
|
|
365
|
-
this.initialize().catch(
|
|
365
|
+
this.initialize().catch(err => {
|
|
366
366
|
throw err;
|
|
367
367
|
});
|
|
368
368
|
this._log.info('createSession request %j', request);
|
|
@@ -405,7 +405,7 @@ class SessionServiceClient {
|
|
|
405
405
|
this._gaxModule.routingHeader.fromParams({
|
|
406
406
|
name: request.name ?? '',
|
|
407
407
|
});
|
|
408
|
-
this.initialize().catch(
|
|
408
|
+
this.initialize().catch(err => {
|
|
409
409
|
throw err;
|
|
410
410
|
});
|
|
411
411
|
this._log.info('deleteSession request %j', request);
|
|
@@ -448,7 +448,7 @@ class SessionServiceClient {
|
|
|
448
448
|
this._gaxModule.routingHeader.fromParams({
|
|
449
449
|
'session.name': request.session.name ?? '',
|
|
450
450
|
});
|
|
451
|
-
this.initialize().catch(
|
|
451
|
+
this.initialize().catch(err => {
|
|
452
452
|
throw err;
|
|
453
453
|
});
|
|
454
454
|
this._log.info('updateSession request %j', request);
|
|
@@ -491,7 +491,7 @@ class SessionServiceClient {
|
|
|
491
491
|
this._gaxModule.routingHeader.fromParams({
|
|
492
492
|
name: request.name ?? '',
|
|
493
493
|
});
|
|
494
|
-
this.initialize().catch(
|
|
494
|
+
this.initialize().catch(err => {
|
|
495
495
|
throw err;
|
|
496
496
|
});
|
|
497
497
|
this._log.info('getSession request %j', request);
|
|
@@ -534,7 +534,7 @@ class SessionServiceClient {
|
|
|
534
534
|
this._gaxModule.routingHeader.fromParams({
|
|
535
535
|
parent: request.parent ?? '',
|
|
536
536
|
});
|
|
537
|
-
this.initialize().catch(
|
|
537
|
+
this.initialize().catch(err => {
|
|
538
538
|
throw err;
|
|
539
539
|
});
|
|
540
540
|
const wrappedCallback = callback
|
|
@@ -629,7 +629,7 @@ class SessionServiceClient {
|
|
|
629
629
|
});
|
|
630
630
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
631
631
|
const callSettings = defaultCallSettings.merge(options);
|
|
632
|
-
this.initialize().catch(
|
|
632
|
+
this.initialize().catch(err => {
|
|
633
633
|
throw err;
|
|
634
634
|
});
|
|
635
635
|
this._log.info('listSessions stream %j', request);
|
|
@@ -716,7 +716,7 @@ class SessionServiceClient {
|
|
|
716
716
|
});
|
|
717
717
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
718
718
|
const callSettings = defaultCallSettings.merge(options);
|
|
719
|
-
this.initialize().catch(
|
|
719
|
+
this.initialize().catch(err => {
|
|
720
720
|
throw err;
|
|
721
721
|
});
|
|
722
722
|
this._log.info('listSessions iterate %j', request);
|
|
@@ -3705,11 +3705,11 @@ class SessionServiceClient {
|
|
|
3705
3705
|
*/
|
|
3706
3706
|
close() {
|
|
3707
3707
|
if (this.sessionServiceStub && !this._terminated) {
|
|
3708
|
-
return this.sessionServiceStub.then(
|
|
3708
|
+
return this.sessionServiceStub.then(stub => {
|
|
3709
3709
|
this._log.info('ending gRPC channel');
|
|
3710
3710
|
this._terminated = true;
|
|
3711
3711
|
stub.close();
|
|
3712
|
-
this.locationsClient.close().catch(
|
|
3712
|
+
this.locationsClient.close().catch(err => {
|
|
3713
3713
|
throw err;
|
|
3714
3714
|
});
|
|
3715
3715
|
});
|
|
@@ -434,7 +434,7 @@ class SiteSearchEngineServiceClient {
|
|
|
434
434
|
'fetchDomainVerificationStatus',
|
|
435
435
|
];
|
|
436
436
|
for (const methodName of siteSearchEngineServiceStubMethods) {
|
|
437
|
-
const callPromise = this.siteSearchEngineServiceStub.then(
|
|
437
|
+
const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
|
|
438
438
|
if (this._terminated) {
|
|
439
439
|
return Promise.reject('The client has already been closed.');
|
|
440
440
|
}
|
|
@@ -532,7 +532,7 @@ class SiteSearchEngineServiceClient {
|
|
|
532
532
|
this._gaxModule.routingHeader.fromParams({
|
|
533
533
|
name: request.name ?? '',
|
|
534
534
|
});
|
|
535
|
-
this.initialize().catch(
|
|
535
|
+
this.initialize().catch(err => {
|
|
536
536
|
throw err;
|
|
537
537
|
});
|
|
538
538
|
this._log.info('getSiteSearchEngine request %j', request);
|
|
@@ -575,7 +575,7 @@ class SiteSearchEngineServiceClient {
|
|
|
575
575
|
this._gaxModule.routingHeader.fromParams({
|
|
576
576
|
name: request.name ?? '',
|
|
577
577
|
});
|
|
578
|
-
this.initialize().catch(
|
|
578
|
+
this.initialize().catch(err => {
|
|
579
579
|
throw err;
|
|
580
580
|
});
|
|
581
581
|
this._log.info('getTargetSite request %j', request);
|
|
@@ -618,7 +618,7 @@ class SiteSearchEngineServiceClient {
|
|
|
618
618
|
this._gaxModule.routingHeader.fromParams({
|
|
619
619
|
parent: request.parent ?? '',
|
|
620
620
|
});
|
|
621
|
-
this.initialize().catch(
|
|
621
|
+
this.initialize().catch(err => {
|
|
622
622
|
throw err;
|
|
623
623
|
});
|
|
624
624
|
this._log.info('fetchSitemaps request %j', request);
|
|
@@ -661,7 +661,7 @@ class SiteSearchEngineServiceClient {
|
|
|
661
661
|
this._gaxModule.routingHeader.fromParams({
|
|
662
662
|
parent: request.parent ?? '',
|
|
663
663
|
});
|
|
664
|
-
this.initialize().catch(
|
|
664
|
+
this.initialize().catch(err => {
|
|
665
665
|
throw err;
|
|
666
666
|
});
|
|
667
667
|
const wrappedCallback = callback
|
|
@@ -713,7 +713,7 @@ class SiteSearchEngineServiceClient {
|
|
|
713
713
|
this._gaxModule.routingHeader.fromParams({
|
|
714
714
|
parent: request.parent ?? '',
|
|
715
715
|
});
|
|
716
|
-
this.initialize().catch(
|
|
716
|
+
this.initialize().catch(err => {
|
|
717
717
|
throw err;
|
|
718
718
|
});
|
|
719
719
|
const wrappedCallback = callback
|
|
@@ -765,7 +765,7 @@ class SiteSearchEngineServiceClient {
|
|
|
765
765
|
this._gaxModule.routingHeader.fromParams({
|
|
766
766
|
'target_site.name': request.targetSite.name ?? '',
|
|
767
767
|
});
|
|
768
|
-
this.initialize().catch(
|
|
768
|
+
this.initialize().catch(err => {
|
|
769
769
|
throw err;
|
|
770
770
|
});
|
|
771
771
|
const wrappedCallback = callback
|
|
@@ -817,7 +817,7 @@ class SiteSearchEngineServiceClient {
|
|
|
817
817
|
this._gaxModule.routingHeader.fromParams({
|
|
818
818
|
name: request.name ?? '',
|
|
819
819
|
});
|
|
820
|
-
this.initialize().catch(
|
|
820
|
+
this.initialize().catch(err => {
|
|
821
821
|
throw err;
|
|
822
822
|
});
|
|
823
823
|
const wrappedCallback = callback
|
|
@@ -869,7 +869,7 @@ class SiteSearchEngineServiceClient {
|
|
|
869
869
|
this._gaxModule.routingHeader.fromParams({
|
|
870
870
|
parent: request.parent ?? '',
|
|
871
871
|
});
|
|
872
|
-
this.initialize().catch(
|
|
872
|
+
this.initialize().catch(err => {
|
|
873
873
|
throw err;
|
|
874
874
|
});
|
|
875
875
|
const wrappedCallback = callback
|
|
@@ -921,7 +921,7 @@ class SiteSearchEngineServiceClient {
|
|
|
921
921
|
this._gaxModule.routingHeader.fromParams({
|
|
922
922
|
name: request.name ?? '',
|
|
923
923
|
});
|
|
924
|
-
this.initialize().catch(
|
|
924
|
+
this.initialize().catch(err => {
|
|
925
925
|
throw err;
|
|
926
926
|
});
|
|
927
927
|
const wrappedCallback = callback
|
|
@@ -973,7 +973,7 @@ class SiteSearchEngineServiceClient {
|
|
|
973
973
|
this._gaxModule.routingHeader.fromParams({
|
|
974
974
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
975
975
|
});
|
|
976
|
-
this.initialize().catch(
|
|
976
|
+
this.initialize().catch(err => {
|
|
977
977
|
throw err;
|
|
978
978
|
});
|
|
979
979
|
const wrappedCallback = callback
|
|
@@ -1025,7 +1025,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1025
1025
|
this._gaxModule.routingHeader.fromParams({
|
|
1026
1026
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1027
1027
|
});
|
|
1028
|
-
this.initialize().catch(
|
|
1028
|
+
this.initialize().catch(err => {
|
|
1029
1029
|
throw err;
|
|
1030
1030
|
});
|
|
1031
1031
|
const wrappedCallback = callback
|
|
@@ -1077,7 +1077,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1077
1077
|
this._gaxModule.routingHeader.fromParams({
|
|
1078
1078
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1079
1079
|
});
|
|
1080
|
-
this.initialize().catch(
|
|
1080
|
+
this.initialize().catch(err => {
|
|
1081
1081
|
throw err;
|
|
1082
1082
|
});
|
|
1083
1083
|
const wrappedCallback = callback
|
|
@@ -1129,7 +1129,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1129
1129
|
this._gaxModule.routingHeader.fromParams({
|
|
1130
1130
|
parent: request.parent ?? '',
|
|
1131
1131
|
});
|
|
1132
|
-
this.initialize().catch(
|
|
1132
|
+
this.initialize().catch(err => {
|
|
1133
1133
|
throw err;
|
|
1134
1134
|
});
|
|
1135
1135
|
const wrappedCallback = callback
|
|
@@ -1181,7 +1181,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1181
1181
|
this._gaxModule.routingHeader.fromParams({
|
|
1182
1182
|
parent: request.parent ?? '',
|
|
1183
1183
|
});
|
|
1184
|
-
this.initialize().catch(
|
|
1184
|
+
this.initialize().catch(err => {
|
|
1185
1185
|
throw err;
|
|
1186
1186
|
});
|
|
1187
1187
|
const wrappedCallback = callback
|
|
@@ -1244,7 +1244,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1244
1244
|
});
|
|
1245
1245
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1246
1246
|
const callSettings = defaultCallSettings.merge(options);
|
|
1247
|
-
this.initialize().catch(
|
|
1247
|
+
this.initialize().catch(err => {
|
|
1248
1248
|
throw err;
|
|
1249
1249
|
});
|
|
1250
1250
|
this._log.info('listTargetSites stream %j', request);
|
|
@@ -1299,7 +1299,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1299
1299
|
});
|
|
1300
1300
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1301
1301
|
const callSettings = defaultCallSettings.merge(options);
|
|
1302
|
-
this.initialize().catch(
|
|
1302
|
+
this.initialize().catch(err => {
|
|
1303
1303
|
throw err;
|
|
1304
1304
|
});
|
|
1305
1305
|
this._log.info('listTargetSites iterate %j', request);
|
|
@@ -1322,7 +1322,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1322
1322
|
this._gaxModule.routingHeader.fromParams({
|
|
1323
1323
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1324
1324
|
});
|
|
1325
|
-
this.initialize().catch(
|
|
1325
|
+
this.initialize().catch(err => {
|
|
1326
1326
|
throw err;
|
|
1327
1327
|
});
|
|
1328
1328
|
const wrappedCallback = callback
|
|
@@ -1382,7 +1382,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1382
1382
|
});
|
|
1383
1383
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1384
1384
|
const callSettings = defaultCallSettings.merge(options);
|
|
1385
|
-
this.initialize().catch(
|
|
1385
|
+
this.initialize().catch(err => {
|
|
1386
1386
|
throw err;
|
|
1387
1387
|
});
|
|
1388
1388
|
this._log.info('fetchDomainVerificationStatus stream %j', request);
|
|
@@ -1434,7 +1434,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1434
1434
|
});
|
|
1435
1435
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1436
1436
|
const callSettings = defaultCallSettings.merge(options);
|
|
1437
|
-
this.initialize().catch(
|
|
1437
|
+
this.initialize().catch(err => {
|
|
1438
1438
|
throw err;
|
|
1439
1439
|
});
|
|
1440
1440
|
this._log.info('fetchDomainVerificationStatus iterate %j', request);
|
|
@@ -4603,11 +4603,11 @@ class SiteSearchEngineServiceClient {
|
|
|
4603
4603
|
*/
|
|
4604
4604
|
close() {
|
|
4605
4605
|
if (this.siteSearchEngineServiceStub && !this._terminated) {
|
|
4606
|
-
return this.siteSearchEngineServiceStub.then(
|
|
4606
|
+
return this.siteSearchEngineServiceStub.then(stub => {
|
|
4607
4607
|
this._log.info('ending gRPC channel');
|
|
4608
4608
|
this._terminated = true;
|
|
4609
4609
|
stub.close();
|
|
4610
|
-
this.locationsClient.close().catch(
|
|
4610
|
+
this.locationsClient.close().catch(err => {
|
|
4611
4611
|
throw err;
|
|
4612
4612
|
});
|
|
4613
4613
|
void this.operationsClient.close();
|
|
@@ -391,7 +391,7 @@ class UserEventServiceClient {
|
|
|
391
391
|
'importUserEvents',
|
|
392
392
|
];
|
|
393
393
|
for (const methodName of userEventServiceStubMethods) {
|
|
394
|
-
const callPromise = this.userEventServiceStub.then(
|
|
394
|
+
const callPromise = this.userEventServiceStub.then(stub => (...args) => {
|
|
395
395
|
if (this._terminated) {
|
|
396
396
|
return Promise.reject('The client has already been closed.');
|
|
397
397
|
}
|
|
@@ -488,7 +488,7 @@ class UserEventServiceClient {
|
|
|
488
488
|
this._gaxModule.routingHeader.fromParams({
|
|
489
489
|
parent: request.parent ?? '',
|
|
490
490
|
});
|
|
491
|
-
this.initialize().catch(
|
|
491
|
+
this.initialize().catch(err => {
|
|
492
492
|
throw err;
|
|
493
493
|
});
|
|
494
494
|
this._log.info('writeUserEvent request %j', request);
|
|
@@ -531,7 +531,7 @@ class UserEventServiceClient {
|
|
|
531
531
|
this._gaxModule.routingHeader.fromParams({
|
|
532
532
|
parent: request.parent ?? '',
|
|
533
533
|
});
|
|
534
|
-
this.initialize().catch(
|
|
534
|
+
this.initialize().catch(err => {
|
|
535
535
|
throw err;
|
|
536
536
|
});
|
|
537
537
|
this._log.info('collectUserEvent request %j', request);
|
|
@@ -574,7 +574,7 @@ class UserEventServiceClient {
|
|
|
574
574
|
this._gaxModule.routingHeader.fromParams({
|
|
575
575
|
parent: request.parent ?? '',
|
|
576
576
|
});
|
|
577
|
-
this.initialize().catch(
|
|
577
|
+
this.initialize().catch(err => {
|
|
578
578
|
throw err;
|
|
579
579
|
});
|
|
580
580
|
const wrappedCallback = callback
|
|
@@ -626,7 +626,7 @@ class UserEventServiceClient {
|
|
|
626
626
|
this._gaxModule.routingHeader.fromParams({
|
|
627
627
|
parent: request.parent ?? '',
|
|
628
628
|
});
|
|
629
|
-
this.initialize().catch(
|
|
629
|
+
this.initialize().catch(err => {
|
|
630
630
|
throw err;
|
|
631
631
|
});
|
|
632
632
|
const wrappedCallback = callback
|
|
@@ -3824,11 +3824,11 @@ class UserEventServiceClient {
|
|
|
3824
3824
|
*/
|
|
3825
3825
|
close() {
|
|
3826
3826
|
if (this.userEventServiceStub && !this._terminated) {
|
|
3827
|
-
return this.userEventServiceStub.then(
|
|
3827
|
+
return this.userEventServiceStub.then(stub => {
|
|
3828
3828
|
this._log.info('ending gRPC channel');
|
|
3829
3829
|
this._terminated = true;
|
|
3830
3830
|
stub.close();
|
|
3831
|
-
this.locationsClient.close().catch(
|
|
3831
|
+
this.locationsClient.close().catch(err => {
|
|
3832
3832
|
throw err;
|
|
3833
3833
|
});
|
|
3834
3834
|
void this.operationsClient.close();
|
|
@@ -393,7 +393,7 @@ class UserLicenseServiceClient {
|
|
|
393
393
|
'batchUpdateUserLicenses',
|
|
394
394
|
];
|
|
395
395
|
for (const methodName of userLicenseServiceStubMethods) {
|
|
396
|
-
const callPromise = this.userLicenseServiceStub.then(
|
|
396
|
+
const callPromise = this.userLicenseServiceStub.then(stub => (...args) => {
|
|
397
397
|
if (this._terminated) {
|
|
398
398
|
return Promise.reject('The client has already been closed.');
|
|
399
399
|
}
|
|
@@ -491,7 +491,7 @@ class UserLicenseServiceClient {
|
|
|
491
491
|
this._gaxModule.routingHeader.fromParams({
|
|
492
492
|
parent: request.parent ?? '',
|
|
493
493
|
});
|
|
494
|
-
this.initialize().catch(
|
|
494
|
+
this.initialize().catch(err => {
|
|
495
495
|
throw err;
|
|
496
496
|
});
|
|
497
497
|
this._log.info('listLicenseConfigsUsageStats request %j', request);
|
|
@@ -534,7 +534,7 @@ class UserLicenseServiceClient {
|
|
|
534
534
|
this._gaxModule.routingHeader.fromParams({
|
|
535
535
|
parent: request.parent ?? '',
|
|
536
536
|
});
|
|
537
|
-
this.initialize().catch(
|
|
537
|
+
this.initialize().catch(err => {
|
|
538
538
|
throw err;
|
|
539
539
|
});
|
|
540
540
|
const wrappedCallback = callback
|
|
@@ -586,7 +586,7 @@ class UserLicenseServiceClient {
|
|
|
586
586
|
this._gaxModule.routingHeader.fromParams({
|
|
587
587
|
parent: request.parent ?? '',
|
|
588
588
|
});
|
|
589
|
-
this.initialize().catch(
|
|
589
|
+
this.initialize().catch(err => {
|
|
590
590
|
throw err;
|
|
591
591
|
});
|
|
592
592
|
const wrappedCallback = callback
|
|
@@ -681,7 +681,7 @@ class UserLicenseServiceClient {
|
|
|
681
681
|
});
|
|
682
682
|
const defaultCallSettings = this._defaults['listUserLicenses'];
|
|
683
683
|
const callSettings = defaultCallSettings.merge(options);
|
|
684
|
-
this.initialize().catch(
|
|
684
|
+
this.initialize().catch(err => {
|
|
685
685
|
throw err;
|
|
686
686
|
});
|
|
687
687
|
this._log.info('listUserLicenses stream %j', request);
|
|
@@ -768,7 +768,7 @@ class UserLicenseServiceClient {
|
|
|
768
768
|
});
|
|
769
769
|
const defaultCallSettings = this._defaults['listUserLicenses'];
|
|
770
770
|
const callSettings = defaultCallSettings.merge(options);
|
|
771
|
-
this.initialize().catch(
|
|
771
|
+
this.initialize().catch(err => {
|
|
772
772
|
throw err;
|
|
773
773
|
});
|
|
774
774
|
this._log.info('listUserLicenses iterate %j', request);
|
|
@@ -3937,11 +3937,11 @@ class UserLicenseServiceClient {
|
|
|
3937
3937
|
*/
|
|
3938
3938
|
close() {
|
|
3939
3939
|
if (this.userLicenseServiceStub && !this._terminated) {
|
|
3940
|
-
return this.userLicenseServiceStub.then(
|
|
3940
|
+
return this.userLicenseServiceStub.then(stub => {
|
|
3941
3941
|
this._log.info('ending gRPC channel');
|
|
3942
3942
|
this._terminated = true;
|
|
3943
3943
|
stub.close();
|
|
3944
|
-
this.locationsClient.close().catch(
|
|
3944
|
+
this.locationsClient.close().catch(err => {
|
|
3945
3945
|
throw err;
|
|
3946
3946
|
});
|
|
3947
3947
|
void this.operationsClient.close();
|
|
@@ -253,7 +253,7 @@ class UserStoreServiceClient {
|
|
|
253
253
|
// and create an API call method for each.
|
|
254
254
|
const userStoreServiceStubMethods = ['getUserStore', 'updateUserStore'];
|
|
255
255
|
for (const methodName of userStoreServiceStubMethods) {
|
|
256
|
-
const callPromise = this.userStoreServiceStub.then(
|
|
256
|
+
const callPromise = this.userStoreServiceStub.then(stub => (...args) => {
|
|
257
257
|
if (this._terminated) {
|
|
258
258
|
return Promise.reject('The client has already been closed.');
|
|
259
259
|
}
|
|
@@ -349,7 +349,7 @@ class UserStoreServiceClient {
|
|
|
349
349
|
this._gaxModule.routingHeader.fromParams({
|
|
350
350
|
name: request.name ?? '',
|
|
351
351
|
});
|
|
352
|
-
this.initialize().catch(
|
|
352
|
+
this.initialize().catch(err => {
|
|
353
353
|
throw err;
|
|
354
354
|
});
|
|
355
355
|
this._log.info('getUserStore request %j', request);
|
|
@@ -392,7 +392,7 @@ class UserStoreServiceClient {
|
|
|
392
392
|
this._gaxModule.routingHeader.fromParams({
|
|
393
393
|
'user_store.name': request.userStore.name ?? '',
|
|
394
394
|
});
|
|
395
|
-
this.initialize().catch(
|
|
395
|
+
this.initialize().catch(err => {
|
|
396
396
|
throw err;
|
|
397
397
|
});
|
|
398
398
|
this._log.info('updateUserStore request %j', request);
|
|
@@ -3401,11 +3401,11 @@ class UserStoreServiceClient {
|
|
|
3401
3401
|
*/
|
|
3402
3402
|
close() {
|
|
3403
3403
|
if (this.userStoreServiceStub && !this._terminated) {
|
|
3404
|
-
return this.userStoreServiceStub.then(
|
|
3404
|
+
return this.userStoreServiceStub.then(stub => {
|
|
3405
3405
|
this._log.info('ending gRPC channel');
|
|
3406
3406
|
this._terminated = true;
|
|
3407
3407
|
stub.close();
|
|
3408
|
-
this.locationsClient.close().catch(
|
|
3408
|
+
this.locationsClient.close().catch(err => {
|
|
3409
3409
|
throw err;
|
|
3410
3410
|
});
|
|
3411
3411
|
});
|