@google-cloud/discoveryengine 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +25 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +38 -8
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +39 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +98 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +307 -0
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +370 -0
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +336 -0
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +9 -3
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +123 -3
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +147 -0
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +164 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +540 -0
  16. package/build/protos/protos.d.ts +10923 -3222
  17. package/build/protos/protos.js +29891 -12914
  18. package/build/protos/protos.json +2367 -668
  19. package/build/src/index.js +1 -1
  20. package/build/src/v1/completion_service_client.js +1 -1
  21. package/build/src/v1/conversational_search_service_client.js +1 -1
  22. package/build/src/v1/document_service_client.js +1 -1
  23. package/build/src/v1/index.js +1 -1
  24. package/build/src/v1/schema_service_client.js +1 -1
  25. package/build/src/v1/search_service_client.js +1 -1
  26. package/build/src/v1/user_event_service_client.js +1 -1
  27. package/build/src/v1alpha/completion_service_client.d.ts +261 -0
  28. package/build/src/v1alpha/completion_service_client.js +360 -0
  29. package/build/src/v1alpha/conversational_search_service_client.d.ts +278 -0
  30. package/build/src/v1alpha/conversational_search_service_client.js +360 -0
  31. package/build/src/v1alpha/data_store_service_client.d.ts +1279 -0
  32. package/build/src/v1alpha/data_store_service_client.js +1739 -0
  33. package/build/src/v1alpha/data_store_service_client_config.json +46 -0
  34. package/build/src/v1alpha/document_service_client.d.ts +336 -0
  35. package/build/src/v1alpha/document_service_client.js +472 -2
  36. package/build/src/v1alpha/engine_service_client.d.ts +1298 -0
  37. package/build/src/v1alpha/engine_service_client.js +1789 -0
  38. package/build/src/v1alpha/engine_service_client_config.json +58 -0
  39. package/build/src/v1alpha/index.d.ts +3 -0
  40. package/build/src/v1alpha/index.js +7 -1
  41. package/build/src/v1alpha/recommendation_service_client.d.ts +345 -3
  42. package/build/src/v1alpha/recommendation_service_client.js +464 -0
  43. package/build/src/v1alpha/schema_service_client.d.ts +261 -0
  44. package/build/src/v1alpha/schema_service_client.js +368 -2
  45. package/build/src/v1alpha/search_service_client.d.ts +453 -9
  46. package/build/src/v1alpha/search_service_client.js +542 -6
  47. package/build/src/v1alpha/search_tuning_service_client.d.ts +968 -0
  48. package/build/src/v1alpha/search_tuning_service_client.js +1452 -0
  49. package/build/src/v1alpha/search_tuning_service_client_config.json +30 -0
  50. package/build/src/v1alpha/site_search_engine_service_client.d.ts +856 -1
  51. package/build/src/v1alpha/site_search_engine_service_client.js +993 -34
  52. package/build/src/v1alpha/site_search_engine_service_client_config.json +44 -0
  53. package/build/src/v1alpha/user_event_service_client.d.ts +261 -0
  54. package/build/src/v1alpha/user_event_service_client.js +368 -2
  55. package/build/src/v1beta/completion_service_client.js +1 -1
  56. package/build/src/v1beta/conversational_search_service_client.js +1 -1
  57. package/build/src/v1beta/document_service_client.js +1 -1
  58. package/build/src/v1beta/index.js +1 -1
  59. package/build/src/v1beta/recommendation_service_client.js +1 -1
  60. package/build/src/v1beta/schema_service_client.js +1 -1
  61. package/build/src/v1beta/search_service_client.js +1 -1
  62. package/build/src/v1beta/user_event_service_client.js +1 -1
  63. package/package.json +4 -4
@@ -139,15 +139,23 @@ class RecommendationServiceClient {
139
139
  // identifiers to uniquely identify resources within the API.
140
140
  // Create useful helper objects for these.
141
141
  this.pathTemplates = {
142
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
143
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
142
144
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
143
145
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
144
146
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
145
147
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
148
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
149
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
150
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
146
151
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
152
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
147
153
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
148
154
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
149
155
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
150
156
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
157
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
158
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
151
159
  };
152
160
  // Put together the default options sent with requests.
153
161
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.RecommendationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -320,6 +328,120 @@ class RecommendationServiceClient {
320
328
  // --------------------
321
329
  // -- Path templates --
322
330
  // --------------------
331
+ /**
332
+ * Return a fully-qualified engine resource name string.
333
+ *
334
+ * @param {string} project
335
+ * @param {string} location
336
+ * @param {string} collection
337
+ * @param {string} engine
338
+ * @returns {string} Resource name string.
339
+ */
340
+ enginePath(project, location, collection, engine) {
341
+ return this.pathTemplates.enginePathTemplate.render({
342
+ project: project,
343
+ location: location,
344
+ collection: collection,
345
+ engine: engine,
346
+ });
347
+ }
348
+ /**
349
+ * Parse the project from Engine resource.
350
+ *
351
+ * @param {string} engineName
352
+ * A fully-qualified path representing Engine resource.
353
+ * @returns {string} A string representing the project.
354
+ */
355
+ matchProjectFromEngineName(engineName) {
356
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
357
+ }
358
+ /**
359
+ * Parse the location from Engine resource.
360
+ *
361
+ * @param {string} engineName
362
+ * A fully-qualified path representing Engine resource.
363
+ * @returns {string} A string representing the location.
364
+ */
365
+ matchLocationFromEngineName(engineName) {
366
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
367
+ }
368
+ /**
369
+ * Parse the collection from Engine resource.
370
+ *
371
+ * @param {string} engineName
372
+ * A fully-qualified path representing Engine resource.
373
+ * @returns {string} A string representing the collection.
374
+ */
375
+ matchCollectionFromEngineName(engineName) {
376
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
377
+ }
378
+ /**
379
+ * Parse the engine from Engine resource.
380
+ *
381
+ * @param {string} engineName
382
+ * A fully-qualified path representing Engine resource.
383
+ * @returns {string} A string representing the engine.
384
+ */
385
+ matchEngineFromEngineName(engineName) {
386
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
387
+ }
388
+ /**
389
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
390
+ *
391
+ * @param {string} project
392
+ * @param {string} location
393
+ * @param {string} collection
394
+ * @param {string} data_store
395
+ * @returns {string} Resource name string.
396
+ */
397
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
398
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
399
+ project: project,
400
+ location: location,
401
+ collection: collection,
402
+ data_store: dataStore,
403
+ });
404
+ }
405
+ /**
406
+ * Parse the project from ProjectLocationCollectionDataStore resource.
407
+ *
408
+ * @param {string} projectLocationCollectionDataStoreName
409
+ * A fully-qualified path representing project_location_collection_data_store resource.
410
+ * @returns {string} A string representing the project.
411
+ */
412
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
413
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
414
+ }
415
+ /**
416
+ * Parse the location from ProjectLocationCollectionDataStore resource.
417
+ *
418
+ * @param {string} projectLocationCollectionDataStoreName
419
+ * A fully-qualified path representing project_location_collection_data_store resource.
420
+ * @returns {string} A string representing the location.
421
+ */
422
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
423
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
424
+ }
425
+ /**
426
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
427
+ *
428
+ * @param {string} projectLocationCollectionDataStoreName
429
+ * A fully-qualified path representing project_location_collection_data_store resource.
430
+ * @returns {string} A string representing the collection.
431
+ */
432
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
433
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
434
+ }
435
+ /**
436
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
437
+ *
438
+ * @param {string} projectLocationCollectionDataStoreName
439
+ * A fully-qualified path representing project_location_collection_data_store resource.
440
+ * @returns {string} A string representing the data_store.
441
+ */
442
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
443
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
444
+ }
323
445
  /**
324
446
  * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
325
447
  *
@@ -608,6 +730,201 @@ class RecommendationServiceClient {
608
730
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
609
731
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
610
732
  }
733
+ /**
734
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
735
+ *
736
+ * @param {string} project
737
+ * @param {string} location
738
+ * @param {string} collection
739
+ * @param {string} data_store
740
+ * @returns {string} Resource name string.
741
+ */
742
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
743
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
744
+ project: project,
745
+ location: location,
746
+ collection: collection,
747
+ data_store: dataStore,
748
+ });
749
+ }
750
+ /**
751
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
752
+ *
753
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
754
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
755
+ * @returns {string} A string representing the project.
756
+ */
757
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
758
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
759
+ }
760
+ /**
761
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
762
+ *
763
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
764
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
765
+ * @returns {string} A string representing the location.
766
+ */
767
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
768
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
769
+ }
770
+ /**
771
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
772
+ *
773
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
774
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
775
+ * @returns {string} A string representing the collection.
776
+ */
777
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
778
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
779
+ }
780
+ /**
781
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
782
+ *
783
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
784
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
785
+ * @returns {string} A string representing the data_store.
786
+ */
787
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
788
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
789
+ }
790
+ /**
791
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
792
+ *
793
+ * @param {string} project
794
+ * @param {string} location
795
+ * @param {string} collection
796
+ * @param {string} data_store
797
+ * @param {string} target_site
798
+ * @returns {string} Resource name string.
799
+ */
800
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
801
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
802
+ project: project,
803
+ location: location,
804
+ collection: collection,
805
+ data_store: dataStore,
806
+ target_site: targetSite,
807
+ });
808
+ }
809
+ /**
810
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
811
+ *
812
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
813
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
814
+ * @returns {string} A string representing the project.
815
+ */
816
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
817
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
818
+ }
819
+ /**
820
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
821
+ *
822
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
823
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
824
+ * @returns {string} A string representing the location.
825
+ */
826
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
827
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
828
+ }
829
+ /**
830
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
831
+ *
832
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
833
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
834
+ * @returns {string} A string representing the collection.
835
+ */
836
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
837
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
838
+ }
839
+ /**
840
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
841
+ *
842
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
843
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
844
+ * @returns {string} A string representing the data_store.
845
+ */
846
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
847
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
848
+ }
849
+ /**
850
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
851
+ *
852
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
853
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
854
+ * @returns {string} A string representing the target_site.
855
+ */
856
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
857
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
858
+ }
859
+ /**
860
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
861
+ *
862
+ * @param {string} project
863
+ * @param {string} location
864
+ * @param {string} collection
865
+ * @param {string} engine
866
+ * @param {string} conversation
867
+ * @returns {string} Resource name string.
868
+ */
869
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
870
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
871
+ project: project,
872
+ location: location,
873
+ collection: collection,
874
+ engine: engine,
875
+ conversation: conversation,
876
+ });
877
+ }
878
+ /**
879
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
880
+ *
881
+ * @param {string} projectLocationCollectionEngineConversationName
882
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
883
+ * @returns {string} A string representing the project.
884
+ */
885
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
886
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
887
+ }
888
+ /**
889
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
890
+ *
891
+ * @param {string} projectLocationCollectionEngineConversationName
892
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
893
+ * @returns {string} A string representing the location.
894
+ */
895
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
896
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
897
+ }
898
+ /**
899
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
900
+ *
901
+ * @param {string} projectLocationCollectionEngineConversationName
902
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
903
+ * @returns {string} A string representing the collection.
904
+ */
905
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
906
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
907
+ }
908
+ /**
909
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
910
+ *
911
+ * @param {string} projectLocationCollectionEngineConversationName
912
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
913
+ * @returns {string} A string representing the engine.
914
+ */
915
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
916
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
917
+ }
918
+ /**
919
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
920
+ *
921
+ * @param {string} projectLocationCollectionEngineConversationName
922
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
923
+ * @returns {string} A string representing the conversation.
924
+ */
925
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
926
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
927
+ }
611
928
  /**
612
929
  * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
613
930
  *
@@ -677,6 +994,51 @@ class RecommendationServiceClient {
677
994
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
678
995
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
679
996
  }
997
+ /**
998
+ * Return a fully-qualified projectLocationDataStore resource name string.
999
+ *
1000
+ * @param {string} project
1001
+ * @param {string} location
1002
+ * @param {string} data_store
1003
+ * @returns {string} Resource name string.
1004
+ */
1005
+ projectLocationDataStorePath(project, location, dataStore) {
1006
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1007
+ project: project,
1008
+ location: location,
1009
+ data_store: dataStore,
1010
+ });
1011
+ }
1012
+ /**
1013
+ * Parse the project from ProjectLocationDataStore resource.
1014
+ *
1015
+ * @param {string} projectLocationDataStoreName
1016
+ * A fully-qualified path representing project_location_data_store resource.
1017
+ * @returns {string} A string representing the project.
1018
+ */
1019
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1020
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1021
+ }
1022
+ /**
1023
+ * Parse the location from ProjectLocationDataStore resource.
1024
+ *
1025
+ * @param {string} projectLocationDataStoreName
1026
+ * A fully-qualified path representing project_location_data_store resource.
1027
+ * @returns {string} A string representing the location.
1028
+ */
1029
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1030
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1031
+ }
1032
+ /**
1033
+ * Parse the data_store from ProjectLocationDataStore resource.
1034
+ *
1035
+ * @param {string} projectLocationDataStoreName
1036
+ * A fully-qualified path representing project_location_data_store resource.
1037
+ * @returns {string} A string representing the data_store.
1038
+ */
1039
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1040
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1041
+ }
680
1042
  /**
681
1043
  * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
682
1044
  *
@@ -917,6 +1279,108 @@ class RecommendationServiceClient {
917
1279
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
918
1280
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
919
1281
  }
1282
+ /**
1283
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1284
+ *
1285
+ * @param {string} project
1286
+ * @param {string} location
1287
+ * @param {string} data_store
1288
+ * @returns {string} Resource name string.
1289
+ */
1290
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1291
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1292
+ project: project,
1293
+ location: location,
1294
+ data_store: dataStore,
1295
+ });
1296
+ }
1297
+ /**
1298
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1299
+ *
1300
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1301
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1302
+ * @returns {string} A string representing the project.
1303
+ */
1304
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1305
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1306
+ }
1307
+ /**
1308
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1309
+ *
1310
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1311
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1312
+ * @returns {string} A string representing the location.
1313
+ */
1314
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1315
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1316
+ }
1317
+ /**
1318
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1319
+ *
1320
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1321
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1322
+ * @returns {string} A string representing the data_store.
1323
+ */
1324
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1325
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1326
+ }
1327
+ /**
1328
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1329
+ *
1330
+ * @param {string} project
1331
+ * @param {string} location
1332
+ * @param {string} data_store
1333
+ * @param {string} target_site
1334
+ * @returns {string} Resource name string.
1335
+ */
1336
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1337
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1338
+ project: project,
1339
+ location: location,
1340
+ data_store: dataStore,
1341
+ target_site: targetSite,
1342
+ });
1343
+ }
1344
+ /**
1345
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1346
+ *
1347
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1348
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1349
+ * @returns {string} A string representing the project.
1350
+ */
1351
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1352
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1353
+ }
1354
+ /**
1355
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1356
+ *
1357
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1358
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1359
+ * @returns {string} A string representing the location.
1360
+ */
1361
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1362
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1363
+ }
1364
+ /**
1365
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1366
+ *
1367
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1368
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1369
+ * @returns {string} A string representing the data_store.
1370
+ */
1371
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1372
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1373
+ }
1374
+ /**
1375
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1376
+ *
1377
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1378
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1379
+ * @returns {string} A string representing the target_site.
1380
+ */
1381
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1382
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1383
+ }
920
1384
  /**
921
1385
  * Terminate the gRPC channel and close the client.
922
1386
  *