@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
|
@@ -416,7 +416,7 @@ class SiteSearchEngineServiceClient {
|
|
|
416
416
|
'getUriPatternDocumentData',
|
|
417
417
|
];
|
|
418
418
|
for (const methodName of siteSearchEngineServiceStubMethods) {
|
|
419
|
-
const callPromise = this.siteSearchEngineServiceStub.then(
|
|
419
|
+
const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
|
|
420
420
|
if (this._terminated) {
|
|
421
421
|
return Promise.reject('The client has already been closed.');
|
|
422
422
|
}
|
|
@@ -510,7 +510,7 @@ class SiteSearchEngineServiceClient {
|
|
|
510
510
|
this._gaxModule.routingHeader.fromParams({
|
|
511
511
|
name: request.name ?? '',
|
|
512
512
|
});
|
|
513
|
-
this.initialize().catch(
|
|
513
|
+
this.initialize().catch(err => {
|
|
514
514
|
throw err;
|
|
515
515
|
});
|
|
516
516
|
this._log.info('getSiteSearchEngine request %j', request);
|
|
@@ -553,7 +553,7 @@ class SiteSearchEngineServiceClient {
|
|
|
553
553
|
this._gaxModule.routingHeader.fromParams({
|
|
554
554
|
name: request.name ?? '',
|
|
555
555
|
});
|
|
556
|
-
this.initialize().catch(
|
|
556
|
+
this.initialize().catch(err => {
|
|
557
557
|
throw err;
|
|
558
558
|
});
|
|
559
559
|
this._log.info('getTargetSite request %j', request);
|
|
@@ -596,7 +596,7 @@ class SiteSearchEngineServiceClient {
|
|
|
596
596
|
this._gaxModule.routingHeader.fromParams({
|
|
597
597
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
598
598
|
});
|
|
599
|
-
this.initialize().catch(
|
|
599
|
+
this.initialize().catch(err => {
|
|
600
600
|
throw err;
|
|
601
601
|
});
|
|
602
602
|
this._log.info('getUriPatternDocumentData request %j', request);
|
|
@@ -639,7 +639,7 @@ class SiteSearchEngineServiceClient {
|
|
|
639
639
|
this._gaxModule.routingHeader.fromParams({
|
|
640
640
|
parent: request.parent ?? '',
|
|
641
641
|
});
|
|
642
|
-
this.initialize().catch(
|
|
642
|
+
this.initialize().catch(err => {
|
|
643
643
|
throw err;
|
|
644
644
|
});
|
|
645
645
|
const wrappedCallback = callback
|
|
@@ -691,7 +691,7 @@ class SiteSearchEngineServiceClient {
|
|
|
691
691
|
this._gaxModule.routingHeader.fromParams({
|
|
692
692
|
parent: request.parent ?? '',
|
|
693
693
|
});
|
|
694
|
-
this.initialize().catch(
|
|
694
|
+
this.initialize().catch(err => {
|
|
695
695
|
throw err;
|
|
696
696
|
});
|
|
697
697
|
const wrappedCallback = callback
|
|
@@ -743,7 +743,7 @@ class SiteSearchEngineServiceClient {
|
|
|
743
743
|
this._gaxModule.routingHeader.fromParams({
|
|
744
744
|
'target_site.name': request.targetSite.name ?? '',
|
|
745
745
|
});
|
|
746
|
-
this.initialize().catch(
|
|
746
|
+
this.initialize().catch(err => {
|
|
747
747
|
throw err;
|
|
748
748
|
});
|
|
749
749
|
const wrappedCallback = callback
|
|
@@ -795,7 +795,7 @@ class SiteSearchEngineServiceClient {
|
|
|
795
795
|
this._gaxModule.routingHeader.fromParams({
|
|
796
796
|
name: request.name ?? '',
|
|
797
797
|
});
|
|
798
|
-
this.initialize().catch(
|
|
798
|
+
this.initialize().catch(err => {
|
|
799
799
|
throw err;
|
|
800
800
|
});
|
|
801
801
|
const wrappedCallback = callback
|
|
@@ -847,7 +847,7 @@ class SiteSearchEngineServiceClient {
|
|
|
847
847
|
this._gaxModule.routingHeader.fromParams({
|
|
848
848
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
849
849
|
});
|
|
850
|
-
this.initialize().catch(
|
|
850
|
+
this.initialize().catch(err => {
|
|
851
851
|
throw err;
|
|
852
852
|
});
|
|
853
853
|
const wrappedCallback = callback
|
|
@@ -899,7 +899,7 @@ class SiteSearchEngineServiceClient {
|
|
|
899
899
|
this._gaxModule.routingHeader.fromParams({
|
|
900
900
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
901
901
|
});
|
|
902
|
-
this.initialize().catch(
|
|
902
|
+
this.initialize().catch(err => {
|
|
903
903
|
throw err;
|
|
904
904
|
});
|
|
905
905
|
const wrappedCallback = callback
|
|
@@ -951,7 +951,7 @@ class SiteSearchEngineServiceClient {
|
|
|
951
951
|
this._gaxModule.routingHeader.fromParams({
|
|
952
952
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
953
953
|
});
|
|
954
|
-
this.initialize().catch(
|
|
954
|
+
this.initialize().catch(err => {
|
|
955
955
|
throw err;
|
|
956
956
|
});
|
|
957
957
|
const wrappedCallback = callback
|
|
@@ -1003,7 +1003,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1003
1003
|
this._gaxModule.routingHeader.fromParams({
|
|
1004
1004
|
parent: request.parent ?? '',
|
|
1005
1005
|
});
|
|
1006
|
-
this.initialize().catch(
|
|
1006
|
+
this.initialize().catch(err => {
|
|
1007
1007
|
throw err;
|
|
1008
1008
|
});
|
|
1009
1009
|
const wrappedCallback = callback
|
|
@@ -1055,7 +1055,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1055
1055
|
this._gaxModule.routingHeader.fromParams({
|
|
1056
1056
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1057
1057
|
});
|
|
1058
|
-
this.initialize().catch(
|
|
1058
|
+
this.initialize().catch(err => {
|
|
1059
1059
|
throw err;
|
|
1060
1060
|
});
|
|
1061
1061
|
const wrappedCallback = callback
|
|
@@ -1107,7 +1107,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1107
1107
|
this._gaxModule.routingHeader.fromParams({
|
|
1108
1108
|
parent: request.parent ?? '',
|
|
1109
1109
|
});
|
|
1110
|
-
this.initialize().catch(
|
|
1110
|
+
this.initialize().catch(err => {
|
|
1111
1111
|
throw err;
|
|
1112
1112
|
});
|
|
1113
1113
|
const wrappedCallback = callback
|
|
@@ -1170,7 +1170,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1170
1170
|
});
|
|
1171
1171
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1172
1172
|
const callSettings = defaultCallSettings.merge(options);
|
|
1173
|
-
this.initialize().catch(
|
|
1173
|
+
this.initialize().catch(err => {
|
|
1174
1174
|
throw err;
|
|
1175
1175
|
});
|
|
1176
1176
|
this._log.info('listTargetSites stream %j', request);
|
|
@@ -1225,7 +1225,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1225
1225
|
});
|
|
1226
1226
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1227
1227
|
const callSettings = defaultCallSettings.merge(options);
|
|
1228
|
-
this.initialize().catch(
|
|
1228
|
+
this.initialize().catch(err => {
|
|
1229
1229
|
throw err;
|
|
1230
1230
|
});
|
|
1231
1231
|
this._log.info('listTargetSites iterate %j', request);
|
|
@@ -1248,7 +1248,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1248
1248
|
this._gaxModule.routingHeader.fromParams({
|
|
1249
1249
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1250
1250
|
});
|
|
1251
|
-
this.initialize().catch(
|
|
1251
|
+
this.initialize().catch(err => {
|
|
1252
1252
|
throw err;
|
|
1253
1253
|
});
|
|
1254
1254
|
const wrappedCallback = callback
|
|
@@ -1308,7 +1308,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1308
1308
|
});
|
|
1309
1309
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1310
1310
|
const callSettings = defaultCallSettings.merge(options);
|
|
1311
|
-
this.initialize().catch(
|
|
1311
|
+
this.initialize().catch(err => {
|
|
1312
1312
|
throw err;
|
|
1313
1313
|
});
|
|
1314
1314
|
this._log.info('fetchDomainVerificationStatus stream %j', request);
|
|
@@ -1360,7 +1360,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1360
1360
|
});
|
|
1361
1361
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1362
1362
|
const callSettings = defaultCallSettings.merge(options);
|
|
1363
|
-
this.initialize().catch(
|
|
1363
|
+
this.initialize().catch(err => {
|
|
1364
1364
|
throw err;
|
|
1365
1365
|
});
|
|
1366
1366
|
this._log.info('fetchDomainVerificationStatus iterate %j', request);
|
|
@@ -3898,11 +3898,11 @@ class SiteSearchEngineServiceClient {
|
|
|
3898
3898
|
*/
|
|
3899
3899
|
close() {
|
|
3900
3900
|
if (this.siteSearchEngineServiceStub && !this._terminated) {
|
|
3901
|
-
return this.siteSearchEngineServiceStub.then(
|
|
3901
|
+
return this.siteSearchEngineServiceStub.then(stub => {
|
|
3902
3902
|
this._log.info('ending gRPC channel');
|
|
3903
3903
|
this._terminated = true;
|
|
3904
3904
|
stub.close();
|
|
3905
|
-
this.locationsClient.close().catch(
|
|
3905
|
+
this.locationsClient.close().catch(err => {
|
|
3906
3906
|
throw err;
|
|
3907
3907
|
});
|
|
3908
3908
|
void this.operationsClient.close();
|
|
@@ -377,7 +377,7 @@ class UserEventServiceClient {
|
|
|
377
377
|
'importUserEvents',
|
|
378
378
|
];
|
|
379
379
|
for (const methodName of userEventServiceStubMethods) {
|
|
380
|
-
const callPromise = this.userEventServiceStub.then(
|
|
380
|
+
const callPromise = this.userEventServiceStub.then(stub => (...args) => {
|
|
381
381
|
if (this._terminated) {
|
|
382
382
|
return Promise.reject('The client has already been closed.');
|
|
383
383
|
}
|
|
@@ -469,7 +469,7 @@ class UserEventServiceClient {
|
|
|
469
469
|
this._gaxModule.routingHeader.fromParams({
|
|
470
470
|
parent: request.parent ?? '',
|
|
471
471
|
});
|
|
472
|
-
this.initialize().catch(
|
|
472
|
+
this.initialize().catch(err => {
|
|
473
473
|
throw err;
|
|
474
474
|
});
|
|
475
475
|
this._log.info('writeUserEvent request %j', request);
|
|
@@ -512,7 +512,7 @@ class UserEventServiceClient {
|
|
|
512
512
|
this._gaxModule.routingHeader.fromParams({
|
|
513
513
|
parent: request.parent ?? '',
|
|
514
514
|
});
|
|
515
|
-
this.initialize().catch(
|
|
515
|
+
this.initialize().catch(err => {
|
|
516
516
|
throw err;
|
|
517
517
|
});
|
|
518
518
|
this._log.info('collectUserEvent request %j', request);
|
|
@@ -555,7 +555,7 @@ class UserEventServiceClient {
|
|
|
555
555
|
this._gaxModule.routingHeader.fromParams({
|
|
556
556
|
parent: request.parent ?? '',
|
|
557
557
|
});
|
|
558
|
-
this.initialize().catch(
|
|
558
|
+
this.initialize().catch(err => {
|
|
559
559
|
throw err;
|
|
560
560
|
});
|
|
561
561
|
const wrappedCallback = callback
|
|
@@ -607,7 +607,7 @@ class UserEventServiceClient {
|
|
|
607
607
|
this._gaxModule.routingHeader.fromParams({
|
|
608
608
|
parent: request.parent ?? '',
|
|
609
609
|
});
|
|
610
|
-
this.initialize().catch(
|
|
610
|
+
this.initialize().catch(err => {
|
|
611
611
|
throw err;
|
|
612
612
|
});
|
|
613
613
|
const wrappedCallback = callback
|
|
@@ -3174,11 +3174,11 @@ class UserEventServiceClient {
|
|
|
3174
3174
|
*/
|
|
3175
3175
|
close() {
|
|
3176
3176
|
if (this.userEventServiceStub && !this._terminated) {
|
|
3177
|
-
return this.userEventServiceStub.then(
|
|
3177
|
+
return this.userEventServiceStub.then(stub => {
|
|
3178
3178
|
this._log.info('ending gRPC channel');
|
|
3179
3179
|
this._terminated = true;
|
|
3180
3180
|
stub.close();
|
|
3181
|
-
this.locationsClient.close().catch(
|
|
3181
|
+
this.locationsClient.close().catch(err => {
|
|
3182
3182
|
throw err;
|
|
3183
3183
|
});
|
|
3184
3184
|
void this.operationsClient.close();
|
|
@@ -253,7 +253,7 @@ class AclConfigServiceClient {
|
|
|
253
253
|
// and create an API call method for each.
|
|
254
254
|
const aclConfigServiceStubMethods = ['updateAclConfig', 'getAclConfig'];
|
|
255
255
|
for (const methodName of aclConfigServiceStubMethods) {
|
|
256
|
-
const callPromise = this.aclConfigServiceStub.then(
|
|
256
|
+
const callPromise = this.aclConfigServiceStub.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 AclConfigServiceClient {
|
|
|
349
349
|
this._gaxModule.routingHeader.fromParams({
|
|
350
350
|
'acl_config.name': request.aclConfig.name ?? '',
|
|
351
351
|
});
|
|
352
|
-
this.initialize().catch(
|
|
352
|
+
this.initialize().catch(err => {
|
|
353
353
|
throw err;
|
|
354
354
|
});
|
|
355
355
|
this._log.info('updateAclConfig request %j', request);
|
|
@@ -392,7 +392,7 @@ class AclConfigServiceClient {
|
|
|
392
392
|
this._gaxModule.routingHeader.fromParams({
|
|
393
393
|
name: request.name ?? '',
|
|
394
394
|
});
|
|
395
|
-
this.initialize().catch(
|
|
395
|
+
this.initialize().catch(err => {
|
|
396
396
|
throw err;
|
|
397
397
|
});
|
|
398
398
|
this._log.info('getAclConfig request %j', request);
|
|
@@ -3401,11 +3401,11 @@ class AclConfigServiceClient {
|
|
|
3401
3401
|
*/
|
|
3402
3402
|
close() {
|
|
3403
3403
|
if (this.aclConfigServiceStub && !this._terminated) {
|
|
3404
|
-
return this.aclConfigServiceStub.then(
|
|
3404
|
+
return this.aclConfigServiceStub.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
|
});
|
|
@@ -272,7 +272,7 @@ class AssistantServiceClient {
|
|
|
272
272
|
'listAssistants',
|
|
273
273
|
];
|
|
274
274
|
for (const methodName of assistantServiceStubMethods) {
|
|
275
|
-
const callPromise = this.assistantServiceStub.then(
|
|
275
|
+
const callPromise = this.assistantServiceStub.then(stub => (...args) => {
|
|
276
276
|
if (this._terminated) {
|
|
277
277
|
if (methodName in this.descriptors.stream) {
|
|
278
278
|
const stream = new stream_1.PassThrough({ objectMode: true });
|
|
@@ -378,7 +378,7 @@ class AssistantServiceClient {
|
|
|
378
378
|
this._gaxModule.routingHeader.fromParams({
|
|
379
379
|
parent: request.parent ?? '',
|
|
380
380
|
});
|
|
381
|
-
this.initialize().catch(
|
|
381
|
+
this.initialize().catch(err => {
|
|
382
382
|
throw err;
|
|
383
383
|
});
|
|
384
384
|
this._log.info('createAssistant request %j', request);
|
|
@@ -421,7 +421,7 @@ class AssistantServiceClient {
|
|
|
421
421
|
this._gaxModule.routingHeader.fromParams({
|
|
422
422
|
name: request.name ?? '',
|
|
423
423
|
});
|
|
424
|
-
this.initialize().catch(
|
|
424
|
+
this.initialize().catch(err => {
|
|
425
425
|
throw err;
|
|
426
426
|
});
|
|
427
427
|
this._log.info('deleteAssistant request %j', request);
|
|
@@ -464,7 +464,7 @@ class AssistantServiceClient {
|
|
|
464
464
|
this._gaxModule.routingHeader.fromParams({
|
|
465
465
|
'assistant.name': request.assistant.name ?? '',
|
|
466
466
|
});
|
|
467
|
-
this.initialize().catch(
|
|
467
|
+
this.initialize().catch(err => {
|
|
468
468
|
throw err;
|
|
469
469
|
});
|
|
470
470
|
this._log.info('updateAssistant request %j', request);
|
|
@@ -507,7 +507,7 @@ class AssistantServiceClient {
|
|
|
507
507
|
this._gaxModule.routingHeader.fromParams({
|
|
508
508
|
name: request.name ?? '',
|
|
509
509
|
});
|
|
510
|
-
this.initialize().catch(
|
|
510
|
+
this.initialize().catch(err => {
|
|
511
511
|
throw err;
|
|
512
512
|
});
|
|
513
513
|
this._log.info('getAssistant request %j', request);
|
|
@@ -583,7 +583,7 @@ class AssistantServiceClient {
|
|
|
583
583
|
this._gaxModule.routingHeader.fromParams({
|
|
584
584
|
name: request.name ?? '',
|
|
585
585
|
});
|
|
586
|
-
this.initialize().catch(
|
|
586
|
+
this.initialize().catch(err => {
|
|
587
587
|
throw err;
|
|
588
588
|
});
|
|
589
589
|
this._log.info('streamAssist stream %j', options);
|
|
@@ -606,7 +606,7 @@ class AssistantServiceClient {
|
|
|
606
606
|
this._gaxModule.routingHeader.fromParams({
|
|
607
607
|
parent: request.parent ?? '',
|
|
608
608
|
});
|
|
609
|
-
this.initialize().catch(
|
|
609
|
+
this.initialize().catch(err => {
|
|
610
610
|
throw err;
|
|
611
611
|
});
|
|
612
612
|
const wrappedCallback = callback
|
|
@@ -668,7 +668,7 @@ class AssistantServiceClient {
|
|
|
668
668
|
});
|
|
669
669
|
const defaultCallSettings = this._defaults['listAssistants'];
|
|
670
670
|
const callSettings = defaultCallSettings.merge(options);
|
|
671
|
-
this.initialize().catch(
|
|
671
|
+
this.initialize().catch(err => {
|
|
672
672
|
throw err;
|
|
673
673
|
});
|
|
674
674
|
this._log.info('listAssistants stream %j', request);
|
|
@@ -722,7 +722,7 @@ class AssistantServiceClient {
|
|
|
722
722
|
});
|
|
723
723
|
const defaultCallSettings = this._defaults['listAssistants'];
|
|
724
724
|
const callSettings = defaultCallSettings.merge(options);
|
|
725
|
-
this.initialize().catch(
|
|
725
|
+
this.initialize().catch(err => {
|
|
726
726
|
throw err;
|
|
727
727
|
});
|
|
728
728
|
this._log.info('listAssistants iterate %j', request);
|
|
@@ -3711,11 +3711,11 @@ class AssistantServiceClient {
|
|
|
3711
3711
|
*/
|
|
3712
3712
|
close() {
|
|
3713
3713
|
if (this.assistantServiceStub && !this._terminated) {
|
|
3714
|
-
return this.assistantServiceStub.then(
|
|
3714
|
+
return this.assistantServiceStub.then(stub => {
|
|
3715
3715
|
this._log.info('ending gRPC channel');
|
|
3716
3716
|
this._terminated = true;
|
|
3717
3717
|
stub.close();
|
|
3718
|
-
this.locationsClient.close().catch(
|
|
3718
|
+
this.locationsClient.close().catch(err => {
|
|
3719
3719
|
throw err;
|
|
3720
3720
|
});
|
|
3721
3721
|
});
|
|
@@ -394,7 +394,7 @@ class CmekConfigServiceClient {
|
|
|
394
394
|
'deleteCmekConfig',
|
|
395
395
|
];
|
|
396
396
|
for (const methodName of cmekConfigServiceStubMethods) {
|
|
397
|
-
const callPromise = this.cmekConfigServiceStub.then(
|
|
397
|
+
const callPromise = this.cmekConfigServiceStub.then(stub => (...args) => {
|
|
398
398
|
if (this._terminated) {
|
|
399
399
|
return Promise.reject('The client has already been closed.');
|
|
400
400
|
}
|
|
@@ -490,7 +490,7 @@ class CmekConfigServiceClient {
|
|
|
490
490
|
this._gaxModule.routingHeader.fromParams({
|
|
491
491
|
name: request.name ?? '',
|
|
492
492
|
});
|
|
493
|
-
this.initialize().catch(
|
|
493
|
+
this.initialize().catch(err => {
|
|
494
494
|
throw err;
|
|
495
495
|
});
|
|
496
496
|
this._log.info('getCmekConfig request %j', request);
|
|
@@ -533,7 +533,7 @@ class CmekConfigServiceClient {
|
|
|
533
533
|
this._gaxModule.routingHeader.fromParams({
|
|
534
534
|
parent: request.parent ?? '',
|
|
535
535
|
});
|
|
536
|
-
this.initialize().catch(
|
|
536
|
+
this.initialize().catch(err => {
|
|
537
537
|
throw err;
|
|
538
538
|
});
|
|
539
539
|
this._log.info('listCmekConfigs request %j', request);
|
|
@@ -576,7 +576,7 @@ class CmekConfigServiceClient {
|
|
|
576
576
|
this._gaxModule.routingHeader.fromParams({
|
|
577
577
|
'config.name': request.config.name ?? '',
|
|
578
578
|
});
|
|
579
|
-
this.initialize().catch(
|
|
579
|
+
this.initialize().catch(err => {
|
|
580
580
|
throw err;
|
|
581
581
|
});
|
|
582
582
|
const wrappedCallback = callback
|
|
@@ -628,7 +628,7 @@ class CmekConfigServiceClient {
|
|
|
628
628
|
this._gaxModule.routingHeader.fromParams({
|
|
629
629
|
name: request.name ?? '',
|
|
630
630
|
});
|
|
631
|
-
this.initialize().catch(
|
|
631
|
+
this.initialize().catch(err => {
|
|
632
632
|
throw err;
|
|
633
633
|
});
|
|
634
634
|
const wrappedCallback = callback
|
|
@@ -3989,11 +3989,11 @@ class CmekConfigServiceClient {
|
|
|
3989
3989
|
*/
|
|
3990
3990
|
close() {
|
|
3991
3991
|
if (this.cmekConfigServiceStub && !this._terminated) {
|
|
3992
|
-
return this.cmekConfigServiceStub.then(
|
|
3992
|
+
return this.cmekConfigServiceStub.then(stub => {
|
|
3993
3993
|
this._log.info('ending gRPC channel');
|
|
3994
3994
|
this._terminated = true;
|
|
3995
3995
|
stub.close();
|
|
3996
|
-
this.locationsClient.close().catch(
|
|
3996
|
+
this.locationsClient.close().catch(err => {
|
|
3997
3997
|
throw err;
|
|
3998
3998
|
});
|
|
3999
3999
|
void this.operationsClient.close();
|
|
@@ -403,7 +403,7 @@ class CompletionServiceClient {
|
|
|
403
403
|
'removeSuggestion',
|
|
404
404
|
];
|
|
405
405
|
for (const methodName of completionServiceStubMethods) {
|
|
406
|
-
const callPromise = this.completionServiceStub.then(
|
|
406
|
+
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
|
407
407
|
if (this._terminated) {
|
|
408
408
|
return Promise.reject('The client has already been closed.');
|
|
409
409
|
}
|
|
@@ -501,7 +501,7 @@ class CompletionServiceClient {
|
|
|
501
501
|
this._gaxModule.routingHeader.fromParams({
|
|
502
502
|
data_store: request.dataStore ?? '',
|
|
503
503
|
});
|
|
504
|
-
this.initialize().catch(
|
|
504
|
+
this.initialize().catch(err => {
|
|
505
505
|
throw err;
|
|
506
506
|
});
|
|
507
507
|
this._log.info('completeQuery request %j', request);
|
|
@@ -544,7 +544,7 @@ class CompletionServiceClient {
|
|
|
544
544
|
this._gaxModule.routingHeader.fromParams({
|
|
545
545
|
completion_config: request.completionConfig ?? '',
|
|
546
546
|
});
|
|
547
|
-
this.initialize().catch(
|
|
547
|
+
this.initialize().catch(err => {
|
|
548
548
|
throw err;
|
|
549
549
|
});
|
|
550
550
|
this._log.info('advancedCompleteQuery request %j', request);
|
|
@@ -587,7 +587,7 @@ class CompletionServiceClient {
|
|
|
587
587
|
this._gaxModule.routingHeader.fromParams({
|
|
588
588
|
completion_config: request.completionConfig ?? '',
|
|
589
589
|
});
|
|
590
|
-
this.initialize().catch(
|
|
590
|
+
this.initialize().catch(err => {
|
|
591
591
|
throw err;
|
|
592
592
|
});
|
|
593
593
|
this._log.info('removeSuggestion request %j', request);
|
|
@@ -630,7 +630,7 @@ class CompletionServiceClient {
|
|
|
630
630
|
this._gaxModule.routingHeader.fromParams({
|
|
631
631
|
parent: request.parent ?? '',
|
|
632
632
|
});
|
|
633
|
-
this.initialize().catch(
|
|
633
|
+
this.initialize().catch(err => {
|
|
634
634
|
throw err;
|
|
635
635
|
});
|
|
636
636
|
const wrappedCallback = callback
|
|
@@ -682,7 +682,7 @@ class CompletionServiceClient {
|
|
|
682
682
|
this._gaxModule.routingHeader.fromParams({
|
|
683
683
|
parent: request.parent ?? '',
|
|
684
684
|
});
|
|
685
|
-
this.initialize().catch(
|
|
685
|
+
this.initialize().catch(err => {
|
|
686
686
|
throw err;
|
|
687
687
|
});
|
|
688
688
|
const wrappedCallback = callback
|
|
@@ -734,7 +734,7 @@ class CompletionServiceClient {
|
|
|
734
734
|
this._gaxModule.routingHeader.fromParams({
|
|
735
735
|
parent: request.parent ?? '',
|
|
736
736
|
});
|
|
737
|
-
this.initialize().catch(
|
|
737
|
+
this.initialize().catch(err => {
|
|
738
738
|
throw err;
|
|
739
739
|
});
|
|
740
740
|
const wrappedCallback = callback
|
|
@@ -786,7 +786,7 @@ class CompletionServiceClient {
|
|
|
786
786
|
this._gaxModule.routingHeader.fromParams({
|
|
787
787
|
parent: request.parent ?? '',
|
|
788
788
|
});
|
|
789
|
-
this.initialize().catch(
|
|
789
|
+
this.initialize().catch(err => {
|
|
790
790
|
throw err;
|
|
791
791
|
});
|
|
792
792
|
const wrappedCallback = callback
|
|
@@ -4143,11 +4143,11 @@ class CompletionServiceClient {
|
|
|
4143
4143
|
*/
|
|
4144
4144
|
close() {
|
|
4145
4145
|
if (this.completionServiceStub && !this._terminated) {
|
|
4146
|
-
return this.completionServiceStub.then(
|
|
4146
|
+
return this.completionServiceStub.then(stub => {
|
|
4147
4147
|
this._log.info('ending gRPC channel');
|
|
4148
4148
|
this._terminated = true;
|
|
4149
4149
|
stub.close();
|
|
4150
|
-
this.locationsClient.close().catch(
|
|
4150
|
+
this.locationsClient.close().catch(err => {
|
|
4151
4151
|
throw err;
|
|
4152
4152
|
});
|
|
4153
4153
|
void this.operationsClient.close();
|
|
@@ -269,7 +269,7 @@ class ControlServiceClient {
|
|
|
269
269
|
'listControls',
|
|
270
270
|
];
|
|
271
271
|
for (const methodName of controlServiceStubMethods) {
|
|
272
|
-
const callPromise = this.controlServiceStub.then(
|
|
272
|
+
const callPromise = this.controlServiceStub.then(stub => (...args) => {
|
|
273
273
|
if (this._terminated) {
|
|
274
274
|
return Promise.reject('The client has already been closed.');
|
|
275
275
|
}
|
|
@@ -365,7 +365,7 @@ class ControlServiceClient {
|
|
|
365
365
|
this._gaxModule.routingHeader.fromParams({
|
|
366
366
|
parent: request.parent ?? '',
|
|
367
367
|
});
|
|
368
|
-
this.initialize().catch(
|
|
368
|
+
this.initialize().catch(err => {
|
|
369
369
|
throw err;
|
|
370
370
|
});
|
|
371
371
|
this._log.info('createControl request %j', request);
|
|
@@ -408,7 +408,7 @@ class ControlServiceClient {
|
|
|
408
408
|
this._gaxModule.routingHeader.fromParams({
|
|
409
409
|
name: request.name ?? '',
|
|
410
410
|
});
|
|
411
|
-
this.initialize().catch(
|
|
411
|
+
this.initialize().catch(err => {
|
|
412
412
|
throw err;
|
|
413
413
|
});
|
|
414
414
|
this._log.info('deleteControl request %j', request);
|
|
@@ -451,7 +451,7 @@ class ControlServiceClient {
|
|
|
451
451
|
this._gaxModule.routingHeader.fromParams({
|
|
452
452
|
'control.name': request.control.name ?? '',
|
|
453
453
|
});
|
|
454
|
-
this.initialize().catch(
|
|
454
|
+
this.initialize().catch(err => {
|
|
455
455
|
throw err;
|
|
456
456
|
});
|
|
457
457
|
this._log.info('updateControl request %j', request);
|
|
@@ -494,7 +494,7 @@ class ControlServiceClient {
|
|
|
494
494
|
this._gaxModule.routingHeader.fromParams({
|
|
495
495
|
name: request.name ?? '',
|
|
496
496
|
});
|
|
497
|
-
this.initialize().catch(
|
|
497
|
+
this.initialize().catch(err => {
|
|
498
498
|
throw err;
|
|
499
499
|
});
|
|
500
500
|
this._log.info('getControl request %j', request);
|
|
@@ -537,7 +537,7 @@ class ControlServiceClient {
|
|
|
537
537
|
this._gaxModule.routingHeader.fromParams({
|
|
538
538
|
parent: request.parent ?? '',
|
|
539
539
|
});
|
|
540
|
-
this.initialize().catch(
|
|
540
|
+
this.initialize().catch(err => {
|
|
541
541
|
throw err;
|
|
542
542
|
});
|
|
543
543
|
const wrappedCallback = callback
|
|
@@ -597,7 +597,7 @@ class ControlServiceClient {
|
|
|
597
597
|
});
|
|
598
598
|
const defaultCallSettings = this._defaults['listControls'];
|
|
599
599
|
const callSettings = defaultCallSettings.merge(options);
|
|
600
|
-
this.initialize().catch(
|
|
600
|
+
this.initialize().catch(err => {
|
|
601
601
|
throw err;
|
|
602
602
|
});
|
|
603
603
|
this._log.info('listControls stream %j', request);
|
|
@@ -649,7 +649,7 @@ class ControlServiceClient {
|
|
|
649
649
|
});
|
|
650
650
|
const defaultCallSettings = this._defaults['listControls'];
|
|
651
651
|
const callSettings = defaultCallSettings.merge(options);
|
|
652
|
-
this.initialize().catch(
|
|
652
|
+
this.initialize().catch(err => {
|
|
653
653
|
throw err;
|
|
654
654
|
});
|
|
655
655
|
this._log.info('listControls iterate %j', request);
|
|
@@ -3671,11 +3671,11 @@ class ControlServiceClient {
|
|
|
3671
3671
|
*/
|
|
3672
3672
|
close() {
|
|
3673
3673
|
if (this.controlServiceStub && !this._terminated) {
|
|
3674
|
-
return this.controlServiceStub.then(
|
|
3674
|
+
return this.controlServiceStub.then(stub => {
|
|
3675
3675
|
this._log.info('ending gRPC channel');
|
|
3676
3676
|
this._terminated = true;
|
|
3677
3677
|
stub.close();
|
|
3678
|
-
this.locationsClient.close().catch(
|
|
3678
|
+
this.locationsClient.close().catch(err => {
|
|
3679
3679
|
throw err;
|
|
3680
3680
|
});
|
|
3681
3681
|
});
|