@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
|
@@ -406,7 +406,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
406
406
|
'listIdentityMappingStores',
|
|
407
407
|
];
|
|
408
408
|
for (const methodName of identityMappingStoreServiceStubMethods) {
|
|
409
|
-
const callPromise = this.identityMappingStoreServiceStub.then(
|
|
409
|
+
const callPromise = this.identityMappingStoreServiceStub.then(stub => (...args) => {
|
|
410
410
|
if (this._terminated) {
|
|
411
411
|
return Promise.reject('The client has already been closed.');
|
|
412
412
|
}
|
|
@@ -504,7 +504,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
504
504
|
this._gaxModule.routingHeader.fromParams({
|
|
505
505
|
parent: request.parent ?? '',
|
|
506
506
|
});
|
|
507
|
-
this.initialize().catch(
|
|
507
|
+
this.initialize().catch(err => {
|
|
508
508
|
throw err;
|
|
509
509
|
});
|
|
510
510
|
this._log.info('createIdentityMappingStore request %j', request);
|
|
@@ -547,7 +547,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
547
547
|
this._gaxModule.routingHeader.fromParams({
|
|
548
548
|
name: request.name ?? '',
|
|
549
549
|
});
|
|
550
|
-
this.initialize().catch(
|
|
550
|
+
this.initialize().catch(err => {
|
|
551
551
|
throw err;
|
|
552
552
|
});
|
|
553
553
|
this._log.info('getIdentityMappingStore request %j', request);
|
|
@@ -590,7 +590,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
590
590
|
this._gaxModule.routingHeader.fromParams({
|
|
591
591
|
name: request.name ?? '',
|
|
592
592
|
});
|
|
593
|
-
this.initialize().catch(
|
|
593
|
+
this.initialize().catch(err => {
|
|
594
594
|
throw err;
|
|
595
595
|
});
|
|
596
596
|
const wrappedCallback = callback
|
|
@@ -642,7 +642,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
642
642
|
this._gaxModule.routingHeader.fromParams({
|
|
643
643
|
identity_mapping_store: request.identityMappingStore?.toString() ?? '',
|
|
644
644
|
});
|
|
645
|
-
this.initialize().catch(
|
|
645
|
+
this.initialize().catch(err => {
|
|
646
646
|
throw err;
|
|
647
647
|
});
|
|
648
648
|
const wrappedCallback = callback
|
|
@@ -694,7 +694,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
694
694
|
this._gaxModule.routingHeader.fromParams({
|
|
695
695
|
identity_mapping_store: request.identityMappingStore?.toString() ?? '',
|
|
696
696
|
});
|
|
697
|
-
this.initialize().catch(
|
|
697
|
+
this.initialize().catch(err => {
|
|
698
698
|
throw err;
|
|
699
699
|
});
|
|
700
700
|
const wrappedCallback = callback
|
|
@@ -746,7 +746,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
746
746
|
this._gaxModule.routingHeader.fromParams({
|
|
747
747
|
identity_mapping_store: request.identityMappingStore?.toString() ?? '',
|
|
748
748
|
});
|
|
749
|
-
this.initialize().catch(
|
|
749
|
+
this.initialize().catch(err => {
|
|
750
750
|
throw err;
|
|
751
751
|
});
|
|
752
752
|
const wrappedCallback = callback
|
|
@@ -804,7 +804,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
804
804
|
});
|
|
805
805
|
const defaultCallSettings = this._defaults['listIdentityMappings'];
|
|
806
806
|
const callSettings = defaultCallSettings.merge(options);
|
|
807
|
-
this.initialize().catch(
|
|
807
|
+
this.initialize().catch(err => {
|
|
808
808
|
throw err;
|
|
809
809
|
});
|
|
810
810
|
this._log.info('listIdentityMappings stream %j', request);
|
|
@@ -854,7 +854,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
854
854
|
});
|
|
855
855
|
const defaultCallSettings = this._defaults['listIdentityMappings'];
|
|
856
856
|
const callSettings = defaultCallSettings.merge(options);
|
|
857
|
-
this.initialize().catch(
|
|
857
|
+
this.initialize().catch(err => {
|
|
858
858
|
throw err;
|
|
859
859
|
});
|
|
860
860
|
this._log.info('listIdentityMappings iterate %j', request);
|
|
@@ -877,7 +877,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
877
877
|
this._gaxModule.routingHeader.fromParams({
|
|
878
878
|
parent: request.parent ?? '',
|
|
879
879
|
});
|
|
880
|
-
this.initialize().catch(
|
|
880
|
+
this.initialize().catch(err => {
|
|
881
881
|
throw err;
|
|
882
882
|
});
|
|
883
883
|
const wrappedCallback = callback
|
|
@@ -935,7 +935,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
935
935
|
});
|
|
936
936
|
const defaultCallSettings = this._defaults['listIdentityMappingStores'];
|
|
937
937
|
const callSettings = defaultCallSettings.merge(options);
|
|
938
|
-
this.initialize().catch(
|
|
938
|
+
this.initialize().catch(err => {
|
|
939
939
|
throw err;
|
|
940
940
|
});
|
|
941
941
|
this._log.info('listIdentityMappingStores stream %j', request);
|
|
@@ -985,7 +985,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
985
985
|
});
|
|
986
986
|
const defaultCallSettings = this._defaults['listIdentityMappingStores'];
|
|
987
987
|
const callSettings = defaultCallSettings.merge(options);
|
|
988
|
-
this.initialize().catch(
|
|
988
|
+
this.initialize().catch(err => {
|
|
989
989
|
throw err;
|
|
990
990
|
});
|
|
991
991
|
this._log.info('listIdentityMappingStores iterate %j', request);
|
|
@@ -4187,11 +4187,11 @@ class IdentityMappingStoreServiceClient {
|
|
|
4187
4187
|
*/
|
|
4188
4188
|
close() {
|
|
4189
4189
|
if (this.identityMappingStoreServiceStub && !this._terminated) {
|
|
4190
|
-
return this.identityMappingStoreServiceStub.then(
|
|
4190
|
+
return this.identityMappingStoreServiceStub.then(stub => {
|
|
4191
4191
|
this._log.info('ending gRPC channel');
|
|
4192
4192
|
this._terminated = true;
|
|
4193
4193
|
stub.close();
|
|
4194
|
-
this.locationsClient.close().catch(
|
|
4194
|
+
this.locationsClient.close().catch(err => {
|
|
4195
4195
|
throw err;
|
|
4196
4196
|
});
|
|
4197
4197
|
void this.operationsClient.close();
|
|
@@ -268,7 +268,7 @@ class LicenseConfigServiceClient {
|
|
|
268
268
|
'retractLicenseConfig',
|
|
269
269
|
];
|
|
270
270
|
for (const methodName of licenseConfigServiceStubMethods) {
|
|
271
|
-
const callPromise = this.licenseConfigServiceStub.then(
|
|
271
|
+
const callPromise = this.licenseConfigServiceStub.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 LicenseConfigServiceClient {
|
|
|
364
364
|
this._gaxModule.routingHeader.fromParams({
|
|
365
365
|
parent: request.parent ?? '',
|
|
366
366
|
});
|
|
367
|
-
this.initialize().catch(
|
|
367
|
+
this.initialize().catch(err => {
|
|
368
368
|
throw err;
|
|
369
369
|
});
|
|
370
370
|
this._log.info('createLicenseConfig request %j', request);
|
|
@@ -407,7 +407,7 @@ class LicenseConfigServiceClient {
|
|
|
407
407
|
this._gaxModule.routingHeader.fromParams({
|
|
408
408
|
'license_config.name': request.licenseConfig.name ?? '',
|
|
409
409
|
});
|
|
410
|
-
this.initialize().catch(
|
|
410
|
+
this.initialize().catch(err => {
|
|
411
411
|
throw err;
|
|
412
412
|
});
|
|
413
413
|
this._log.info('updateLicenseConfig request %j', request);
|
|
@@ -450,7 +450,7 @@ class LicenseConfigServiceClient {
|
|
|
450
450
|
this._gaxModule.routingHeader.fromParams({
|
|
451
451
|
name: request.name ?? '',
|
|
452
452
|
});
|
|
453
|
-
this.initialize().catch(
|
|
453
|
+
this.initialize().catch(err => {
|
|
454
454
|
throw err;
|
|
455
455
|
});
|
|
456
456
|
this._log.info('getLicenseConfig request %j', request);
|
|
@@ -493,7 +493,7 @@ class LicenseConfigServiceClient {
|
|
|
493
493
|
this._gaxModule.routingHeader.fromParams({
|
|
494
494
|
billing_account_license_config: request.billingAccountLicenseConfig ?? '',
|
|
495
495
|
});
|
|
496
|
-
this.initialize().catch(
|
|
496
|
+
this.initialize().catch(err => {
|
|
497
497
|
throw err;
|
|
498
498
|
});
|
|
499
499
|
this._log.info('distributeLicenseConfig request %j', request);
|
|
@@ -536,7 +536,7 @@ class LicenseConfigServiceClient {
|
|
|
536
536
|
this._gaxModule.routingHeader.fromParams({
|
|
537
537
|
billing_account_license_config: request.billingAccountLicenseConfig ?? '',
|
|
538
538
|
});
|
|
539
|
-
this.initialize().catch(
|
|
539
|
+
this.initialize().catch(err => {
|
|
540
540
|
throw err;
|
|
541
541
|
});
|
|
542
542
|
this._log.info('retractLicenseConfig request %j', request);
|
|
@@ -579,7 +579,7 @@ class LicenseConfigServiceClient {
|
|
|
579
579
|
this._gaxModule.routingHeader.fromParams({
|
|
580
580
|
parent: request.parent ?? '',
|
|
581
581
|
});
|
|
582
|
-
this.initialize().catch(
|
|
582
|
+
this.initialize().catch(err => {
|
|
583
583
|
throw err;
|
|
584
584
|
});
|
|
585
585
|
const wrappedCallback = callback
|
|
@@ -644,7 +644,7 @@ class LicenseConfigServiceClient {
|
|
|
644
644
|
});
|
|
645
645
|
const defaultCallSettings = this._defaults['listLicenseConfigs'];
|
|
646
646
|
const callSettings = defaultCallSettings.merge(options);
|
|
647
|
-
this.initialize().catch(
|
|
647
|
+
this.initialize().catch(err => {
|
|
648
648
|
throw err;
|
|
649
649
|
});
|
|
650
650
|
this._log.info('listLicenseConfigs stream %j', request);
|
|
@@ -701,7 +701,7 @@ class LicenseConfigServiceClient {
|
|
|
701
701
|
});
|
|
702
702
|
const defaultCallSettings = this._defaults['listLicenseConfigs'];
|
|
703
703
|
const callSettings = defaultCallSettings.merge(options);
|
|
704
|
-
this.initialize().catch(
|
|
704
|
+
this.initialize().catch(err => {
|
|
705
705
|
throw err;
|
|
706
706
|
});
|
|
707
707
|
this._log.info('listLicenseConfigs iterate %j', request);
|
|
@@ -3756,11 +3756,11 @@ class LicenseConfigServiceClient {
|
|
|
3756
3756
|
*/
|
|
3757
3757
|
close() {
|
|
3758
3758
|
if (this.licenseConfigServiceStub && !this._terminated) {
|
|
3759
|
-
return this.licenseConfigServiceStub.then(
|
|
3759
|
+
return this.licenseConfigServiceStub.then(stub => {
|
|
3760
3760
|
this._log.info('ending gRPC channel');
|
|
3761
3761
|
this._terminated = true;
|
|
3762
3762
|
stub.close();
|
|
3763
|
-
this.locationsClient.close().catch(
|
|
3763
|
+
this.locationsClient.close().catch(err => {
|
|
3764
3764
|
throw err;
|
|
3765
3765
|
});
|
|
3766
3766
|
});
|
|
@@ -384,7 +384,7 @@ class ProjectServiceClient {
|
|
|
384
384
|
// and create an API call method for each.
|
|
385
385
|
const projectServiceStubMethods = ['provisionProject'];
|
|
386
386
|
for (const methodName of projectServiceStubMethods) {
|
|
387
|
-
const callPromise = this.projectServiceStub.then(
|
|
387
|
+
const callPromise = this.projectServiceStub.then(stub => (...args) => {
|
|
388
388
|
if (this._terminated) {
|
|
389
389
|
return Promise.reject('The client has already been closed.');
|
|
390
390
|
}
|
|
@@ -480,7 +480,7 @@ class ProjectServiceClient {
|
|
|
480
480
|
this._gaxModule.routingHeader.fromParams({
|
|
481
481
|
name: request.name ?? '',
|
|
482
482
|
});
|
|
483
|
-
this.initialize().catch(
|
|
483
|
+
this.initialize().catch(err => {
|
|
484
484
|
throw err;
|
|
485
485
|
});
|
|
486
486
|
const wrappedCallback = callback
|
|
@@ -3678,11 +3678,11 @@ class ProjectServiceClient {
|
|
|
3678
3678
|
*/
|
|
3679
3679
|
close() {
|
|
3680
3680
|
if (this.projectServiceStub && !this._terminated) {
|
|
3681
|
-
return this.projectServiceStub.then(
|
|
3681
|
+
return this.projectServiceStub.then(stub => {
|
|
3682
3682
|
this._log.info('ending gRPC channel');
|
|
3683
3683
|
this._terminated = true;
|
|
3684
3684
|
stub.close();
|
|
3685
|
-
this.locationsClient.close().catch(
|
|
3685
|
+
this.locationsClient.close().catch(err => {
|
|
3686
3686
|
throw err;
|
|
3687
3687
|
});
|
|
3688
3688
|
void this.operationsClient.close();
|
|
@@ -253,7 +253,7 @@ class RankServiceClient {
|
|
|
253
253
|
// and create an API call method for each.
|
|
254
254
|
const rankServiceStubMethods = ['rank'];
|
|
255
255
|
for (const methodName of rankServiceStubMethods) {
|
|
256
|
-
const callPromise = this.rankServiceStub.then(
|
|
256
|
+
const callPromise = this.rankServiceStub.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 RankServiceClient {
|
|
|
349
349
|
this._gaxModule.routingHeader.fromParams({
|
|
350
350
|
ranking_config: request.rankingConfig ?? '',
|
|
351
351
|
});
|
|
352
|
-
this.initialize().catch(
|
|
352
|
+
this.initialize().catch(err => {
|
|
353
353
|
throw err;
|
|
354
354
|
});
|
|
355
355
|
this._log.info('rank request %j', request);
|
|
@@ -3406,11 +3406,11 @@ class RankServiceClient {
|
|
|
3406
3406
|
*/
|
|
3407
3407
|
close() {
|
|
3408
3408
|
if (this.rankServiceStub && !this._terminated) {
|
|
3409
|
-
return this.rankServiceStub.then(
|
|
3409
|
+
return this.rankServiceStub.then(stub => {
|
|
3410
3410
|
this._log.info('ending gRPC channel');
|
|
3411
3411
|
this._terminated = true;
|
|
3412
3412
|
stub.close();
|
|
3413
|
-
this.locationsClient.close().catch(
|
|
3413
|
+
this.locationsClient.close().catch(err => {
|
|
3414
3414
|
throw err;
|
|
3415
3415
|
});
|
|
3416
3416
|
});
|
|
@@ -254,7 +254,7 @@ class RecommendationServiceClient {
|
|
|
254
254
|
// and create an API call method for each.
|
|
255
255
|
const recommendationServiceStubMethods = ['recommend'];
|
|
256
256
|
for (const methodName of recommendationServiceStubMethods) {
|
|
257
|
-
const callPromise = this.recommendationServiceStub.then(
|
|
257
|
+
const callPromise = this.recommendationServiceStub.then(stub => (...args) => {
|
|
258
258
|
if (this._terminated) {
|
|
259
259
|
return Promise.reject('The client has already been closed.');
|
|
260
260
|
}
|
|
@@ -350,7 +350,7 @@ class RecommendationServiceClient {
|
|
|
350
350
|
this._gaxModule.routingHeader.fromParams({
|
|
351
351
|
serving_config: request.servingConfig ?? '',
|
|
352
352
|
});
|
|
353
|
-
this.initialize().catch(
|
|
353
|
+
this.initialize().catch(err => {
|
|
354
354
|
throw err;
|
|
355
355
|
});
|
|
356
356
|
this._log.info('recommend request %j', request);
|
|
@@ -3359,11 +3359,11 @@ class RecommendationServiceClient {
|
|
|
3359
3359
|
*/
|
|
3360
3360
|
close() {
|
|
3361
3361
|
if (this.recommendationServiceStub && !this._terminated) {
|
|
3362
|
-
return this.recommendationServiceStub.then(
|
|
3362
|
+
return this.recommendationServiceStub.then(stub => {
|
|
3363
3363
|
this._log.info('ending gRPC channel');
|
|
3364
3364
|
this._terminated = true;
|
|
3365
3365
|
stub.close();
|
|
3366
|
-
this.locationsClient.close().catch(
|
|
3366
|
+
this.locationsClient.close().catch(err => {
|
|
3367
3367
|
throw err;
|
|
3368
3368
|
});
|
|
3369
3369
|
});
|
|
@@ -397,7 +397,7 @@ class SampleQueryServiceClient {
|
|
|
397
397
|
'importSampleQueries',
|
|
398
398
|
];
|
|
399
399
|
for (const methodName of sampleQueryServiceStubMethods) {
|
|
400
|
-
const callPromise = this.sampleQueryServiceStub.then(
|
|
400
|
+
const callPromise = this.sampleQueryServiceStub.then(stub => (...args) => {
|
|
401
401
|
if (this._terminated) {
|
|
402
402
|
return Promise.reject('The client has already been closed.');
|
|
403
403
|
}
|
|
@@ -495,7 +495,7 @@ class SampleQueryServiceClient {
|
|
|
495
495
|
this._gaxModule.routingHeader.fromParams({
|
|
496
496
|
name: request.name ?? '',
|
|
497
497
|
});
|
|
498
|
-
this.initialize().catch(
|
|
498
|
+
this.initialize().catch(err => {
|
|
499
499
|
throw err;
|
|
500
500
|
});
|
|
501
501
|
this._log.info('getSampleQuery request %j', request);
|
|
@@ -538,7 +538,7 @@ class SampleQueryServiceClient {
|
|
|
538
538
|
this._gaxModule.routingHeader.fromParams({
|
|
539
539
|
parent: request.parent ?? '',
|
|
540
540
|
});
|
|
541
|
-
this.initialize().catch(
|
|
541
|
+
this.initialize().catch(err => {
|
|
542
542
|
throw err;
|
|
543
543
|
});
|
|
544
544
|
this._log.info('createSampleQuery request %j', request);
|
|
@@ -581,7 +581,7 @@ class SampleQueryServiceClient {
|
|
|
581
581
|
this._gaxModule.routingHeader.fromParams({
|
|
582
582
|
'sample_query.name': request.sampleQuery.name ?? '',
|
|
583
583
|
});
|
|
584
|
-
this.initialize().catch(
|
|
584
|
+
this.initialize().catch(err => {
|
|
585
585
|
throw err;
|
|
586
586
|
});
|
|
587
587
|
this._log.info('updateSampleQuery request %j', request);
|
|
@@ -624,7 +624,7 @@ class SampleQueryServiceClient {
|
|
|
624
624
|
this._gaxModule.routingHeader.fromParams({
|
|
625
625
|
name: request.name ?? '',
|
|
626
626
|
});
|
|
627
|
-
this.initialize().catch(
|
|
627
|
+
this.initialize().catch(err => {
|
|
628
628
|
throw err;
|
|
629
629
|
});
|
|
630
630
|
this._log.info('deleteSampleQuery request %j', request);
|
|
@@ -667,7 +667,7 @@ class SampleQueryServiceClient {
|
|
|
667
667
|
this._gaxModule.routingHeader.fromParams({
|
|
668
668
|
parent: request.parent ?? '',
|
|
669
669
|
});
|
|
670
|
-
this.initialize().catch(
|
|
670
|
+
this.initialize().catch(err => {
|
|
671
671
|
throw err;
|
|
672
672
|
});
|
|
673
673
|
const wrappedCallback = callback
|
|
@@ -719,7 +719,7 @@ class SampleQueryServiceClient {
|
|
|
719
719
|
this._gaxModule.routingHeader.fromParams({
|
|
720
720
|
parent: request.parent ?? '',
|
|
721
721
|
});
|
|
722
|
-
this.initialize().catch(
|
|
722
|
+
this.initialize().catch(err => {
|
|
723
723
|
throw err;
|
|
724
724
|
});
|
|
725
725
|
const wrappedCallback = callback
|
|
@@ -788,7 +788,7 @@ class SampleQueryServiceClient {
|
|
|
788
788
|
});
|
|
789
789
|
const defaultCallSettings = this._defaults['listSampleQueries'];
|
|
790
790
|
const callSettings = defaultCallSettings.merge(options);
|
|
791
|
-
this.initialize().catch(
|
|
791
|
+
this.initialize().catch(err => {
|
|
792
792
|
throw err;
|
|
793
793
|
});
|
|
794
794
|
this._log.info('listSampleQueries stream %j', request);
|
|
@@ -849,7 +849,7 @@ class SampleQueryServiceClient {
|
|
|
849
849
|
});
|
|
850
850
|
const defaultCallSettings = this._defaults['listSampleQueries'];
|
|
851
851
|
const callSettings = defaultCallSettings.merge(options);
|
|
852
|
-
this.initialize().catch(
|
|
852
|
+
this.initialize().catch(err => {
|
|
853
853
|
throw err;
|
|
854
854
|
});
|
|
855
855
|
this._log.info('listSampleQueries iterate %j', request);
|
|
@@ -4018,11 +4018,11 @@ class SampleQueryServiceClient {
|
|
|
4018
4018
|
*/
|
|
4019
4019
|
close() {
|
|
4020
4020
|
if (this.sampleQueryServiceStub && !this._terminated) {
|
|
4021
|
-
return this.sampleQueryServiceStub.then(
|
|
4021
|
+
return this.sampleQueryServiceStub.then(stub => {
|
|
4022
4022
|
this._log.info('ending gRPC channel');
|
|
4023
4023
|
this._terminated = true;
|
|
4024
4024
|
stub.close();
|
|
4025
|
-
this.locationsClient.close().catch(
|
|
4025
|
+
this.locationsClient.close().catch(err => {
|
|
4026
4026
|
throw err;
|
|
4027
4027
|
});
|
|
4028
4028
|
void this.operationsClient.close();
|
|
@@ -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
|
});
|