@google-cloud/discoveryengine 2.0.0 → 2.1.0

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 (149) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +7 -2
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
  4. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
  6. package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
  9. package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
  10. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
  12. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
  15. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
  16. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
  17. package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
  19. package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
  24. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
  26. package/build/protos/protos.d.ts +5356 -981
  27. package/build/protos/protos.js +32266 -20956
  28. package/build/protos/protos.json +1391 -74
  29. package/build/src/index.d.ts +4 -1
  30. package/build/src/index.js +4 -1
  31. package/build/src/v1/completion_service_client.d.ts +238 -1
  32. package/build/src/v1/completion_service_client.js +341 -5
  33. package/build/src/v1/completion_service_proto_list.json +3 -0
  34. package/build/src/v1/control_service_client.d.ts +237 -0
  35. package/build/src/v1/control_service_client.js +347 -7
  36. package/build/src/v1/control_service_proto_list.json +3 -0
  37. package/build/src/v1/conversational_search_service_client.d.ts +213 -6
  38. package/build/src/v1/conversational_search_service_client.js +316 -22
  39. package/build/src/v1/conversational_search_service_client_config.json +5 -0
  40. package/build/src/v1/conversational_search_service_proto_list.json +3 -0
  41. package/build/src/v1/data_store_service_client.d.ts +238 -1
  42. package/build/src/v1/data_store_service_client.js +347 -7
  43. package/build/src/v1/data_store_service_proto_list.json +3 -0
  44. package/build/src/v1/document_service_client.d.ts +245 -2
  45. package/build/src/v1/document_service_client.js +356 -10
  46. package/build/src/v1/document_service_proto_list.json +3 -0
  47. package/build/src/v1/engine_service_client.d.ts +238 -1
  48. package/build/src/v1/engine_service_client.js +347 -7
  49. package/build/src/v1/engine_service_proto_list.json +3 -0
  50. package/build/src/v1/gapic_metadata.json +59 -0
  51. package/build/src/v1/grounded_generation_service_client.d.ts +238 -3
  52. package/build/src/v1/grounded_generation_service_client.js +335 -3
  53. package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
  54. package/build/src/v1/index.d.ts +1 -0
  55. package/build/src/v1/index.js +3 -1
  56. package/build/src/v1/project_service_client.d.ts +238 -1
  57. package/build/src/v1/project_service_client.js +329 -1
  58. package/build/src/v1/project_service_proto_list.json +3 -0
  59. package/build/src/v1/rank_service_client.d.ts +238 -1
  60. package/build/src/v1/rank_service_client.js +329 -1
  61. package/build/src/v1/rank_service_proto_list.json +3 -0
  62. package/build/src/v1/recommendation_service_client.d.ts +95 -2
  63. package/build/src/v1/recommendation_service_client.js +131 -1
  64. package/build/src/v1/recommendation_service_proto_list.json +3 -0
  65. package/build/src/v1/schema_service_client.d.ts +238 -1
  66. package/build/src/v1/schema_service_client.js +347 -7
  67. package/build/src/v1/schema_service_proto_list.json +3 -0
  68. package/build/src/v1/search_service_client.d.ts +219 -30
  69. package/build/src/v1/search_service_client.js +230 -26
  70. package/build/src/v1/search_service_proto_list.json +3 -0
  71. package/build/src/v1/search_tuning_service_client.d.ts +238 -1
  72. package/build/src/v1/search_tuning_service_client.js +332 -2
  73. package/build/src/v1/search_tuning_service_proto_list.json +3 -0
  74. package/build/src/v1/serving_config_service_client.d.ts +1851 -0
  75. package/build/src/v1/serving_config_service_client.js +2653 -0
  76. package/build/src/v1/serving_config_service_client_config.json +30 -0
  77. package/build/src/v1/serving_config_service_proto_list.json +39 -0
  78. package/build/src/v1/site_search_engine_service_client.d.ts +357 -4
  79. package/build/src/v1/site_search_engine_service_client.js +521 -16
  80. package/build/src/v1/site_search_engine_service_client_config.json +12 -0
  81. package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
  82. package/build/src/v1/user_event_service_client.d.ts +259 -10
  83. package/build/src/v1/user_event_service_client.js +338 -4
  84. package/build/src/v1/user_event_service_proto_list.json +3 -0
  85. package/build/src/v1alpha/acl_config_service_client.js +6 -2
  86. package/build/src/v1alpha/chunk_service_client.js +12 -4
  87. package/build/src/v1alpha/completion_service_client.d.ts +1 -1
  88. package/build/src/v1alpha/completion_service_client.js +15 -5
  89. package/build/src/v1alpha/control_service_client.js +21 -7
  90. package/build/src/v1alpha/conversational_search_service_client.js +51 -17
  91. package/build/src/v1alpha/data_store_service_client.d.ts +1 -1
  92. package/build/src/v1alpha/data_store_service_client.js +27 -9
  93. package/build/src/v1alpha/document_service_client.d.ts +1 -1
  94. package/build/src/v1alpha/document_service_client.js +33 -11
  95. package/build/src/v1alpha/engine_service_client.d.ts +1 -1
  96. package/build/src/v1alpha/engine_service_client.js +30 -10
  97. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1 -1
  98. package/build/src/v1alpha/estimate_billing_service_client.js +3 -1
  99. package/build/src/v1alpha/evaluation_service_client.d.ts +1 -1
  100. package/build/src/v1alpha/evaluation_service_client.js +24 -8
  101. package/build/src/v1alpha/grounded_generation_service_client.js +3 -1
  102. package/build/src/v1alpha/project_service_client.d.ts +1 -1
  103. package/build/src/v1alpha/project_service_client.js +9 -3
  104. package/build/src/v1alpha/rank_service_client.js +3 -1
  105. package/build/src/v1alpha/recommendation_service_client.js +3 -1
  106. package/build/src/v1alpha/sample_query_service_client.d.ts +1 -1
  107. package/build/src/v1alpha/sample_query_service_client.js +24 -8
  108. package/build/src/v1alpha/sample_query_set_service_client.js +21 -7
  109. package/build/src/v1alpha/schema_service_client.d.ts +1 -1
  110. package/build/src/v1alpha/schema_service_client.js +21 -7
  111. package/build/src/v1alpha/search_service_client.js +9 -3
  112. package/build/src/v1alpha/search_tuning_service_client.d.ts +1 -1
  113. package/build/src/v1alpha/search_tuning_service_client.js +6 -2
  114. package/build/src/v1alpha/serving_config_service_client.js +15 -5
  115. package/build/src/v1alpha/site_search_engine_service_client.d.ts +1 -1
  116. package/build/src/v1alpha/site_search_engine_service_client.js +54 -18
  117. package/build/src/v1alpha/user_event_service_client.d.ts +1 -1
  118. package/build/src/v1alpha/user_event_service_client.js +12 -4
  119. package/build/src/v1beta/completion_service_client.d.ts +1 -1
  120. package/build/src/v1beta/completion_service_client.js +18 -6
  121. package/build/src/v1beta/control_service_client.js +21 -7
  122. package/build/src/v1beta/conversational_search_service_client.js +51 -17
  123. package/build/src/v1beta/data_store_service_client.d.ts +1 -1
  124. package/build/src/v1beta/data_store_service_client.js +21 -7
  125. package/build/src/v1beta/document_service_client.d.ts +1 -1
  126. package/build/src/v1beta/document_service_client.js +30 -10
  127. package/build/src/v1beta/engine_service_client.d.ts +1 -1
  128. package/build/src/v1beta/engine_service_client.js +30 -10
  129. package/build/src/v1beta/evaluation_service_client.d.ts +1 -1
  130. package/build/src/v1beta/evaluation_service_client.js +24 -8
  131. package/build/src/v1beta/grounded_generation_service_client.js +9 -3
  132. package/build/src/v1beta/project_service_client.d.ts +1 -1
  133. package/build/src/v1beta/project_service_client.js +3 -1
  134. package/build/src/v1beta/rank_service_client.js +3 -1
  135. package/build/src/v1beta/recommendation_service_client.js +3 -1
  136. package/build/src/v1beta/sample_query_service_client.d.ts +1 -1
  137. package/build/src/v1beta/sample_query_service_client.js +24 -8
  138. package/build/src/v1beta/sample_query_set_service_client.js +21 -7
  139. package/build/src/v1beta/schema_service_client.d.ts +1 -1
  140. package/build/src/v1beta/schema_service_client.js +21 -7
  141. package/build/src/v1beta/search_service_client.js +18 -6
  142. package/build/src/v1beta/search_tuning_service_client.d.ts +1 -1
  143. package/build/src/v1beta/search_tuning_service_client.js +6 -2
  144. package/build/src/v1beta/serving_config_service_client.js +15 -5
  145. package/build/src/v1beta/site_search_engine_service_client.d.ts +1 -1
  146. package/build/src/v1beta/site_search_engine_service_client.js +57 -19
  147. package/build/src/v1beta/user_event_service_client.d.ts +1 -1
  148. package/build/src/v1beta/user_event_service_client.js +12 -4
  149. package/package.json +5 -5
@@ -179,12 +179,15 @@ class UserEventServiceClient {
179
179
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
180
180
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
181
181
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
182
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
182
183
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
183
184
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
184
185
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
186
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
185
187
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
186
188
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
187
189
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
190
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
188
191
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
189
192
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
190
193
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -195,9 +198,11 @@ class UserEventServiceClient {
195
198
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
196
199
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
197
200
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
201
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
198
202
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
199
203
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
200
204
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
205
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
201
206
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
202
207
  };
203
208
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
@@ -462,7 +467,9 @@ class UserEventServiceClient {
462
467
  this._gaxModule.routingHeader.fromParams({
463
468
  parent: request.parent ?? '',
464
469
  });
465
- this.initialize();
470
+ this.initialize().catch(err => {
471
+ throw err;
472
+ });
466
473
  this._log.info('writeUserEvent request %j', request);
467
474
  const wrappedCallback = callback
468
475
  ? (error, response, options, rawResponse) => {
@@ -494,7 +501,9 @@ class UserEventServiceClient {
494
501
  this._gaxModule.routingHeader.fromParams({
495
502
  parent: request.parent ?? '',
496
503
  });
497
- this.initialize();
504
+ this.initialize().catch(err => {
505
+ throw err;
506
+ });
498
507
  this._log.info('collectUserEvent request %j', request);
499
508
  const wrappedCallback = callback
500
509
  ? (error, response, options, rawResponse) => {
@@ -526,7 +535,9 @@ class UserEventServiceClient {
526
535
  this._gaxModule.routingHeader.fromParams({
527
536
  parent: request.parent ?? '',
528
537
  });
529
- this.initialize();
538
+ this.initialize().catch(err => {
539
+ throw err;
540
+ });
530
541
  const wrappedCallback = callback
531
542
  ? (error, response, rawResponse, _) => {
532
543
  this._log.info('purgeUserEvents response %j', rawResponse);
@@ -576,7 +587,9 @@ class UserEventServiceClient {
576
587
  this._gaxModule.routingHeader.fromParams({
577
588
  parent: request.parent ?? '',
578
589
  });
579
- this.initialize();
590
+ this.initialize().catch(err => {
591
+ throw err;
592
+ });
580
593
  const wrappedCallback = callback
581
594
  ? (error, response, rawResponse, _) => {
582
595
  this._log.info('importUserEvents response %j', rawResponse);
@@ -1489,6 +1502,75 @@ class UserEventServiceClient {
1489
1502
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1490
1503
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1491
1504
  }
1505
+ /**
1506
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1507
+ *
1508
+ * @param {string} project
1509
+ * @param {string} location
1510
+ * @param {string} collection
1511
+ * @param {string} data_store
1512
+ * @param {string} serving_config
1513
+ * @returns {string} Resource name string.
1514
+ */
1515
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1516
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1517
+ project: project,
1518
+ location: location,
1519
+ collection: collection,
1520
+ data_store: dataStore,
1521
+ serving_config: servingConfig,
1522
+ });
1523
+ }
1524
+ /**
1525
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1526
+ *
1527
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1528
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1529
+ * @returns {string} A string representing the project.
1530
+ */
1531
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1532
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1533
+ }
1534
+ /**
1535
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1536
+ *
1537
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1538
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1539
+ * @returns {string} A string representing the location.
1540
+ */
1541
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1542
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1543
+ }
1544
+ /**
1545
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1546
+ *
1547
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1548
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1549
+ * @returns {string} A string representing the collection.
1550
+ */
1551
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1552
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1553
+ }
1554
+ /**
1555
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1556
+ *
1557
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1558
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1559
+ * @returns {string} A string representing the data_store.
1560
+ */
1561
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1562
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1563
+ }
1564
+ /**
1565
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1566
+ *
1567
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1568
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1569
+ * @returns {string} A string representing the serving_config.
1570
+ */
1571
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1572
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1573
+ }
1492
1574
  /**
1493
1575
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1494
1576
  *
@@ -1696,6 +1778,75 @@ class UserEventServiceClient {
1696
1778
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1697
1779
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1698
1780
  }
1781
+ /**
1782
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1783
+ *
1784
+ * @param {string} project
1785
+ * @param {string} location
1786
+ * @param {string} collection
1787
+ * @param {string} data_store
1788
+ * @param {string} sitemap
1789
+ * @returns {string} Resource name string.
1790
+ */
1791
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1792
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1793
+ project: project,
1794
+ location: location,
1795
+ collection: collection,
1796
+ data_store: dataStore,
1797
+ sitemap: sitemap,
1798
+ });
1799
+ }
1800
+ /**
1801
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1802
+ *
1803
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1804
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1805
+ * @returns {string} A string representing the project.
1806
+ */
1807
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1808
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1809
+ }
1810
+ /**
1811
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1812
+ *
1813
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1814
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1815
+ * @returns {string} A string representing the location.
1816
+ */
1817
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1818
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1819
+ }
1820
+ /**
1821
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1822
+ *
1823
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1824
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1825
+ * @returns {string} A string representing the collection.
1826
+ */
1827
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1828
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1829
+ }
1830
+ /**
1831
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1832
+ *
1833
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1834
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1835
+ * @returns {string} A string representing the data_store.
1836
+ */
1837
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1838
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
1839
+ }
1840
+ /**
1841
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1842
+ *
1843
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1844
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1845
+ * @returns {string} A string representing the sitemap.
1846
+ */
1847
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1848
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
1849
+ }
1699
1850
  /**
1700
1851
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1701
1852
  *
@@ -1903,6 +2054,75 @@ class UserEventServiceClient {
1903
2054
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1904
2055
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1905
2056
  }
2057
+ /**
2058
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
2059
+ *
2060
+ * @param {string} project
2061
+ * @param {string} location
2062
+ * @param {string} collection
2063
+ * @param {string} engine
2064
+ * @param {string} serving_config
2065
+ * @returns {string} Resource name string.
2066
+ */
2067
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
2068
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
2069
+ project: project,
2070
+ location: location,
2071
+ collection: collection,
2072
+ engine: engine,
2073
+ serving_config: servingConfig,
2074
+ });
2075
+ }
2076
+ /**
2077
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
2078
+ *
2079
+ * @param {string} projectLocationCollectionEngineServingConfigName
2080
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2081
+ * @returns {string} A string representing the project.
2082
+ */
2083
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2084
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
2085
+ }
2086
+ /**
2087
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
2088
+ *
2089
+ * @param {string} projectLocationCollectionEngineServingConfigName
2090
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2091
+ * @returns {string} A string representing the location.
2092
+ */
2093
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2094
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
2095
+ }
2096
+ /**
2097
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
2098
+ *
2099
+ * @param {string} projectLocationCollectionEngineServingConfigName
2100
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2101
+ * @returns {string} A string representing the collection.
2102
+ */
2103
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2104
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
2105
+ }
2106
+ /**
2107
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
2108
+ *
2109
+ * @param {string} projectLocationCollectionEngineServingConfigName
2110
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2111
+ * @returns {string} A string representing the engine.
2112
+ */
2113
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2114
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
2115
+ }
2116
+ /**
2117
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
2118
+ *
2119
+ * @param {string} projectLocationCollectionEngineServingConfigName
2120
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2121
+ * @returns {string} A string representing the serving_config.
2122
+ */
2123
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2124
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2125
+ }
1906
2126
  /**
1907
2127
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1908
2128
  *
@@ -2521,6 +2741,63 @@ class UserEventServiceClient {
2521
2741
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2522
2742
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2523
2743
  }
2744
+ /**
2745
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2746
+ *
2747
+ * @param {string} project
2748
+ * @param {string} location
2749
+ * @param {string} data_store
2750
+ * @param {string} serving_config
2751
+ * @returns {string} Resource name string.
2752
+ */
2753
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2754
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2755
+ project: project,
2756
+ location: location,
2757
+ data_store: dataStore,
2758
+ serving_config: servingConfig,
2759
+ });
2760
+ }
2761
+ /**
2762
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2763
+ *
2764
+ * @param {string} projectLocationDataStoreServingConfigName
2765
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2766
+ * @returns {string} A string representing the project.
2767
+ */
2768
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2769
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2770
+ }
2771
+ /**
2772
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2773
+ *
2774
+ * @param {string} projectLocationDataStoreServingConfigName
2775
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2776
+ * @returns {string} A string representing the location.
2777
+ */
2778
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2779
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2780
+ }
2781
+ /**
2782
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2783
+ *
2784
+ * @param {string} projectLocationDataStoreServingConfigName
2785
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2786
+ * @returns {string} A string representing the data_store.
2787
+ */
2788
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2789
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2790
+ }
2791
+ /**
2792
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2793
+ *
2794
+ * @param {string} projectLocationDataStoreServingConfigName
2795
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2796
+ * @returns {string} A string representing the serving_config.
2797
+ */
2798
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2799
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2800
+ }
2524
2801
  /**
2525
2802
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2526
2803
  *
@@ -2692,6 +2969,63 @@ class UserEventServiceClient {
2692
2969
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2693
2970
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2694
2971
  }
2972
+ /**
2973
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
2974
+ *
2975
+ * @param {string} project
2976
+ * @param {string} location
2977
+ * @param {string} data_store
2978
+ * @param {string} sitemap
2979
+ * @returns {string} Resource name string.
2980
+ */
2981
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
2982
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
2983
+ project: project,
2984
+ location: location,
2985
+ data_store: dataStore,
2986
+ sitemap: sitemap,
2987
+ });
2988
+ }
2989
+ /**
2990
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2991
+ *
2992
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2993
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2994
+ * @returns {string} A string representing the project.
2995
+ */
2996
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2997
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
2998
+ }
2999
+ /**
3000
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3001
+ *
3002
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3003
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3004
+ * @returns {string} A string representing the location.
3005
+ */
3006
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3007
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
3008
+ }
3009
+ /**
3010
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3011
+ *
3012
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3013
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3014
+ * @returns {string} A string representing the data_store.
3015
+ */
3016
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3017
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
3018
+ }
3019
+ /**
3020
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3021
+ *
3022
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3023
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3024
+ * @returns {string} A string representing the sitemap.
3025
+ */
3026
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3027
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
3028
+ }
2695
3029
  /**
2696
3030
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2697
3031
  *
@@ -24,10 +24,13 @@
24
24
  "../../protos/google/cloud/discoveryengine/v1/purge_config.proto",
25
25
  "../../protos/google/cloud/discoveryengine/v1/rank_service.proto",
26
26
  "../../protos/google/cloud/discoveryengine/v1/recommendation_service.proto",
27
+ "../../protos/google/cloud/discoveryengine/v1/safety.proto",
27
28
  "../../protos/google/cloud/discoveryengine/v1/schema.proto",
28
29
  "../../protos/google/cloud/discoveryengine/v1/schema_service.proto",
29
30
  "../../protos/google/cloud/discoveryengine/v1/search_service.proto",
30
31
  "../../protos/google/cloud/discoveryengine/v1/search_tuning_service.proto",
32
+ "../../protos/google/cloud/discoveryengine/v1/serving_config.proto",
33
+ "../../protos/google/cloud/discoveryengine/v1/serving_config_service.proto",
31
34
  "../../protos/google/cloud/discoveryengine/v1/session.proto",
32
35
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
33
36
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
@@ -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
  }