@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
@@ -454,7 +454,9 @@ class ProjectServiceClient {
454
454
  this._gaxModule.routingHeader.fromParams({
455
455
  name: request.name ?? '',
456
456
  });
457
- this.initialize();
457
+ this.initialize().catch(err => {
458
+ throw err;
459
+ });
458
460
  const wrappedCallback = callback
459
461
  ? (error, response, rawResponse, _) => {
460
462
  this._log.info('provisionProject response %j', rawResponse);
@@ -327,7 +327,9 @@ class RankServiceClient {
327
327
  this._gaxModule.routingHeader.fromParams({
328
328
  ranking_config: request.rankingConfig ?? '',
329
329
  });
330
- this.initialize();
330
+ this.initialize().catch(err => {
331
+ throw err;
332
+ });
331
333
  this._log.info('rank request %j', request);
332
334
  const wrappedCallback = callback
333
335
  ? (error, response, options, rawResponse) => {
@@ -331,7 +331,9 @@ class RecommendationServiceClient {
331
331
  this._gaxModule.routingHeader.fromParams({
332
332
  serving_config: request.servingConfig ?? '',
333
333
  });
334
- this.initialize();
334
+ this.initialize().catch(err => {
335
+ throw err;
336
+ });
335
337
  this._log.info('recommend request %j', request);
336
338
  const wrappedCallback = callback
337
339
  ? (error, response, options, rawResponse) => {
@@ -497,7 +497,7 @@ export declare class SchemaServiceClient {
497
497
  * // doThingsWith(response)
498
498
  * ```
499
499
  */
500
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
500
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
501
501
  /**
502
502
  * Starts asynchronous cancellation on a long-running operation. The server
503
503
  * makes a best effort to cancel the operation, but success is not
@@ -473,7 +473,9 @@ class SchemaServiceClient {
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('getSchema request %j', request);
478
480
  const wrappedCallback = callback
479
481
  ? (error, response, options, rawResponse) => {
@@ -505,7 +507,9 @@ class SchemaServiceClient {
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('createSchema response %j', rawResponse);
@@ -555,7 +559,9 @@ class SchemaServiceClient {
555
559
  this._gaxModule.routingHeader.fromParams({
556
560
  'schema.name': request.schema.name ?? '',
557
561
  });
558
- this.initialize();
562
+ this.initialize().catch(err => {
563
+ throw err;
564
+ });
559
565
  const wrappedCallback = callback
560
566
  ? (error, response, rawResponse, _) => {
561
567
  this._log.info('updateSchema response %j', rawResponse);
@@ -605,7 +611,9 @@ class SchemaServiceClient {
605
611
  this._gaxModule.routingHeader.fromParams({
606
612
  name: request.name ?? '',
607
613
  });
608
- this.initialize();
614
+ this.initialize().catch(err => {
615
+ throw err;
616
+ });
609
617
  const wrappedCallback = callback
610
618
  ? (error, response, rawResponse, _) => {
611
619
  this._log.info('deleteSchema response %j', rawResponse);
@@ -655,7 +663,9 @@ class SchemaServiceClient {
655
663
  this._gaxModule.routingHeader.fromParams({
656
664
  parent: request.parent ?? '',
657
665
  });
658
- this.initialize();
666
+ this.initialize().catch(err => {
667
+ throw err;
668
+ });
659
669
  const wrappedCallback = callback
660
670
  ? (error, values, nextPageRequest, rawResponse) => {
661
671
  this._log.info('listSchemas values %j', values);
@@ -715,7 +725,9 @@ class SchemaServiceClient {
715
725
  });
716
726
  const defaultCallSettings = this._defaults['listSchemas'];
717
727
  const callSettings = defaultCallSettings.merge(options);
718
- this.initialize();
728
+ this.initialize().catch(err => {
729
+ throw err;
730
+ });
719
731
  this._log.info('listSchemas stream %j', request);
720
732
  return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
721
733
  }
@@ -767,7 +779,9 @@ class SchemaServiceClient {
767
779
  });
768
780
  const defaultCallSettings = this._defaults['listSchemas'];
769
781
  const callSettings = defaultCallSettings.merge(options);
770
- this.initialize();
782
+ this.initialize().catch(err => {
783
+ throw err;
784
+ });
771
785
  this._log.info('listSchemas iterate %j', request);
772
786
  return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
773
787
  }
@@ -338,7 +338,9 @@ class SearchServiceClient {
338
338
  this._gaxModule.routingHeader.fromParams({
339
339
  serving_config: request.servingConfig ?? '',
340
340
  });
341
- this.initialize();
341
+ this.initialize().catch(err => {
342
+ throw err;
343
+ });
342
344
  const wrappedCallback = callback
343
345
  ? (error, values, nextPageRequest, rawResponse) => {
344
346
  this._log.info('search values %j', values);
@@ -590,7 +592,9 @@ class SearchServiceClient {
590
592
  });
591
593
  const defaultCallSettings = this._defaults['search'];
592
594
  const callSettings = defaultCallSettings.merge(options);
593
- this.initialize();
595
+ this.initialize().catch(err => {
596
+ throw err;
597
+ });
594
598
  this._log.info('search stream %j', request);
595
599
  return this.descriptors.page.search.createStream(this.innerApiCalls.search, request, callSettings);
596
600
  }
@@ -834,7 +838,9 @@ class SearchServiceClient {
834
838
  });
835
839
  const defaultCallSettings = this._defaults['search'];
836
840
  const callSettings = defaultCallSettings.merge(options);
837
- this.initialize();
841
+ this.initialize().catch(err => {
842
+ throw err;
843
+ });
838
844
  this._log.info('search iterate %j', request);
839
845
  return this.descriptors.page.search.asyncIterate(this.innerApiCalls['search'], request, callSettings);
840
846
  }
@@ -855,7 +861,9 @@ class SearchServiceClient {
855
861
  this._gaxModule.routingHeader.fromParams({
856
862
  serving_config: request.servingConfig ?? '',
857
863
  });
858
- this.initialize();
864
+ this.initialize().catch(err => {
865
+ throw err;
866
+ });
859
867
  const wrappedCallback = callback
860
868
  ? (error, values, nextPageRequest, rawResponse) => {
861
869
  this._log.info('searchLite values %j', values);
@@ -1107,7 +1115,9 @@ class SearchServiceClient {
1107
1115
  });
1108
1116
  const defaultCallSettings = this._defaults['searchLite'];
1109
1117
  const callSettings = defaultCallSettings.merge(options);
1110
- this.initialize();
1118
+ this.initialize().catch(err => {
1119
+ throw err;
1120
+ });
1111
1121
  this._log.info('searchLite stream %j', request);
1112
1122
  return this.descriptors.page.searchLite.createStream(this.innerApiCalls.searchLite, request, callSettings);
1113
1123
  }
@@ -1351,7 +1361,9 @@ class SearchServiceClient {
1351
1361
  });
1352
1362
  const defaultCallSettings = this._defaults['searchLite'];
1353
1363
  const callSettings = defaultCallSettings.merge(options);
1354
- this.initialize();
1364
+ this.initialize().catch(err => {
1365
+ throw err;
1366
+ });
1355
1367
  this._log.info('searchLite iterate %j', request);
1356
1368
  return this.descriptors.page.searchLite.asyncIterate(this.innerApiCalls['searchLite'], request, callSettings);
1357
1369
  }
@@ -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
@@ -457,7 +457,9 @@ class SearchTuningServiceClient {
457
457
  this._gaxModule.routingHeader.fromParams({
458
458
  data_store: request.dataStore ?? '',
459
459
  });
460
- this.initialize();
460
+ this.initialize().catch(err => {
461
+ throw err;
462
+ });
461
463
  this._log.info('listCustomModels request %j', request);
462
464
  const wrappedCallback = callback
463
465
  ? (error, response, options, rawResponse) => {
@@ -489,7 +491,9 @@ class SearchTuningServiceClient {
489
491
  this._gaxModule.routingHeader.fromParams({
490
492
  data_store: request.dataStore ?? '',
491
493
  });
492
- this.initialize();
494
+ this.initialize().catch(err => {
495
+ throw err;
496
+ });
493
497
  const wrappedCallback = callback
494
498
  ? (error, response, rawResponse, _) => {
495
499
  this._log.info('trainCustomModel response %j', rawResponse);
@@ -866,7 +866,7 @@ export declare class SiteSearchEngineServiceClient {
866
866
  * // doThingsWith(response)
867
867
  * ```
868
868
  */
869
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
869
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
870
870
  /**
871
871
  * Starts asynchronous cancellation on a long-running operation. The server
872
872
  * makes a best effort to cancel the operation, but success is not
@@ -498,7 +498,9 @@ class SiteSearchEngineServiceClient {
498
498
  this._gaxModule.routingHeader.fromParams({
499
499
  name: request.name ?? '',
500
500
  });
501
- this.initialize();
501
+ this.initialize().catch(err => {
502
+ throw err;
503
+ });
502
504
  this._log.info('getSiteSearchEngine request %j', request);
503
505
  const wrappedCallback = callback
504
506
  ? (error, response, options, rawResponse) => {
@@ -530,7 +532,9 @@ class SiteSearchEngineServiceClient {
530
532
  this._gaxModule.routingHeader.fromParams({
531
533
  name: request.name ?? '',
532
534
  });
533
- this.initialize();
535
+ this.initialize().catch(err => {
536
+ throw err;
537
+ });
534
538
  this._log.info('getTargetSite request %j', request);
535
539
  const wrappedCallback = callback
536
540
  ? (error, response, options, rawResponse) => {
@@ -562,7 +566,9 @@ class SiteSearchEngineServiceClient {
562
566
  this._gaxModule.routingHeader.fromParams({
563
567
  parent: request.parent ?? '',
564
568
  });
565
- this.initialize();
569
+ this.initialize().catch(err => {
570
+ throw err;
571
+ });
566
572
  const wrappedCallback = callback
567
573
  ? (error, response, rawResponse, _) => {
568
574
  this._log.info('createTargetSite response %j', rawResponse);
@@ -612,7 +618,9 @@ class SiteSearchEngineServiceClient {
612
618
  this._gaxModule.routingHeader.fromParams({
613
619
  parent: request.parent ?? '',
614
620
  });
615
- this.initialize();
621
+ this.initialize().catch(err => {
622
+ throw err;
623
+ });
616
624
  const wrappedCallback = callback
617
625
  ? (error, response, rawResponse, _) => {
618
626
  this._log.info('batchCreateTargetSites response %j', rawResponse);
@@ -662,7 +670,9 @@ class SiteSearchEngineServiceClient {
662
670
  this._gaxModule.routingHeader.fromParams({
663
671
  'target_site.name': request.targetSite.name ?? '',
664
672
  });
665
- this.initialize();
673
+ this.initialize().catch(err => {
674
+ throw err;
675
+ });
666
676
  const wrappedCallback = callback
667
677
  ? (error, response, rawResponse, _) => {
668
678
  this._log.info('updateTargetSite response %j', rawResponse);
@@ -712,7 +722,9 @@ class SiteSearchEngineServiceClient {
712
722
  this._gaxModule.routingHeader.fromParams({
713
723
  name: request.name ?? '',
714
724
  });
715
- this.initialize();
725
+ this.initialize().catch(err => {
726
+ throw err;
727
+ });
716
728
  const wrappedCallback = callback
717
729
  ? (error, response, rawResponse, _) => {
718
730
  this._log.info('deleteTargetSite response %j', rawResponse);
@@ -762,7 +774,9 @@ class SiteSearchEngineServiceClient {
762
774
  this._gaxModule.routingHeader.fromParams({
763
775
  site_search_engine: request.siteSearchEngine ?? '',
764
776
  });
765
- this.initialize();
777
+ this.initialize().catch(err => {
778
+ throw err;
779
+ });
766
780
  const wrappedCallback = callback
767
781
  ? (error, response, rawResponse, _) => {
768
782
  this._log.info('enableAdvancedSiteSearch response %j', rawResponse);
@@ -812,7 +826,9 @@ class SiteSearchEngineServiceClient {
812
826
  this._gaxModule.routingHeader.fromParams({
813
827
  site_search_engine: request.siteSearchEngine ?? '',
814
828
  });
815
- this.initialize();
829
+ this.initialize().catch(err => {
830
+ throw err;
831
+ });
816
832
  const wrappedCallback = callback
817
833
  ? (error, response, rawResponse, _) => {
818
834
  this._log.info('disableAdvancedSiteSearch response %j', rawResponse);
@@ -862,7 +878,9 @@ class SiteSearchEngineServiceClient {
862
878
  this._gaxModule.routingHeader.fromParams({
863
879
  site_search_engine: request.siteSearchEngine ?? '',
864
880
  });
865
- this.initialize();
881
+ this.initialize().catch(err => {
882
+ throw err;
883
+ });
866
884
  const wrappedCallback = callback
867
885
  ? (error, response, rawResponse, _) => {
868
886
  this._log.info('recrawlUris response %j', rawResponse);
@@ -912,7 +930,9 @@ class SiteSearchEngineServiceClient {
912
930
  this._gaxModule.routingHeader.fromParams({
913
931
  parent: request.parent ?? '',
914
932
  });
915
- this.initialize();
933
+ this.initialize().catch(err => {
934
+ throw err;
935
+ });
916
936
  const wrappedCallback = callback
917
937
  ? (error, response, rawResponse, _) => {
918
938
  this._log.info('batchVerifyTargetSites response %j', rawResponse);
@@ -962,7 +982,9 @@ class SiteSearchEngineServiceClient {
962
982
  this._gaxModule.routingHeader.fromParams({
963
983
  parent: request.parent ?? '',
964
984
  });
965
- this.initialize();
985
+ this.initialize().catch(err => {
986
+ throw err;
987
+ });
966
988
  const wrappedCallback = callback
967
989
  ? (error, values, nextPageRequest, rawResponse) => {
968
990
  this._log.info('listTargetSites values %j', values);
@@ -1023,7 +1045,9 @@ class SiteSearchEngineServiceClient {
1023
1045
  });
1024
1046
  const defaultCallSettings = this._defaults['listTargetSites'];
1025
1047
  const callSettings = defaultCallSettings.merge(options);
1026
- this.initialize();
1048
+ this.initialize().catch(err => {
1049
+ throw err;
1050
+ });
1027
1051
  this._log.info('listTargetSites stream %j', request);
1028
1052
  return this.descriptors.page.listTargetSites.createStream(this.innerApiCalls.listTargetSites, request, callSettings);
1029
1053
  }
@@ -1076,7 +1100,9 @@ class SiteSearchEngineServiceClient {
1076
1100
  });
1077
1101
  const defaultCallSettings = this._defaults['listTargetSites'];
1078
1102
  const callSettings = defaultCallSettings.merge(options);
1079
- this.initialize();
1103
+ this.initialize().catch(err => {
1104
+ throw err;
1105
+ });
1080
1106
  this._log.info('listTargetSites iterate %j', request);
1081
1107
  return this.descriptors.page.listTargetSites.asyncIterate(this.innerApiCalls['listTargetSites'], request, callSettings);
1082
1108
  }
@@ -1097,7 +1123,9 @@ class SiteSearchEngineServiceClient {
1097
1123
  this._gaxModule.routingHeader.fromParams({
1098
1124
  site_search_engine: request.siteSearchEngine ?? '',
1099
1125
  });
1100
- this.initialize();
1126
+ this.initialize().catch(err => {
1127
+ throw err;
1128
+ });
1101
1129
  const wrappedCallback = callback
1102
1130
  ? (error, values, nextPageRequest, rawResponse) => {
1103
1131
  this._log.info('fetchDomainVerificationStatus values %j', values);
@@ -1155,7 +1183,9 @@ class SiteSearchEngineServiceClient {
1155
1183
  });
1156
1184
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1157
1185
  const callSettings = defaultCallSettings.merge(options);
1158
- this.initialize();
1186
+ this.initialize().catch(err => {
1187
+ throw err;
1188
+ });
1159
1189
  this._log.info('fetchDomainVerificationStatus stream %j', request);
1160
1190
  return this.descriptors.page.fetchDomainVerificationStatus.createStream(this.innerApiCalls.fetchDomainVerificationStatus, request, callSettings);
1161
1191
  }
@@ -1205,7 +1235,9 @@ class SiteSearchEngineServiceClient {
1205
1235
  });
1206
1236
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1207
1237
  const callSettings = defaultCallSettings.merge(options);
1208
- this.initialize();
1238
+ this.initialize().catch(err => {
1239
+ throw err;
1240
+ });
1209
1241
  this._log.info('fetchDomainVerificationStatus iterate %j', request);
1210
1242
  return this.descriptors.page.fetchDomainVerificationStatus.asyncIterate(this.innerApiCalls['fetchDomainVerificationStatus'], request, callSettings);
1211
1243
  }
@@ -433,7 +433,7 @@ export declare class UserEventServiceClient {
433
433
  * // doThingsWith(response)
434
434
  * ```
435
435
  */
436
- listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
436
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
437
437
  /**
438
438
  * Starts asynchronous cancellation on a long-running operation. The server
439
439
  * makes a best effort to cancel the operation, but success is not
@@ -462,7 +462,9 @@ class UserEventServiceClient {
462
462
  this._gaxModule.routingHeader.fromParams({
463
463
  parent: request.parent ?? '',
464
464
  });
465
- this.initialize();
465
+ this.initialize().catch(err => {
466
+ throw err;
467
+ });
466
468
  this._log.info('writeUserEvent request %j', request);
467
469
  const wrappedCallback = callback
468
470
  ? (error, response, options, rawResponse) => {
@@ -494,7 +496,9 @@ class UserEventServiceClient {
494
496
  this._gaxModule.routingHeader.fromParams({
495
497
  parent: request.parent ?? '',
496
498
  });
497
- this.initialize();
499
+ this.initialize().catch(err => {
500
+ throw err;
501
+ });
498
502
  this._log.info('collectUserEvent request %j', request);
499
503
  const wrappedCallback = callback
500
504
  ? (error, response, options, rawResponse) => {
@@ -526,7 +530,9 @@ class UserEventServiceClient {
526
530
  this._gaxModule.routingHeader.fromParams({
527
531
  parent: request.parent ?? '',
528
532
  });
529
- this.initialize();
533
+ this.initialize().catch(err => {
534
+ throw err;
535
+ });
530
536
  const wrappedCallback = callback
531
537
  ? (error, response, rawResponse, _) => {
532
538
  this._log.info('purgeUserEvents response %j', rawResponse);
@@ -576,7 +582,9 @@ class UserEventServiceClient {
576
582
  this._gaxModule.routingHeader.fromParams({
577
583
  parent: request.parent ?? '',
578
584
  });
579
- this.initialize();
585
+ this.initialize().catch(err => {
586
+ throw err;
587
+ });
580
588
  const wrappedCallback = callback
581
589
  ? (error, response, rawResponse, _) => {
582
590
  this._log.info('importUserEvents response %j', rawResponse);
@@ -334,7 +334,9 @@ class AclConfigServiceClient {
334
334
  this._gaxModule.routingHeader.fromParams({
335
335
  'acl_config.name': request.aclConfig.name ?? '',
336
336
  });
337
- this.initialize();
337
+ this.initialize().catch(err => {
338
+ throw err;
339
+ });
338
340
  this._log.info('updateAclConfig request %j', request);
339
341
  const wrappedCallback = callback
340
342
  ? (error, response, options, rawResponse) => {
@@ -366,7 +368,9 @@ class AclConfigServiceClient {
366
368
  this._gaxModule.routingHeader.fromParams({
367
369
  name: request.name ?? '',
368
370
  });
369
- this.initialize();
371
+ this.initialize().catch(err => {
372
+ throw err;
373
+ });
370
374
  this._log.info('getAclConfig request %j', request);
371
375
  const wrappedCallback = callback
372
376
  ? (error, response, options, rawResponse) => {
@@ -342,7 +342,9 @@ class ChunkServiceClient {
342
342
  this._gaxModule.routingHeader.fromParams({
343
343
  name: request.name ?? '',
344
344
  });
345
- this.initialize();
345
+ this.initialize().catch(err => {
346
+ throw err;
347
+ });
346
348
  this._log.info('getChunk request %j', request);
347
349
  const wrappedCallback = callback
348
350
  ? (error, response, options, rawResponse) => {
@@ -374,7 +376,9 @@ class ChunkServiceClient {
374
376
  this._gaxModule.routingHeader.fromParams({
375
377
  parent: request.parent ?? '',
376
378
  });
377
- this.initialize();
379
+ this.initialize().catch(err => {
380
+ throw err;
381
+ });
378
382
  const wrappedCallback = callback
379
383
  ? (error, values, nextPageRequest, rawResponse) => {
380
384
  this._log.info('listChunks values %j', values);
@@ -440,7 +444,9 @@ class ChunkServiceClient {
440
444
  });
441
445
  const defaultCallSettings = this._defaults['listChunks'];
442
446
  const callSettings = defaultCallSettings.merge(options);
443
- this.initialize();
447
+ this.initialize().catch(err => {
448
+ throw err;
449
+ });
444
450
  this._log.info('listChunks stream %j', request);
445
451
  return this.descriptors.page.listChunks.createStream(this.innerApiCalls.listChunks, request, callSettings);
446
452
  }
@@ -498,7 +504,9 @@ class ChunkServiceClient {
498
504
  });
499
505
  const defaultCallSettings = this._defaults['listChunks'];
500
506
  const callSettings = defaultCallSettings.merge(options);
501
- this.initialize();
507
+ this.initialize().catch(err => {
508
+ throw err;
509
+ });
502
510
  this._log.info('listChunks iterate %j', request);
503
511
  return this.descriptors.page.listChunks.asyncIterate(this.innerApiCalls['listChunks'], request, callSettings);
504
512
  }
@@ -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.ListOperationsResponse>;
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
@@ -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
  parent: request.parent ?? '',
510
512
  });
511
- this.initialize();
513
+ this.initialize().catch(err => {
514
+ throw err;
515
+ });
512
516
  const wrappedCallback = callback
513
517
  ? (error, response, rawResponse, _) => {
514
518
  this._log.info('importSuggestionDenyListEntries response %j', rawResponse);
@@ -558,7 +562,9 @@ class CompletionServiceClient {
558
562
  this._gaxModule.routingHeader.fromParams({
559
563
  parent: request.parent ?? '',
560
564
  });
561
- this.initialize();
565
+ this.initialize().catch(err => {
566
+ throw err;
567
+ });
562
568
  const wrappedCallback = callback
563
569
  ? (error, response, rawResponse, _) => {
564
570
  this._log.info('purgeSuggestionDenyListEntries response %j', rawResponse);
@@ -608,7 +614,9 @@ class CompletionServiceClient {
608
614
  this._gaxModule.routingHeader.fromParams({
609
615
  parent: request.parent ?? '',
610
616
  });
611
- this.initialize();
617
+ this.initialize().catch(err => {
618
+ throw err;
619
+ });
612
620
  const wrappedCallback = callback
613
621
  ? (error, response, rawResponse, _) => {
614
622
  this._log.info('importCompletionSuggestions response %j', rawResponse);
@@ -658,7 +666,9 @@ class CompletionServiceClient {
658
666
  this._gaxModule.routingHeader.fromParams({
659
667
  parent: request.parent ?? '',
660
668
  });
661
- this.initialize();
669
+ this.initialize().catch(err => {
670
+ throw err;
671
+ });
662
672
  const wrappedCallback = callback
663
673
  ? (error, response, rawResponse, _) => {
664
674
  this._log.info('purgeCompletionSuggestions response %j', rawResponse);
@@ -350,7 +350,9 @@ class ControlServiceClient {
350
350
  this._gaxModule.routingHeader.fromParams({
351
351
  parent: request.parent ?? '',
352
352
  });
353
- this.initialize();
353
+ this.initialize().catch(err => {
354
+ throw err;
355
+ });
354
356
  this._log.info('createControl request %j', request);
355
357
  const wrappedCallback = callback
356
358
  ? (error, response, options, rawResponse) => {
@@ -382,7 +384,9 @@ class ControlServiceClient {
382
384
  this._gaxModule.routingHeader.fromParams({
383
385
  name: request.name ?? '',
384
386
  });
385
- this.initialize();
387
+ this.initialize().catch(err => {
388
+ throw err;
389
+ });
386
390
  this._log.info('deleteControl request %j', request);
387
391
  const wrappedCallback = callback
388
392
  ? (error, response, options, rawResponse) => {
@@ -414,7 +418,9 @@ class ControlServiceClient {
414
418
  this._gaxModule.routingHeader.fromParams({
415
419
  'control.name': request.control.name ?? '',
416
420
  });
417
- this.initialize();
421
+ this.initialize().catch(err => {
422
+ throw err;
423
+ });
418
424
  this._log.info('updateControl request %j', request);
419
425
  const wrappedCallback = callback
420
426
  ? (error, response, options, rawResponse) => {
@@ -446,7 +452,9 @@ class ControlServiceClient {
446
452
  this._gaxModule.routingHeader.fromParams({
447
453
  name: request.name ?? '',
448
454
  });
449
- this.initialize();
455
+ this.initialize().catch(err => {
456
+ throw err;
457
+ });
450
458
  this._log.info('getControl request %j', request);
451
459
  const wrappedCallback = callback
452
460
  ? (error, response, options, rawResponse) => {
@@ -478,7 +486,9 @@ class ControlServiceClient {
478
486
  this._gaxModule.routingHeader.fromParams({
479
487
  parent: request.parent ?? '',
480
488
  });
481
- this.initialize();
489
+ this.initialize().catch(err => {
490
+ throw err;
491
+ });
482
492
  const wrappedCallback = callback
483
493
  ? (error, values, nextPageRequest, rawResponse) => {
484
494
  this._log.info('listControls values %j', values);
@@ -536,7 +546,9 @@ class ControlServiceClient {
536
546
  });
537
547
  const defaultCallSettings = this._defaults['listControls'];
538
548
  const callSettings = defaultCallSettings.merge(options);
539
- this.initialize();
549
+ this.initialize().catch(err => {
550
+ throw err;
551
+ });
540
552
  this._log.info('listControls stream %j', request);
541
553
  return this.descriptors.page.listControls.createStream(this.innerApiCalls.listControls, request, callSettings);
542
554
  }
@@ -586,7 +598,9 @@ class ControlServiceClient {
586
598
  });
587
599
  const defaultCallSettings = this._defaults['listControls'];
588
600
  const callSettings = defaultCallSettings.merge(options);
589
- this.initialize();
601
+ this.initialize().catch(err => {
602
+ throw err;
603
+ });
590
604
  this._log.info('listControls iterate %j', request);
591
605
  return this.descriptors.page.listControls.asyncIterate(this.innerApiCalls['listControls'], request, callSettings);
592
606
  }