@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
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.0.1](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v2.0.0...discoveryengine-v2.0.1) (2025-03-21)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* [Many APIs] await/catch promises, and update listOperationsAsync return type ([#6185](https://github.com/googleapis/google-cloud-node/issues/6185)) ([ab30412](https://github.com/googleapis/google-cloud-node/commit/ab304122e3e825c9a76af7d6b0ef4ddc9aa6e906))
|
9
|
+
|
3
10
|
## [2.0.0](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v1.14.0...discoveryengine-v2.0.0) (2025-03-18)
|
4
11
|
|
5
12
|
|
@@ -476,7 +476,7 @@ export declare class CompletionServiceClient {
|
|
476
476
|
* // doThingsWith(response)
|
477
477
|
* ```
|
478
478
|
*/
|
479
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
479
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
480
480
|
/**
|
481
481
|
* Starts asynchronous cancellation on a long-running operation. The server
|
482
482
|
* makes a best effort to cancel the operation, but success is not
|
@@ -469,7 +469,9 @@ class CompletionServiceClient {
|
|
469
469
|
this._gaxModule.routingHeader.fromParams({
|
470
470
|
data_store: request.dataStore ?? '',
|
471
471
|
});
|
472
|
-
this.initialize()
|
472
|
+
this.initialize().catch(err => {
|
473
|
+
throw err;
|
474
|
+
});
|
473
475
|
this._log.info('completeQuery request %j', request);
|
474
476
|
const wrappedCallback = callback
|
475
477
|
? (error, response, options, rawResponse) => {
|
@@ -501,7 +503,9 @@ class CompletionServiceClient {
|
|
501
503
|
this._gaxModule.routingHeader.fromParams({
|
502
504
|
parent: request.parent ?? '',
|
503
505
|
});
|
504
|
-
this.initialize()
|
506
|
+
this.initialize().catch(err => {
|
507
|
+
throw err;
|
508
|
+
});
|
505
509
|
const wrappedCallback = callback
|
506
510
|
? (error, response, rawResponse, _) => {
|
507
511
|
this._log.info('importSuggestionDenyListEntries response %j', rawResponse);
|
@@ -551,7 +555,9 @@ class CompletionServiceClient {
|
|
551
555
|
this._gaxModule.routingHeader.fromParams({
|
552
556
|
parent: request.parent ?? '',
|
553
557
|
});
|
554
|
-
this.initialize()
|
558
|
+
this.initialize().catch(err => {
|
559
|
+
throw err;
|
560
|
+
});
|
555
561
|
const wrappedCallback = callback
|
556
562
|
? (error, response, rawResponse, _) => {
|
557
563
|
this._log.info('purgeSuggestionDenyListEntries response %j', rawResponse);
|
@@ -601,7 +607,9 @@ class CompletionServiceClient {
|
|
601
607
|
this._gaxModule.routingHeader.fromParams({
|
602
608
|
parent: request.parent ?? '',
|
603
609
|
});
|
604
|
-
this.initialize()
|
610
|
+
this.initialize().catch(err => {
|
611
|
+
throw err;
|
612
|
+
});
|
605
613
|
const wrappedCallback = callback
|
606
614
|
? (error, response, rawResponse, _) => {
|
607
615
|
this._log.info('importCompletionSuggestions response %j', rawResponse);
|
@@ -651,7 +659,9 @@ class CompletionServiceClient {
|
|
651
659
|
this._gaxModule.routingHeader.fromParams({
|
652
660
|
parent: request.parent ?? '',
|
653
661
|
});
|
654
|
-
this.initialize()
|
662
|
+
this.initialize().catch(err => {
|
663
|
+
throw err;
|
664
|
+
});
|
655
665
|
const wrappedCallback = callback
|
656
666
|
? (error, response, rawResponse, _) => {
|
657
667
|
this._log.info('purgeCompletionSuggestions response %j', rawResponse);
|
@@ -342,7 +342,9 @@ class ControlServiceClient {
|
|
342
342
|
this._gaxModule.routingHeader.fromParams({
|
343
343
|
parent: request.parent ?? '',
|
344
344
|
});
|
345
|
-
this.initialize()
|
345
|
+
this.initialize().catch(err => {
|
346
|
+
throw err;
|
347
|
+
});
|
346
348
|
this._log.info('createControl request %j', request);
|
347
349
|
const wrappedCallback = callback
|
348
350
|
? (error, response, options, rawResponse) => {
|
@@ -374,7 +376,9 @@ class ControlServiceClient {
|
|
374
376
|
this._gaxModule.routingHeader.fromParams({
|
375
377
|
name: request.name ?? '',
|
376
378
|
});
|
377
|
-
this.initialize()
|
379
|
+
this.initialize().catch(err => {
|
380
|
+
throw err;
|
381
|
+
});
|
378
382
|
this._log.info('deleteControl request %j', request);
|
379
383
|
const wrappedCallback = callback
|
380
384
|
? (error, response, options, rawResponse) => {
|
@@ -406,7 +410,9 @@ class ControlServiceClient {
|
|
406
410
|
this._gaxModule.routingHeader.fromParams({
|
407
411
|
'control.name': request.control.name ?? '',
|
408
412
|
});
|
409
|
-
this.initialize()
|
413
|
+
this.initialize().catch(err => {
|
414
|
+
throw err;
|
415
|
+
});
|
410
416
|
this._log.info('updateControl request %j', request);
|
411
417
|
const wrappedCallback = callback
|
412
418
|
? (error, response, options, rawResponse) => {
|
@@ -438,7 +444,9 @@ class ControlServiceClient {
|
|
438
444
|
this._gaxModule.routingHeader.fromParams({
|
439
445
|
name: request.name ?? '',
|
440
446
|
});
|
441
|
-
this.initialize()
|
447
|
+
this.initialize().catch(err => {
|
448
|
+
throw err;
|
449
|
+
});
|
442
450
|
this._log.info('getControl request %j', request);
|
443
451
|
const wrappedCallback = callback
|
444
452
|
? (error, response, options, rawResponse) => {
|
@@ -470,7 +478,9 @@ class ControlServiceClient {
|
|
470
478
|
this._gaxModule.routingHeader.fromParams({
|
471
479
|
parent: request.parent ?? '',
|
472
480
|
});
|
473
|
-
this.initialize()
|
481
|
+
this.initialize().catch(err => {
|
482
|
+
throw err;
|
483
|
+
});
|
474
484
|
const wrappedCallback = callback
|
475
485
|
? (error, values, nextPageRequest, rawResponse) => {
|
476
486
|
this._log.info('listControls values %j', values);
|
@@ -528,7 +538,9 @@ class ControlServiceClient {
|
|
528
538
|
});
|
529
539
|
const defaultCallSettings = this._defaults['listControls'];
|
530
540
|
const callSettings = defaultCallSettings.merge(options);
|
531
|
-
this.initialize()
|
541
|
+
this.initialize().catch(err => {
|
542
|
+
throw err;
|
543
|
+
});
|
532
544
|
this._log.info('listControls stream %j', request);
|
533
545
|
return this.descriptors.page.listControls.createStream(this.innerApiCalls.listControls, request, callSettings);
|
534
546
|
}
|
@@ -578,7 +590,9 @@ class ControlServiceClient {
|
|
578
590
|
});
|
579
591
|
const defaultCallSettings = this._defaults['listControls'];
|
580
592
|
const callSettings = defaultCallSettings.merge(options);
|
581
|
-
this.initialize()
|
593
|
+
this.initialize().catch(err => {
|
594
|
+
throw err;
|
595
|
+
});
|
582
596
|
this._log.info('listControls iterate %j', request);
|
583
597
|
return this.descriptors.page.listControls.asyncIterate(this.innerApiCalls['listControls'], request, callSettings);
|
584
598
|
}
|
@@ -352,7 +352,9 @@ class ConversationalSearchServiceClient {
|
|
352
352
|
this._gaxModule.routingHeader.fromParams({
|
353
353
|
name: request.name ?? '',
|
354
354
|
});
|
355
|
-
this.initialize()
|
355
|
+
this.initialize().catch(err => {
|
356
|
+
throw err;
|
357
|
+
});
|
356
358
|
this._log.info('converseConversation request %j', request);
|
357
359
|
const wrappedCallback = callback
|
358
360
|
? (error, response, options, rawResponse) => {
|
@@ -384,7 +386,9 @@ class ConversationalSearchServiceClient {
|
|
384
386
|
this._gaxModule.routingHeader.fromParams({
|
385
387
|
parent: request.parent ?? '',
|
386
388
|
});
|
387
|
-
this.initialize()
|
389
|
+
this.initialize().catch(err => {
|
390
|
+
throw err;
|
391
|
+
});
|
388
392
|
this._log.info('createConversation request %j', request);
|
389
393
|
const wrappedCallback = callback
|
390
394
|
? (error, response, options, rawResponse) => {
|
@@ -416,7 +420,9 @@ class ConversationalSearchServiceClient {
|
|
416
420
|
this._gaxModule.routingHeader.fromParams({
|
417
421
|
name: request.name ?? '',
|
418
422
|
});
|
419
|
-
this.initialize()
|
423
|
+
this.initialize().catch(err => {
|
424
|
+
throw err;
|
425
|
+
});
|
420
426
|
this._log.info('deleteConversation request %j', request);
|
421
427
|
const wrappedCallback = callback
|
422
428
|
? (error, response, options, rawResponse) => {
|
@@ -448,7 +454,9 @@ class ConversationalSearchServiceClient {
|
|
448
454
|
this._gaxModule.routingHeader.fromParams({
|
449
455
|
'conversation.name': request.conversation.name ?? '',
|
450
456
|
});
|
451
|
-
this.initialize()
|
457
|
+
this.initialize().catch(err => {
|
458
|
+
throw err;
|
459
|
+
});
|
452
460
|
this._log.info('updateConversation request %j', request);
|
453
461
|
const wrappedCallback = callback
|
454
462
|
? (error, response, options, rawResponse) => {
|
@@ -480,7 +488,9 @@ class ConversationalSearchServiceClient {
|
|
480
488
|
this._gaxModule.routingHeader.fromParams({
|
481
489
|
name: request.name ?? '',
|
482
490
|
});
|
483
|
-
this.initialize()
|
491
|
+
this.initialize().catch(err => {
|
492
|
+
throw err;
|
493
|
+
});
|
484
494
|
this._log.info('getConversation request %j', request);
|
485
495
|
const wrappedCallback = callback
|
486
496
|
? (error, response, options, rawResponse) => {
|
@@ -512,7 +522,9 @@ class ConversationalSearchServiceClient {
|
|
512
522
|
this._gaxModule.routingHeader.fromParams({
|
513
523
|
serving_config: request.servingConfig ?? '',
|
514
524
|
});
|
515
|
-
this.initialize()
|
525
|
+
this.initialize().catch(err => {
|
526
|
+
throw err;
|
527
|
+
});
|
516
528
|
this._log.info('answerQuery request %j', request);
|
517
529
|
const wrappedCallback = callback
|
518
530
|
? (error, response, options, rawResponse) => {
|
@@ -544,7 +556,9 @@ class ConversationalSearchServiceClient {
|
|
544
556
|
this._gaxModule.routingHeader.fromParams({
|
545
557
|
name: request.name ?? '',
|
546
558
|
});
|
547
|
-
this.initialize()
|
559
|
+
this.initialize().catch(err => {
|
560
|
+
throw err;
|
561
|
+
});
|
548
562
|
this._log.info('getAnswer request %j', request);
|
549
563
|
const wrappedCallback = callback
|
550
564
|
? (error, response, options, rawResponse) => {
|
@@ -576,7 +590,9 @@ class ConversationalSearchServiceClient {
|
|
576
590
|
this._gaxModule.routingHeader.fromParams({
|
577
591
|
parent: request.parent ?? '',
|
578
592
|
});
|
579
|
-
this.initialize()
|
593
|
+
this.initialize().catch(err => {
|
594
|
+
throw err;
|
595
|
+
});
|
580
596
|
this._log.info('createSession request %j', request);
|
581
597
|
const wrappedCallback = callback
|
582
598
|
? (error, response, options, rawResponse) => {
|
@@ -608,7 +624,9 @@ class ConversationalSearchServiceClient {
|
|
608
624
|
this._gaxModule.routingHeader.fromParams({
|
609
625
|
name: request.name ?? '',
|
610
626
|
});
|
611
|
-
this.initialize()
|
627
|
+
this.initialize().catch(err => {
|
628
|
+
throw err;
|
629
|
+
});
|
612
630
|
this._log.info('deleteSession request %j', request);
|
613
631
|
const wrappedCallback = callback
|
614
632
|
? (error, response, options, rawResponse) => {
|
@@ -640,7 +658,9 @@ class ConversationalSearchServiceClient {
|
|
640
658
|
this._gaxModule.routingHeader.fromParams({
|
641
659
|
'session.name': request.session.name ?? '',
|
642
660
|
});
|
643
|
-
this.initialize()
|
661
|
+
this.initialize().catch(err => {
|
662
|
+
throw err;
|
663
|
+
});
|
644
664
|
this._log.info('updateSession request %j', request);
|
645
665
|
const wrappedCallback = callback
|
646
666
|
? (error, response, options, rawResponse) => {
|
@@ -672,7 +692,9 @@ class ConversationalSearchServiceClient {
|
|
672
692
|
this._gaxModule.routingHeader.fromParams({
|
673
693
|
name: request.name ?? '',
|
674
694
|
});
|
675
|
-
this.initialize()
|
695
|
+
this.initialize().catch(err => {
|
696
|
+
throw err;
|
697
|
+
});
|
676
698
|
this._log.info('getSession request %j', request);
|
677
699
|
const wrappedCallback = callback
|
678
700
|
? (error, response, options, rawResponse) => {
|
@@ -704,7 +726,9 @@ class ConversationalSearchServiceClient {
|
|
704
726
|
this._gaxModule.routingHeader.fromParams({
|
705
727
|
parent: request.parent ?? '',
|
706
728
|
});
|
707
|
-
this.initialize()
|
729
|
+
this.initialize().catch(err => {
|
730
|
+
throw err;
|
731
|
+
});
|
708
732
|
const wrappedCallback = callback
|
709
733
|
? (error, values, nextPageRequest, rawResponse) => {
|
710
734
|
this._log.info('listConversations values %j', values);
|
@@ -771,7 +795,9 @@ class ConversationalSearchServiceClient {
|
|
771
795
|
});
|
772
796
|
const defaultCallSettings = this._defaults['listConversations'];
|
773
797
|
const callSettings = defaultCallSettings.merge(options);
|
774
|
-
this.initialize()
|
798
|
+
this.initialize().catch(err => {
|
799
|
+
throw err;
|
800
|
+
});
|
775
801
|
this._log.info('listConversations stream %j', request);
|
776
802
|
return this.descriptors.page.listConversations.createStream(this.innerApiCalls.listConversations, request, callSettings);
|
777
803
|
}
|
@@ -830,7 +856,9 @@ class ConversationalSearchServiceClient {
|
|
830
856
|
});
|
831
857
|
const defaultCallSettings = this._defaults['listConversations'];
|
832
858
|
const callSettings = defaultCallSettings.merge(options);
|
833
|
-
this.initialize()
|
859
|
+
this.initialize().catch(err => {
|
860
|
+
throw err;
|
861
|
+
});
|
834
862
|
this._log.info('listConversations iterate %j', request);
|
835
863
|
return this.descriptors.page.listConversations.asyncIterate(this.innerApiCalls['listConversations'], request, callSettings);
|
836
864
|
}
|
@@ -851,7 +879,9 @@ class ConversationalSearchServiceClient {
|
|
851
879
|
this._gaxModule.routingHeader.fromParams({
|
852
880
|
parent: request.parent ?? '',
|
853
881
|
});
|
854
|
-
this.initialize()
|
882
|
+
this.initialize().catch(err => {
|
883
|
+
throw err;
|
884
|
+
});
|
855
885
|
const wrappedCallback = callback
|
856
886
|
? (error, values, nextPageRequest, rawResponse) => {
|
857
887
|
this._log.info('listSessions values %j', values);
|
@@ -918,7 +948,9 @@ class ConversationalSearchServiceClient {
|
|
918
948
|
});
|
919
949
|
const defaultCallSettings = this._defaults['listSessions'];
|
920
950
|
const callSettings = defaultCallSettings.merge(options);
|
921
|
-
this.initialize()
|
951
|
+
this.initialize().catch(err => {
|
952
|
+
throw err;
|
953
|
+
});
|
922
954
|
this._log.info('listSessions stream %j', request);
|
923
955
|
return this.descriptors.page.listSessions.createStream(this.innerApiCalls.listSessions, request, callSettings);
|
924
956
|
}
|
@@ -977,7 +1009,9 @@ class ConversationalSearchServiceClient {
|
|
977
1009
|
});
|
978
1010
|
const defaultCallSettings = this._defaults['listSessions'];
|
979
1011
|
const callSettings = defaultCallSettings.merge(options);
|
980
|
-
this.initialize()
|
1012
|
+
this.initialize().catch(err => {
|
1013
|
+
throw err;
|
1014
|
+
});
|
981
1015
|
this._log.info('listSessions iterate %j', request);
|
982
1016
|
return this.descriptors.page.listSessions.asyncIterate(this.innerApiCalls['listSessions'], request, callSettings);
|
983
1017
|
}
|
@@ -560,7 +560,7 @@ export declare class DataStoreServiceClient {
|
|
560
560
|
* // doThingsWith(response)
|
561
561
|
* ```
|
562
562
|
*/
|
563
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
563
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
564
564
|
/**
|
565
565
|
* Starts asynchronous cancellation on a long-running operation. The server
|
566
566
|
* makes a best effort to cancel the operation, but success is not
|
@@ -473,7 +473,9 @@ class DataStoreServiceClient {
|
|
473
473
|
this._gaxModule.routingHeader.fromParams({
|
474
474
|
name: request.name ?? '',
|
475
475
|
});
|
476
|
-
this.initialize()
|
476
|
+
this.initialize().catch(err => {
|
477
|
+
throw err;
|
478
|
+
});
|
477
479
|
this._log.info('getDataStore request %j', request);
|
478
480
|
const wrappedCallback = callback
|
479
481
|
? (error, response, options, rawResponse) => {
|
@@ -505,7 +507,9 @@ class DataStoreServiceClient {
|
|
505
507
|
this._gaxModule.routingHeader.fromParams({
|
506
508
|
'data_store.name': request.dataStore.name ?? '',
|
507
509
|
});
|
508
|
-
this.initialize()
|
510
|
+
this.initialize().catch(err => {
|
511
|
+
throw err;
|
512
|
+
});
|
509
513
|
this._log.info('updateDataStore request %j', request);
|
510
514
|
const wrappedCallback = callback
|
511
515
|
? (error, response, options, rawResponse) => {
|
@@ -537,7 +541,9 @@ class DataStoreServiceClient {
|
|
537
541
|
this._gaxModule.routingHeader.fromParams({
|
538
542
|
parent: request.parent ?? '',
|
539
543
|
});
|
540
|
-
this.initialize()
|
544
|
+
this.initialize().catch(err => {
|
545
|
+
throw err;
|
546
|
+
});
|
541
547
|
const wrappedCallback = callback
|
542
548
|
? (error, response, rawResponse, _) => {
|
543
549
|
this._log.info('createDataStore response %j', rawResponse);
|
@@ -587,7 +593,9 @@ class DataStoreServiceClient {
|
|
587
593
|
this._gaxModule.routingHeader.fromParams({
|
588
594
|
name: request.name ?? '',
|
589
595
|
});
|
590
|
-
this.initialize()
|
596
|
+
this.initialize().catch(err => {
|
597
|
+
throw err;
|
598
|
+
});
|
591
599
|
const wrappedCallback = callback
|
592
600
|
? (error, response, rawResponse, _) => {
|
593
601
|
this._log.info('deleteDataStore response %j', rawResponse);
|
@@ -637,7 +645,9 @@ class DataStoreServiceClient {
|
|
637
645
|
this._gaxModule.routingHeader.fromParams({
|
638
646
|
parent: request.parent ?? '',
|
639
647
|
});
|
640
|
-
this.initialize()
|
648
|
+
this.initialize().catch(err => {
|
649
|
+
throw err;
|
650
|
+
});
|
641
651
|
const wrappedCallback = callback
|
642
652
|
? (error, values, nextPageRequest, rawResponse) => {
|
643
653
|
this._log.info('listDataStores values %j', values);
|
@@ -706,7 +716,9 @@ class DataStoreServiceClient {
|
|
706
716
|
});
|
707
717
|
const defaultCallSettings = this._defaults['listDataStores'];
|
708
718
|
const callSettings = defaultCallSettings.merge(options);
|
709
|
-
this.initialize()
|
719
|
+
this.initialize().catch(err => {
|
720
|
+
throw err;
|
721
|
+
});
|
710
722
|
this._log.info('listDataStores stream %j', request);
|
711
723
|
return this.descriptors.page.listDataStores.createStream(this.innerApiCalls.listDataStores, request, callSettings);
|
712
724
|
}
|
@@ -767,7 +779,9 @@ class DataStoreServiceClient {
|
|
767
779
|
});
|
768
780
|
const defaultCallSettings = this._defaults['listDataStores'];
|
769
781
|
const callSettings = defaultCallSettings.merge(options);
|
770
|
-
this.initialize()
|
782
|
+
this.initialize().catch(err => {
|
783
|
+
throw err;
|
784
|
+
});
|
771
785
|
this._log.info('listDataStores iterate %j', request);
|
772
786
|
return this.descriptors.page.listDataStores.asyncIterate(this.innerApiCalls['listDataStores'], request, callSettings);
|
773
787
|
}
|
@@ -749,7 +749,7 @@ export declare class DocumentServiceClient {
|
|
749
749
|
* // doThingsWith(response)
|
750
750
|
* ```
|
751
751
|
*/
|
752
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
752
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
753
753
|
/**
|
754
754
|
* Starts asynchronous cancellation on a long-running operation. The server
|
755
755
|
* makes a best effort to cancel the operation, but success is not
|
@@ -476,7 +476,9 @@ class DocumentServiceClient {
|
|
476
476
|
this._gaxModule.routingHeader.fromParams({
|
477
477
|
name: request.name ?? '',
|
478
478
|
});
|
479
|
-
this.initialize()
|
479
|
+
this.initialize().catch(err => {
|
480
|
+
throw err;
|
481
|
+
});
|
480
482
|
this._log.info('getDocument request %j', request);
|
481
483
|
const wrappedCallback = callback
|
482
484
|
? (error, response, options, rawResponse) => {
|
@@ -508,7 +510,9 @@ class DocumentServiceClient {
|
|
508
510
|
this._gaxModule.routingHeader.fromParams({
|
509
511
|
parent: request.parent ?? '',
|
510
512
|
});
|
511
|
-
this.initialize()
|
513
|
+
this.initialize().catch(err => {
|
514
|
+
throw err;
|
515
|
+
});
|
512
516
|
this._log.info('createDocument request %j', request);
|
513
517
|
const wrappedCallback = callback
|
514
518
|
? (error, response, options, rawResponse) => {
|
@@ -540,7 +544,9 @@ class DocumentServiceClient {
|
|
540
544
|
this._gaxModule.routingHeader.fromParams({
|
541
545
|
'document.name': request.document.name ?? '',
|
542
546
|
});
|
543
|
-
this.initialize()
|
547
|
+
this.initialize().catch(err => {
|
548
|
+
throw err;
|
549
|
+
});
|
544
550
|
this._log.info('updateDocument request %j', request);
|
545
551
|
const wrappedCallback = callback
|
546
552
|
? (error, response, options, rawResponse) => {
|
@@ -572,7 +578,9 @@ class DocumentServiceClient {
|
|
572
578
|
this._gaxModule.routingHeader.fromParams({
|
573
579
|
name: request.name ?? '',
|
574
580
|
});
|
575
|
-
this.initialize()
|
581
|
+
this.initialize().catch(err => {
|
582
|
+
throw err;
|
583
|
+
});
|
576
584
|
this._log.info('deleteDocument request %j', request);
|
577
585
|
const wrappedCallback = callback
|
578
586
|
? (error, response, options, rawResponse) => {
|
@@ -604,7 +612,9 @@ class DocumentServiceClient {
|
|
604
612
|
this._gaxModule.routingHeader.fromParams({
|
605
613
|
parent: request.parent ?? '',
|
606
614
|
});
|
607
|
-
this.initialize()
|
615
|
+
this.initialize().catch(err => {
|
616
|
+
throw err;
|
617
|
+
});
|
608
618
|
this._log.info('batchGetDocumentsMetadata request %j', request);
|
609
619
|
const wrappedCallback = callback
|
610
620
|
? (error, response, options, rawResponse) => {
|
@@ -636,7 +646,9 @@ class DocumentServiceClient {
|
|
636
646
|
this._gaxModule.routingHeader.fromParams({
|
637
647
|
parent: request.parent ?? '',
|
638
648
|
});
|
639
|
-
this.initialize()
|
649
|
+
this.initialize().catch(err => {
|
650
|
+
throw err;
|
651
|
+
});
|
640
652
|
const wrappedCallback = callback
|
641
653
|
? (error, response, rawResponse, _) => {
|
642
654
|
this._log.info('importDocuments response %j', rawResponse);
|
@@ -686,7 +698,9 @@ class DocumentServiceClient {
|
|
686
698
|
this._gaxModule.routingHeader.fromParams({
|
687
699
|
parent: request.parent ?? '',
|
688
700
|
});
|
689
|
-
this.initialize()
|
701
|
+
this.initialize().catch(err => {
|
702
|
+
throw err;
|
703
|
+
});
|
690
704
|
const wrappedCallback = callback
|
691
705
|
? (error, response, rawResponse, _) => {
|
692
706
|
this._log.info('purgeDocuments response %j', rawResponse);
|
@@ -736,7 +750,9 @@ class DocumentServiceClient {
|
|
736
750
|
this._gaxModule.routingHeader.fromParams({
|
737
751
|
parent: request.parent ?? '',
|
738
752
|
});
|
739
|
-
this.initialize()
|
753
|
+
this.initialize().catch(err => {
|
754
|
+
throw err;
|
755
|
+
});
|
740
756
|
const wrappedCallback = callback
|
741
757
|
? (error, values, nextPageRequest, rawResponse) => {
|
742
758
|
this._log.info('listDocuments values %j', values);
|
@@ -804,7 +820,9 @@ class DocumentServiceClient {
|
|
804
820
|
});
|
805
821
|
const defaultCallSettings = this._defaults['listDocuments'];
|
806
822
|
const callSettings = defaultCallSettings.merge(options);
|
807
|
-
this.initialize()
|
823
|
+
this.initialize().catch(err => {
|
824
|
+
throw err;
|
825
|
+
});
|
808
826
|
this._log.info('listDocuments stream %j', request);
|
809
827
|
return this.descriptors.page.listDocuments.createStream(this.innerApiCalls.listDocuments, request, callSettings);
|
810
828
|
}
|
@@ -864,7 +882,9 @@ class DocumentServiceClient {
|
|
864
882
|
});
|
865
883
|
const defaultCallSettings = this._defaults['listDocuments'];
|
866
884
|
const callSettings = defaultCallSettings.merge(options);
|
867
|
-
this.initialize()
|
885
|
+
this.initialize().catch(err => {
|
886
|
+
throw err;
|
887
|
+
});
|
868
888
|
this._log.info('listDocuments iterate %j', request);
|
869
889
|
return this.descriptors.page.listDocuments.asyncIterate(this.innerApiCalls['listDocuments'], request, callSettings);
|
870
890
|
}
|
@@ -476,7 +476,7 @@ export declare class EngineServiceClient {
|
|
476
476
|
* // doThingsWith(response)
|
477
477
|
* ```
|
478
478
|
*/
|
479
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
479
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
480
480
|
/**
|
481
481
|
* Starts asynchronous cancellation on a long-running operation. The server
|
482
482
|
* makes a best effort to cancel the operation, but success is not
|
@@ -472,7 +472,9 @@ class EngineServiceClient {
|
|
472
472
|
this._gaxModule.routingHeader.fromParams({
|
473
473
|
'engine.name': request.engine.name ?? '',
|
474
474
|
});
|
475
|
-
this.initialize()
|
475
|
+
this.initialize().catch(err => {
|
476
|
+
throw err;
|
477
|
+
});
|
476
478
|
this._log.info('updateEngine request %j', request);
|
477
479
|
const wrappedCallback = callback
|
478
480
|
? (error, response, options, rawResponse) => {
|
@@ -504,7 +506,9 @@ class EngineServiceClient {
|
|
504
506
|
this._gaxModule.routingHeader.fromParams({
|
505
507
|
name: request.name ?? '',
|
506
508
|
});
|
507
|
-
this.initialize()
|
509
|
+
this.initialize().catch(err => {
|
510
|
+
throw err;
|
511
|
+
});
|
508
512
|
this._log.info('getEngine request %j', request);
|
509
513
|
const wrappedCallback = callback
|
510
514
|
? (error, response, options, rawResponse) => {
|
@@ -536,7 +540,9 @@ class EngineServiceClient {
|
|
536
540
|
this._gaxModule.routingHeader.fromParams({
|
537
541
|
parent: request.parent ?? '',
|
538
542
|
});
|
539
|
-
this.initialize()
|
543
|
+
this.initialize().catch(err => {
|
544
|
+
throw err;
|
545
|
+
});
|
540
546
|
const wrappedCallback = callback
|
541
547
|
? (error, response, rawResponse, _) => {
|
542
548
|
this._log.info('createEngine response %j', rawResponse);
|
@@ -586,7 +592,9 @@ class EngineServiceClient {
|
|
586
592
|
this._gaxModule.routingHeader.fromParams({
|
587
593
|
name: request.name ?? '',
|
588
594
|
});
|
589
|
-
this.initialize()
|
595
|
+
this.initialize().catch(err => {
|
596
|
+
throw err;
|
597
|
+
});
|
590
598
|
const wrappedCallback = callback
|
591
599
|
? (error, response, rawResponse, _) => {
|
592
600
|
this._log.info('deleteEngine response %j', rawResponse);
|
@@ -636,7 +644,9 @@ class EngineServiceClient {
|
|
636
644
|
this._gaxModule.routingHeader.fromParams({
|
637
645
|
parent: request.parent ?? '',
|
638
646
|
});
|
639
|
-
this.initialize()
|
647
|
+
this.initialize().catch(err => {
|
648
|
+
throw err;
|
649
|
+
});
|
640
650
|
const wrappedCallback = callback
|
641
651
|
? (error, values, nextPageRequest, rawResponse) => {
|
642
652
|
this._log.info('listEngines values %j', values);
|
@@ -687,7 +697,9 @@ class EngineServiceClient {
|
|
687
697
|
});
|
688
698
|
const defaultCallSettings = this._defaults['listEngines'];
|
689
699
|
const callSettings = defaultCallSettings.merge(options);
|
690
|
-
this.initialize()
|
700
|
+
this.initialize().catch(err => {
|
701
|
+
throw err;
|
702
|
+
});
|
691
703
|
this._log.info('listEngines stream %j', request);
|
692
704
|
return this.descriptors.page.listEngines.createStream(this.innerApiCalls.listEngines, request, callSettings);
|
693
705
|
}
|
@@ -730,7 +742,9 @@ class EngineServiceClient {
|
|
730
742
|
});
|
731
743
|
const defaultCallSettings = this._defaults['listEngines'];
|
732
744
|
const callSettings = defaultCallSettings.merge(options);
|
733
|
-
this.initialize()
|
745
|
+
this.initialize().catch(err => {
|
746
|
+
throw err;
|
747
|
+
});
|
734
748
|
this._log.info('listEngines iterate %j', request);
|
735
749
|
return this.descriptors.page.listEngines.asyncIterate(this.innerApiCalls['listEngines'], request, callSettings);
|
736
750
|
}
|
@@ -347,7 +347,9 @@ class GroundedGenerationServiceClient {
|
|
347
347
|
this._gaxModule.routingHeader.fromParams({
|
348
348
|
location: request.location ?? '',
|
349
349
|
});
|
350
|
-
this.initialize()
|
350
|
+
this.initialize().catch(err => {
|
351
|
+
throw err;
|
352
|
+
});
|
351
353
|
this._log.info('generateGroundedContent request %j', request);
|
352
354
|
const wrappedCallback = callback
|
353
355
|
? (error, response, options, rawResponse) => {
|
@@ -379,7 +381,9 @@ class GroundedGenerationServiceClient {
|
|
379
381
|
this._gaxModule.routingHeader.fromParams({
|
380
382
|
grounding_config: request.groundingConfig ?? '',
|
381
383
|
});
|
382
|
-
this.initialize()
|
384
|
+
this.initialize().catch(err => {
|
385
|
+
throw err;
|
386
|
+
});
|
383
387
|
this._log.info('checkGrounding request %j', request);
|
384
388
|
const wrappedCallback = callback
|
385
389
|
? (error, response, options, rawResponse) => {
|
@@ -409,7 +413,9 @@ class GroundedGenerationServiceClient {
|
|
409
413
|
* region_tag:discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_async
|
410
414
|
*/
|
411
415
|
streamGenerateGroundedContent(options) {
|
412
|
-
this.initialize()
|
416
|
+
this.initialize().catch(err => {
|
417
|
+
throw err;
|
418
|
+
});
|
413
419
|
this._log.info('streamGenerateGroundedContent stream %j', options);
|
414
420
|
return this.innerApiCalls.streamGenerateGroundedContent(null, options);
|
415
421
|
}
|
@@ -283,7 +283,7 @@ export declare class ProjectServiceClient {
|
|
283
283
|
* // doThingsWith(response)
|
284
284
|
* ```
|
285
285
|
*/
|
286
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
286
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
287
287
|
/**
|
288
288
|
* Starts asynchronous cancellation on a long-running operation. The server
|
289
289
|
* makes a best effort to cancel the operation, but success is not
|