@google-cloud/discoveryengine 2.0.0 → 2.0.1
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/CHANGELOG.md +7 -0
- package/build/src/v1/completion_service_client.d.ts +1 -1
- package/build/src/v1/completion_service_client.js +15 -5
- package/build/src/v1/control_service_client.js +21 -7
- package/build/src/v1/conversational_search_service_client.js +51 -17
- package/build/src/v1/data_store_service_client.d.ts +1 -1
- package/build/src/v1/data_store_service_client.js +21 -7
- package/build/src/v1/document_service_client.d.ts +1 -1
- package/build/src/v1/document_service_client.js +30 -10
- package/build/src/v1/engine_service_client.d.ts +1 -1
- package/build/src/v1/engine_service_client.js +21 -7
- package/build/src/v1/grounded_generation_service_client.js +9 -3
- package/build/src/v1/project_service_client.d.ts +1 -1
- package/build/src/v1/project_service_client.js +3 -1
- package/build/src/v1/rank_service_client.js +3 -1
- package/build/src/v1/recommendation_service_client.js +3 -1
- package/build/src/v1/schema_service_client.d.ts +1 -1
- package/build/src/v1/schema_service_client.js +21 -7
- package/build/src/v1/search_service_client.js +18 -6
- package/build/src/v1/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1/search_tuning_service_client.js +6 -2
- package/build/src/v1/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1/site_search_engine_service_client.js +48 -16
- package/build/src/v1/user_event_service_client.d.ts +1 -1
- package/build/src/v1/user_event_service_client.js +12 -4
- package/build/src/v1alpha/acl_config_service_client.js +6 -2
- package/build/src/v1alpha/chunk_service_client.js +12 -4
- package/build/src/v1alpha/completion_service_client.d.ts +1 -1
- package/build/src/v1alpha/completion_service_client.js +15 -5
- package/build/src/v1alpha/control_service_client.js +21 -7
- package/build/src/v1alpha/conversational_search_service_client.js +51 -17
- package/build/src/v1alpha/data_store_service_client.d.ts +1 -1
- package/build/src/v1alpha/data_store_service_client.js +27 -9
- package/build/src/v1alpha/document_service_client.d.ts +1 -1
- package/build/src/v1alpha/document_service_client.js +33 -11
- package/build/src/v1alpha/engine_service_client.d.ts +1 -1
- package/build/src/v1alpha/engine_service_client.js +30 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1 -1
- package/build/src/v1alpha/estimate_billing_service_client.js +3 -1
- package/build/src/v1alpha/evaluation_service_client.d.ts +1 -1
- package/build/src/v1alpha/evaluation_service_client.js +24 -8
- package/build/src/v1alpha/grounded_generation_service_client.js +3 -1
- package/build/src/v1alpha/project_service_client.d.ts +1 -1
- package/build/src/v1alpha/project_service_client.js +9 -3
- package/build/src/v1alpha/rank_service_client.js +3 -1
- package/build/src/v1alpha/recommendation_service_client.js +3 -1
- package/build/src/v1alpha/sample_query_service_client.d.ts +1 -1
- package/build/src/v1alpha/sample_query_service_client.js +24 -8
- package/build/src/v1alpha/sample_query_set_service_client.js +21 -7
- package/build/src/v1alpha/schema_service_client.d.ts +1 -1
- package/build/src/v1alpha/schema_service_client.js +21 -7
- package/build/src/v1alpha/search_service_client.js +9 -3
- package/build/src/v1alpha/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1alpha/search_tuning_service_client.js +6 -2
- package/build/src/v1alpha/serving_config_service_client.js +15 -5
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1alpha/site_search_engine_service_client.js +54 -18
- package/build/src/v1alpha/user_event_service_client.d.ts +1 -1
- package/build/src/v1alpha/user_event_service_client.js +12 -4
- package/build/src/v1beta/completion_service_client.d.ts +1 -1
- package/build/src/v1beta/completion_service_client.js +18 -6
- package/build/src/v1beta/control_service_client.js +21 -7
- package/build/src/v1beta/conversational_search_service_client.js +51 -17
- package/build/src/v1beta/data_store_service_client.d.ts +1 -1
- package/build/src/v1beta/data_store_service_client.js +21 -7
- package/build/src/v1beta/document_service_client.d.ts +1 -1
- package/build/src/v1beta/document_service_client.js +30 -10
- package/build/src/v1beta/engine_service_client.d.ts +1 -1
- package/build/src/v1beta/engine_service_client.js +30 -10
- package/build/src/v1beta/evaluation_service_client.d.ts +1 -1
- package/build/src/v1beta/evaluation_service_client.js +24 -8
- package/build/src/v1beta/grounded_generation_service_client.js +9 -3
- package/build/src/v1beta/project_service_client.d.ts +1 -1
- package/build/src/v1beta/project_service_client.js +3 -1
- package/build/src/v1beta/rank_service_client.js +3 -1
- package/build/src/v1beta/recommendation_service_client.js +3 -1
- package/build/src/v1beta/sample_query_service_client.d.ts +1 -1
- package/build/src/v1beta/sample_query_service_client.js +24 -8
- package/build/src/v1beta/sample_query_set_service_client.js +21 -7
- package/build/src/v1beta/schema_service_client.d.ts +1 -1
- package/build/src/v1beta/schema_service_client.js +21 -7
- package/build/src/v1beta/search_service_client.js +18 -6
- package/build/src/v1beta/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1beta/search_tuning_service_client.js +6 -2
- package/build/src/v1beta/serving_config_service_client.js +15 -5
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1beta/site_search_engine_service_client.js +57 -19
- package/build/src/v1beta/user_event_service_client.d.ts +1 -1
- package/build/src/v1beta/user_event_service_client.js +12 -4
- package/package.json +2 -2
@@ -356,7 +356,9 @@ class ConversationalSearchServiceClient {
|
|
356
356
|
this._gaxModule.routingHeader.fromParams({
|
357
357
|
name: request.name ?? '',
|
358
358
|
});
|
359
|
-
this.initialize()
|
359
|
+
this.initialize().catch(err => {
|
360
|
+
throw err;
|
361
|
+
});
|
360
362
|
this._log.info('converseConversation request %j', request);
|
361
363
|
const wrappedCallback = callback
|
362
364
|
? (error, response, options, rawResponse) => {
|
@@ -388,7 +390,9 @@ class ConversationalSearchServiceClient {
|
|
388
390
|
this._gaxModule.routingHeader.fromParams({
|
389
391
|
parent: request.parent ?? '',
|
390
392
|
});
|
391
|
-
this.initialize()
|
393
|
+
this.initialize().catch(err => {
|
394
|
+
throw err;
|
395
|
+
});
|
392
396
|
this._log.info('createConversation request %j', request);
|
393
397
|
const wrappedCallback = callback
|
394
398
|
? (error, response, options, rawResponse) => {
|
@@ -420,7 +424,9 @@ class ConversationalSearchServiceClient {
|
|
420
424
|
this._gaxModule.routingHeader.fromParams({
|
421
425
|
name: request.name ?? '',
|
422
426
|
});
|
423
|
-
this.initialize()
|
427
|
+
this.initialize().catch(err => {
|
428
|
+
throw err;
|
429
|
+
});
|
424
430
|
this._log.info('deleteConversation request %j', request);
|
425
431
|
const wrappedCallback = callback
|
426
432
|
? (error, response, options, rawResponse) => {
|
@@ -452,7 +458,9 @@ class ConversationalSearchServiceClient {
|
|
452
458
|
this._gaxModule.routingHeader.fromParams({
|
453
459
|
'conversation.name': request.conversation.name ?? '',
|
454
460
|
});
|
455
|
-
this.initialize()
|
461
|
+
this.initialize().catch(err => {
|
462
|
+
throw err;
|
463
|
+
});
|
456
464
|
this._log.info('updateConversation request %j', request);
|
457
465
|
const wrappedCallback = callback
|
458
466
|
? (error, response, options, rawResponse) => {
|
@@ -484,7 +492,9 @@ class ConversationalSearchServiceClient {
|
|
484
492
|
this._gaxModule.routingHeader.fromParams({
|
485
493
|
name: request.name ?? '',
|
486
494
|
});
|
487
|
-
this.initialize()
|
495
|
+
this.initialize().catch(err => {
|
496
|
+
throw err;
|
497
|
+
});
|
488
498
|
this._log.info('getConversation request %j', request);
|
489
499
|
const wrappedCallback = callback
|
490
500
|
? (error, response, options, rawResponse) => {
|
@@ -516,7 +526,9 @@ class ConversationalSearchServiceClient {
|
|
516
526
|
this._gaxModule.routingHeader.fromParams({
|
517
527
|
serving_config: request.servingConfig ?? '',
|
518
528
|
});
|
519
|
-
this.initialize()
|
529
|
+
this.initialize().catch(err => {
|
530
|
+
throw err;
|
531
|
+
});
|
520
532
|
this._log.info('answerQuery request %j', request);
|
521
533
|
const wrappedCallback = callback
|
522
534
|
? (error, response, options, rawResponse) => {
|
@@ -548,7 +560,9 @@ class ConversationalSearchServiceClient {
|
|
548
560
|
this._gaxModule.routingHeader.fromParams({
|
549
561
|
name: request.name ?? '',
|
550
562
|
});
|
551
|
-
this.initialize()
|
563
|
+
this.initialize().catch(err => {
|
564
|
+
throw err;
|
565
|
+
});
|
552
566
|
this._log.info('getAnswer request %j', request);
|
553
567
|
const wrappedCallback = callback
|
554
568
|
? (error, response, options, rawResponse) => {
|
@@ -580,7 +594,9 @@ class ConversationalSearchServiceClient {
|
|
580
594
|
this._gaxModule.routingHeader.fromParams({
|
581
595
|
parent: request.parent ?? '',
|
582
596
|
});
|
583
|
-
this.initialize()
|
597
|
+
this.initialize().catch(err => {
|
598
|
+
throw err;
|
599
|
+
});
|
584
600
|
this._log.info('createSession request %j', request);
|
585
601
|
const wrappedCallback = callback
|
586
602
|
? (error, response, options, rawResponse) => {
|
@@ -612,7 +628,9 @@ class ConversationalSearchServiceClient {
|
|
612
628
|
this._gaxModule.routingHeader.fromParams({
|
613
629
|
name: request.name ?? '',
|
614
630
|
});
|
615
|
-
this.initialize()
|
631
|
+
this.initialize().catch(err => {
|
632
|
+
throw err;
|
633
|
+
});
|
616
634
|
this._log.info('deleteSession request %j', request);
|
617
635
|
const wrappedCallback = callback
|
618
636
|
? (error, response, options, rawResponse) => {
|
@@ -644,7 +662,9 @@ class ConversationalSearchServiceClient {
|
|
644
662
|
this._gaxModule.routingHeader.fromParams({
|
645
663
|
'session.name': request.session.name ?? '',
|
646
664
|
});
|
647
|
-
this.initialize()
|
665
|
+
this.initialize().catch(err => {
|
666
|
+
throw err;
|
667
|
+
});
|
648
668
|
this._log.info('updateSession request %j', request);
|
649
669
|
const wrappedCallback = callback
|
650
670
|
? (error, response, options, rawResponse) => {
|
@@ -676,7 +696,9 @@ class ConversationalSearchServiceClient {
|
|
676
696
|
this._gaxModule.routingHeader.fromParams({
|
677
697
|
name: request.name ?? '',
|
678
698
|
});
|
679
|
-
this.initialize()
|
699
|
+
this.initialize().catch(err => {
|
700
|
+
throw err;
|
701
|
+
});
|
680
702
|
this._log.info('getSession request %j', request);
|
681
703
|
const wrappedCallback = callback
|
682
704
|
? (error, response, options, rawResponse) => {
|
@@ -708,7 +730,9 @@ class ConversationalSearchServiceClient {
|
|
708
730
|
this._gaxModule.routingHeader.fromParams({
|
709
731
|
parent: request.parent ?? '',
|
710
732
|
});
|
711
|
-
this.initialize()
|
733
|
+
this.initialize().catch(err => {
|
734
|
+
throw err;
|
735
|
+
});
|
712
736
|
const wrappedCallback = callback
|
713
737
|
? (error, values, nextPageRequest, rawResponse) => {
|
714
738
|
this._log.info('listConversations values %j', values);
|
@@ -775,7 +799,9 @@ class ConversationalSearchServiceClient {
|
|
775
799
|
});
|
776
800
|
const defaultCallSettings = this._defaults['listConversations'];
|
777
801
|
const callSettings = defaultCallSettings.merge(options);
|
778
|
-
this.initialize()
|
802
|
+
this.initialize().catch(err => {
|
803
|
+
throw err;
|
804
|
+
});
|
779
805
|
this._log.info('listConversations stream %j', request);
|
780
806
|
return this.descriptors.page.listConversations.createStream(this.innerApiCalls.listConversations, request, callSettings);
|
781
807
|
}
|
@@ -834,7 +860,9 @@ class ConversationalSearchServiceClient {
|
|
834
860
|
});
|
835
861
|
const defaultCallSettings = this._defaults['listConversations'];
|
836
862
|
const callSettings = defaultCallSettings.merge(options);
|
837
|
-
this.initialize()
|
863
|
+
this.initialize().catch(err => {
|
864
|
+
throw err;
|
865
|
+
});
|
838
866
|
this._log.info('listConversations iterate %j', request);
|
839
867
|
return this.descriptors.page.listConversations.asyncIterate(this.innerApiCalls['listConversations'], request, callSettings);
|
840
868
|
}
|
@@ -855,7 +883,9 @@ class ConversationalSearchServiceClient {
|
|
855
883
|
this._gaxModule.routingHeader.fromParams({
|
856
884
|
parent: request.parent ?? '',
|
857
885
|
});
|
858
|
-
this.initialize()
|
886
|
+
this.initialize().catch(err => {
|
887
|
+
throw err;
|
888
|
+
});
|
859
889
|
const wrappedCallback = callback
|
860
890
|
? (error, values, nextPageRequest, rawResponse) => {
|
861
891
|
this._log.info('listSessions values %j', values);
|
@@ -922,7 +952,9 @@ class ConversationalSearchServiceClient {
|
|
922
952
|
});
|
923
953
|
const defaultCallSettings = this._defaults['listSessions'];
|
924
954
|
const callSettings = defaultCallSettings.merge(options);
|
925
|
-
this.initialize()
|
955
|
+
this.initialize().catch(err => {
|
956
|
+
throw err;
|
957
|
+
});
|
926
958
|
this._log.info('listSessions stream %j', request);
|
927
959
|
return this.descriptors.page.listSessions.createStream(this.innerApiCalls.listSessions, request, callSettings);
|
928
960
|
}
|
@@ -981,7 +1013,9 @@ class ConversationalSearchServiceClient {
|
|
981
1013
|
});
|
982
1014
|
const defaultCallSettings = this._defaults['listSessions'];
|
983
1015
|
const callSettings = defaultCallSettings.merge(options);
|
984
|
-
this.initialize()
|
1016
|
+
this.initialize().catch(err => {
|
1017
|
+
throw err;
|
1018
|
+
});
|
985
1019
|
this._log.info('listSessions iterate %j', request);
|
986
1020
|
return this.descriptors.page.listSessions.asyncIterate(this.innerApiCalls['listSessions'], request, callSettings);
|
987
1021
|
}
|
@@ -638,7 +638,7 @@ export declare class DataStoreServiceClient {
|
|
638
638
|
* // doThingsWith(response)
|
639
639
|
* ```
|
640
640
|
*/
|
641
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
641
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
642
642
|
/**
|
643
643
|
* Starts asynchronous cancellation on a long-running operation. The server
|
644
644
|
* makes a best effort to cancel the operation, but success is not
|
@@ -482,7 +482,9 @@ class DataStoreServiceClient {
|
|
482
482
|
this._gaxModule.routingHeader.fromParams({
|
483
483
|
name: request.name ?? '',
|
484
484
|
});
|
485
|
-
this.initialize()
|
485
|
+
this.initialize().catch(err => {
|
486
|
+
throw err;
|
487
|
+
});
|
486
488
|
this._log.info('getDataStore request %j', request);
|
487
489
|
const wrappedCallback = callback
|
488
490
|
? (error, response, options, rawResponse) => {
|
@@ -514,7 +516,9 @@ class DataStoreServiceClient {
|
|
514
516
|
this._gaxModule.routingHeader.fromParams({
|
515
517
|
'data_store.name': request.dataStore.name ?? '',
|
516
518
|
});
|
517
|
-
this.initialize()
|
519
|
+
this.initialize().catch(err => {
|
520
|
+
throw err;
|
521
|
+
});
|
518
522
|
this._log.info('updateDataStore request %j', request);
|
519
523
|
const wrappedCallback = callback
|
520
524
|
? (error, response, options, rawResponse) => {
|
@@ -546,7 +550,9 @@ class DataStoreServiceClient {
|
|
546
550
|
this._gaxModule.routingHeader.fromParams({
|
547
551
|
name: request.name ?? '',
|
548
552
|
});
|
549
|
-
this.initialize()
|
553
|
+
this.initialize().catch(err => {
|
554
|
+
throw err;
|
555
|
+
});
|
550
556
|
this._log.info('getDocumentProcessingConfig request %j', request);
|
551
557
|
const wrappedCallback = callback
|
552
558
|
? (error, response, options, rawResponse) => {
|
@@ -578,7 +584,9 @@ class DataStoreServiceClient {
|
|
578
584
|
this._gaxModule.routingHeader.fromParams({
|
579
585
|
'document_processing_config.name': request.documentProcessingConfig.name ?? '',
|
580
586
|
});
|
581
|
-
this.initialize()
|
587
|
+
this.initialize().catch(err => {
|
588
|
+
throw err;
|
589
|
+
});
|
582
590
|
this._log.info('updateDocumentProcessingConfig request %j', request);
|
583
591
|
const wrappedCallback = callback
|
584
592
|
? (error, response, options, rawResponse) => {
|
@@ -610,7 +618,9 @@ class DataStoreServiceClient {
|
|
610
618
|
this._gaxModule.routingHeader.fromParams({
|
611
619
|
parent: request.parent ?? '',
|
612
620
|
});
|
613
|
-
this.initialize()
|
621
|
+
this.initialize().catch(err => {
|
622
|
+
throw err;
|
623
|
+
});
|
614
624
|
const wrappedCallback = callback
|
615
625
|
? (error, response, rawResponse, _) => {
|
616
626
|
this._log.info('createDataStore response %j', rawResponse);
|
@@ -660,7 +670,9 @@ class DataStoreServiceClient {
|
|
660
670
|
this._gaxModule.routingHeader.fromParams({
|
661
671
|
name: request.name ?? '',
|
662
672
|
});
|
663
|
-
this.initialize()
|
673
|
+
this.initialize().catch(err => {
|
674
|
+
throw err;
|
675
|
+
});
|
664
676
|
const wrappedCallback = callback
|
665
677
|
? (error, response, rawResponse, _) => {
|
666
678
|
this._log.info('deleteDataStore response %j', rawResponse);
|
@@ -710,7 +722,9 @@ class DataStoreServiceClient {
|
|
710
722
|
this._gaxModule.routingHeader.fromParams({
|
711
723
|
parent: request.parent ?? '',
|
712
724
|
});
|
713
|
-
this.initialize()
|
725
|
+
this.initialize().catch(err => {
|
726
|
+
throw err;
|
727
|
+
});
|
714
728
|
const wrappedCallback = callback
|
715
729
|
? (error, values, nextPageRequest, rawResponse) => {
|
716
730
|
this._log.info('listDataStores values %j', values);
|
@@ -780,7 +794,9 @@ class DataStoreServiceClient {
|
|
780
794
|
});
|
781
795
|
const defaultCallSettings = this._defaults['listDataStores'];
|
782
796
|
const callSettings = defaultCallSettings.merge(options);
|
783
|
-
this.initialize()
|
797
|
+
this.initialize().catch(err => {
|
798
|
+
throw err;
|
799
|
+
});
|
784
800
|
this._log.info('listDataStores stream %j', request);
|
785
801
|
return this.descriptors.page.listDataStores.createStream(this.innerApiCalls.listDataStores, request, callSettings);
|
786
802
|
}
|
@@ -842,7 +858,9 @@ class DataStoreServiceClient {
|
|
842
858
|
});
|
843
859
|
const defaultCallSettings = this._defaults['listDataStores'];
|
844
860
|
const callSettings = defaultCallSettings.merge(options);
|
845
|
-
this.initialize()
|
861
|
+
this.initialize().catch(err => {
|
862
|
+
throw err;
|
863
|
+
});
|
846
864
|
this._log.info('listDataStores iterate %j', request);
|
847
865
|
return this.descriptors.page.listDataStores.asyncIterate(this.innerApiCalls['listDataStores'], request, callSettings);
|
848
866
|
}
|
@@ -792,7 +792,7 @@ export declare class DocumentServiceClient {
|
|
792
792
|
* // doThingsWith(response)
|
793
793
|
* ```
|
794
794
|
*/
|
795
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
795
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
796
796
|
/**
|
797
797
|
* Starts asynchronous cancellation on a long-running operation. The server
|
798
798
|
* makes a best effort to cancel the operation, but success is not
|
@@ -486,7 +486,9 @@ class DocumentServiceClient {
|
|
486
486
|
this._gaxModule.routingHeader.fromParams({
|
487
487
|
name: request.name ?? '',
|
488
488
|
});
|
489
|
-
this.initialize()
|
489
|
+
this.initialize().catch(err => {
|
490
|
+
throw err;
|
491
|
+
});
|
490
492
|
this._log.info('getDocument request %j', request);
|
491
493
|
const wrappedCallback = callback
|
492
494
|
? (error, response, options, rawResponse) => {
|
@@ -518,7 +520,9 @@ class DocumentServiceClient {
|
|
518
520
|
this._gaxModule.routingHeader.fromParams({
|
519
521
|
parent: request.parent ?? '',
|
520
522
|
});
|
521
|
-
this.initialize()
|
523
|
+
this.initialize().catch(err => {
|
524
|
+
throw err;
|
525
|
+
});
|
522
526
|
this._log.info('createDocument request %j', request);
|
523
527
|
const wrappedCallback = callback
|
524
528
|
? (error, response, options, rawResponse) => {
|
@@ -550,7 +554,9 @@ class DocumentServiceClient {
|
|
550
554
|
this._gaxModule.routingHeader.fromParams({
|
551
555
|
'document.name': request.document.name ?? '',
|
552
556
|
});
|
553
|
-
this.initialize()
|
557
|
+
this.initialize().catch(err => {
|
558
|
+
throw err;
|
559
|
+
});
|
554
560
|
this._log.info('updateDocument request %j', request);
|
555
561
|
const wrappedCallback = callback
|
556
562
|
? (error, response, options, rawResponse) => {
|
@@ -582,7 +588,9 @@ class DocumentServiceClient {
|
|
582
588
|
this._gaxModule.routingHeader.fromParams({
|
583
589
|
name: request.name ?? '',
|
584
590
|
});
|
585
|
-
this.initialize()
|
591
|
+
this.initialize().catch(err => {
|
592
|
+
throw err;
|
593
|
+
});
|
586
594
|
this._log.info('deleteDocument request %j', request);
|
587
595
|
const wrappedCallback = callback
|
588
596
|
? (error, response, options, rawResponse) => {
|
@@ -614,7 +622,9 @@ class DocumentServiceClient {
|
|
614
622
|
this._gaxModule.routingHeader.fromParams({
|
615
623
|
name: request.name ?? '',
|
616
624
|
});
|
617
|
-
this.initialize()
|
625
|
+
this.initialize().catch(err => {
|
626
|
+
throw err;
|
627
|
+
});
|
618
628
|
this._log.info('getProcessedDocument request %j', request);
|
619
629
|
const wrappedCallback = callback
|
620
630
|
? (error, response, options, rawResponse) => {
|
@@ -646,7 +656,9 @@ class DocumentServiceClient {
|
|
646
656
|
this._gaxModule.routingHeader.fromParams({
|
647
657
|
parent: request.parent ?? '',
|
648
658
|
});
|
649
|
-
this.initialize()
|
659
|
+
this.initialize().catch(err => {
|
660
|
+
throw err;
|
661
|
+
});
|
650
662
|
this._log.info('batchGetDocumentsMetadata request %j', request);
|
651
663
|
const wrappedCallback = callback
|
652
664
|
? (error, response, options, rawResponse) => {
|
@@ -678,7 +690,9 @@ class DocumentServiceClient {
|
|
678
690
|
this._gaxModule.routingHeader.fromParams({
|
679
691
|
parent: request.parent ?? '',
|
680
692
|
});
|
681
|
-
this.initialize()
|
693
|
+
this.initialize().catch(err => {
|
694
|
+
throw err;
|
695
|
+
});
|
682
696
|
const wrappedCallback = callback
|
683
697
|
? (error, response, rawResponse, _) => {
|
684
698
|
this._log.info('importDocuments response %j', rawResponse);
|
@@ -728,7 +742,9 @@ class DocumentServiceClient {
|
|
728
742
|
this._gaxModule.routingHeader.fromParams({
|
729
743
|
parent: request.parent ?? '',
|
730
744
|
});
|
731
|
-
this.initialize()
|
745
|
+
this.initialize().catch(err => {
|
746
|
+
throw err;
|
747
|
+
});
|
732
748
|
const wrappedCallback = callback
|
733
749
|
? (error, response, rawResponse, _) => {
|
734
750
|
this._log.info('purgeDocuments response %j', rawResponse);
|
@@ -778,7 +794,9 @@ class DocumentServiceClient {
|
|
778
794
|
this._gaxModule.routingHeader.fromParams({
|
779
795
|
parent: request.parent ?? '',
|
780
796
|
});
|
781
|
-
this.initialize()
|
797
|
+
this.initialize().catch(err => {
|
798
|
+
throw err;
|
799
|
+
});
|
782
800
|
const wrappedCallback = callback
|
783
801
|
? (error, values, nextPageRequest, rawResponse) => {
|
784
802
|
this._log.info('listDocuments values %j', values);
|
@@ -847,7 +865,9 @@ class DocumentServiceClient {
|
|
847
865
|
});
|
848
866
|
const defaultCallSettings = this._defaults['listDocuments'];
|
849
867
|
const callSettings = defaultCallSettings.merge(options);
|
850
|
-
this.initialize()
|
868
|
+
this.initialize().catch(err => {
|
869
|
+
throw err;
|
870
|
+
});
|
851
871
|
this._log.info('listDocuments stream %j', request);
|
852
872
|
return this.descriptors.page.listDocuments.createStream(this.innerApiCalls.listDocuments, request, callSettings);
|
853
873
|
}
|
@@ -908,7 +928,9 @@ class DocumentServiceClient {
|
|
908
928
|
});
|
909
929
|
const defaultCallSettings = this._defaults['listDocuments'];
|
910
930
|
const callSettings = defaultCallSettings.merge(options);
|
911
|
-
this.initialize()
|
931
|
+
this.initialize().catch(err => {
|
932
|
+
throw err;
|
933
|
+
});
|
912
934
|
this._log.info('listDocuments iterate %j', request);
|
913
935
|
return this.descriptors.page.listDocuments.asyncIterate(this.innerApiCalls['listDocuments'], request, callSettings);
|
914
936
|
}
|
@@ -573,7 +573,7 @@ export declare class EngineServiceClient {
|
|
573
573
|
* // doThingsWith(response)
|
574
574
|
* ```
|
575
575
|
*/
|
576
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
576
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
577
577
|
/**
|
578
578
|
* Starts asynchronous cancellation on a long-running operation. The server
|
579
579
|
* makes a best effort to cancel the operation, but success is not
|
@@ -486,7 +486,9 @@ class EngineServiceClient {
|
|
486
486
|
this._gaxModule.routingHeader.fromParams({
|
487
487
|
'engine.name': request.engine.name ?? '',
|
488
488
|
});
|
489
|
-
this.initialize()
|
489
|
+
this.initialize().catch(err => {
|
490
|
+
throw err;
|
491
|
+
});
|
490
492
|
this._log.info('updateEngine request %j', request);
|
491
493
|
const wrappedCallback = callback
|
492
494
|
? (error, response, options, rawResponse) => {
|
@@ -518,7 +520,9 @@ class EngineServiceClient {
|
|
518
520
|
this._gaxModule.routingHeader.fromParams({
|
519
521
|
name: request.name ?? '',
|
520
522
|
});
|
521
|
-
this.initialize()
|
523
|
+
this.initialize().catch(err => {
|
524
|
+
throw err;
|
525
|
+
});
|
522
526
|
this._log.info('getEngine request %j', request);
|
523
527
|
const wrappedCallback = callback
|
524
528
|
? (error, response, options, rawResponse) => {
|
@@ -550,7 +554,9 @@ class EngineServiceClient {
|
|
550
554
|
this._gaxModule.routingHeader.fromParams({
|
551
555
|
name: request.name ?? '',
|
552
556
|
});
|
553
|
-
this.initialize()
|
557
|
+
this.initialize().catch(err => {
|
558
|
+
throw err;
|
559
|
+
});
|
554
560
|
this._log.info('pauseEngine request %j', request);
|
555
561
|
const wrappedCallback = callback
|
556
562
|
? (error, response, options, rawResponse) => {
|
@@ -582,7 +588,9 @@ class EngineServiceClient {
|
|
582
588
|
this._gaxModule.routingHeader.fromParams({
|
583
589
|
name: request.name ?? '',
|
584
590
|
});
|
585
|
-
this.initialize()
|
591
|
+
this.initialize().catch(err => {
|
592
|
+
throw err;
|
593
|
+
});
|
586
594
|
this._log.info('resumeEngine request %j', request);
|
587
595
|
const wrappedCallback = callback
|
588
596
|
? (error, response, options, rawResponse) => {
|
@@ -614,7 +622,9 @@ class EngineServiceClient {
|
|
614
622
|
this._gaxModule.routingHeader.fromParams({
|
615
623
|
parent: request.parent ?? '',
|
616
624
|
});
|
617
|
-
this.initialize()
|
625
|
+
this.initialize().catch(err => {
|
626
|
+
throw err;
|
627
|
+
});
|
618
628
|
const wrappedCallback = callback
|
619
629
|
? (error, response, rawResponse, _) => {
|
620
630
|
this._log.info('createEngine response %j', rawResponse);
|
@@ -664,7 +674,9 @@ class EngineServiceClient {
|
|
664
674
|
this._gaxModule.routingHeader.fromParams({
|
665
675
|
name: request.name ?? '',
|
666
676
|
});
|
667
|
-
this.initialize()
|
677
|
+
this.initialize().catch(err => {
|
678
|
+
throw err;
|
679
|
+
});
|
668
680
|
const wrappedCallback = callback
|
669
681
|
? (error, response, rawResponse, _) => {
|
670
682
|
this._log.info('deleteEngine response %j', rawResponse);
|
@@ -714,7 +726,9 @@ class EngineServiceClient {
|
|
714
726
|
this._gaxModule.routingHeader.fromParams({
|
715
727
|
name: request.name ?? '',
|
716
728
|
});
|
717
|
-
this.initialize()
|
729
|
+
this.initialize().catch(err => {
|
730
|
+
throw err;
|
731
|
+
});
|
718
732
|
const wrappedCallback = callback
|
719
733
|
? (error, response, rawResponse, _) => {
|
720
734
|
this._log.info('tuneEngine response %j', rawResponse);
|
@@ -764,7 +778,9 @@ class EngineServiceClient {
|
|
764
778
|
this._gaxModule.routingHeader.fromParams({
|
765
779
|
parent: request.parent ?? '',
|
766
780
|
});
|
767
|
-
this.initialize()
|
781
|
+
this.initialize().catch(err => {
|
782
|
+
throw err;
|
783
|
+
});
|
768
784
|
const wrappedCallback = callback
|
769
785
|
? (error, values, nextPageRequest, rawResponse) => {
|
770
786
|
this._log.info('listEngines values %j', values);
|
@@ -815,7 +831,9 @@ class EngineServiceClient {
|
|
815
831
|
});
|
816
832
|
const defaultCallSettings = this._defaults['listEngines'];
|
817
833
|
const callSettings = defaultCallSettings.merge(options);
|
818
|
-
this.initialize()
|
834
|
+
this.initialize().catch(err => {
|
835
|
+
throw err;
|
836
|
+
});
|
819
837
|
this._log.info('listEngines stream %j', request);
|
820
838
|
return this.descriptors.page.listEngines.createStream(this.innerApiCalls.listEngines, request, callSettings);
|
821
839
|
}
|
@@ -858,7 +876,9 @@ class EngineServiceClient {
|
|
858
876
|
});
|
859
877
|
const defaultCallSettings = this._defaults['listEngines'];
|
860
878
|
const callSettings = defaultCallSettings.merge(options);
|
861
|
-
this.initialize()
|
879
|
+
this.initialize().catch(err => {
|
880
|
+
throw err;
|
881
|
+
});
|
862
882
|
this._log.info('listEngines iterate %j', request);
|
863
883
|
return this.descriptors.page.listEngines.asyncIterate(this.innerApiCalls['listEngines'], request, callSettings);
|
864
884
|
}
|
@@ -270,7 +270,7 @@ export declare class EstimateBillingServiceClient {
|
|
270
270
|
* // doThingsWith(response)
|
271
271
|
* ```
|
272
272
|
*/
|
273
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
273
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
274
274
|
/**
|
275
275
|
* Starts asynchronous cancellation on a long-running operation. The server
|
276
276
|
* makes a best effort to cancel the operation, but success is not
|
@@ -463,7 +463,9 @@ class EstimateBillingServiceClient {
|
|
463
463
|
this._gaxModule.routingHeader.fromParams({
|
464
464
|
location: request.location ?? '',
|
465
465
|
});
|
466
|
-
this.initialize()
|
466
|
+
this.initialize().catch(err => {
|
467
|
+
throw err;
|
468
|
+
});
|
467
469
|
const wrappedCallback = callback
|
468
470
|
? (error, response, rawResponse, _) => {
|
469
471
|
this._log.info('estimateDataSize response %j', rawResponse);
|
@@ -577,7 +577,7 @@ export declare class EvaluationServiceClient {
|
|
577
577
|
* // doThingsWith(response)
|
578
578
|
* ```
|
579
579
|
*/
|
580
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
580
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
581
581
|
/**
|
582
582
|
* Starts asynchronous cancellation on a long-running operation. The server
|
583
583
|
* makes a best effort to cancel the operation, but success is not
|
@@ -477,7 +477,9 @@ class EvaluationServiceClient {
|
|
477
477
|
this._gaxModule.routingHeader.fromParams({
|
478
478
|
name: request.name ?? '',
|
479
479
|
});
|
480
|
-
this.initialize()
|
480
|
+
this.initialize().catch(err => {
|
481
|
+
throw err;
|
482
|
+
});
|
481
483
|
this._log.info('getEvaluation request %j', request);
|
482
484
|
const wrappedCallback = callback
|
483
485
|
? (error, response, options, rawResponse) => {
|
@@ -509,7 +511,9 @@ class EvaluationServiceClient {
|
|
509
511
|
this._gaxModule.routingHeader.fromParams({
|
510
512
|
parent: request.parent ?? '',
|
511
513
|
});
|
512
|
-
this.initialize()
|
514
|
+
this.initialize().catch(err => {
|
515
|
+
throw err;
|
516
|
+
});
|
513
517
|
const wrappedCallback = callback
|
514
518
|
? (error, response, rawResponse, _) => {
|
515
519
|
this._log.info('createEvaluation response %j', rawResponse);
|
@@ -559,7 +563,9 @@ class EvaluationServiceClient {
|
|
559
563
|
this._gaxModule.routingHeader.fromParams({
|
560
564
|
parent: request.parent ?? '',
|
561
565
|
});
|
562
|
-
this.initialize()
|
566
|
+
this.initialize().catch(err => {
|
567
|
+
throw err;
|
568
|
+
});
|
563
569
|
const wrappedCallback = callback
|
564
570
|
? (error, values, nextPageRequest, rawResponse) => {
|
565
571
|
this._log.info('listEvaluations values %j', values);
|
@@ -626,7 +632,9 @@ class EvaluationServiceClient {
|
|
626
632
|
});
|
627
633
|
const defaultCallSettings = this._defaults['listEvaluations'];
|
628
634
|
const callSettings = defaultCallSettings.merge(options);
|
629
|
-
this.initialize()
|
635
|
+
this.initialize().catch(err => {
|
636
|
+
throw err;
|
637
|
+
});
|
630
638
|
this._log.info('listEvaluations stream %j', request);
|
631
639
|
return this.descriptors.page.listEvaluations.createStream(this.innerApiCalls.listEvaluations, request, callSettings);
|
632
640
|
}
|
@@ -685,7 +693,9 @@ class EvaluationServiceClient {
|
|
685
693
|
});
|
686
694
|
const defaultCallSettings = this._defaults['listEvaluations'];
|
687
695
|
const callSettings = defaultCallSettings.merge(options);
|
688
|
-
this.initialize()
|
696
|
+
this.initialize().catch(err => {
|
697
|
+
throw err;
|
698
|
+
});
|
689
699
|
this._log.info('listEvaluations iterate %j', request);
|
690
700
|
return this.descriptors.page.listEvaluations.asyncIterate(this.innerApiCalls['listEvaluations'], request, callSettings);
|
691
701
|
}
|
@@ -706,7 +716,9 @@ class EvaluationServiceClient {
|
|
706
716
|
this._gaxModule.routingHeader.fromParams({
|
707
717
|
evaluation: request.evaluation ?? '',
|
708
718
|
});
|
709
|
-
this.initialize()
|
719
|
+
this.initialize().catch(err => {
|
720
|
+
throw err;
|
721
|
+
});
|
710
722
|
const wrappedCallback = callback
|
711
723
|
? (error, values, nextPageRequest, rawResponse) => {
|
712
724
|
this._log.info('listEvaluationResults values %j', values);
|
@@ -771,7 +783,9 @@ class EvaluationServiceClient {
|
|
771
783
|
});
|
772
784
|
const defaultCallSettings = this._defaults['listEvaluationResults'];
|
773
785
|
const callSettings = defaultCallSettings.merge(options);
|
774
|
-
this.initialize()
|
786
|
+
this.initialize().catch(err => {
|
787
|
+
throw err;
|
788
|
+
});
|
775
789
|
this._log.info('listEvaluationResults stream %j', request);
|
776
790
|
return this.descriptors.page.listEvaluationResults.createStream(this.innerApiCalls.listEvaluationResults, request, callSettings);
|
777
791
|
}
|
@@ -828,7 +842,9 @@ class EvaluationServiceClient {
|
|
828
842
|
});
|
829
843
|
const defaultCallSettings = this._defaults['listEvaluationResults'];
|
830
844
|
const callSettings = defaultCallSettings.merge(options);
|
831
|
-
this.initialize()
|
845
|
+
this.initialize().catch(err => {
|
846
|
+
throw err;
|
847
|
+
});
|
832
848
|
this._log.info('listEvaluationResults iterate %j', request);
|
833
849
|
return this.descriptors.page.listEvaluationResults.asyncIterate(this.innerApiCalls['listEvaluationResults'], request, callSettings);
|
834
850
|
}
|
@@ -336,7 +336,9 @@ class GroundedGenerationServiceClient {
|
|
336
336
|
this._gaxModule.routingHeader.fromParams({
|
337
337
|
grounding_config: request.groundingConfig ?? '',
|
338
338
|
});
|
339
|
-
this.initialize()
|
339
|
+
this.initialize().catch(err => {
|
340
|
+
throw err;
|
341
|
+
});
|
340
342
|
this._log.info('checkGrounding request %j', request);
|
341
343
|
const wrappedCallback = callback
|
342
344
|
? (error, response, options, rawResponse) => {
|