@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
|
@@ -268,7 +268,7 @@ class SampleQuerySetServiceClient {
|
|
|
268
268
|
'deleteSampleQuerySet',
|
|
269
269
|
];
|
|
270
270
|
for (const methodName of sampleQuerySetServiceStubMethods) {
|
|
271
|
-
const callPromise = this.sampleQuerySetServiceStub.then(
|
|
271
|
+
const callPromise = this.sampleQuerySetServiceStub.then(stub => (...args) => {
|
|
272
272
|
if (this._terminated) {
|
|
273
273
|
return Promise.reject('The client has already been closed.');
|
|
274
274
|
}
|
|
@@ -364,7 +364,7 @@ class SampleQuerySetServiceClient {
|
|
|
364
364
|
this._gaxModule.routingHeader.fromParams({
|
|
365
365
|
name: request.name ?? '',
|
|
366
366
|
});
|
|
367
|
-
this.initialize().catch(
|
|
367
|
+
this.initialize().catch(err => {
|
|
368
368
|
throw err;
|
|
369
369
|
});
|
|
370
370
|
this._log.info('getSampleQuerySet request %j', request);
|
|
@@ -407,7 +407,7 @@ class SampleQuerySetServiceClient {
|
|
|
407
407
|
this._gaxModule.routingHeader.fromParams({
|
|
408
408
|
parent: request.parent ?? '',
|
|
409
409
|
});
|
|
410
|
-
this.initialize().catch(
|
|
410
|
+
this.initialize().catch(err => {
|
|
411
411
|
throw err;
|
|
412
412
|
});
|
|
413
413
|
this._log.info('createSampleQuerySet request %j', request);
|
|
@@ -450,7 +450,7 @@ class SampleQuerySetServiceClient {
|
|
|
450
450
|
this._gaxModule.routingHeader.fromParams({
|
|
451
451
|
'sample_query_set.name': request.sampleQuerySet.name ?? '',
|
|
452
452
|
});
|
|
453
|
-
this.initialize().catch(
|
|
453
|
+
this.initialize().catch(err => {
|
|
454
454
|
throw err;
|
|
455
455
|
});
|
|
456
456
|
this._log.info('updateSampleQuerySet request %j', request);
|
|
@@ -493,7 +493,7 @@ class SampleQuerySetServiceClient {
|
|
|
493
493
|
this._gaxModule.routingHeader.fromParams({
|
|
494
494
|
name: request.name ?? '',
|
|
495
495
|
});
|
|
496
|
-
this.initialize().catch(
|
|
496
|
+
this.initialize().catch(err => {
|
|
497
497
|
throw err;
|
|
498
498
|
});
|
|
499
499
|
this._log.info('deleteSampleQuerySet request %j', request);
|
|
@@ -536,7 +536,7 @@ class SampleQuerySetServiceClient {
|
|
|
536
536
|
this._gaxModule.routingHeader.fromParams({
|
|
537
537
|
parent: request.parent ?? '',
|
|
538
538
|
});
|
|
539
|
-
this.initialize().catch(
|
|
539
|
+
this.initialize().catch(err => {
|
|
540
540
|
throw err;
|
|
541
541
|
});
|
|
542
542
|
const wrappedCallback = callback
|
|
@@ -605,7 +605,7 @@ class SampleQuerySetServiceClient {
|
|
|
605
605
|
});
|
|
606
606
|
const defaultCallSettings = this._defaults['listSampleQuerySets'];
|
|
607
607
|
const callSettings = defaultCallSettings.merge(options);
|
|
608
|
-
this.initialize().catch(
|
|
608
|
+
this.initialize().catch(err => {
|
|
609
609
|
throw err;
|
|
610
610
|
});
|
|
611
611
|
this._log.info('listSampleQuerySets stream %j', request);
|
|
@@ -666,7 +666,7 @@ class SampleQuerySetServiceClient {
|
|
|
666
666
|
});
|
|
667
667
|
const defaultCallSettings = this._defaults['listSampleQuerySets'];
|
|
668
668
|
const callSettings = defaultCallSettings.merge(options);
|
|
669
|
-
this.initialize().catch(
|
|
669
|
+
this.initialize().catch(err => {
|
|
670
670
|
throw err;
|
|
671
671
|
});
|
|
672
672
|
this._log.info('listSampleQuerySets iterate %j', request);
|
|
@@ -3688,11 +3688,11 @@ class SampleQuerySetServiceClient {
|
|
|
3688
3688
|
*/
|
|
3689
3689
|
close() {
|
|
3690
3690
|
if (this.sampleQuerySetServiceStub && !this._terminated) {
|
|
3691
|
-
return this.sampleQuerySetServiceStub.then(
|
|
3691
|
+
return this.sampleQuerySetServiceStub.then(stub => {
|
|
3692
3692
|
this._log.info('ending gRPC channel');
|
|
3693
3693
|
this._terminated = true;
|
|
3694
3694
|
stub.close();
|
|
3695
|
-
this.locationsClient.close().catch(
|
|
3695
|
+
this.locationsClient.close().catch(err => {
|
|
3696
3696
|
throw err;
|
|
3697
3697
|
});
|
|
3698
3698
|
});
|
|
@@ -401,7 +401,7 @@ class SchemaServiceClient {
|
|
|
401
401
|
'deleteSchema',
|
|
402
402
|
];
|
|
403
403
|
for (const methodName of schemaServiceStubMethods) {
|
|
404
|
-
const callPromise = this.schemaServiceStub.then(
|
|
404
|
+
const callPromise = this.schemaServiceStub.then(stub => (...args) => {
|
|
405
405
|
if (this._terminated) {
|
|
406
406
|
return Promise.reject('The client has already been closed.');
|
|
407
407
|
}
|
|
@@ -499,7 +499,7 @@ class SchemaServiceClient {
|
|
|
499
499
|
this._gaxModule.routingHeader.fromParams({
|
|
500
500
|
name: request.name ?? '',
|
|
501
501
|
});
|
|
502
|
-
this.initialize().catch(
|
|
502
|
+
this.initialize().catch(err => {
|
|
503
503
|
throw err;
|
|
504
504
|
});
|
|
505
505
|
this._log.info('getSchema request %j', request);
|
|
@@ -542,7 +542,7 @@ class SchemaServiceClient {
|
|
|
542
542
|
this._gaxModule.routingHeader.fromParams({
|
|
543
543
|
parent: request.parent ?? '',
|
|
544
544
|
});
|
|
545
|
-
this.initialize().catch(
|
|
545
|
+
this.initialize().catch(err => {
|
|
546
546
|
throw err;
|
|
547
547
|
});
|
|
548
548
|
const wrappedCallback = callback
|
|
@@ -594,7 +594,7 @@ class SchemaServiceClient {
|
|
|
594
594
|
this._gaxModule.routingHeader.fromParams({
|
|
595
595
|
'schema.name': request.schema.name ?? '',
|
|
596
596
|
});
|
|
597
|
-
this.initialize().catch(
|
|
597
|
+
this.initialize().catch(err => {
|
|
598
598
|
throw err;
|
|
599
599
|
});
|
|
600
600
|
const wrappedCallback = callback
|
|
@@ -646,7 +646,7 @@ class SchemaServiceClient {
|
|
|
646
646
|
this._gaxModule.routingHeader.fromParams({
|
|
647
647
|
name: request.name ?? '',
|
|
648
648
|
});
|
|
649
|
-
this.initialize().catch(
|
|
649
|
+
this.initialize().catch(err => {
|
|
650
650
|
throw err;
|
|
651
651
|
});
|
|
652
652
|
const wrappedCallback = callback
|
|
@@ -698,7 +698,7 @@ class SchemaServiceClient {
|
|
|
698
698
|
this._gaxModule.routingHeader.fromParams({
|
|
699
699
|
parent: request.parent ?? '',
|
|
700
700
|
});
|
|
701
|
-
this.initialize().catch(
|
|
701
|
+
this.initialize().catch(err => {
|
|
702
702
|
throw err;
|
|
703
703
|
});
|
|
704
704
|
const wrappedCallback = callback
|
|
@@ -760,7 +760,7 @@ class SchemaServiceClient {
|
|
|
760
760
|
});
|
|
761
761
|
const defaultCallSettings = this._defaults['listSchemas'];
|
|
762
762
|
const callSettings = defaultCallSettings.merge(options);
|
|
763
|
-
this.initialize().catch(
|
|
763
|
+
this.initialize().catch(err => {
|
|
764
764
|
throw err;
|
|
765
765
|
});
|
|
766
766
|
this._log.info('listSchemas stream %j', request);
|
|
@@ -814,7 +814,7 @@ class SchemaServiceClient {
|
|
|
814
814
|
});
|
|
815
815
|
const defaultCallSettings = this._defaults['listSchemas'];
|
|
816
816
|
const callSettings = defaultCallSettings.merge(options);
|
|
817
|
-
this.initialize().catch(
|
|
817
|
+
this.initialize().catch(err => {
|
|
818
818
|
throw err;
|
|
819
819
|
});
|
|
820
820
|
this._log.info('listSchemas iterate %j', request);
|
|
@@ -3983,11 +3983,11 @@ class SchemaServiceClient {
|
|
|
3983
3983
|
*/
|
|
3984
3984
|
close() {
|
|
3985
3985
|
if (this.schemaServiceStub && !this._terminated) {
|
|
3986
|
-
return this.schemaServiceStub.then(
|
|
3986
|
+
return this.schemaServiceStub.then(stub => {
|
|
3987
3987
|
this._log.info('ending gRPC channel');
|
|
3988
3988
|
this._terminated = true;
|
|
3989
3989
|
stub.close();
|
|
3990
|
-
this.locationsClient.close().catch(
|
|
3990
|
+
this.locationsClient.close().catch(err => {
|
|
3991
3991
|
throw err;
|
|
3992
3992
|
});
|
|
3993
3993
|
void this.operationsClient.close();
|
|
@@ -262,7 +262,7 @@ class SearchServiceClient {
|
|
|
262
262
|
// and create an API call method for each.
|
|
263
263
|
const searchServiceStubMethods = ['search', 'searchLite'];
|
|
264
264
|
for (const methodName of searchServiceStubMethods) {
|
|
265
|
-
const callPromise = this.searchServiceStub.then(
|
|
265
|
+
const callPromise = this.searchServiceStub.then(stub => (...args) => {
|
|
266
266
|
if (this._terminated) {
|
|
267
267
|
return Promise.reject('The client has already been closed.');
|
|
268
268
|
}
|
|
@@ -359,7 +359,7 @@ class SearchServiceClient {
|
|
|
359
359
|
this._gaxModule.routingHeader.fromParams({
|
|
360
360
|
serving_config: request.servingConfig ?? '',
|
|
361
361
|
});
|
|
362
|
-
this.initialize().catch(
|
|
362
|
+
this.initialize().catch(err => {
|
|
363
363
|
throw err;
|
|
364
364
|
});
|
|
365
365
|
const wrappedCallback = callback
|
|
@@ -814,7 +814,7 @@ class SearchServiceClient {
|
|
|
814
814
|
});
|
|
815
815
|
const defaultCallSettings = this._defaults['search'];
|
|
816
816
|
const callSettings = defaultCallSettings.merge(options);
|
|
817
|
-
this.initialize().catch(
|
|
817
|
+
this.initialize().catch(err => {
|
|
818
818
|
throw err;
|
|
819
819
|
});
|
|
820
820
|
this._log.info('search stream %j', request);
|
|
@@ -1261,7 +1261,7 @@ class SearchServiceClient {
|
|
|
1261
1261
|
});
|
|
1262
1262
|
const defaultCallSettings = this._defaults['search'];
|
|
1263
1263
|
const callSettings = defaultCallSettings.merge(options);
|
|
1264
|
-
this.initialize().catch(
|
|
1264
|
+
this.initialize().catch(err => {
|
|
1265
1265
|
throw err;
|
|
1266
1266
|
});
|
|
1267
1267
|
this._log.info('search iterate %j', request);
|
|
@@ -1284,7 +1284,7 @@ class SearchServiceClient {
|
|
|
1284
1284
|
this._gaxModule.routingHeader.fromParams({
|
|
1285
1285
|
serving_config: request.servingConfig ?? '',
|
|
1286
1286
|
});
|
|
1287
|
-
this.initialize().catch(
|
|
1287
|
+
this.initialize().catch(err => {
|
|
1288
1288
|
throw err;
|
|
1289
1289
|
});
|
|
1290
1290
|
const wrappedCallback = callback
|
|
@@ -1739,7 +1739,7 @@ class SearchServiceClient {
|
|
|
1739
1739
|
});
|
|
1740
1740
|
const defaultCallSettings = this._defaults['searchLite'];
|
|
1741
1741
|
const callSettings = defaultCallSettings.merge(options);
|
|
1742
|
-
this.initialize().catch(
|
|
1742
|
+
this.initialize().catch(err => {
|
|
1743
1743
|
throw err;
|
|
1744
1744
|
});
|
|
1745
1745
|
this._log.info('searchLite stream %j', request);
|
|
@@ -2186,7 +2186,7 @@ class SearchServiceClient {
|
|
|
2186
2186
|
});
|
|
2187
2187
|
const defaultCallSettings = this._defaults['searchLite'];
|
|
2188
2188
|
const callSettings = defaultCallSettings.merge(options);
|
|
2189
|
-
this.initialize().catch(
|
|
2189
|
+
this.initialize().catch(err => {
|
|
2190
2190
|
throw err;
|
|
2191
2191
|
});
|
|
2192
2192
|
this._log.info('searchLite iterate %j', request);
|
|
@@ -5301,11 +5301,11 @@ class SearchServiceClient {
|
|
|
5301
5301
|
*/
|
|
5302
5302
|
close() {
|
|
5303
5303
|
if (this.searchServiceStub && !this._terminated) {
|
|
5304
|
-
return this.searchServiceStub.then(
|
|
5304
|
+
return this.searchServiceStub.then(stub => {
|
|
5305
5305
|
this._log.info('ending gRPC channel');
|
|
5306
5306
|
this._terminated = true;
|
|
5307
5307
|
stub.close();
|
|
5308
|
-
this.locationsClient.close().catch(
|
|
5308
|
+
this.locationsClient.close().catch(err => {
|
|
5309
5309
|
throw err;
|
|
5310
5310
|
});
|
|
5311
5311
|
});
|
|
@@ -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();
|