@google-cloud/discoveryengine 2.0.1 → 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 (85) hide show
  1. package/CHANGELOG.md +7 -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 +237 -0
  32. package/build/src/v1/completion_service_client.js +326 -0
  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 +326 -0
  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 +265 -5
  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 +237 -0
  42. package/build/src/v1/data_store_service_client.js +326 -0
  43. package/build/src/v1/data_store_service_proto_list.json +3 -0
  44. package/build/src/v1/document_service_client.d.ts +244 -1
  45. package/build/src/v1/document_service_client.js +326 -0
  46. package/build/src/v1/document_service_proto_list.json +3 -0
  47. package/build/src/v1/engine_service_client.d.ts +237 -0
  48. package/build/src/v1/engine_service_client.js +326 -0
  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 +326 -0
  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 +237 -0
  57. package/build/src/v1/project_service_client.js +326 -0
  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 +326 -0
  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 +128 -0
  64. package/build/src/v1/recommendation_service_proto_list.json +3 -0
  65. package/build/src/v1/schema_service_client.d.ts +237 -0
  66. package/build/src/v1/schema_service_client.js +326 -0
  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 +212 -20
  70. package/build/src/v1/search_service_proto_list.json +3 -0
  71. package/build/src/v1/search_tuning_service_client.d.ts +237 -0
  72. package/build/src/v1/search_tuning_service_client.js +326 -0
  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 +356 -3
  79. package/build/src/v1/site_search_engine_service_client.js +473 -0
  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 +258 -9
  83. package/build/src/v1/user_event_service_client.js +326 -0
  84. package/build/src/v1/user_event_service_proto_list.json +3 -0
  85. package/package.json +4 -4
@@ -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',
@@ -549,6 +563,40 @@ class SiteSearchEngineServiceClient {
549
563
  return [response, options, rawResponse];
550
564
  });
551
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
+ }
552
600
  createTargetSite(request, optionsOrCallback, callback) {
553
601
  request = request || {};
554
602
  let options;
@@ -757,6 +805,110 @@ class SiteSearchEngineServiceClient {
757
805
  const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteTargetSite, this._gaxModule.createDefaultBackoffSettings());
758
806
  return decodeOperation;
759
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
+ }
760
912
  enableAdvancedSiteSearch(request, optionsOrCallback, callback) {
761
913
  request = request || {};
762
914
  let options;
@@ -2121,6 +2273,75 @@ class SiteSearchEngineServiceClient {
2121
2273
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
2122
2274
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
2123
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
+ }
2124
2345
  /**
2125
2346
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
2126
2347
  *
@@ -2328,6 +2549,75 @@ class SiteSearchEngineServiceClient {
2328
2549
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
2329
2550
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
2330
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
+ }
2331
2621
  /**
2332
2622
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
2333
2623
  *
@@ -2535,6 +2825,75 @@ class SiteSearchEngineServiceClient {
2535
2825
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2536
2826
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
2537
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
+ }
2538
2897
  /**
2539
2898
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2540
2899
  *
@@ -3153,6 +3512,63 @@ class SiteSearchEngineServiceClient {
3153
3512
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
3154
3513
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
3155
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
+ }
3156
3572
  /**
3157
3573
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
3158
3574
  *
@@ -3324,6 +3740,63 @@ class SiteSearchEngineServiceClient {
3324
3740
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3325
3741
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
3326
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
+ }
3327
3800
  /**
3328
3801
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
3329
3802
  *
@@ -48,6 +48,18 @@
48
48
  "retry_codes_name": "non_idempotent",
49
49
  "retry_params_name": "default"
50
50
  },
51
+ "CreateSitemap": {
52
+ "retry_codes_name": "non_idempotent",
53
+ "retry_params_name": "default"
54
+ },
55
+ "DeleteSitemap": {
56
+ "retry_codes_name": "non_idempotent",
57
+ "retry_params_name": "default"
58
+ },
59
+ "FetchSitemaps": {
60
+ "retry_codes_name": "non_idempotent",
61
+ "retry_params_name": "default"
62
+ },
51
63
  "EnableAdvancedSiteSearch": {
52
64
  "retry_codes_name": "non_idempotent",
53
65
  "retry_params_name": "default"
@@ -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",