@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
@@ -482,7 +482,9 @@ class EngineServiceClient {
482
482
  this._gaxModule.routingHeader.fromParams({
483
483
  'engine.name': request.engine.name ?? '',
484
484
  });
485
- this.initialize();
485
+ this.initialize().catch(err => {
486
+ throw err;
487
+ });
486
488
  this._log.info('updateEngine request %j', request);
487
489
  const wrappedCallback = callback
488
490
  ? (error, response, options, rawResponse) => {
@@ -514,7 +516,9 @@ class EngineServiceClient {
514
516
  this._gaxModule.routingHeader.fromParams({
515
517
  name: request.name ?? '',
516
518
  });
517
- this.initialize();
519
+ this.initialize().catch(err => {
520
+ throw err;
521
+ });
518
522
  this._log.info('getEngine request %j', request);
519
523
  const wrappedCallback = callback
520
524
  ? (error, response, options, rawResponse) => {
@@ -546,7 +550,9 @@ class EngineServiceClient {
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('pauseEngine request %j', request);
551
557
  const wrappedCallback = callback
552
558
  ? (error, response, options, rawResponse) => {
@@ -578,7 +584,9 @@ class EngineServiceClient {
578
584
  this._gaxModule.routingHeader.fromParams({
579
585
  name: request.name ?? '',
580
586
  });
581
- this.initialize();
587
+ this.initialize().catch(err => {
588
+ throw err;
589
+ });
582
590
  this._log.info('resumeEngine request %j', request);
583
591
  const wrappedCallback = callback
584
592
  ? (error, response, options, rawResponse) => {
@@ -610,7 +618,9 @@ class EngineServiceClient {
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('createEngine response %j', rawResponse);
@@ -660,7 +670,9 @@ class EngineServiceClient {
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('deleteEngine response %j', rawResponse);
@@ -710,7 +722,9 @@ class EngineServiceClient {
710
722
  this._gaxModule.routingHeader.fromParams({
711
723
  name: request.name ?? '',
712
724
  });
713
- this.initialize();
725
+ this.initialize().catch(err => {
726
+ throw err;
727
+ });
714
728
  const wrappedCallback = callback
715
729
  ? (error, response, rawResponse, _) => {
716
730
  this._log.info('tuneEngine response %j', rawResponse);
@@ -760,7 +774,9 @@ class EngineServiceClient {
760
774
  this._gaxModule.routingHeader.fromParams({
761
775
  parent: request.parent ?? '',
762
776
  });
763
- this.initialize();
777
+ this.initialize().catch(err => {
778
+ throw err;
779
+ });
764
780
  const wrappedCallback = callback
765
781
  ? (error, values, nextPageRequest, rawResponse) => {
766
782
  this._log.info('listEngines values %j', values);
@@ -811,7 +827,9 @@ class EngineServiceClient {
811
827
  });
812
828
  const defaultCallSettings = this._defaults['listEngines'];
813
829
  const callSettings = defaultCallSettings.merge(options);
814
- this.initialize();
830
+ this.initialize().catch(err => {
831
+ throw err;
832
+ });
815
833
  this._log.info('listEngines stream %j', request);
816
834
  return this.descriptors.page.listEngines.createStream(this.innerApiCalls.listEngines, request, callSettings);
817
835
  }
@@ -854,7 +872,9 @@ class EngineServiceClient {
854
872
  });
855
873
  const defaultCallSettings = this._defaults['listEngines'];
856
874
  const callSettings = defaultCallSettings.merge(options);
857
- this.initialize();
875
+ this.initialize().catch(err => {
876
+ throw err;
877
+ });
858
878
  this._log.info('listEngines iterate %j', request);
859
879
  return this.descriptors.page.listEngines.asyncIterate(this.innerApiCalls['listEngines'], request, callSettings);
860
880
  }
@@ -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.ListOperationsResponse>;
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
@@ -473,7 +473,9 @@ class EvaluationServiceClient {
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('getEvaluation request %j', request);
478
480
  const wrappedCallback = callback
479
481
  ? (error, response, options, rawResponse) => {
@@ -505,7 +507,9 @@ class EvaluationServiceClient {
505
507
  this._gaxModule.routingHeader.fromParams({
506
508
  parent: request.parent ?? '',
507
509
  });
508
- this.initialize();
510
+ this.initialize().catch(err => {
511
+ throw err;
512
+ });
509
513
  const wrappedCallback = callback
510
514
  ? (error, response, rawResponse, _) => {
511
515
  this._log.info('createEvaluation response %j', rawResponse);
@@ -555,7 +559,9 @@ class EvaluationServiceClient {
555
559
  this._gaxModule.routingHeader.fromParams({
556
560
  parent: request.parent ?? '',
557
561
  });
558
- this.initialize();
562
+ this.initialize().catch(err => {
563
+ throw err;
564
+ });
559
565
  const wrappedCallback = callback
560
566
  ? (error, values, nextPageRequest, rawResponse) => {
561
567
  this._log.info('listEvaluations values %j', values);
@@ -622,7 +628,9 @@ class EvaluationServiceClient {
622
628
  });
623
629
  const defaultCallSettings = this._defaults['listEvaluations'];
624
630
  const callSettings = defaultCallSettings.merge(options);
625
- this.initialize();
631
+ this.initialize().catch(err => {
632
+ throw err;
633
+ });
626
634
  this._log.info('listEvaluations stream %j', request);
627
635
  return this.descriptors.page.listEvaluations.createStream(this.innerApiCalls.listEvaluations, request, callSettings);
628
636
  }
@@ -681,7 +689,9 @@ class EvaluationServiceClient {
681
689
  });
682
690
  const defaultCallSettings = this._defaults['listEvaluations'];
683
691
  const callSettings = defaultCallSettings.merge(options);
684
- this.initialize();
692
+ this.initialize().catch(err => {
693
+ throw err;
694
+ });
685
695
  this._log.info('listEvaluations iterate %j', request);
686
696
  return this.descriptors.page.listEvaluations.asyncIterate(this.innerApiCalls['listEvaluations'], request, callSettings);
687
697
  }
@@ -702,7 +712,9 @@ class EvaluationServiceClient {
702
712
  this._gaxModule.routingHeader.fromParams({
703
713
  evaluation: request.evaluation ?? '',
704
714
  });
705
- this.initialize();
715
+ this.initialize().catch(err => {
716
+ throw err;
717
+ });
706
718
  const wrappedCallback = callback
707
719
  ? (error, values, nextPageRequest, rawResponse) => {
708
720
  this._log.info('listEvaluationResults values %j', values);
@@ -767,7 +779,9 @@ class EvaluationServiceClient {
767
779
  });
768
780
  const defaultCallSettings = this._defaults['listEvaluationResults'];
769
781
  const callSettings = defaultCallSettings.merge(options);
770
- this.initialize();
782
+ this.initialize().catch(err => {
783
+ throw err;
784
+ });
771
785
  this._log.info('listEvaluationResults stream %j', request);
772
786
  return this.descriptors.page.listEvaluationResults.createStream(this.innerApiCalls.listEvaluationResults, request, callSettings);
773
787
  }
@@ -824,7 +838,9 @@ class EvaluationServiceClient {
824
838
  });
825
839
  const defaultCallSettings = this._defaults['listEvaluationResults'];
826
840
  const callSettings = defaultCallSettings.merge(options);
827
- this.initialize();
841
+ this.initialize().catch(err => {
842
+ throw err;
843
+ });
828
844
  this._log.info('listEvaluationResults iterate %j', request);
829
845
  return this.descriptors.page.listEvaluationResults.asyncIterate(this.innerApiCalls['listEvaluationResults'], request, callSettings);
830
846
  }
@@ -355,7 +355,9 @@ class GroundedGenerationServiceClient {
355
355
  this._gaxModule.routingHeader.fromParams({
356
356
  location: request.location ?? '',
357
357
  });
358
- this.initialize();
358
+ this.initialize().catch(err => {
359
+ throw err;
360
+ });
359
361
  this._log.info('generateGroundedContent request %j', request);
360
362
  const wrappedCallback = callback
361
363
  ? (error, response, options, rawResponse) => {
@@ -387,7 +389,9 @@ class GroundedGenerationServiceClient {
387
389
  this._gaxModule.routingHeader.fromParams({
388
390
  grounding_config: request.groundingConfig ?? '',
389
391
  });
390
- this.initialize();
392
+ this.initialize().catch(err => {
393
+ throw err;
394
+ });
391
395
  this._log.info('checkGrounding request %j', request);
392
396
  const wrappedCallback = callback
393
397
  ? (error, response, options, rawResponse) => {
@@ -417,7 +421,9 @@ class GroundedGenerationServiceClient {
417
421
  * region_tag:discoveryengine_v1beta_generated_GroundedGenerationService_StreamGenerateGroundedContent_async
418
422
  */
419
423
  streamGenerateGroundedContent(options) {
420
- this.initialize();
424
+ this.initialize().catch(err => {
425
+ throw err;
426
+ });
421
427
  this._log.info('streamGenerateGroundedContent stream %j', options);
422
428
  return this.innerApiCalls.streamGenerateGroundedContent(null, options);
423
429
  }
@@ -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.ListOperationsResponse>;
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
@@ -458,7 +458,9 @@ class ProjectServiceClient {
458
458
  this._gaxModule.routingHeader.fromParams({
459
459
  name: request.name ?? '',
460
460
  });
461
- this.initialize();
461
+ this.initialize().catch(err => {
462
+ throw err;
463
+ });
462
464
  const wrappedCallback = callback
463
465
  ? (error, response, rawResponse, _) => {
464
466
  this._log.info('provisionProject response %j', rawResponse);
@@ -336,7 +336,9 @@ class RankServiceClient {
336
336
  this._gaxModule.routingHeader.fromParams({
337
337
  ranking_config: request.rankingConfig ?? '',
338
338
  });
339
- this.initialize();
339
+ this.initialize().catch(err => {
340
+ throw err;
341
+ });
340
342
  this._log.info('rank request %j', request);
341
343
  const wrappedCallback = callback
342
344
  ? (error, response, options, rawResponse) => {
@@ -337,7 +337,9 @@ class RecommendationServiceClient {
337
337
  this._gaxModule.routingHeader.fromParams({
338
338
  serving_config: request.servingConfig ?? '',
339
339
  });
340
- this.initialize();
340
+ this.initialize().catch(err => {
341
+ throw err;
342
+ });
341
343
  this._log.info('recommend request %j', request);
342
344
  const wrappedCallback = callback
343
345
  ? (error, response, options, rawResponse) => {
@@ -569,7 +569,7 @@ export declare class SampleQueryServiceClient {
569
569
  * // doThingsWith(response)
570
570
  * ```
571
571
  */
572
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
572
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
573
573
  /**
574
574
  * Starts asynchronous cancellation on a long-running operation. The server
575
575
  * makes a best effort to cancel the operation, but success is not
@@ -473,7 +473,9 @@ class SampleQueryServiceClient {
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('getSampleQuery request %j', request);
478
480
  const wrappedCallback = callback
479
481
  ? (error, response, options, rawResponse) => {
@@ -505,7 +507,9 @@ class SampleQueryServiceClient {
505
507
  this._gaxModule.routingHeader.fromParams({
506
508
  parent: request.parent ?? '',
507
509
  });
508
- this.initialize();
510
+ this.initialize().catch(err => {
511
+ throw err;
512
+ });
509
513
  this._log.info('createSampleQuery request %j', request);
510
514
  const wrappedCallback = callback
511
515
  ? (error, response, options, rawResponse) => {
@@ -537,7 +541,9 @@ class SampleQueryServiceClient {
537
541
  this._gaxModule.routingHeader.fromParams({
538
542
  'sample_query.name': request.sampleQuery.name ?? '',
539
543
  });
540
- this.initialize();
544
+ this.initialize().catch(err => {
545
+ throw err;
546
+ });
541
547
  this._log.info('updateSampleQuery request %j', request);
542
548
  const wrappedCallback = callback
543
549
  ? (error, response, options, rawResponse) => {
@@ -569,7 +575,9 @@ class SampleQueryServiceClient {
569
575
  this._gaxModule.routingHeader.fromParams({
570
576
  name: request.name ?? '',
571
577
  });
572
- this.initialize();
578
+ this.initialize().catch(err => {
579
+ throw err;
580
+ });
573
581
  this._log.info('deleteSampleQuery request %j', request);
574
582
  const wrappedCallback = callback
575
583
  ? (error, response, options, rawResponse) => {
@@ -601,7 +609,9 @@ class SampleQueryServiceClient {
601
609
  this._gaxModule.routingHeader.fromParams({
602
610
  parent: request.parent ?? '',
603
611
  });
604
- this.initialize();
612
+ this.initialize().catch(err => {
613
+ throw err;
614
+ });
605
615
  const wrappedCallback = callback
606
616
  ? (error, response, rawResponse, _) => {
607
617
  this._log.info('importSampleQueries response %j', rawResponse);
@@ -651,7 +661,9 @@ class SampleQueryServiceClient {
651
661
  this._gaxModule.routingHeader.fromParams({
652
662
  parent: request.parent ?? '',
653
663
  });
654
- this.initialize();
664
+ this.initialize().catch(err => {
665
+ throw err;
666
+ });
655
667
  const wrappedCallback = callback
656
668
  ? (error, values, nextPageRequest, rawResponse) => {
657
669
  this._log.info('listSampleQueries values %j', values);
@@ -718,7 +730,9 @@ class SampleQueryServiceClient {
718
730
  });
719
731
  const defaultCallSettings = this._defaults['listSampleQueries'];
720
732
  const callSettings = defaultCallSettings.merge(options);
721
- this.initialize();
733
+ this.initialize().catch(err => {
734
+ throw err;
735
+ });
722
736
  this._log.info('listSampleQueries stream %j', request);
723
737
  return this.descriptors.page.listSampleQueries.createStream(this.innerApiCalls.listSampleQueries, request, callSettings);
724
738
  }
@@ -777,7 +791,9 @@ class SampleQueryServiceClient {
777
791
  });
778
792
  const defaultCallSettings = this._defaults['listSampleQueries'];
779
793
  const callSettings = defaultCallSettings.merge(options);
780
- this.initialize();
794
+ this.initialize().catch(err => {
795
+ throw err;
796
+ });
781
797
  this._log.info('listSampleQueries iterate %j', request);
782
798
  return this.descriptors.page.listSampleQueries.asyncIterate(this.innerApiCalls['listSampleQueries'], request, callSettings);
783
799
  }
@@ -351,7 +351,9 @@ class SampleQuerySetServiceClient {
351
351
  this._gaxModule.routingHeader.fromParams({
352
352
  name: request.name ?? '',
353
353
  });
354
- this.initialize();
354
+ this.initialize().catch(err => {
355
+ throw err;
356
+ });
355
357
  this._log.info('getSampleQuerySet request %j', request);
356
358
  const wrappedCallback = callback
357
359
  ? (error, response, options, rawResponse) => {
@@ -383,7 +385,9 @@ class SampleQuerySetServiceClient {
383
385
  this._gaxModule.routingHeader.fromParams({
384
386
  parent: request.parent ?? '',
385
387
  });
386
- this.initialize();
388
+ this.initialize().catch(err => {
389
+ throw err;
390
+ });
387
391
  this._log.info('createSampleQuerySet request %j', request);
388
392
  const wrappedCallback = callback
389
393
  ? (error, response, options, rawResponse) => {
@@ -415,7 +419,9 @@ class SampleQuerySetServiceClient {
415
419
  this._gaxModule.routingHeader.fromParams({
416
420
  'sample_query_set.name': request.sampleQuerySet.name ?? '',
417
421
  });
418
- this.initialize();
422
+ this.initialize().catch(err => {
423
+ throw err;
424
+ });
419
425
  this._log.info('updateSampleQuerySet request %j', request);
420
426
  const wrappedCallback = callback
421
427
  ? (error, response, options, rawResponse) => {
@@ -447,7 +453,9 @@ class SampleQuerySetServiceClient {
447
453
  this._gaxModule.routingHeader.fromParams({
448
454
  name: request.name ?? '',
449
455
  });
450
- this.initialize();
456
+ this.initialize().catch(err => {
457
+ throw err;
458
+ });
451
459
  this._log.info('deleteSampleQuerySet request %j', request);
452
460
  const wrappedCallback = callback
453
461
  ? (error, response, options, rawResponse) => {
@@ -479,7 +487,9 @@ class SampleQuerySetServiceClient {
479
487
  this._gaxModule.routingHeader.fromParams({
480
488
  parent: request.parent ?? '',
481
489
  });
482
- this.initialize();
490
+ this.initialize().catch(err => {
491
+ throw err;
492
+ });
483
493
  const wrappedCallback = callback
484
494
  ? (error, values, nextPageRequest, rawResponse) => {
485
495
  this._log.info('listSampleQuerySets values %j', values);
@@ -546,7 +556,9 @@ class SampleQuerySetServiceClient {
546
556
  });
547
557
  const defaultCallSettings = this._defaults['listSampleQuerySets'];
548
558
  const callSettings = defaultCallSettings.merge(options);
549
- this.initialize();
559
+ this.initialize().catch(err => {
560
+ throw err;
561
+ });
550
562
  this._log.info('listSampleQuerySets stream %j', request);
551
563
  return this.descriptors.page.listSampleQuerySets.createStream(this.innerApiCalls.listSampleQuerySets, request, callSettings);
552
564
  }
@@ -605,7 +617,9 @@ class SampleQuerySetServiceClient {
605
617
  });
606
618
  const defaultCallSettings = this._defaults['listSampleQuerySets'];
607
619
  const callSettings = defaultCallSettings.merge(options);
608
- this.initialize();
620
+ this.initialize().catch(err => {
621
+ throw err;
622
+ });
609
623
  this._log.info('listSampleQuerySets iterate %j', request);
610
624
  return this.descriptors.page.listSampleQuerySets.asyncIterate(this.innerApiCalls['listSampleQuerySets'], request, callSettings);
611
625
  }
@@ -500,7 +500,7 @@ export declare class SchemaServiceClient {
500
500
  * // doThingsWith(response)
501
501
  * ```
502
502
  */
503
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
503
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
504
504
  /**
505
505
  * Starts asynchronous cancellation on a long-running operation. The server
506
506
  * makes a best effort to cancel the operation, but success is not
@@ -477,7 +477,9 @@ class SchemaServiceClient {
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('getSchema request %j', request);
482
484
  const wrappedCallback = callback
483
485
  ? (error, response, options, rawResponse) => {
@@ -509,7 +511,9 @@ class SchemaServiceClient {
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('createSchema response %j', rawResponse);
@@ -559,7 +563,9 @@ class SchemaServiceClient {
559
563
  this._gaxModule.routingHeader.fromParams({
560
564
  'schema.name': request.schema.name ?? '',
561
565
  });
562
- this.initialize();
566
+ this.initialize().catch(err => {
567
+ throw err;
568
+ });
563
569
  const wrappedCallback = callback
564
570
  ? (error, response, rawResponse, _) => {
565
571
  this._log.info('updateSchema response %j', rawResponse);
@@ -609,7 +615,9 @@ class SchemaServiceClient {
609
615
  this._gaxModule.routingHeader.fromParams({
610
616
  name: request.name ?? '',
611
617
  });
612
- this.initialize();
618
+ this.initialize().catch(err => {
619
+ throw err;
620
+ });
613
621
  const wrappedCallback = callback
614
622
  ? (error, response, rawResponse, _) => {
615
623
  this._log.info('deleteSchema response %j', rawResponse);
@@ -659,7 +667,9 @@ class SchemaServiceClient {
659
667
  this._gaxModule.routingHeader.fromParams({
660
668
  parent: request.parent ?? '',
661
669
  });
662
- this.initialize();
670
+ this.initialize().catch(err => {
671
+ throw err;
672
+ });
663
673
  const wrappedCallback = callback
664
674
  ? (error, values, nextPageRequest, rawResponse) => {
665
675
  this._log.info('listSchemas values %j', values);
@@ -719,7 +729,9 @@ class SchemaServiceClient {
719
729
  });
720
730
  const defaultCallSettings = this._defaults['listSchemas'];
721
731
  const callSettings = defaultCallSettings.merge(options);
722
- this.initialize();
732
+ this.initialize().catch(err => {
733
+ throw err;
734
+ });
723
735
  this._log.info('listSchemas stream %j', request);
724
736
  return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
725
737
  }
@@ -771,7 +783,9 @@ class SchemaServiceClient {
771
783
  });
772
784
  const defaultCallSettings = this._defaults['listSchemas'];
773
785
  const callSettings = defaultCallSettings.merge(options);
774
- this.initialize();
786
+ this.initialize().catch(err => {
787
+ throw err;
788
+ });
775
789
  this._log.info('listSchemas iterate %j', request);
776
790
  return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
777
791
  }
@@ -345,7 +345,9 @@ class SearchServiceClient {
345
345
  this._gaxModule.routingHeader.fromParams({
346
346
  serving_config: request.servingConfig ?? '',
347
347
  });
348
- this.initialize();
348
+ this.initialize().catch(err => {
349
+ throw err;
350
+ });
349
351
  const wrappedCallback = callback
350
352
  ? (error, values, nextPageRequest, rawResponse) => {
351
353
  this._log.info('search values %j', values);
@@ -660,7 +662,9 @@ class SearchServiceClient {
660
662
  });
661
663
  const defaultCallSettings = this._defaults['search'];
662
664
  const callSettings = defaultCallSettings.merge(options);
663
- this.initialize();
665
+ this.initialize().catch(err => {
666
+ throw err;
667
+ });
664
668
  this._log.info('search stream %j', request);
665
669
  return this.descriptors.page.search.createStream(this.innerApiCalls.search, request, callSettings);
666
670
  }
@@ -967,7 +971,9 @@ class SearchServiceClient {
967
971
  });
968
972
  const defaultCallSettings = this._defaults['search'];
969
973
  const callSettings = defaultCallSettings.merge(options);
970
- this.initialize();
974
+ this.initialize().catch(err => {
975
+ throw err;
976
+ });
971
977
  this._log.info('search iterate %j', request);
972
978
  return this.descriptors.page.search.asyncIterate(this.innerApiCalls['search'], request, callSettings);
973
979
  }
@@ -988,7 +994,9 @@ class SearchServiceClient {
988
994
  this._gaxModule.routingHeader.fromParams({
989
995
  serving_config: request.servingConfig ?? '',
990
996
  });
991
- this.initialize();
997
+ this.initialize().catch(err => {
998
+ throw err;
999
+ });
992
1000
  const wrappedCallback = callback
993
1001
  ? (error, values, nextPageRequest, rawResponse) => {
994
1002
  this._log.info('searchLite values %j', values);
@@ -1303,7 +1311,9 @@ class SearchServiceClient {
1303
1311
  });
1304
1312
  const defaultCallSettings = this._defaults['searchLite'];
1305
1313
  const callSettings = defaultCallSettings.merge(options);
1306
- this.initialize();
1314
+ this.initialize().catch(err => {
1315
+ throw err;
1316
+ });
1307
1317
  this._log.info('searchLite stream %j', request);
1308
1318
  return this.descriptors.page.searchLite.createStream(this.innerApiCalls.searchLite, request, callSettings);
1309
1319
  }
@@ -1610,7 +1620,9 @@ class SearchServiceClient {
1610
1620
  });
1611
1621
  const defaultCallSettings = this._defaults['searchLite'];
1612
1622
  const callSettings = defaultCallSettings.merge(options);
1613
- this.initialize();
1623
+ this.initialize().catch(err => {
1624
+ throw err;
1625
+ });
1614
1626
  this._log.info('searchLite iterate %j', request);
1615
1627
  return this.descriptors.page.searchLite.asyncIterate(this.innerApiCalls['searchLite'], request, callSettings);
1616
1628
  }
@@ -304,7 +304,7 @@ export declare class SearchTuningServiceClient {
304
304
  * // doThingsWith(response)
305
305
  * ```
306
306
  */
307
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
307
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
308
308
  /**
309
309
  * Starts asynchronous cancellation on a long-running operation. The server
310
310
  * makes a best effort to cancel the operation, but success is not
@@ -460,7 +460,9 @@ class SearchTuningServiceClient {
460
460
  this._gaxModule.routingHeader.fromParams({
461
461
  data_store: request.dataStore ?? '',
462
462
  });
463
- this.initialize();
463
+ this.initialize().catch(err => {
464
+ throw err;
465
+ });
464
466
  this._log.info('listCustomModels request %j', request);
465
467
  const wrappedCallback = callback
466
468
  ? (error, response, options, rawResponse) => {
@@ -492,7 +494,9 @@ class SearchTuningServiceClient {
492
494
  this._gaxModule.routingHeader.fromParams({
493
495
  data_store: request.dataStore ?? '',
494
496
  });
495
- this.initialize();
497
+ this.initialize().catch(err => {
498
+ throw err;
499
+ });
496
500
  const wrappedCallback = callback
497
501
  ? (error, response, rawResponse, _) => {
498
502
  this._log.info('trainCustomModel response %j', rawResponse);