@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
|
@@ -264,7 +264,7 @@ class ConversationalSearchServiceClient {
|
|
|
264
264
|
'listSessions',
|
|
265
265
|
];
|
|
266
266
|
for (const methodName of conversationalSearchServiceStubMethods) {
|
|
267
|
-
const callPromise = this.conversationalSearchServiceStub.then(
|
|
267
|
+
const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
|
|
268
268
|
if (this._terminated) {
|
|
269
269
|
return Promise.reject('The client has already been closed.');
|
|
270
270
|
}
|
|
@@ -356,7 +356,7 @@ class ConversationalSearchServiceClient {
|
|
|
356
356
|
this._gaxModule.routingHeader.fromParams({
|
|
357
357
|
name: request.name ?? '',
|
|
358
358
|
});
|
|
359
|
-
this.initialize().catch(
|
|
359
|
+
this.initialize().catch(err => {
|
|
360
360
|
throw err;
|
|
361
361
|
});
|
|
362
362
|
this._log.info('converseConversation request %j', request);
|
|
@@ -399,7 +399,7 @@ class ConversationalSearchServiceClient {
|
|
|
399
399
|
this._gaxModule.routingHeader.fromParams({
|
|
400
400
|
parent: request.parent ?? '',
|
|
401
401
|
});
|
|
402
|
-
this.initialize().catch(
|
|
402
|
+
this.initialize().catch(err => {
|
|
403
403
|
throw err;
|
|
404
404
|
});
|
|
405
405
|
this._log.info('createConversation request %j', request);
|
|
@@ -442,7 +442,7 @@ class ConversationalSearchServiceClient {
|
|
|
442
442
|
this._gaxModule.routingHeader.fromParams({
|
|
443
443
|
name: request.name ?? '',
|
|
444
444
|
});
|
|
445
|
-
this.initialize().catch(
|
|
445
|
+
this.initialize().catch(err => {
|
|
446
446
|
throw err;
|
|
447
447
|
});
|
|
448
448
|
this._log.info('deleteConversation request %j', request);
|
|
@@ -485,7 +485,7 @@ class ConversationalSearchServiceClient {
|
|
|
485
485
|
this._gaxModule.routingHeader.fromParams({
|
|
486
486
|
'conversation.name': request.conversation.name ?? '',
|
|
487
487
|
});
|
|
488
|
-
this.initialize().catch(
|
|
488
|
+
this.initialize().catch(err => {
|
|
489
489
|
throw err;
|
|
490
490
|
});
|
|
491
491
|
this._log.info('updateConversation request %j', request);
|
|
@@ -528,7 +528,7 @@ class ConversationalSearchServiceClient {
|
|
|
528
528
|
this._gaxModule.routingHeader.fromParams({
|
|
529
529
|
name: request.name ?? '',
|
|
530
530
|
});
|
|
531
|
-
this.initialize().catch(
|
|
531
|
+
this.initialize().catch(err => {
|
|
532
532
|
throw err;
|
|
533
533
|
});
|
|
534
534
|
this._log.info('getConversation request %j', request);
|
|
@@ -571,7 +571,7 @@ class ConversationalSearchServiceClient {
|
|
|
571
571
|
this._gaxModule.routingHeader.fromParams({
|
|
572
572
|
serving_config: request.servingConfig ?? '',
|
|
573
573
|
});
|
|
574
|
-
this.initialize().catch(
|
|
574
|
+
this.initialize().catch(err => {
|
|
575
575
|
throw err;
|
|
576
576
|
});
|
|
577
577
|
this._log.info('answerQuery request %j', request);
|
|
@@ -614,7 +614,7 @@ class ConversationalSearchServiceClient {
|
|
|
614
614
|
this._gaxModule.routingHeader.fromParams({
|
|
615
615
|
name: request.name ?? '',
|
|
616
616
|
});
|
|
617
|
-
this.initialize().catch(
|
|
617
|
+
this.initialize().catch(err => {
|
|
618
618
|
throw err;
|
|
619
619
|
});
|
|
620
620
|
this._log.info('getAnswer request %j', request);
|
|
@@ -657,7 +657,7 @@ class ConversationalSearchServiceClient {
|
|
|
657
657
|
this._gaxModule.routingHeader.fromParams({
|
|
658
658
|
parent: request.parent ?? '',
|
|
659
659
|
});
|
|
660
|
-
this.initialize().catch(
|
|
660
|
+
this.initialize().catch(err => {
|
|
661
661
|
throw err;
|
|
662
662
|
});
|
|
663
663
|
this._log.info('createSession request %j', request);
|
|
@@ -700,7 +700,7 @@ class ConversationalSearchServiceClient {
|
|
|
700
700
|
this._gaxModule.routingHeader.fromParams({
|
|
701
701
|
name: request.name ?? '',
|
|
702
702
|
});
|
|
703
|
-
this.initialize().catch(
|
|
703
|
+
this.initialize().catch(err => {
|
|
704
704
|
throw err;
|
|
705
705
|
});
|
|
706
706
|
this._log.info('deleteSession request %j', request);
|
|
@@ -743,7 +743,7 @@ class ConversationalSearchServiceClient {
|
|
|
743
743
|
this._gaxModule.routingHeader.fromParams({
|
|
744
744
|
'session.name': request.session.name ?? '',
|
|
745
745
|
});
|
|
746
|
-
this.initialize().catch(
|
|
746
|
+
this.initialize().catch(err => {
|
|
747
747
|
throw err;
|
|
748
748
|
});
|
|
749
749
|
this._log.info('updateSession request %j', request);
|
|
@@ -786,7 +786,7 @@ class ConversationalSearchServiceClient {
|
|
|
786
786
|
this._gaxModule.routingHeader.fromParams({
|
|
787
787
|
name: request.name ?? '',
|
|
788
788
|
});
|
|
789
|
-
this.initialize().catch(
|
|
789
|
+
this.initialize().catch(err => {
|
|
790
790
|
throw err;
|
|
791
791
|
});
|
|
792
792
|
this._log.info('getSession request %j', request);
|
|
@@ -829,7 +829,7 @@ class ConversationalSearchServiceClient {
|
|
|
829
829
|
this._gaxModule.routingHeader.fromParams({
|
|
830
830
|
parent: request.parent ?? '',
|
|
831
831
|
});
|
|
832
|
-
this.initialize().catch(
|
|
832
|
+
this.initialize().catch(err => {
|
|
833
833
|
throw err;
|
|
834
834
|
});
|
|
835
835
|
const wrappedCallback = callback
|
|
@@ -898,7 +898,7 @@ class ConversationalSearchServiceClient {
|
|
|
898
898
|
});
|
|
899
899
|
const defaultCallSettings = this._defaults['listConversations'];
|
|
900
900
|
const callSettings = defaultCallSettings.merge(options);
|
|
901
|
-
this.initialize().catch(
|
|
901
|
+
this.initialize().catch(err => {
|
|
902
902
|
throw err;
|
|
903
903
|
});
|
|
904
904
|
this._log.info('listConversations stream %j', request);
|
|
@@ -959,7 +959,7 @@ class ConversationalSearchServiceClient {
|
|
|
959
959
|
});
|
|
960
960
|
const defaultCallSettings = this._defaults['listConversations'];
|
|
961
961
|
const callSettings = defaultCallSettings.merge(options);
|
|
962
|
-
this.initialize().catch(
|
|
962
|
+
this.initialize().catch(err => {
|
|
963
963
|
throw err;
|
|
964
964
|
});
|
|
965
965
|
this._log.info('listConversations iterate %j', request);
|
|
@@ -982,7 +982,7 @@ class ConversationalSearchServiceClient {
|
|
|
982
982
|
this._gaxModule.routingHeader.fromParams({
|
|
983
983
|
parent: request.parent ?? '',
|
|
984
984
|
});
|
|
985
|
-
this.initialize().catch(
|
|
985
|
+
this.initialize().catch(err => {
|
|
986
986
|
throw err;
|
|
987
987
|
});
|
|
988
988
|
const wrappedCallback = callback
|
|
@@ -1068,7 +1068,7 @@ class ConversationalSearchServiceClient {
|
|
|
1068
1068
|
});
|
|
1069
1069
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
1070
1070
|
const callSettings = defaultCallSettings.merge(options);
|
|
1071
|
-
this.initialize().catch(
|
|
1071
|
+
this.initialize().catch(err => {
|
|
1072
1072
|
throw err;
|
|
1073
1073
|
});
|
|
1074
1074
|
this._log.info('listSessions stream %j', request);
|
|
@@ -1146,7 +1146,7 @@ class ConversationalSearchServiceClient {
|
|
|
1146
1146
|
});
|
|
1147
1147
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
1148
1148
|
const callSettings = defaultCallSettings.merge(options);
|
|
1149
|
-
this.initialize().catch(
|
|
1149
|
+
this.initialize().catch(err => {
|
|
1150
1150
|
throw err;
|
|
1151
1151
|
});
|
|
1152
1152
|
this._log.info('listSessions iterate %j', request);
|
|
@@ -3504,11 +3504,11 @@ class ConversationalSearchServiceClient {
|
|
|
3504
3504
|
*/
|
|
3505
3505
|
close() {
|
|
3506
3506
|
if (this.conversationalSearchServiceStub && !this._terminated) {
|
|
3507
|
-
return this.conversationalSearchServiceStub.then(
|
|
3507
|
+
return this.conversationalSearchServiceStub.then(stub => {
|
|
3508
3508
|
this._log.info('ending gRPC channel');
|
|
3509
3509
|
this._terminated = true;
|
|
3510
3510
|
stub.close();
|
|
3511
|
-
this.locationsClient.close().catch(
|
|
3511
|
+
this.locationsClient.close().catch(err => {
|
|
3512
3512
|
throw err;
|
|
3513
3513
|
});
|
|
3514
3514
|
});
|
|
@@ -388,7 +388,7 @@ class DataStoreServiceClient {
|
|
|
388
388
|
'updateDocumentProcessingConfig',
|
|
389
389
|
];
|
|
390
390
|
for (const methodName of dataStoreServiceStubMethods) {
|
|
391
|
-
const callPromise = this.dataStoreServiceStub.then(
|
|
391
|
+
const callPromise = this.dataStoreServiceStub.then(stub => (...args) => {
|
|
392
392
|
if (this._terminated) {
|
|
393
393
|
return Promise.reject('The client has already been closed.');
|
|
394
394
|
}
|
|
@@ -482,7 +482,7 @@ class DataStoreServiceClient {
|
|
|
482
482
|
this._gaxModule.routingHeader.fromParams({
|
|
483
483
|
name: request.name ?? '',
|
|
484
484
|
});
|
|
485
|
-
this.initialize().catch(
|
|
485
|
+
this.initialize().catch(err => {
|
|
486
486
|
throw err;
|
|
487
487
|
});
|
|
488
488
|
this._log.info('getDataStore request %j', request);
|
|
@@ -525,7 +525,7 @@ class DataStoreServiceClient {
|
|
|
525
525
|
this._gaxModule.routingHeader.fromParams({
|
|
526
526
|
'data_store.name': request.dataStore.name ?? '',
|
|
527
527
|
});
|
|
528
|
-
this.initialize().catch(
|
|
528
|
+
this.initialize().catch(err => {
|
|
529
529
|
throw err;
|
|
530
530
|
});
|
|
531
531
|
this._log.info('updateDataStore request %j', request);
|
|
@@ -568,7 +568,7 @@ class DataStoreServiceClient {
|
|
|
568
568
|
this._gaxModule.routingHeader.fromParams({
|
|
569
569
|
name: request.name ?? '',
|
|
570
570
|
});
|
|
571
|
-
this.initialize().catch(
|
|
571
|
+
this.initialize().catch(err => {
|
|
572
572
|
throw err;
|
|
573
573
|
});
|
|
574
574
|
this._log.info('getDocumentProcessingConfig request %j', request);
|
|
@@ -611,7 +611,7 @@ class DataStoreServiceClient {
|
|
|
611
611
|
this._gaxModule.routingHeader.fromParams({
|
|
612
612
|
'document_processing_config.name': request.documentProcessingConfig.name ?? '',
|
|
613
613
|
});
|
|
614
|
-
this.initialize().catch(
|
|
614
|
+
this.initialize().catch(err => {
|
|
615
615
|
throw err;
|
|
616
616
|
});
|
|
617
617
|
this._log.info('updateDocumentProcessingConfig request %j', request);
|
|
@@ -654,7 +654,7 @@ class DataStoreServiceClient {
|
|
|
654
654
|
this._gaxModule.routingHeader.fromParams({
|
|
655
655
|
parent: request.parent ?? '',
|
|
656
656
|
});
|
|
657
|
-
this.initialize().catch(
|
|
657
|
+
this.initialize().catch(err => {
|
|
658
658
|
throw err;
|
|
659
659
|
});
|
|
660
660
|
const wrappedCallback = callback
|
|
@@ -706,7 +706,7 @@ class DataStoreServiceClient {
|
|
|
706
706
|
this._gaxModule.routingHeader.fromParams({
|
|
707
707
|
name: request.name ?? '',
|
|
708
708
|
});
|
|
709
|
-
this.initialize().catch(
|
|
709
|
+
this.initialize().catch(err => {
|
|
710
710
|
throw err;
|
|
711
711
|
});
|
|
712
712
|
const wrappedCallback = callback
|
|
@@ -758,7 +758,7 @@ class DataStoreServiceClient {
|
|
|
758
758
|
this._gaxModule.routingHeader.fromParams({
|
|
759
759
|
parent: request.parent ?? '',
|
|
760
760
|
});
|
|
761
|
-
this.initialize().catch(
|
|
761
|
+
this.initialize().catch(err => {
|
|
762
762
|
throw err;
|
|
763
763
|
});
|
|
764
764
|
const wrappedCallback = callback
|
|
@@ -830,7 +830,7 @@ class DataStoreServiceClient {
|
|
|
830
830
|
});
|
|
831
831
|
const defaultCallSettings = this._defaults['listDataStores'];
|
|
832
832
|
const callSettings = defaultCallSettings.merge(options);
|
|
833
|
-
this.initialize().catch(
|
|
833
|
+
this.initialize().catch(err => {
|
|
834
834
|
throw err;
|
|
835
835
|
});
|
|
836
836
|
this._log.info('listDataStores stream %j', request);
|
|
@@ -894,7 +894,7 @@ class DataStoreServiceClient {
|
|
|
894
894
|
});
|
|
895
895
|
const defaultCallSettings = this._defaults['listDataStores'];
|
|
896
896
|
const callSettings = defaultCallSettings.merge(options);
|
|
897
|
-
this.initialize().catch(
|
|
897
|
+
this.initialize().catch(err => {
|
|
898
898
|
throw err;
|
|
899
899
|
});
|
|
900
900
|
this._log.info('listDataStores iterate %j', request);
|
|
@@ -3480,11 +3480,11 @@ class DataStoreServiceClient {
|
|
|
3480
3480
|
*/
|
|
3481
3481
|
close() {
|
|
3482
3482
|
if (this.dataStoreServiceStub && !this._terminated) {
|
|
3483
|
-
return this.dataStoreServiceStub.then(
|
|
3483
|
+
return this.dataStoreServiceStub.then(stub => {
|
|
3484
3484
|
this._log.info('ending gRPC channel');
|
|
3485
3485
|
this._terminated = true;
|
|
3486
3486
|
stub.close();
|
|
3487
|
-
this.locationsClient.close().catch(
|
|
3487
|
+
this.locationsClient.close().catch(err => {
|
|
3488
3488
|
throw err;
|
|
3489
3489
|
});
|
|
3490
3490
|
void this.operationsClient.close();
|
|
@@ -392,7 +392,7 @@ class DocumentServiceClient {
|
|
|
392
392
|
'batchGetDocumentsMetadata',
|
|
393
393
|
];
|
|
394
394
|
for (const methodName of documentServiceStubMethods) {
|
|
395
|
-
const callPromise = this.documentServiceStub.then(
|
|
395
|
+
const callPromise = this.documentServiceStub.then(stub => (...args) => {
|
|
396
396
|
if (this._terminated) {
|
|
397
397
|
return Promise.reject('The client has already been closed.');
|
|
398
398
|
}
|
|
@@ -486,7 +486,7 @@ class DocumentServiceClient {
|
|
|
486
486
|
this._gaxModule.routingHeader.fromParams({
|
|
487
487
|
name: request.name ?? '',
|
|
488
488
|
});
|
|
489
|
-
this.initialize().catch(
|
|
489
|
+
this.initialize().catch(err => {
|
|
490
490
|
throw err;
|
|
491
491
|
});
|
|
492
492
|
this._log.info('getDocument request %j', request);
|
|
@@ -529,7 +529,7 @@ class DocumentServiceClient {
|
|
|
529
529
|
this._gaxModule.routingHeader.fromParams({
|
|
530
530
|
parent: request.parent ?? '',
|
|
531
531
|
});
|
|
532
|
-
this.initialize().catch(
|
|
532
|
+
this.initialize().catch(err => {
|
|
533
533
|
throw err;
|
|
534
534
|
});
|
|
535
535
|
this._log.info('createDocument request %j', request);
|
|
@@ -572,7 +572,7 @@ class DocumentServiceClient {
|
|
|
572
572
|
this._gaxModule.routingHeader.fromParams({
|
|
573
573
|
'document.name': request.document.name ?? '',
|
|
574
574
|
});
|
|
575
|
-
this.initialize().catch(
|
|
575
|
+
this.initialize().catch(err => {
|
|
576
576
|
throw err;
|
|
577
577
|
});
|
|
578
578
|
this._log.info('updateDocument request %j', request);
|
|
@@ -615,7 +615,7 @@ class DocumentServiceClient {
|
|
|
615
615
|
this._gaxModule.routingHeader.fromParams({
|
|
616
616
|
name: request.name ?? '',
|
|
617
617
|
});
|
|
618
|
-
this.initialize().catch(
|
|
618
|
+
this.initialize().catch(err => {
|
|
619
619
|
throw err;
|
|
620
620
|
});
|
|
621
621
|
this._log.info('deleteDocument request %j', request);
|
|
@@ -658,7 +658,7 @@ class DocumentServiceClient {
|
|
|
658
658
|
this._gaxModule.routingHeader.fromParams({
|
|
659
659
|
name: request.name ?? '',
|
|
660
660
|
});
|
|
661
|
-
this.initialize().catch(
|
|
661
|
+
this.initialize().catch(err => {
|
|
662
662
|
throw err;
|
|
663
663
|
});
|
|
664
664
|
this._log.info('getProcessedDocument request %j', request);
|
|
@@ -701,7 +701,7 @@ class DocumentServiceClient {
|
|
|
701
701
|
this._gaxModule.routingHeader.fromParams({
|
|
702
702
|
parent: request.parent ?? '',
|
|
703
703
|
});
|
|
704
|
-
this.initialize().catch(
|
|
704
|
+
this.initialize().catch(err => {
|
|
705
705
|
throw err;
|
|
706
706
|
});
|
|
707
707
|
this._log.info('batchGetDocumentsMetadata request %j', request);
|
|
@@ -744,7 +744,7 @@ class DocumentServiceClient {
|
|
|
744
744
|
this._gaxModule.routingHeader.fromParams({
|
|
745
745
|
parent: request.parent ?? '',
|
|
746
746
|
});
|
|
747
|
-
this.initialize().catch(
|
|
747
|
+
this.initialize().catch(err => {
|
|
748
748
|
throw err;
|
|
749
749
|
});
|
|
750
750
|
const wrappedCallback = callback
|
|
@@ -796,7 +796,7 @@ class DocumentServiceClient {
|
|
|
796
796
|
this._gaxModule.routingHeader.fromParams({
|
|
797
797
|
parent: request.parent ?? '',
|
|
798
798
|
});
|
|
799
|
-
this.initialize().catch(
|
|
799
|
+
this.initialize().catch(err => {
|
|
800
800
|
throw err;
|
|
801
801
|
});
|
|
802
802
|
const wrappedCallback = callback
|
|
@@ -848,7 +848,7 @@ class DocumentServiceClient {
|
|
|
848
848
|
this._gaxModule.routingHeader.fromParams({
|
|
849
849
|
parent: request.parent ?? '',
|
|
850
850
|
});
|
|
851
|
-
this.initialize().catch(
|
|
851
|
+
this.initialize().catch(err => {
|
|
852
852
|
throw err;
|
|
853
853
|
});
|
|
854
854
|
const wrappedCallback = callback
|
|
@@ -919,7 +919,7 @@ class DocumentServiceClient {
|
|
|
919
919
|
});
|
|
920
920
|
const defaultCallSettings = this._defaults['listDocuments'];
|
|
921
921
|
const callSettings = defaultCallSettings.merge(options);
|
|
922
|
-
this.initialize().catch(
|
|
922
|
+
this.initialize().catch(err => {
|
|
923
923
|
throw err;
|
|
924
924
|
});
|
|
925
925
|
this._log.info('listDocuments stream %j', request);
|
|
@@ -982,7 +982,7 @@ class DocumentServiceClient {
|
|
|
982
982
|
});
|
|
983
983
|
const defaultCallSettings = this._defaults['listDocuments'];
|
|
984
984
|
const callSettings = defaultCallSettings.merge(options);
|
|
985
|
-
this.initialize().catch(
|
|
985
|
+
this.initialize().catch(err => {
|
|
986
986
|
throw err;
|
|
987
987
|
});
|
|
988
988
|
this._log.info('listDocuments iterate %j', request);
|
|
@@ -3646,11 +3646,11 @@ class DocumentServiceClient {
|
|
|
3646
3646
|
*/
|
|
3647
3647
|
close() {
|
|
3648
3648
|
if (this.documentServiceStub && !this._terminated) {
|
|
3649
|
-
return this.documentServiceStub.then(
|
|
3649
|
+
return this.documentServiceStub.then(stub => {
|
|
3650
3650
|
this._log.info('ending gRPC channel');
|
|
3651
3651
|
this._terminated = true;
|
|
3652
3652
|
stub.close();
|
|
3653
|
-
this.locationsClient.close().catch(
|
|
3653
|
+
this.locationsClient.close().catch(err => {
|
|
3654
3654
|
throw err;
|
|
3655
3655
|
});
|
|
3656
3656
|
void this.operationsClient.close();
|
|
@@ -392,7 +392,7 @@ class EngineServiceClient {
|
|
|
392
392
|
'tuneEngine',
|
|
393
393
|
];
|
|
394
394
|
for (const methodName of engineServiceStubMethods) {
|
|
395
|
-
const callPromise = this.engineServiceStub.then(
|
|
395
|
+
const callPromise = this.engineServiceStub.then(stub => (...args) => {
|
|
396
396
|
if (this._terminated) {
|
|
397
397
|
return Promise.reject('The client has already been closed.');
|
|
398
398
|
}
|
|
@@ -486,7 +486,7 @@ class EngineServiceClient {
|
|
|
486
486
|
this._gaxModule.routingHeader.fromParams({
|
|
487
487
|
'engine.name': request.engine.name ?? '',
|
|
488
488
|
});
|
|
489
|
-
this.initialize().catch(
|
|
489
|
+
this.initialize().catch(err => {
|
|
490
490
|
throw err;
|
|
491
491
|
});
|
|
492
492
|
this._log.info('updateEngine request %j', request);
|
|
@@ -529,7 +529,7 @@ class EngineServiceClient {
|
|
|
529
529
|
this._gaxModule.routingHeader.fromParams({
|
|
530
530
|
name: request.name ?? '',
|
|
531
531
|
});
|
|
532
|
-
this.initialize().catch(
|
|
532
|
+
this.initialize().catch(err => {
|
|
533
533
|
throw err;
|
|
534
534
|
});
|
|
535
535
|
this._log.info('getEngine request %j', request);
|
|
@@ -572,7 +572,7 @@ class EngineServiceClient {
|
|
|
572
572
|
this._gaxModule.routingHeader.fromParams({
|
|
573
573
|
name: request.name ?? '',
|
|
574
574
|
});
|
|
575
|
-
this.initialize().catch(
|
|
575
|
+
this.initialize().catch(err => {
|
|
576
576
|
throw err;
|
|
577
577
|
});
|
|
578
578
|
this._log.info('pauseEngine request %j', request);
|
|
@@ -615,7 +615,7 @@ class EngineServiceClient {
|
|
|
615
615
|
this._gaxModule.routingHeader.fromParams({
|
|
616
616
|
name: request.name ?? '',
|
|
617
617
|
});
|
|
618
|
-
this.initialize().catch(
|
|
618
|
+
this.initialize().catch(err => {
|
|
619
619
|
throw err;
|
|
620
620
|
});
|
|
621
621
|
this._log.info('resumeEngine request %j', request);
|
|
@@ -658,7 +658,7 @@ class EngineServiceClient {
|
|
|
658
658
|
this._gaxModule.routingHeader.fromParams({
|
|
659
659
|
parent: request.parent ?? '',
|
|
660
660
|
});
|
|
661
|
-
this.initialize().catch(
|
|
661
|
+
this.initialize().catch(err => {
|
|
662
662
|
throw err;
|
|
663
663
|
});
|
|
664
664
|
const wrappedCallback = callback
|
|
@@ -710,7 +710,7 @@ class EngineServiceClient {
|
|
|
710
710
|
this._gaxModule.routingHeader.fromParams({
|
|
711
711
|
name: request.name ?? '',
|
|
712
712
|
});
|
|
713
|
-
this.initialize().catch(
|
|
713
|
+
this.initialize().catch(err => {
|
|
714
714
|
throw err;
|
|
715
715
|
});
|
|
716
716
|
const wrappedCallback = callback
|
|
@@ -762,7 +762,7 @@ class EngineServiceClient {
|
|
|
762
762
|
this._gaxModule.routingHeader.fromParams({
|
|
763
763
|
name: request.name ?? '',
|
|
764
764
|
});
|
|
765
|
-
this.initialize().catch(
|
|
765
|
+
this.initialize().catch(err => {
|
|
766
766
|
throw err;
|
|
767
767
|
});
|
|
768
768
|
const wrappedCallback = callback
|
|
@@ -814,7 +814,7 @@ class EngineServiceClient {
|
|
|
814
814
|
this._gaxModule.routingHeader.fromParams({
|
|
815
815
|
parent: request.parent ?? '',
|
|
816
816
|
});
|
|
817
|
-
this.initialize().catch(
|
|
817
|
+
this.initialize().catch(err => {
|
|
818
818
|
throw err;
|
|
819
819
|
});
|
|
820
820
|
const wrappedCallback = callback
|
|
@@ -867,7 +867,7 @@ class EngineServiceClient {
|
|
|
867
867
|
});
|
|
868
868
|
const defaultCallSettings = this._defaults['listEngines'];
|
|
869
869
|
const callSettings = defaultCallSettings.merge(options);
|
|
870
|
-
this.initialize().catch(
|
|
870
|
+
this.initialize().catch(err => {
|
|
871
871
|
throw err;
|
|
872
872
|
});
|
|
873
873
|
this._log.info('listEngines stream %j', request);
|
|
@@ -912,7 +912,7 @@ class EngineServiceClient {
|
|
|
912
912
|
});
|
|
913
913
|
const defaultCallSettings = this._defaults['listEngines'];
|
|
914
914
|
const callSettings = defaultCallSettings.merge(options);
|
|
915
|
-
this.initialize().catch(
|
|
915
|
+
this.initialize().catch(err => {
|
|
916
916
|
throw err;
|
|
917
917
|
});
|
|
918
918
|
this._log.info('listEngines iterate %j', request);
|
|
@@ -3498,11 +3498,11 @@ class EngineServiceClient {
|
|
|
3498
3498
|
*/
|
|
3499
3499
|
close() {
|
|
3500
3500
|
if (this.engineServiceStub && !this._terminated) {
|
|
3501
|
-
return this.engineServiceStub.then(
|
|
3501
|
+
return this.engineServiceStub.then(stub => {
|
|
3502
3502
|
this._log.info('ending gRPC channel');
|
|
3503
3503
|
this._terminated = true;
|
|
3504
3504
|
stub.close();
|
|
3505
|
-
this.locationsClient.close().catch(
|
|
3505
|
+
this.locationsClient.close().catch(err => {
|
|
3506
3506
|
throw err;
|
|
3507
3507
|
});
|
|
3508
3508
|
void this.operationsClient.close();
|
|
@@ -371,7 +371,7 @@ class EstimateBillingServiceClient {
|
|
|
371
371
|
// and create an API call method for each.
|
|
372
372
|
const estimateBillingServiceStubMethods = ['estimateDataSize'];
|
|
373
373
|
for (const methodName of estimateBillingServiceStubMethods) {
|
|
374
|
-
const callPromise = this.estimateBillingServiceStub.then(
|
|
374
|
+
const callPromise = this.estimateBillingServiceStub.then(stub => (...args) => {
|
|
375
375
|
if (this._terminated) {
|
|
376
376
|
return Promise.reject('The client has already been closed.');
|
|
377
377
|
}
|
|
@@ -463,7 +463,7 @@ class EstimateBillingServiceClient {
|
|
|
463
463
|
this._gaxModule.routingHeader.fromParams({
|
|
464
464
|
location: request.location ?? '',
|
|
465
465
|
});
|
|
466
|
-
this.initialize().catch(
|
|
466
|
+
this.initialize().catch(err => {
|
|
467
467
|
throw err;
|
|
468
468
|
});
|
|
469
469
|
const wrappedCallback = callback
|
|
@@ -3063,11 +3063,11 @@ class EstimateBillingServiceClient {
|
|
|
3063
3063
|
*/
|
|
3064
3064
|
close() {
|
|
3065
3065
|
if (this.estimateBillingServiceStub && !this._terminated) {
|
|
3066
|
-
return this.estimateBillingServiceStub.then(
|
|
3066
|
+
return this.estimateBillingServiceStub.then(stub => {
|
|
3067
3067
|
this._log.info('ending gRPC channel');
|
|
3068
3068
|
this._terminated = true;
|
|
3069
3069
|
stub.close();
|
|
3070
|
-
this.locationsClient.close().catch(
|
|
3070
|
+
this.locationsClient.close().catch(err => {
|
|
3071
3071
|
throw err;
|
|
3072
3072
|
});
|
|
3073
3073
|
void this.operationsClient.close();
|
|
@@ -383,7 +383,7 @@ class EvaluationServiceClient {
|
|
|
383
383
|
'listEvaluationResults',
|
|
384
384
|
];
|
|
385
385
|
for (const methodName of evaluationServiceStubMethods) {
|
|
386
|
-
const callPromise = this.evaluationServiceStub.then(
|
|
386
|
+
const callPromise = this.evaluationServiceStub.then(stub => (...args) => {
|
|
387
387
|
if (this._terminated) {
|
|
388
388
|
return Promise.reject('The client has already been closed.');
|
|
389
389
|
}
|
|
@@ -477,7 +477,7 @@ class EvaluationServiceClient {
|
|
|
477
477
|
this._gaxModule.routingHeader.fromParams({
|
|
478
478
|
name: request.name ?? '',
|
|
479
479
|
});
|
|
480
|
-
this.initialize().catch(
|
|
480
|
+
this.initialize().catch(err => {
|
|
481
481
|
throw err;
|
|
482
482
|
});
|
|
483
483
|
this._log.info('getEvaluation request %j', request);
|
|
@@ -520,7 +520,7 @@ class EvaluationServiceClient {
|
|
|
520
520
|
this._gaxModule.routingHeader.fromParams({
|
|
521
521
|
parent: request.parent ?? '',
|
|
522
522
|
});
|
|
523
|
-
this.initialize().catch(
|
|
523
|
+
this.initialize().catch(err => {
|
|
524
524
|
throw err;
|
|
525
525
|
});
|
|
526
526
|
const wrappedCallback = callback
|
|
@@ -572,7 +572,7 @@ class EvaluationServiceClient {
|
|
|
572
572
|
this._gaxModule.routingHeader.fromParams({
|
|
573
573
|
parent: request.parent ?? '',
|
|
574
574
|
});
|
|
575
|
-
this.initialize().catch(
|
|
575
|
+
this.initialize().catch(err => {
|
|
576
576
|
throw err;
|
|
577
577
|
});
|
|
578
578
|
const wrappedCallback = callback
|
|
@@ -641,7 +641,7 @@ class EvaluationServiceClient {
|
|
|
641
641
|
});
|
|
642
642
|
const defaultCallSettings = this._defaults['listEvaluations'];
|
|
643
643
|
const callSettings = defaultCallSettings.merge(options);
|
|
644
|
-
this.initialize().catch(
|
|
644
|
+
this.initialize().catch(err => {
|
|
645
645
|
throw err;
|
|
646
646
|
});
|
|
647
647
|
this._log.info('listEvaluations stream %j', request);
|
|
@@ -702,7 +702,7 @@ class EvaluationServiceClient {
|
|
|
702
702
|
});
|
|
703
703
|
const defaultCallSettings = this._defaults['listEvaluations'];
|
|
704
704
|
const callSettings = defaultCallSettings.merge(options);
|
|
705
|
-
this.initialize().catch(
|
|
705
|
+
this.initialize().catch(err => {
|
|
706
706
|
throw err;
|
|
707
707
|
});
|
|
708
708
|
this._log.info('listEvaluations iterate %j', request);
|
|
@@ -725,7 +725,7 @@ class EvaluationServiceClient {
|
|
|
725
725
|
this._gaxModule.routingHeader.fromParams({
|
|
726
726
|
evaluation: request.evaluation ?? '',
|
|
727
727
|
});
|
|
728
|
-
this.initialize().catch(
|
|
728
|
+
this.initialize().catch(err => {
|
|
729
729
|
throw err;
|
|
730
730
|
});
|
|
731
731
|
const wrappedCallback = callback
|
|
@@ -792,7 +792,7 @@ class EvaluationServiceClient {
|
|
|
792
792
|
});
|
|
793
793
|
const defaultCallSettings = this._defaults['listEvaluationResults'];
|
|
794
794
|
const callSettings = defaultCallSettings.merge(options);
|
|
795
|
-
this.initialize().catch(
|
|
795
|
+
this.initialize().catch(err => {
|
|
796
796
|
throw err;
|
|
797
797
|
});
|
|
798
798
|
this._log.info('listEvaluationResults stream %j', request);
|
|
@@ -851,7 +851,7 @@ class EvaluationServiceClient {
|
|
|
851
851
|
});
|
|
852
852
|
const defaultCallSettings = this._defaults['listEvaluationResults'];
|
|
853
853
|
const callSettings = defaultCallSettings.merge(options);
|
|
854
|
-
this.initialize().catch(
|
|
854
|
+
this.initialize().catch(err => {
|
|
855
855
|
throw err;
|
|
856
856
|
});
|
|
857
857
|
this._log.info('listEvaluationResults iterate %j', request);
|
|
@@ -3422,11 +3422,11 @@ class EvaluationServiceClient {
|
|
|
3422
3422
|
*/
|
|
3423
3423
|
close() {
|
|
3424
3424
|
if (this.evaluationServiceStub && !this._terminated) {
|
|
3425
|
-
return this.evaluationServiceStub.then(
|
|
3425
|
+
return this.evaluationServiceStub.then(stub => {
|
|
3426
3426
|
this._log.info('ending gRPC channel');
|
|
3427
3427
|
this._terminated = true;
|
|
3428
3428
|
stub.close();
|
|
3429
|
-
this.locationsClient.close().catch(
|
|
3429
|
+
this.locationsClient.close().catch(err => {
|
|
3430
3430
|
throw err;
|
|
3431
3431
|
});
|
|
3432
3432
|
void this.operationsClient.close();
|
|
@@ -244,7 +244,7 @@ class GroundedGenerationServiceClient {
|
|
|
244
244
|
// and create an API call method for each.
|
|
245
245
|
const groundedGenerationServiceStubMethods = ['checkGrounding'];
|
|
246
246
|
for (const methodName of groundedGenerationServiceStubMethods) {
|
|
247
|
-
const callPromise = this.groundedGenerationServiceStub.then(
|
|
247
|
+
const callPromise = this.groundedGenerationServiceStub.then(stub => (...args) => {
|
|
248
248
|
if (this._terminated) {
|
|
249
249
|
return Promise.reject('The client has already been closed.');
|
|
250
250
|
}
|
|
@@ -336,7 +336,7 @@ class GroundedGenerationServiceClient {
|
|
|
336
336
|
this._gaxModule.routingHeader.fromParams({
|
|
337
337
|
grounding_config: request.groundingConfig ?? '',
|
|
338
338
|
});
|
|
339
|
-
this.initialize().catch(
|
|
339
|
+
this.initialize().catch(err => {
|
|
340
340
|
throw err;
|
|
341
341
|
});
|
|
342
342
|
this._log.info('checkGrounding request %j', request);
|
|
@@ -2759,11 +2759,11 @@ class GroundedGenerationServiceClient {
|
|
|
2759
2759
|
*/
|
|
2760
2760
|
close() {
|
|
2761
2761
|
if (this.groundedGenerationServiceStub && !this._terminated) {
|
|
2762
|
-
return this.groundedGenerationServiceStub.then(
|
|
2762
|
+
return this.groundedGenerationServiceStub.then(stub => {
|
|
2763
2763
|
this._log.info('ending gRPC channel');
|
|
2764
2764
|
this._terminated = true;
|
|
2765
2765
|
stub.close();
|
|
2766
|
-
this.locationsClient.close().catch(
|
|
2766
|
+
this.locationsClient.close().catch(err => {
|
|
2767
2767
|
throw err;
|
|
2768
2768
|
});
|
|
2769
2769
|
});
|