@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
@@ -180,12 +180,15 @@ class SiteSearchEngineServiceClient {
180
180
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
181
181
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
182
182
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
183
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
183
184
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
184
185
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
185
186
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
187
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
186
188
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
187
189
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
188
190
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
191
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
189
192
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
190
193
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
191
194
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -196,9 +199,11 @@ class SiteSearchEngineServiceClient {
196
199
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
197
200
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
198
201
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
202
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
199
203
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
200
204
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
201
205
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
206
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
202
207
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
203
208
  };
204
209
  // Some of the methods on this service return "paged" results,
@@ -337,6 +342,10 @@ class SiteSearchEngineServiceClient {
337
342
  const updateTargetSiteMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.UpdateTargetSiteMetadata');
338
343
  const deleteTargetSiteResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
339
344
  const deleteTargetSiteMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteTargetSiteMetadata');
345
+ const createSitemapResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Sitemap');
346
+ const createSitemapMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateSitemapMetadata');
347
+ const deleteSitemapResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
348
+ const deleteSitemapMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteSitemapMetadata');
340
349
  const enableAdvancedSiteSearchResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchResponse');
341
350
  const enableAdvancedSiteSearchMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchMetadata');
342
351
  const disableAdvancedSiteSearchResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchResponse');
@@ -350,6 +359,8 @@ class SiteSearchEngineServiceClient {
350
359
  batchCreateTargetSites: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchCreateTargetSitesResponse.decode.bind(batchCreateTargetSitesResponse), batchCreateTargetSitesMetadata.decode.bind(batchCreateTargetSitesMetadata)),
351
360
  updateTargetSite: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateTargetSiteResponse.decode.bind(updateTargetSiteResponse), updateTargetSiteMetadata.decode.bind(updateTargetSiteMetadata)),
352
361
  deleteTargetSite: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteTargetSiteResponse.decode.bind(deleteTargetSiteResponse), deleteTargetSiteMetadata.decode.bind(deleteTargetSiteMetadata)),
362
+ createSitemap: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createSitemapResponse.decode.bind(createSitemapResponse), createSitemapMetadata.decode.bind(createSitemapMetadata)),
363
+ deleteSitemap: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSitemapResponse.decode.bind(deleteSitemapResponse), deleteSitemapMetadata.decode.bind(deleteSitemapMetadata)),
353
364
  enableAdvancedSiteSearch: new this._gaxModule.LongrunningDescriptor(this.operationsClient, enableAdvancedSiteSearchResponse.decode.bind(enableAdvancedSiteSearchResponse), enableAdvancedSiteSearchMetadata.decode.bind(enableAdvancedSiteSearchMetadata)),
354
365
  disableAdvancedSiteSearch: new this._gaxModule.LongrunningDescriptor(this.operationsClient, disableAdvancedSiteSearchResponse.decode.bind(disableAdvancedSiteSearchResponse), disableAdvancedSiteSearchMetadata.decode.bind(disableAdvancedSiteSearchMetadata)),
355
366
  recrawlUris: new this._gaxModule.LongrunningDescriptor(this.operationsClient, recrawlUrisResponse.decode.bind(recrawlUrisResponse), recrawlUrisMetadata.decode.bind(recrawlUrisMetadata)),
@@ -397,6 +408,9 @@ class SiteSearchEngineServiceClient {
397
408
  'updateTargetSite',
398
409
  'deleteTargetSite',
399
410
  'listTargetSites',
411
+ 'createSitemap',
412
+ 'deleteSitemap',
413
+ 'fetchSitemaps',
400
414
  'enableAdvancedSiteSearch',
401
415
  'disableAdvancedSiteSearch',
402
416
  'recrawlUris',
@@ -498,7 +512,9 @@ class SiteSearchEngineServiceClient {
498
512
  this._gaxModule.routingHeader.fromParams({
499
513
  name: request.name ?? '',
500
514
  });
501
- this.initialize();
515
+ this.initialize().catch(err => {
516
+ throw err;
517
+ });
502
518
  this._log.info('getSiteSearchEngine request %j', request);
503
519
  const wrappedCallback = callback
504
520
  ? (error, response, options, rawResponse) => {
@@ -530,7 +546,9 @@ class SiteSearchEngineServiceClient {
530
546
  this._gaxModule.routingHeader.fromParams({
531
547
  name: request.name ?? '',
532
548
  });
533
- this.initialize();
549
+ this.initialize().catch(err => {
550
+ throw err;
551
+ });
534
552
  this._log.info('getTargetSite request %j', request);
535
553
  const wrappedCallback = callback
536
554
  ? (error, response, options, rawResponse) => {
@@ -545,6 +563,40 @@ class SiteSearchEngineServiceClient {
545
563
  return [response, options, rawResponse];
546
564
  });
547
565
  }
566
+ fetchSitemaps(request, optionsOrCallback, callback) {
567
+ request = request || {};
568
+ let options;
569
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
570
+ callback = optionsOrCallback;
571
+ options = {};
572
+ }
573
+ else {
574
+ options = optionsOrCallback;
575
+ }
576
+ options = options || {};
577
+ options.otherArgs = options.otherArgs || {};
578
+ options.otherArgs.headers = options.otherArgs.headers || {};
579
+ options.otherArgs.headers['x-goog-request-params'] =
580
+ this._gaxModule.routingHeader.fromParams({
581
+ parent: request.parent ?? '',
582
+ });
583
+ this.initialize().catch(err => {
584
+ throw err;
585
+ });
586
+ this._log.info('fetchSitemaps request %j', request);
587
+ const wrappedCallback = callback
588
+ ? (error, response, options, rawResponse) => {
589
+ this._log.info('fetchSitemaps response %j', response);
590
+ callback(error, response, options, rawResponse); // We verified callback above.
591
+ }
592
+ : undefined;
593
+ return this.innerApiCalls
594
+ .fetchSitemaps(request, options, wrappedCallback)
595
+ ?.then(([response, options, rawResponse]) => {
596
+ this._log.info('fetchSitemaps response %j', response);
597
+ return [response, options, rawResponse];
598
+ });
599
+ }
548
600
  createTargetSite(request, optionsOrCallback, callback) {
549
601
  request = request || {};
550
602
  let options;
@@ -562,7 +614,9 @@ class SiteSearchEngineServiceClient {
562
614
  this._gaxModule.routingHeader.fromParams({
563
615
  parent: request.parent ?? '',
564
616
  });
565
- this.initialize();
617
+ this.initialize().catch(err => {
618
+ throw err;
619
+ });
566
620
  const wrappedCallback = callback
567
621
  ? (error, response, rawResponse, _) => {
568
622
  this._log.info('createTargetSite response %j', rawResponse);
@@ -612,7 +666,9 @@ class SiteSearchEngineServiceClient {
612
666
  this._gaxModule.routingHeader.fromParams({
613
667
  parent: request.parent ?? '',
614
668
  });
615
- this.initialize();
669
+ this.initialize().catch(err => {
670
+ throw err;
671
+ });
616
672
  const wrappedCallback = callback
617
673
  ? (error, response, rawResponse, _) => {
618
674
  this._log.info('batchCreateTargetSites response %j', rawResponse);
@@ -662,7 +718,9 @@ class SiteSearchEngineServiceClient {
662
718
  this._gaxModule.routingHeader.fromParams({
663
719
  'target_site.name': request.targetSite.name ?? '',
664
720
  });
665
- this.initialize();
721
+ this.initialize().catch(err => {
722
+ throw err;
723
+ });
666
724
  const wrappedCallback = callback
667
725
  ? (error, response, rawResponse, _) => {
668
726
  this._log.info('updateTargetSite response %j', rawResponse);
@@ -712,7 +770,9 @@ class SiteSearchEngineServiceClient {
712
770
  this._gaxModule.routingHeader.fromParams({
713
771
  name: request.name ?? '',
714
772
  });
715
- this.initialize();
773
+ this.initialize().catch(err => {
774
+ throw err;
775
+ });
716
776
  const wrappedCallback = callback
717
777
  ? (error, response, rawResponse, _) => {
718
778
  this._log.info('deleteTargetSite response %j', rawResponse);
@@ -745,6 +805,110 @@ class SiteSearchEngineServiceClient {
745
805
  const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteTargetSite, this._gaxModule.createDefaultBackoffSettings());
746
806
  return decodeOperation;
747
807
  }
808
+ createSitemap(request, optionsOrCallback, callback) {
809
+ request = request || {};
810
+ let options;
811
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
812
+ callback = optionsOrCallback;
813
+ options = {};
814
+ }
815
+ else {
816
+ options = optionsOrCallback;
817
+ }
818
+ options = options || {};
819
+ options.otherArgs = options.otherArgs || {};
820
+ options.otherArgs.headers = options.otherArgs.headers || {};
821
+ options.otherArgs.headers['x-goog-request-params'] =
822
+ this._gaxModule.routingHeader.fromParams({
823
+ parent: request.parent ?? '',
824
+ });
825
+ this.initialize().catch(err => {
826
+ throw err;
827
+ });
828
+ const wrappedCallback = callback
829
+ ? (error, response, rawResponse, _) => {
830
+ this._log.info('createSitemap response %j', rawResponse);
831
+ callback(error, response, rawResponse, _); // We verified callback above.
832
+ }
833
+ : undefined;
834
+ this._log.info('createSitemap request %j', request);
835
+ return this.innerApiCalls
836
+ .createSitemap(request, options, wrappedCallback)
837
+ ?.then(([response, rawResponse, _]) => {
838
+ this._log.info('createSitemap response %j', rawResponse);
839
+ return [response, rawResponse, _];
840
+ });
841
+ }
842
+ /**
843
+ * Check the status of the long running operation returned by `createSitemap()`.
844
+ * @param {String} name
845
+ * The operation name that will be passed.
846
+ * @returns {Promise} - The promise which resolves to an object.
847
+ * The decoded operation object has result and metadata field to get information from.
848
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
849
+ * for more details and examples.
850
+ * @example <caption>include:samples/generated/v1/site_search_engine_service.create_sitemap.js</caption>
851
+ * region_tag:discoveryengine_v1_generated_SiteSearchEngineService_CreateSitemap_async
852
+ */
853
+ async checkCreateSitemapProgress(name) {
854
+ this._log.info('createSitemap long-running');
855
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
856
+ const [operation] = await this.operationsClient.getOperation(request);
857
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createSitemap, this._gaxModule.createDefaultBackoffSettings());
858
+ return decodeOperation;
859
+ }
860
+ deleteSitemap(request, optionsOrCallback, callback) {
861
+ request = request || {};
862
+ let options;
863
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
864
+ callback = optionsOrCallback;
865
+ options = {};
866
+ }
867
+ else {
868
+ options = optionsOrCallback;
869
+ }
870
+ options = options || {};
871
+ options.otherArgs = options.otherArgs || {};
872
+ options.otherArgs.headers = options.otherArgs.headers || {};
873
+ options.otherArgs.headers['x-goog-request-params'] =
874
+ this._gaxModule.routingHeader.fromParams({
875
+ name: request.name ?? '',
876
+ });
877
+ this.initialize().catch(err => {
878
+ throw err;
879
+ });
880
+ const wrappedCallback = callback
881
+ ? (error, response, rawResponse, _) => {
882
+ this._log.info('deleteSitemap response %j', rawResponse);
883
+ callback(error, response, rawResponse, _); // We verified callback above.
884
+ }
885
+ : undefined;
886
+ this._log.info('deleteSitemap request %j', request);
887
+ return this.innerApiCalls
888
+ .deleteSitemap(request, options, wrappedCallback)
889
+ ?.then(([response, rawResponse, _]) => {
890
+ this._log.info('deleteSitemap response %j', rawResponse);
891
+ return [response, rawResponse, _];
892
+ });
893
+ }
894
+ /**
895
+ * Check the status of the long running operation returned by `deleteSitemap()`.
896
+ * @param {String} name
897
+ * The operation name that will be passed.
898
+ * @returns {Promise} - The promise which resolves to an object.
899
+ * The decoded operation object has result and metadata field to get information from.
900
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
901
+ * for more details and examples.
902
+ * @example <caption>include:samples/generated/v1/site_search_engine_service.delete_sitemap.js</caption>
903
+ * region_tag:discoveryengine_v1_generated_SiteSearchEngineService_DeleteSitemap_async
904
+ */
905
+ async checkDeleteSitemapProgress(name) {
906
+ this._log.info('deleteSitemap long-running');
907
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
908
+ const [operation] = await this.operationsClient.getOperation(request);
909
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteSitemap, this._gaxModule.createDefaultBackoffSettings());
910
+ return decodeOperation;
911
+ }
748
912
  enableAdvancedSiteSearch(request, optionsOrCallback, callback) {
749
913
  request = request || {};
750
914
  let options;
@@ -762,7 +926,9 @@ class SiteSearchEngineServiceClient {
762
926
  this._gaxModule.routingHeader.fromParams({
763
927
  site_search_engine: request.siteSearchEngine ?? '',
764
928
  });
765
- this.initialize();
929
+ this.initialize().catch(err => {
930
+ throw err;
931
+ });
766
932
  const wrappedCallback = callback
767
933
  ? (error, response, rawResponse, _) => {
768
934
  this._log.info('enableAdvancedSiteSearch response %j', rawResponse);
@@ -812,7 +978,9 @@ class SiteSearchEngineServiceClient {
812
978
  this._gaxModule.routingHeader.fromParams({
813
979
  site_search_engine: request.siteSearchEngine ?? '',
814
980
  });
815
- this.initialize();
981
+ this.initialize().catch(err => {
982
+ throw err;
983
+ });
816
984
  const wrappedCallback = callback
817
985
  ? (error, response, rawResponse, _) => {
818
986
  this._log.info('disableAdvancedSiteSearch response %j', rawResponse);
@@ -862,7 +1030,9 @@ class SiteSearchEngineServiceClient {
862
1030
  this._gaxModule.routingHeader.fromParams({
863
1031
  site_search_engine: request.siteSearchEngine ?? '',
864
1032
  });
865
- this.initialize();
1033
+ this.initialize().catch(err => {
1034
+ throw err;
1035
+ });
866
1036
  const wrappedCallback = callback
867
1037
  ? (error, response, rawResponse, _) => {
868
1038
  this._log.info('recrawlUris response %j', rawResponse);
@@ -912,7 +1082,9 @@ class SiteSearchEngineServiceClient {
912
1082
  this._gaxModule.routingHeader.fromParams({
913
1083
  parent: request.parent ?? '',
914
1084
  });
915
- this.initialize();
1085
+ this.initialize().catch(err => {
1086
+ throw err;
1087
+ });
916
1088
  const wrappedCallback = callback
917
1089
  ? (error, response, rawResponse, _) => {
918
1090
  this._log.info('batchVerifyTargetSites response %j', rawResponse);
@@ -962,7 +1134,9 @@ class SiteSearchEngineServiceClient {
962
1134
  this._gaxModule.routingHeader.fromParams({
963
1135
  parent: request.parent ?? '',
964
1136
  });
965
- this.initialize();
1137
+ this.initialize().catch(err => {
1138
+ throw err;
1139
+ });
966
1140
  const wrappedCallback = callback
967
1141
  ? (error, values, nextPageRequest, rawResponse) => {
968
1142
  this._log.info('listTargetSites values %j', values);
@@ -1023,7 +1197,9 @@ class SiteSearchEngineServiceClient {
1023
1197
  });
1024
1198
  const defaultCallSettings = this._defaults['listTargetSites'];
1025
1199
  const callSettings = defaultCallSettings.merge(options);
1026
- this.initialize();
1200
+ this.initialize().catch(err => {
1201
+ throw err;
1202
+ });
1027
1203
  this._log.info('listTargetSites stream %j', request);
1028
1204
  return this.descriptors.page.listTargetSites.createStream(this.innerApiCalls.listTargetSites, request, callSettings);
1029
1205
  }
@@ -1076,7 +1252,9 @@ class SiteSearchEngineServiceClient {
1076
1252
  });
1077
1253
  const defaultCallSettings = this._defaults['listTargetSites'];
1078
1254
  const callSettings = defaultCallSettings.merge(options);
1079
- this.initialize();
1255
+ this.initialize().catch(err => {
1256
+ throw err;
1257
+ });
1080
1258
  this._log.info('listTargetSites iterate %j', request);
1081
1259
  return this.descriptors.page.listTargetSites.asyncIterate(this.innerApiCalls['listTargetSites'], request, callSettings);
1082
1260
  }
@@ -1097,7 +1275,9 @@ class SiteSearchEngineServiceClient {
1097
1275
  this._gaxModule.routingHeader.fromParams({
1098
1276
  site_search_engine: request.siteSearchEngine ?? '',
1099
1277
  });
1100
- this.initialize();
1278
+ this.initialize().catch(err => {
1279
+ throw err;
1280
+ });
1101
1281
  const wrappedCallback = callback
1102
1282
  ? (error, values, nextPageRequest, rawResponse) => {
1103
1283
  this._log.info('fetchDomainVerificationStatus values %j', values);
@@ -1155,7 +1335,9 @@ class SiteSearchEngineServiceClient {
1155
1335
  });
1156
1336
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1157
1337
  const callSettings = defaultCallSettings.merge(options);
1158
- this.initialize();
1338
+ this.initialize().catch(err => {
1339
+ throw err;
1340
+ });
1159
1341
  this._log.info('fetchDomainVerificationStatus stream %j', request);
1160
1342
  return this.descriptors.page.fetchDomainVerificationStatus.createStream(this.innerApiCalls.fetchDomainVerificationStatus, request, callSettings);
1161
1343
  }
@@ -1205,7 +1387,9 @@ class SiteSearchEngineServiceClient {
1205
1387
  });
1206
1388
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1207
1389
  const callSettings = defaultCallSettings.merge(options);
1208
- this.initialize();
1390
+ this.initialize().catch(err => {
1391
+ throw err;
1392
+ });
1209
1393
  this._log.info('fetchDomainVerificationStatus iterate %j', request);
1210
1394
  return this.descriptors.page.fetchDomainVerificationStatus.asyncIterate(this.innerApiCalls['fetchDomainVerificationStatus'], request, callSettings);
1211
1395
  }
@@ -2089,6 +2273,75 @@ class SiteSearchEngineServiceClient {
2089
2273
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
2090
2274
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
2091
2275
  }
2276
+ /**
2277
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
2278
+ *
2279
+ * @param {string} project
2280
+ * @param {string} location
2281
+ * @param {string} collection
2282
+ * @param {string} data_store
2283
+ * @param {string} serving_config
2284
+ * @returns {string} Resource name string.
2285
+ */
2286
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
2287
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
2288
+ project: project,
2289
+ location: location,
2290
+ collection: collection,
2291
+ data_store: dataStore,
2292
+ serving_config: servingConfig,
2293
+ });
2294
+ }
2295
+ /**
2296
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
2297
+ *
2298
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2299
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2300
+ * @returns {string} A string representing the project.
2301
+ */
2302
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2303
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
2304
+ }
2305
+ /**
2306
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
2307
+ *
2308
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2309
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2310
+ * @returns {string} A string representing the location.
2311
+ */
2312
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2313
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
2314
+ }
2315
+ /**
2316
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
2317
+ *
2318
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2319
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2320
+ * @returns {string} A string representing the collection.
2321
+ */
2322
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2323
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
2324
+ }
2325
+ /**
2326
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
2327
+ *
2328
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2329
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2330
+ * @returns {string} A string representing the data_store.
2331
+ */
2332
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2333
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
2334
+ }
2335
+ /**
2336
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
2337
+ *
2338
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2339
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2340
+ * @returns {string} A string representing the serving_config.
2341
+ */
2342
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2343
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
2344
+ }
2092
2345
  /**
2093
2346
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
2094
2347
  *
@@ -2296,6 +2549,75 @@ class SiteSearchEngineServiceClient {
2296
2549
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
2297
2550
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
2298
2551
  }
2552
+ /**
2553
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
2554
+ *
2555
+ * @param {string} project
2556
+ * @param {string} location
2557
+ * @param {string} collection
2558
+ * @param {string} data_store
2559
+ * @param {string} sitemap
2560
+ * @returns {string} Resource name string.
2561
+ */
2562
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
2563
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
2564
+ project: project,
2565
+ location: location,
2566
+ collection: collection,
2567
+ data_store: dataStore,
2568
+ sitemap: sitemap,
2569
+ });
2570
+ }
2571
+ /**
2572
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2573
+ *
2574
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2575
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2576
+ * @returns {string} A string representing the project.
2577
+ */
2578
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2579
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
2580
+ }
2581
+ /**
2582
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2583
+ *
2584
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2585
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2586
+ * @returns {string} A string representing the location.
2587
+ */
2588
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2589
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
2590
+ }
2591
+ /**
2592
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2593
+ *
2594
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2595
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2596
+ * @returns {string} A string representing the collection.
2597
+ */
2598
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2599
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
2600
+ }
2601
+ /**
2602
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2603
+ *
2604
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2605
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2606
+ * @returns {string} A string representing the data_store.
2607
+ */
2608
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2609
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
2610
+ }
2611
+ /**
2612
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2613
+ *
2614
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2615
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2616
+ * @returns {string} A string representing the sitemap.
2617
+ */
2618
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2619
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
2620
+ }
2299
2621
  /**
2300
2622
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
2301
2623
  *
@@ -2503,6 +2825,75 @@ class SiteSearchEngineServiceClient {
2503
2825
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2504
2826
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
2505
2827
  }
2828
+ /**
2829
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
2830
+ *
2831
+ * @param {string} project
2832
+ * @param {string} location
2833
+ * @param {string} collection
2834
+ * @param {string} engine
2835
+ * @param {string} serving_config
2836
+ * @returns {string} Resource name string.
2837
+ */
2838
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
2839
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
2840
+ project: project,
2841
+ location: location,
2842
+ collection: collection,
2843
+ engine: engine,
2844
+ serving_config: servingConfig,
2845
+ });
2846
+ }
2847
+ /**
2848
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
2849
+ *
2850
+ * @param {string} projectLocationCollectionEngineServingConfigName
2851
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2852
+ * @returns {string} A string representing the project.
2853
+ */
2854
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2855
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
2856
+ }
2857
+ /**
2858
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
2859
+ *
2860
+ * @param {string} projectLocationCollectionEngineServingConfigName
2861
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2862
+ * @returns {string} A string representing the location.
2863
+ */
2864
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2865
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
2866
+ }
2867
+ /**
2868
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
2869
+ *
2870
+ * @param {string} projectLocationCollectionEngineServingConfigName
2871
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2872
+ * @returns {string} A string representing the collection.
2873
+ */
2874
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2875
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
2876
+ }
2877
+ /**
2878
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
2879
+ *
2880
+ * @param {string} projectLocationCollectionEngineServingConfigName
2881
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2882
+ * @returns {string} A string representing the engine.
2883
+ */
2884
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2885
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
2886
+ }
2887
+ /**
2888
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
2889
+ *
2890
+ * @param {string} projectLocationCollectionEngineServingConfigName
2891
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2892
+ * @returns {string} A string representing the serving_config.
2893
+ */
2894
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2895
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2896
+ }
2506
2897
  /**
2507
2898
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2508
2899
  *
@@ -3121,6 +3512,63 @@ class SiteSearchEngineServiceClient {
3121
3512
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
3122
3513
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
3123
3514
  }
3515
+ /**
3516
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
3517
+ *
3518
+ * @param {string} project
3519
+ * @param {string} location
3520
+ * @param {string} data_store
3521
+ * @param {string} serving_config
3522
+ * @returns {string} Resource name string.
3523
+ */
3524
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
3525
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
3526
+ project: project,
3527
+ location: location,
3528
+ data_store: dataStore,
3529
+ serving_config: servingConfig,
3530
+ });
3531
+ }
3532
+ /**
3533
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
3534
+ *
3535
+ * @param {string} projectLocationDataStoreServingConfigName
3536
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3537
+ * @returns {string} A string representing the project.
3538
+ */
3539
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3540
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
3541
+ }
3542
+ /**
3543
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
3544
+ *
3545
+ * @param {string} projectLocationDataStoreServingConfigName
3546
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3547
+ * @returns {string} A string representing the location.
3548
+ */
3549
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3550
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
3551
+ }
3552
+ /**
3553
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
3554
+ *
3555
+ * @param {string} projectLocationDataStoreServingConfigName
3556
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3557
+ * @returns {string} A string representing the data_store.
3558
+ */
3559
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3560
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
3561
+ }
3562
+ /**
3563
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
3564
+ *
3565
+ * @param {string} projectLocationDataStoreServingConfigName
3566
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3567
+ * @returns {string} A string representing the serving_config.
3568
+ */
3569
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3570
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
3571
+ }
3124
3572
  /**
3125
3573
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
3126
3574
  *
@@ -3292,6 +3740,63 @@ class SiteSearchEngineServiceClient {
3292
3740
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3293
3741
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
3294
3742
  }
3743
+ /**
3744
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
3745
+ *
3746
+ * @param {string} project
3747
+ * @param {string} location
3748
+ * @param {string} data_store
3749
+ * @param {string} sitemap
3750
+ * @returns {string} Resource name string.
3751
+ */
3752
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
3753
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
3754
+ project: project,
3755
+ location: location,
3756
+ data_store: dataStore,
3757
+ sitemap: sitemap,
3758
+ });
3759
+ }
3760
+ /**
3761
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3762
+ *
3763
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3764
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3765
+ * @returns {string} A string representing the project.
3766
+ */
3767
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3768
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
3769
+ }
3770
+ /**
3771
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3772
+ *
3773
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3774
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3775
+ * @returns {string} A string representing the location.
3776
+ */
3777
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3778
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
3779
+ }
3780
+ /**
3781
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3782
+ *
3783
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3784
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3785
+ * @returns {string} A string representing the data_store.
3786
+ */
3787
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3788
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
3789
+ }
3790
+ /**
3791
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3792
+ *
3793
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3794
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3795
+ * @returns {string} A string representing the sitemap.
3796
+ */
3797
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3798
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
3799
+ }
3295
3800
  /**
3296
3801
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
3297
3802
  *