@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 SchemaServiceClient {
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 SchemaServiceClient {
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
  // Some of the methods on this service return "paged" results,
@@ -473,7 +478,9 @@ class SchemaServiceClient {
473
478
  this._gaxModule.routingHeader.fromParams({
474
479
  name: request.name ?? '',
475
480
  });
476
- this.initialize();
481
+ this.initialize().catch(err => {
482
+ throw err;
483
+ });
477
484
  this._log.info('getSchema request %j', request);
478
485
  const wrappedCallback = callback
479
486
  ? (error, response, options, rawResponse) => {
@@ -505,7 +512,9 @@ class SchemaServiceClient {
505
512
  this._gaxModule.routingHeader.fromParams({
506
513
  parent: request.parent ?? '',
507
514
  });
508
- this.initialize();
515
+ this.initialize().catch(err => {
516
+ throw err;
517
+ });
509
518
  const wrappedCallback = callback
510
519
  ? (error, response, rawResponse, _) => {
511
520
  this._log.info('createSchema response %j', rawResponse);
@@ -555,7 +564,9 @@ class SchemaServiceClient {
555
564
  this._gaxModule.routingHeader.fromParams({
556
565
  'schema.name': request.schema.name ?? '',
557
566
  });
558
- this.initialize();
567
+ this.initialize().catch(err => {
568
+ throw err;
569
+ });
559
570
  const wrappedCallback = callback
560
571
  ? (error, response, rawResponse, _) => {
561
572
  this._log.info('updateSchema response %j', rawResponse);
@@ -605,7 +616,9 @@ class SchemaServiceClient {
605
616
  this._gaxModule.routingHeader.fromParams({
606
617
  name: request.name ?? '',
607
618
  });
608
- this.initialize();
619
+ this.initialize().catch(err => {
620
+ throw err;
621
+ });
609
622
  const wrappedCallback = callback
610
623
  ? (error, response, rawResponse, _) => {
611
624
  this._log.info('deleteSchema response %j', rawResponse);
@@ -655,7 +668,9 @@ class SchemaServiceClient {
655
668
  this._gaxModule.routingHeader.fromParams({
656
669
  parent: request.parent ?? '',
657
670
  });
658
- this.initialize();
671
+ this.initialize().catch(err => {
672
+ throw err;
673
+ });
659
674
  const wrappedCallback = callback
660
675
  ? (error, values, nextPageRequest, rawResponse) => {
661
676
  this._log.info('listSchemas values %j', values);
@@ -715,7 +730,9 @@ class SchemaServiceClient {
715
730
  });
716
731
  const defaultCallSettings = this._defaults['listSchemas'];
717
732
  const callSettings = defaultCallSettings.merge(options);
718
- this.initialize();
733
+ this.initialize().catch(err => {
734
+ throw err;
735
+ });
719
736
  this._log.info('listSchemas stream %j', request);
720
737
  return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
721
738
  }
@@ -767,7 +784,9 @@ class SchemaServiceClient {
767
784
  });
768
785
  const defaultCallSettings = this._defaults['listSchemas'];
769
786
  const callSettings = defaultCallSettings.merge(options);
770
- this.initialize();
787
+ this.initialize().catch(err => {
788
+ throw err;
789
+ });
771
790
  this._log.info('listSchemas iterate %j', request);
772
791
  return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
773
792
  }
@@ -1651,6 +1670,75 @@ class SchemaServiceClient {
1651
1670
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1652
1671
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1653
1672
  }
1673
+ /**
1674
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1675
+ *
1676
+ * @param {string} project
1677
+ * @param {string} location
1678
+ * @param {string} collection
1679
+ * @param {string} data_store
1680
+ * @param {string} serving_config
1681
+ * @returns {string} Resource name string.
1682
+ */
1683
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1684
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1685
+ project: project,
1686
+ location: location,
1687
+ collection: collection,
1688
+ data_store: dataStore,
1689
+ serving_config: servingConfig,
1690
+ });
1691
+ }
1692
+ /**
1693
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1694
+ *
1695
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1696
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1697
+ * @returns {string} A string representing the project.
1698
+ */
1699
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1700
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1701
+ }
1702
+ /**
1703
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1704
+ *
1705
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1706
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1707
+ * @returns {string} A string representing the location.
1708
+ */
1709
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1710
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1711
+ }
1712
+ /**
1713
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1714
+ *
1715
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1716
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1717
+ * @returns {string} A string representing the collection.
1718
+ */
1719
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1720
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1721
+ }
1722
+ /**
1723
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1724
+ *
1725
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1726
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1727
+ * @returns {string} A string representing the data_store.
1728
+ */
1729
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1730
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1731
+ }
1732
+ /**
1733
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1734
+ *
1735
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1736
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1737
+ * @returns {string} A string representing the serving_config.
1738
+ */
1739
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1740
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1741
+ }
1654
1742
  /**
1655
1743
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1656
1744
  *
@@ -1858,6 +1946,75 @@ class SchemaServiceClient {
1858
1946
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1859
1947
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1860
1948
  }
1949
+ /**
1950
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1951
+ *
1952
+ * @param {string} project
1953
+ * @param {string} location
1954
+ * @param {string} collection
1955
+ * @param {string} data_store
1956
+ * @param {string} sitemap
1957
+ * @returns {string} Resource name string.
1958
+ */
1959
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1960
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1961
+ project: project,
1962
+ location: location,
1963
+ collection: collection,
1964
+ data_store: dataStore,
1965
+ sitemap: sitemap,
1966
+ });
1967
+ }
1968
+ /**
1969
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1970
+ *
1971
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1972
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1973
+ * @returns {string} A string representing the project.
1974
+ */
1975
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1976
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1977
+ }
1978
+ /**
1979
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1980
+ *
1981
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1982
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1983
+ * @returns {string} A string representing the location.
1984
+ */
1985
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1986
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1987
+ }
1988
+ /**
1989
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1990
+ *
1991
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1992
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1993
+ * @returns {string} A string representing the collection.
1994
+ */
1995
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1996
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1997
+ }
1998
+ /**
1999
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2000
+ *
2001
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2002
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2003
+ * @returns {string} A string representing the data_store.
2004
+ */
2005
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2006
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
2007
+ }
2008
+ /**
2009
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2010
+ *
2011
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2012
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2013
+ * @returns {string} A string representing the sitemap.
2014
+ */
2015
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2016
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
2017
+ }
1861
2018
  /**
1862
2019
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1863
2020
  *
@@ -2065,6 +2222,75 @@ class SchemaServiceClient {
2065
2222
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2066
2223
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
2067
2224
  }
2225
+ /**
2226
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
2227
+ *
2228
+ * @param {string} project
2229
+ * @param {string} location
2230
+ * @param {string} collection
2231
+ * @param {string} engine
2232
+ * @param {string} serving_config
2233
+ * @returns {string} Resource name string.
2234
+ */
2235
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
2236
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
2237
+ project: project,
2238
+ location: location,
2239
+ collection: collection,
2240
+ engine: engine,
2241
+ serving_config: servingConfig,
2242
+ });
2243
+ }
2244
+ /**
2245
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
2246
+ *
2247
+ * @param {string} projectLocationCollectionEngineServingConfigName
2248
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2249
+ * @returns {string} A string representing the project.
2250
+ */
2251
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2252
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
2253
+ }
2254
+ /**
2255
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
2256
+ *
2257
+ * @param {string} projectLocationCollectionEngineServingConfigName
2258
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2259
+ * @returns {string} A string representing the location.
2260
+ */
2261
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2262
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
2263
+ }
2264
+ /**
2265
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
2266
+ *
2267
+ * @param {string} projectLocationCollectionEngineServingConfigName
2268
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2269
+ * @returns {string} A string representing the collection.
2270
+ */
2271
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2272
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
2273
+ }
2274
+ /**
2275
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
2276
+ *
2277
+ * @param {string} projectLocationCollectionEngineServingConfigName
2278
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2279
+ * @returns {string} A string representing the engine.
2280
+ */
2281
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2282
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
2283
+ }
2284
+ /**
2285
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
2286
+ *
2287
+ * @param {string} projectLocationCollectionEngineServingConfigName
2288
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2289
+ * @returns {string} A string representing the serving_config.
2290
+ */
2291
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2292
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2293
+ }
2068
2294
  /**
2069
2295
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2070
2296
  *
@@ -2683,6 +2909,63 @@ class SchemaServiceClient {
2683
2909
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2684
2910
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2685
2911
  }
2912
+ /**
2913
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2914
+ *
2915
+ * @param {string} project
2916
+ * @param {string} location
2917
+ * @param {string} data_store
2918
+ * @param {string} serving_config
2919
+ * @returns {string} Resource name string.
2920
+ */
2921
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2922
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2923
+ project: project,
2924
+ location: location,
2925
+ data_store: dataStore,
2926
+ serving_config: servingConfig,
2927
+ });
2928
+ }
2929
+ /**
2930
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2931
+ *
2932
+ * @param {string} projectLocationDataStoreServingConfigName
2933
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2934
+ * @returns {string} A string representing the project.
2935
+ */
2936
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2937
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2938
+ }
2939
+ /**
2940
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2941
+ *
2942
+ * @param {string} projectLocationDataStoreServingConfigName
2943
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2944
+ * @returns {string} A string representing the location.
2945
+ */
2946
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2947
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2948
+ }
2949
+ /**
2950
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2951
+ *
2952
+ * @param {string} projectLocationDataStoreServingConfigName
2953
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2954
+ * @returns {string} A string representing the data_store.
2955
+ */
2956
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2957
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2958
+ }
2959
+ /**
2960
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2961
+ *
2962
+ * @param {string} projectLocationDataStoreServingConfigName
2963
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2964
+ * @returns {string} A string representing the serving_config.
2965
+ */
2966
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2967
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2968
+ }
2686
2969
  /**
2687
2970
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2688
2971
  *
@@ -2854,6 +3137,63 @@ class SchemaServiceClient {
2854
3137
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2855
3138
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2856
3139
  }
3140
+ /**
3141
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
3142
+ *
3143
+ * @param {string} project
3144
+ * @param {string} location
3145
+ * @param {string} data_store
3146
+ * @param {string} sitemap
3147
+ * @returns {string} Resource name string.
3148
+ */
3149
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
3150
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
3151
+ project: project,
3152
+ location: location,
3153
+ data_store: dataStore,
3154
+ sitemap: sitemap,
3155
+ });
3156
+ }
3157
+ /**
3158
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3159
+ *
3160
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3161
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3162
+ * @returns {string} A string representing the project.
3163
+ */
3164
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3165
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
3166
+ }
3167
+ /**
3168
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3169
+ *
3170
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3171
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3172
+ * @returns {string} A string representing the location.
3173
+ */
3174
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3175
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
3176
+ }
3177
+ /**
3178
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3179
+ *
3180
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3181
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3182
+ * @returns {string} A string representing the data_store.
3183
+ */
3184
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3185
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
3186
+ }
3187
+ /**
3188
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3189
+ *
3190
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3191
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3192
+ * @returns {string} A string representing the sitemap.
3193
+ */
3194
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3195
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
3196
+ }
2857
3197
  /**
2858
3198
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2859
3199
  *
@@ -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",