@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.
Files changed (90) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/src/v1/completion_service_client.d.ts +1 -1
  3. package/build/src/v1/completion_service_client.js +15 -5
  4. package/build/src/v1/control_service_client.js +21 -7
  5. package/build/src/v1/conversational_search_service_client.js +51 -17
  6. package/build/src/v1/data_store_service_client.d.ts +1 -1
  7. package/build/src/v1/data_store_service_client.js +21 -7
  8. package/build/src/v1/document_service_client.d.ts +1 -1
  9. package/build/src/v1/document_service_client.js +30 -10
  10. package/build/src/v1/engine_service_client.d.ts +1 -1
  11. package/build/src/v1/engine_service_client.js +21 -7
  12. package/build/src/v1/grounded_generation_service_client.js +9 -3
  13. package/build/src/v1/project_service_client.d.ts +1 -1
  14. package/build/src/v1/project_service_client.js +3 -1
  15. package/build/src/v1/rank_service_client.js +3 -1
  16. package/build/src/v1/recommendation_service_client.js +3 -1
  17. package/build/src/v1/schema_service_client.d.ts +1 -1
  18. package/build/src/v1/schema_service_client.js +21 -7
  19. package/build/src/v1/search_service_client.js +18 -6
  20. package/build/src/v1/search_tuning_service_client.d.ts +1 -1
  21. package/build/src/v1/search_tuning_service_client.js +6 -2
  22. package/build/src/v1/site_search_engine_service_client.d.ts +1 -1
  23. package/build/src/v1/site_search_engine_service_client.js +48 -16
  24. package/build/src/v1/user_event_service_client.d.ts +1 -1
  25. package/build/src/v1/user_event_service_client.js +12 -4
  26. package/build/src/v1alpha/acl_config_service_client.js +6 -2
  27. package/build/src/v1alpha/chunk_service_client.js +12 -4
  28. package/build/src/v1alpha/completion_service_client.d.ts +1 -1
  29. package/build/src/v1alpha/completion_service_client.js +15 -5
  30. package/build/src/v1alpha/control_service_client.js +21 -7
  31. package/build/src/v1alpha/conversational_search_service_client.js +51 -17
  32. package/build/src/v1alpha/data_store_service_client.d.ts +1 -1
  33. package/build/src/v1alpha/data_store_service_client.js +27 -9
  34. package/build/src/v1alpha/document_service_client.d.ts +1 -1
  35. package/build/src/v1alpha/document_service_client.js +33 -11
  36. package/build/src/v1alpha/engine_service_client.d.ts +1 -1
  37. package/build/src/v1alpha/engine_service_client.js +30 -10
  38. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1 -1
  39. package/build/src/v1alpha/estimate_billing_service_client.js +3 -1
  40. package/build/src/v1alpha/evaluation_service_client.d.ts +1 -1
  41. package/build/src/v1alpha/evaluation_service_client.js +24 -8
  42. package/build/src/v1alpha/grounded_generation_service_client.js +3 -1
  43. package/build/src/v1alpha/project_service_client.d.ts +1 -1
  44. package/build/src/v1alpha/project_service_client.js +9 -3
  45. package/build/src/v1alpha/rank_service_client.js +3 -1
  46. package/build/src/v1alpha/recommendation_service_client.js +3 -1
  47. package/build/src/v1alpha/sample_query_service_client.d.ts +1 -1
  48. package/build/src/v1alpha/sample_query_service_client.js +24 -8
  49. package/build/src/v1alpha/sample_query_set_service_client.js +21 -7
  50. package/build/src/v1alpha/schema_service_client.d.ts +1 -1
  51. package/build/src/v1alpha/schema_service_client.js +21 -7
  52. package/build/src/v1alpha/search_service_client.js +9 -3
  53. package/build/src/v1alpha/search_tuning_service_client.d.ts +1 -1
  54. package/build/src/v1alpha/search_tuning_service_client.js +6 -2
  55. package/build/src/v1alpha/serving_config_service_client.js +15 -5
  56. package/build/src/v1alpha/site_search_engine_service_client.d.ts +1 -1
  57. package/build/src/v1alpha/site_search_engine_service_client.js +54 -18
  58. package/build/src/v1alpha/user_event_service_client.d.ts +1 -1
  59. package/build/src/v1alpha/user_event_service_client.js +12 -4
  60. package/build/src/v1beta/completion_service_client.d.ts +1 -1
  61. package/build/src/v1beta/completion_service_client.js +18 -6
  62. package/build/src/v1beta/control_service_client.js +21 -7
  63. package/build/src/v1beta/conversational_search_service_client.js +51 -17
  64. package/build/src/v1beta/data_store_service_client.d.ts +1 -1
  65. package/build/src/v1beta/data_store_service_client.js +21 -7
  66. package/build/src/v1beta/document_service_client.d.ts +1 -1
  67. package/build/src/v1beta/document_service_client.js +30 -10
  68. package/build/src/v1beta/engine_service_client.d.ts +1 -1
  69. package/build/src/v1beta/engine_service_client.js +30 -10
  70. package/build/src/v1beta/evaluation_service_client.d.ts +1 -1
  71. package/build/src/v1beta/evaluation_service_client.js +24 -8
  72. package/build/src/v1beta/grounded_generation_service_client.js +9 -3
  73. package/build/src/v1beta/project_service_client.d.ts +1 -1
  74. package/build/src/v1beta/project_service_client.js +3 -1
  75. package/build/src/v1beta/rank_service_client.js +3 -1
  76. package/build/src/v1beta/recommendation_service_client.js +3 -1
  77. package/build/src/v1beta/sample_query_service_client.d.ts +1 -1
  78. package/build/src/v1beta/sample_query_service_client.js +24 -8
  79. package/build/src/v1beta/sample_query_set_service_client.js +21 -7
  80. package/build/src/v1beta/schema_service_client.d.ts +1 -1
  81. package/build/src/v1beta/schema_service_client.js +21 -7
  82. package/build/src/v1beta/search_service_client.js +18 -6
  83. package/build/src/v1beta/search_tuning_service_client.d.ts +1 -1
  84. package/build/src/v1beta/search_tuning_service_client.js +6 -2
  85. package/build/src/v1beta/serving_config_service_client.js +15 -5
  86. package/build/src/v1beta/site_search_engine_service_client.d.ts +1 -1
  87. package/build/src/v1beta/site_search_engine_service_client.js +57 -19
  88. package/build/src/v1beta/user_event_service_client.d.ts +1 -1
  89. package/build/src/v1beta/user_event_service_client.js +12 -4
  90. package/package.json +2 -2
@@ -469,7 +469,9 @@ class UserEventServiceClient {
469
469
  this._gaxModule.routingHeader.fromParams({
470
470
  parent: request.parent ?? '',
471
471
  });
472
- this.initialize();
472
+ this.initialize().catch(err => {
473
+ throw err;
474
+ });
473
475
  this._log.info('writeUserEvent request %j', request);
474
476
  const wrappedCallback = callback
475
477
  ? (error, response, options, rawResponse) => {
@@ -501,7 +503,9 @@ class UserEventServiceClient {
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
  this._log.info('collectUserEvent request %j', request);
506
510
  const wrappedCallback = callback
507
511
  ? (error, response, options, rawResponse) => {
@@ -533,7 +537,9 @@ class UserEventServiceClient {
533
537
  this._gaxModule.routingHeader.fromParams({
534
538
  parent: request.parent ?? '',
535
539
  });
536
- this.initialize();
540
+ this.initialize().catch(err => {
541
+ throw err;
542
+ });
537
543
  const wrappedCallback = callback
538
544
  ? (error, response, rawResponse, _) => {
539
545
  this._log.info('purgeUserEvents response %j', rawResponse);
@@ -583,7 +589,9 @@ class UserEventServiceClient {
583
589
  this._gaxModule.routingHeader.fromParams({
584
590
  parent: request.parent ?? '',
585
591
  });
586
- this.initialize();
592
+ this.initialize().catch(err => {
593
+ throw err;
594
+ });
587
595
  const wrappedCallback = callback
588
596
  ? (error, response, rawResponse, _) => {
589
597
  this._log.info('importUserEvents response %j', rawResponse);
@@ -561,7 +561,7 @@ export declare class CompletionServiceClient {
561
561
  * // doThingsWith(response)
562
562
  * ```
563
563
  */
564
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
564
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
565
565
  /**
566
566
  * Starts asynchronous cancellation on a long-running operation. The server
567
567
  * makes a best effort to cancel the operation, but success is not
@@ -476,7 +476,9 @@ class CompletionServiceClient {
476
476
  this._gaxModule.routingHeader.fromParams({
477
477
  data_store: request.dataStore ?? '',
478
478
  });
479
- this.initialize();
479
+ this.initialize().catch(err => {
480
+ throw err;
481
+ });
480
482
  this._log.info('completeQuery request %j', request);
481
483
  const wrappedCallback = callback
482
484
  ? (error, response, options, rawResponse) => {
@@ -508,7 +510,9 @@ class CompletionServiceClient {
508
510
  this._gaxModule.routingHeader.fromParams({
509
511
  completion_config: request.completionConfig ?? '',
510
512
  });
511
- this.initialize();
513
+ this.initialize().catch(err => {
514
+ throw err;
515
+ });
512
516
  this._log.info('advancedCompleteQuery request %j', request);
513
517
  const wrappedCallback = callback
514
518
  ? (error, response, options, rawResponse) => {
@@ -540,7 +544,9 @@ class CompletionServiceClient {
540
544
  this._gaxModule.routingHeader.fromParams({
541
545
  parent: request.parent ?? '',
542
546
  });
543
- this.initialize();
547
+ this.initialize().catch(err => {
548
+ throw err;
549
+ });
544
550
  const wrappedCallback = callback
545
551
  ? (error, response, rawResponse, _) => {
546
552
  this._log.info('importSuggestionDenyListEntries response %j', rawResponse);
@@ -590,7 +596,9 @@ class CompletionServiceClient {
590
596
  this._gaxModule.routingHeader.fromParams({
591
597
  parent: request.parent ?? '',
592
598
  });
593
- this.initialize();
599
+ this.initialize().catch(err => {
600
+ throw err;
601
+ });
594
602
  const wrappedCallback = callback
595
603
  ? (error, response, rawResponse, _) => {
596
604
  this._log.info('purgeSuggestionDenyListEntries response %j', rawResponse);
@@ -640,7 +648,9 @@ class CompletionServiceClient {
640
648
  this._gaxModule.routingHeader.fromParams({
641
649
  parent: request.parent ?? '',
642
650
  });
643
- this.initialize();
651
+ this.initialize().catch(err => {
652
+ throw err;
653
+ });
644
654
  const wrappedCallback = callback
645
655
  ? (error, response, rawResponse, _) => {
646
656
  this._log.info('importCompletionSuggestions response %j', rawResponse);
@@ -690,7 +700,9 @@ class CompletionServiceClient {
690
700
  this._gaxModule.routingHeader.fromParams({
691
701
  parent: request.parent ?? '',
692
702
  });
693
- this.initialize();
703
+ this.initialize().catch(err => {
704
+ throw err;
705
+ });
694
706
  const wrappedCallback = callback
695
707
  ? (error, response, rawResponse, _) => {
696
708
  this._log.info('purgeCompletionSuggestions response %j', rawResponse);
@@ -352,7 +352,9 @@ class ControlServiceClient {
352
352
  this._gaxModule.routingHeader.fromParams({
353
353
  parent: request.parent ?? '',
354
354
  });
355
- this.initialize();
355
+ this.initialize().catch(err => {
356
+ throw err;
357
+ });
356
358
  this._log.info('createControl request %j', request);
357
359
  const wrappedCallback = callback
358
360
  ? (error, response, options, rawResponse) => {
@@ -384,7 +386,9 @@ class ControlServiceClient {
384
386
  this._gaxModule.routingHeader.fromParams({
385
387
  name: request.name ?? '',
386
388
  });
387
- this.initialize();
389
+ this.initialize().catch(err => {
390
+ throw err;
391
+ });
388
392
  this._log.info('deleteControl request %j', request);
389
393
  const wrappedCallback = callback
390
394
  ? (error, response, options, rawResponse) => {
@@ -416,7 +420,9 @@ class ControlServiceClient {
416
420
  this._gaxModule.routingHeader.fromParams({
417
421
  'control.name': request.control.name ?? '',
418
422
  });
419
- this.initialize();
423
+ this.initialize().catch(err => {
424
+ throw err;
425
+ });
420
426
  this._log.info('updateControl request %j', request);
421
427
  const wrappedCallback = callback
422
428
  ? (error, response, options, rawResponse) => {
@@ -448,7 +454,9 @@ class ControlServiceClient {
448
454
  this._gaxModule.routingHeader.fromParams({
449
455
  name: request.name ?? '',
450
456
  });
451
- this.initialize();
457
+ this.initialize().catch(err => {
458
+ throw err;
459
+ });
452
460
  this._log.info('getControl request %j', request);
453
461
  const wrappedCallback = callback
454
462
  ? (error, response, options, rawResponse) => {
@@ -480,7 +488,9 @@ class ControlServiceClient {
480
488
  this._gaxModule.routingHeader.fromParams({
481
489
  parent: request.parent ?? '',
482
490
  });
483
- this.initialize();
491
+ this.initialize().catch(err => {
492
+ throw err;
493
+ });
484
494
  const wrappedCallback = callback
485
495
  ? (error, values, nextPageRequest, rawResponse) => {
486
496
  this._log.info('listControls values %j', values);
@@ -538,7 +548,9 @@ class ControlServiceClient {
538
548
  });
539
549
  const defaultCallSettings = this._defaults['listControls'];
540
550
  const callSettings = defaultCallSettings.merge(options);
541
- this.initialize();
551
+ this.initialize().catch(err => {
552
+ throw err;
553
+ });
542
554
  this._log.info('listControls stream %j', request);
543
555
  return this.descriptors.page.listControls.createStream(this.innerApiCalls.listControls, request, callSettings);
544
556
  }
@@ -588,7 +600,9 @@ class ControlServiceClient {
588
600
  });
589
601
  const defaultCallSettings = this._defaults['listControls'];
590
602
  const callSettings = defaultCallSettings.merge(options);
591
- this.initialize();
603
+ this.initialize().catch(err => {
604
+ throw err;
605
+ });
592
606
  this._log.info('listControls iterate %j', request);
593
607
  return this.descriptors.page.listControls.asyncIterate(this.innerApiCalls['listControls'], request, callSettings);
594
608
  }
@@ -358,7 +358,9 @@ class ConversationalSearchServiceClient {
358
358
  this._gaxModule.routingHeader.fromParams({
359
359
  name: request.name ?? '',
360
360
  });
361
- this.initialize();
361
+ this.initialize().catch(err => {
362
+ throw err;
363
+ });
362
364
  this._log.info('converseConversation request %j', request);
363
365
  const wrappedCallback = callback
364
366
  ? (error, response, options, rawResponse) => {
@@ -390,7 +392,9 @@ class ConversationalSearchServiceClient {
390
392
  this._gaxModule.routingHeader.fromParams({
391
393
  parent: request.parent ?? '',
392
394
  });
393
- this.initialize();
395
+ this.initialize().catch(err => {
396
+ throw err;
397
+ });
394
398
  this._log.info('createConversation request %j', request);
395
399
  const wrappedCallback = callback
396
400
  ? (error, response, options, rawResponse) => {
@@ -422,7 +426,9 @@ class ConversationalSearchServiceClient {
422
426
  this._gaxModule.routingHeader.fromParams({
423
427
  name: request.name ?? '',
424
428
  });
425
- this.initialize();
429
+ this.initialize().catch(err => {
430
+ throw err;
431
+ });
426
432
  this._log.info('deleteConversation request %j', request);
427
433
  const wrappedCallback = callback
428
434
  ? (error, response, options, rawResponse) => {
@@ -454,7 +460,9 @@ class ConversationalSearchServiceClient {
454
460
  this._gaxModule.routingHeader.fromParams({
455
461
  'conversation.name': request.conversation.name ?? '',
456
462
  });
457
- this.initialize();
463
+ this.initialize().catch(err => {
464
+ throw err;
465
+ });
458
466
  this._log.info('updateConversation request %j', request);
459
467
  const wrappedCallback = callback
460
468
  ? (error, response, options, rawResponse) => {
@@ -486,7 +494,9 @@ class ConversationalSearchServiceClient {
486
494
  this._gaxModule.routingHeader.fromParams({
487
495
  name: request.name ?? '',
488
496
  });
489
- this.initialize();
497
+ this.initialize().catch(err => {
498
+ throw err;
499
+ });
490
500
  this._log.info('getConversation request %j', request);
491
501
  const wrappedCallback = callback
492
502
  ? (error, response, options, rawResponse) => {
@@ -518,7 +528,9 @@ class ConversationalSearchServiceClient {
518
528
  this._gaxModule.routingHeader.fromParams({
519
529
  serving_config: request.servingConfig ?? '',
520
530
  });
521
- this.initialize();
531
+ this.initialize().catch(err => {
532
+ throw err;
533
+ });
522
534
  this._log.info('answerQuery request %j', request);
523
535
  const wrappedCallback = callback
524
536
  ? (error, response, options, rawResponse) => {
@@ -550,7 +562,9 @@ class ConversationalSearchServiceClient {
550
562
  this._gaxModule.routingHeader.fromParams({
551
563
  name: request.name ?? '',
552
564
  });
553
- this.initialize();
565
+ this.initialize().catch(err => {
566
+ throw err;
567
+ });
554
568
  this._log.info('getAnswer request %j', request);
555
569
  const wrappedCallback = callback
556
570
  ? (error, response, options, rawResponse) => {
@@ -582,7 +596,9 @@ class ConversationalSearchServiceClient {
582
596
  this._gaxModule.routingHeader.fromParams({
583
597
  parent: request.parent ?? '',
584
598
  });
585
- this.initialize();
599
+ this.initialize().catch(err => {
600
+ throw err;
601
+ });
586
602
  this._log.info('createSession request %j', request);
587
603
  const wrappedCallback = callback
588
604
  ? (error, response, options, rawResponse) => {
@@ -614,7 +630,9 @@ class ConversationalSearchServiceClient {
614
630
  this._gaxModule.routingHeader.fromParams({
615
631
  name: request.name ?? '',
616
632
  });
617
- this.initialize();
633
+ this.initialize().catch(err => {
634
+ throw err;
635
+ });
618
636
  this._log.info('deleteSession request %j', request);
619
637
  const wrappedCallback = callback
620
638
  ? (error, response, options, rawResponse) => {
@@ -646,7 +664,9 @@ class ConversationalSearchServiceClient {
646
664
  this._gaxModule.routingHeader.fromParams({
647
665
  'session.name': request.session.name ?? '',
648
666
  });
649
- this.initialize();
667
+ this.initialize().catch(err => {
668
+ throw err;
669
+ });
650
670
  this._log.info('updateSession request %j', request);
651
671
  const wrappedCallback = callback
652
672
  ? (error, response, options, rawResponse) => {
@@ -678,7 +698,9 @@ class ConversationalSearchServiceClient {
678
698
  this._gaxModule.routingHeader.fromParams({
679
699
  name: request.name ?? '',
680
700
  });
681
- this.initialize();
701
+ this.initialize().catch(err => {
702
+ throw err;
703
+ });
682
704
  this._log.info('getSession request %j', request);
683
705
  const wrappedCallback = callback
684
706
  ? (error, response, options, rawResponse) => {
@@ -710,7 +732,9 @@ class ConversationalSearchServiceClient {
710
732
  this._gaxModule.routingHeader.fromParams({
711
733
  parent: request.parent ?? '',
712
734
  });
713
- this.initialize();
735
+ this.initialize().catch(err => {
736
+ throw err;
737
+ });
714
738
  const wrappedCallback = callback
715
739
  ? (error, values, nextPageRequest, rawResponse) => {
716
740
  this._log.info('listConversations values %j', values);
@@ -777,7 +801,9 @@ class ConversationalSearchServiceClient {
777
801
  });
778
802
  const defaultCallSettings = this._defaults['listConversations'];
779
803
  const callSettings = defaultCallSettings.merge(options);
780
- this.initialize();
804
+ this.initialize().catch(err => {
805
+ throw err;
806
+ });
781
807
  this._log.info('listConversations stream %j', request);
782
808
  return this.descriptors.page.listConversations.createStream(this.innerApiCalls.listConversations, request, callSettings);
783
809
  }
@@ -836,7 +862,9 @@ class ConversationalSearchServiceClient {
836
862
  });
837
863
  const defaultCallSettings = this._defaults['listConversations'];
838
864
  const callSettings = defaultCallSettings.merge(options);
839
- this.initialize();
865
+ this.initialize().catch(err => {
866
+ throw err;
867
+ });
840
868
  this._log.info('listConversations iterate %j', request);
841
869
  return this.descriptors.page.listConversations.asyncIterate(this.innerApiCalls['listConversations'], request, callSettings);
842
870
  }
@@ -857,7 +885,9 @@ class ConversationalSearchServiceClient {
857
885
  this._gaxModule.routingHeader.fromParams({
858
886
  parent: request.parent ?? '',
859
887
  });
860
- this.initialize();
888
+ this.initialize().catch(err => {
889
+ throw err;
890
+ });
861
891
  const wrappedCallback = callback
862
892
  ? (error, values, nextPageRequest, rawResponse) => {
863
893
  this._log.info('listSessions values %j', values);
@@ -924,7 +954,9 @@ class ConversationalSearchServiceClient {
924
954
  });
925
955
  const defaultCallSettings = this._defaults['listSessions'];
926
956
  const callSettings = defaultCallSettings.merge(options);
927
- this.initialize();
957
+ this.initialize().catch(err => {
958
+ throw err;
959
+ });
928
960
  this._log.info('listSessions stream %j', request);
929
961
  return this.descriptors.page.listSessions.createStream(this.innerApiCalls.listSessions, request, callSettings);
930
962
  }
@@ -983,7 +1015,9 @@ class ConversationalSearchServiceClient {
983
1015
  });
984
1016
  const defaultCallSettings = this._defaults['listSessions'];
985
1017
  const callSettings = defaultCallSettings.merge(options);
986
- this.initialize();
1018
+ this.initialize().catch(err => {
1019
+ throw err;
1020
+ });
987
1021
  this._log.info('listSessions iterate %j', request);
988
1022
  return this.descriptors.page.listSessions.asyncIterate(this.innerApiCalls['listSessions'], request, callSettings);
989
1023
  }
@@ -563,7 +563,7 @@ export declare class DataStoreServiceClient {
563
563
  * // doThingsWith(response)
564
564
  * ```
565
565
  */
566
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
566
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
567
567
  /**
568
568
  * Starts asynchronous cancellation on a long-running operation. The server
569
569
  * makes a best effort to cancel the operation, but success is not
@@ -476,7 +476,9 @@ class DataStoreServiceClient {
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('getDataStore request %j', request);
481
483
  const wrappedCallback = callback
482
484
  ? (error, response, options, rawResponse) => {
@@ -508,7 +510,9 @@ class DataStoreServiceClient {
508
510
  this._gaxModule.routingHeader.fromParams({
509
511
  'data_store.name': request.dataStore.name ?? '',
510
512
  });
511
- this.initialize();
513
+ this.initialize().catch(err => {
514
+ throw err;
515
+ });
512
516
  this._log.info('updateDataStore request %j', request);
513
517
  const wrappedCallback = callback
514
518
  ? (error, response, options, rawResponse) => {
@@ -540,7 +544,9 @@ class DataStoreServiceClient {
540
544
  this._gaxModule.routingHeader.fromParams({
541
545
  parent: request.parent ?? '',
542
546
  });
543
- this.initialize();
547
+ this.initialize().catch(err => {
548
+ throw err;
549
+ });
544
550
  const wrappedCallback = callback
545
551
  ? (error, response, rawResponse, _) => {
546
552
  this._log.info('createDataStore response %j', rawResponse);
@@ -590,7 +596,9 @@ class DataStoreServiceClient {
590
596
  this._gaxModule.routingHeader.fromParams({
591
597
  name: request.name ?? '',
592
598
  });
593
- this.initialize();
599
+ this.initialize().catch(err => {
600
+ throw err;
601
+ });
594
602
  const wrappedCallback = callback
595
603
  ? (error, response, rawResponse, _) => {
596
604
  this._log.info('deleteDataStore response %j', rawResponse);
@@ -640,7 +648,9 @@ class DataStoreServiceClient {
640
648
  this._gaxModule.routingHeader.fromParams({
641
649
  parent: request.parent ?? '',
642
650
  });
643
- this.initialize();
651
+ this.initialize().catch(err => {
652
+ throw err;
653
+ });
644
654
  const wrappedCallback = callback
645
655
  ? (error, values, nextPageRequest, rawResponse) => {
646
656
  this._log.info('listDataStores values %j', values);
@@ -710,7 +720,9 @@ class DataStoreServiceClient {
710
720
  });
711
721
  const defaultCallSettings = this._defaults['listDataStores'];
712
722
  const callSettings = defaultCallSettings.merge(options);
713
- this.initialize();
723
+ this.initialize().catch(err => {
724
+ throw err;
725
+ });
714
726
  this._log.info('listDataStores stream %j', request);
715
727
  return this.descriptors.page.listDataStores.createStream(this.innerApiCalls.listDataStores, request, callSettings);
716
728
  }
@@ -772,7 +784,9 @@ class DataStoreServiceClient {
772
784
  });
773
785
  const defaultCallSettings = this._defaults['listDataStores'];
774
786
  const callSettings = defaultCallSettings.merge(options);
775
- this.initialize();
787
+ this.initialize().catch(err => {
788
+ throw err;
789
+ });
776
790
  this._log.info('listDataStores iterate %j', request);
777
791
  return this.descriptors.page.listDataStores.asyncIterate(this.innerApiCalls['listDataStores'], request, callSettings);
778
792
  }
@@ -751,7 +751,7 @@ export declare class DocumentServiceClient {
751
751
  * // doThingsWith(response)
752
752
  * ```
753
753
  */
754
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
754
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
755
755
  /**
756
756
  * Starts asynchronous cancellation on a long-running operation. The server
757
757
  * makes a best effort to cancel the operation, but success is not
@@ -481,7 +481,9 @@ class DocumentServiceClient {
481
481
  this._gaxModule.routingHeader.fromParams({
482
482
  name: request.name ?? '',
483
483
  });
484
- this.initialize();
484
+ this.initialize().catch(err => {
485
+ throw err;
486
+ });
485
487
  this._log.info('getDocument request %j', request);
486
488
  const wrappedCallback = callback
487
489
  ? (error, response, options, rawResponse) => {
@@ -513,7 +515,9 @@ class DocumentServiceClient {
513
515
  this._gaxModule.routingHeader.fromParams({
514
516
  parent: request.parent ?? '',
515
517
  });
516
- this.initialize();
518
+ this.initialize().catch(err => {
519
+ throw err;
520
+ });
517
521
  this._log.info('createDocument request %j', request);
518
522
  const wrappedCallback = callback
519
523
  ? (error, response, options, rawResponse) => {
@@ -545,7 +549,9 @@ class DocumentServiceClient {
545
549
  this._gaxModule.routingHeader.fromParams({
546
550
  'document.name': request.document.name ?? '',
547
551
  });
548
- this.initialize();
552
+ this.initialize().catch(err => {
553
+ throw err;
554
+ });
549
555
  this._log.info('updateDocument request %j', request);
550
556
  const wrappedCallback = callback
551
557
  ? (error, response, options, rawResponse) => {
@@ -577,7 +583,9 @@ class DocumentServiceClient {
577
583
  this._gaxModule.routingHeader.fromParams({
578
584
  name: request.name ?? '',
579
585
  });
580
- this.initialize();
586
+ this.initialize().catch(err => {
587
+ throw err;
588
+ });
581
589
  this._log.info('deleteDocument request %j', request);
582
590
  const wrappedCallback = callback
583
591
  ? (error, response, options, rawResponse) => {
@@ -609,7 +617,9 @@ class DocumentServiceClient {
609
617
  this._gaxModule.routingHeader.fromParams({
610
618
  parent: request.parent ?? '',
611
619
  });
612
- this.initialize();
620
+ this.initialize().catch(err => {
621
+ throw err;
622
+ });
613
623
  this._log.info('batchGetDocumentsMetadata request %j', request);
614
624
  const wrappedCallback = callback
615
625
  ? (error, response, options, rawResponse) => {
@@ -641,7 +651,9 @@ class DocumentServiceClient {
641
651
  this._gaxModule.routingHeader.fromParams({
642
652
  parent: request.parent ?? '',
643
653
  });
644
- this.initialize();
654
+ this.initialize().catch(err => {
655
+ throw err;
656
+ });
645
657
  const wrappedCallback = callback
646
658
  ? (error, response, rawResponse, _) => {
647
659
  this._log.info('importDocuments response %j', rawResponse);
@@ -691,7 +703,9 @@ class DocumentServiceClient {
691
703
  this._gaxModule.routingHeader.fromParams({
692
704
  parent: request.parent ?? '',
693
705
  });
694
- this.initialize();
706
+ this.initialize().catch(err => {
707
+ throw err;
708
+ });
695
709
  const wrappedCallback = callback
696
710
  ? (error, response, rawResponse, _) => {
697
711
  this._log.info('purgeDocuments response %j', rawResponse);
@@ -741,7 +755,9 @@ class DocumentServiceClient {
741
755
  this._gaxModule.routingHeader.fromParams({
742
756
  parent: request.parent ?? '',
743
757
  });
744
- this.initialize();
758
+ this.initialize().catch(err => {
759
+ throw err;
760
+ });
745
761
  const wrappedCallback = callback
746
762
  ? (error, values, nextPageRequest, rawResponse) => {
747
763
  this._log.info('listDocuments values %j', values);
@@ -809,7 +825,9 @@ class DocumentServiceClient {
809
825
  });
810
826
  const defaultCallSettings = this._defaults['listDocuments'];
811
827
  const callSettings = defaultCallSettings.merge(options);
812
- this.initialize();
828
+ this.initialize().catch(err => {
829
+ throw err;
830
+ });
813
831
  this._log.info('listDocuments stream %j', request);
814
832
  return this.descriptors.page.listDocuments.createStream(this.innerApiCalls.listDocuments, request, callSettings);
815
833
  }
@@ -869,7 +887,9 @@ class DocumentServiceClient {
869
887
  });
870
888
  const defaultCallSettings = this._defaults['listDocuments'];
871
889
  const callSettings = defaultCallSettings.merge(options);
872
- this.initialize();
890
+ this.initialize().catch(err => {
891
+ throw err;
892
+ });
873
893
  this._log.info('listDocuments iterate %j', request);
874
894
  return this.descriptors.page.listDocuments.asyncIterate(this.innerApiCalls['listDocuments'], request, callSettings);
875
895
  }
@@ -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.ListOperationsResponse>;
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