@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
@@ -138,14 +138,20 @@ class UserEventServiceClient {
138
138
  // identifiers to uniquely identify resources within the API.
139
139
  // Create useful helper objects for these.
140
140
  this.pathTemplates = {
141
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
141
142
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
142
143
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
143
144
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
144
145
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
146
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
147
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
148
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
145
149
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
146
150
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
147
151
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
148
152
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
153
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
154
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
149
155
  };
150
156
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
151
157
  // This API contains "long-running operations", which return a
@@ -160,8 +166,11 @@ class UserEventServiceClient {
160
166
  lroOptions.httpRules = [
161
167
  {
162
168
  selector: 'google.longrunning.Operations.GetOperation',
163
- get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
169
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
164
170
  additional_bindings: [
171
+ {
172
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
173
+ },
165
174
  {
166
175
  get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
167
176
  },
@@ -198,8 +207,11 @@ class UserEventServiceClient {
198
207
  },
199
208
  {
200
209
  selector: 'google.longrunning.Operations.ListOperations',
201
- get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
210
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
202
211
  additional_bindings: [
212
+ {
213
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
214
+ },
203
215
  {
204
216
  get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
205
217
  },
@@ -648,6 +660,63 @@ class UserEventServiceClient {
648
660
  // --------------------
649
661
  // -- Path templates --
650
662
  // --------------------
663
+ /**
664
+ * Return a fully-qualified engine resource name string.
665
+ *
666
+ * @param {string} project
667
+ * @param {string} location
668
+ * @param {string} collection
669
+ * @param {string} engine
670
+ * @returns {string} Resource name string.
671
+ */
672
+ enginePath(project, location, collection, engine) {
673
+ return this.pathTemplates.enginePathTemplate.render({
674
+ project: project,
675
+ location: location,
676
+ collection: collection,
677
+ engine: engine,
678
+ });
679
+ }
680
+ /**
681
+ * Parse the project from Engine resource.
682
+ *
683
+ * @param {string} engineName
684
+ * A fully-qualified path representing Engine resource.
685
+ * @returns {string} A string representing the project.
686
+ */
687
+ matchProjectFromEngineName(engineName) {
688
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
689
+ }
690
+ /**
691
+ * Parse the location from Engine resource.
692
+ *
693
+ * @param {string} engineName
694
+ * A fully-qualified path representing Engine resource.
695
+ * @returns {string} A string representing the location.
696
+ */
697
+ matchLocationFromEngineName(engineName) {
698
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
699
+ }
700
+ /**
701
+ * Parse the collection from Engine resource.
702
+ *
703
+ * @param {string} engineName
704
+ * A fully-qualified path representing Engine resource.
705
+ * @returns {string} A string representing the collection.
706
+ */
707
+ matchCollectionFromEngineName(engineName) {
708
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
709
+ }
710
+ /**
711
+ * Parse the engine from Engine resource.
712
+ *
713
+ * @param {string} engineName
714
+ * A fully-qualified path representing Engine resource.
715
+ * @returns {string} A string representing the engine.
716
+ */
717
+ matchEngineFromEngineName(engineName) {
718
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
719
+ }
651
720
  /**
652
721
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
653
722
  *
@@ -924,6 +993,201 @@ class UserEventServiceClient {
924
993
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
925
994
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
926
995
  }
996
+ /**
997
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
998
+ *
999
+ * @param {string} project
1000
+ * @param {string} location
1001
+ * @param {string} collection
1002
+ * @param {string} data_store
1003
+ * @returns {string} Resource name string.
1004
+ */
1005
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1006
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1007
+ project: project,
1008
+ location: location,
1009
+ collection: collection,
1010
+ data_store: dataStore,
1011
+ });
1012
+ }
1013
+ /**
1014
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1015
+ *
1016
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1017
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1018
+ * @returns {string} A string representing the project.
1019
+ */
1020
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1021
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1022
+ }
1023
+ /**
1024
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1025
+ *
1026
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1027
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1028
+ * @returns {string} A string representing the location.
1029
+ */
1030
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1031
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1032
+ }
1033
+ /**
1034
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1035
+ *
1036
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1037
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1038
+ * @returns {string} A string representing the collection.
1039
+ */
1040
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1041
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1042
+ }
1043
+ /**
1044
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1045
+ *
1046
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1047
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1048
+ * @returns {string} A string representing the data_store.
1049
+ */
1050
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1051
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1052
+ }
1053
+ /**
1054
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1055
+ *
1056
+ * @param {string} project
1057
+ * @param {string} location
1058
+ * @param {string} collection
1059
+ * @param {string} data_store
1060
+ * @param {string} target_site
1061
+ * @returns {string} Resource name string.
1062
+ */
1063
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1064
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1065
+ project: project,
1066
+ location: location,
1067
+ collection: collection,
1068
+ data_store: dataStore,
1069
+ target_site: targetSite,
1070
+ });
1071
+ }
1072
+ /**
1073
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1074
+ *
1075
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1076
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1077
+ * @returns {string} A string representing the project.
1078
+ */
1079
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1080
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1081
+ }
1082
+ /**
1083
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1084
+ *
1085
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1086
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1087
+ * @returns {string} A string representing the location.
1088
+ */
1089
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1090
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1091
+ }
1092
+ /**
1093
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1094
+ *
1095
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1096
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1097
+ * @returns {string} A string representing the collection.
1098
+ */
1099
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1100
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1101
+ }
1102
+ /**
1103
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1104
+ *
1105
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1106
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1107
+ * @returns {string} A string representing the data_store.
1108
+ */
1109
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1110
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1111
+ }
1112
+ /**
1113
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1114
+ *
1115
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1116
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1117
+ * @returns {string} A string representing the target_site.
1118
+ */
1119
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1120
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1121
+ }
1122
+ /**
1123
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1124
+ *
1125
+ * @param {string} project
1126
+ * @param {string} location
1127
+ * @param {string} collection
1128
+ * @param {string} engine
1129
+ * @param {string} conversation
1130
+ * @returns {string} Resource name string.
1131
+ */
1132
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1133
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1134
+ project: project,
1135
+ location: location,
1136
+ collection: collection,
1137
+ engine: engine,
1138
+ conversation: conversation,
1139
+ });
1140
+ }
1141
+ /**
1142
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1143
+ *
1144
+ * @param {string} projectLocationCollectionEngineConversationName
1145
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1146
+ * @returns {string} A string representing the project.
1147
+ */
1148
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1149
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1150
+ }
1151
+ /**
1152
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1153
+ *
1154
+ * @param {string} projectLocationCollectionEngineConversationName
1155
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1156
+ * @returns {string} A string representing the location.
1157
+ */
1158
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1159
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1160
+ }
1161
+ /**
1162
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1163
+ *
1164
+ * @param {string} projectLocationCollectionEngineConversationName
1165
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1166
+ * @returns {string} A string representing the collection.
1167
+ */
1168
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1169
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1170
+ }
1171
+ /**
1172
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1173
+ *
1174
+ * @param {string} projectLocationCollectionEngineConversationName
1175
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1176
+ * @returns {string} A string representing the engine.
1177
+ */
1178
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1179
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1180
+ }
1181
+ /**
1182
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1183
+ *
1184
+ * @param {string} projectLocationCollectionEngineConversationName
1185
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1186
+ * @returns {string} A string representing the conversation.
1187
+ */
1188
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1189
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1190
+ }
927
1191
  /**
928
1192
  * Return a fully-qualified projectLocationDataStore resource name string.
929
1193
  *
@@ -1152,6 +1416,108 @@ class UserEventServiceClient {
1152
1416
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1153
1417
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1154
1418
  }
1419
+ /**
1420
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1421
+ *
1422
+ * @param {string} project
1423
+ * @param {string} location
1424
+ * @param {string} data_store
1425
+ * @returns {string} Resource name string.
1426
+ */
1427
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1428
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1429
+ project: project,
1430
+ location: location,
1431
+ data_store: dataStore,
1432
+ });
1433
+ }
1434
+ /**
1435
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1436
+ *
1437
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1438
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1439
+ * @returns {string} A string representing the project.
1440
+ */
1441
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1442
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1443
+ }
1444
+ /**
1445
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1446
+ *
1447
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1448
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1449
+ * @returns {string} A string representing the location.
1450
+ */
1451
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1452
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1453
+ }
1454
+ /**
1455
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1456
+ *
1457
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1458
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1459
+ * @returns {string} A string representing the data_store.
1460
+ */
1461
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1462
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1463
+ }
1464
+ /**
1465
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1466
+ *
1467
+ * @param {string} project
1468
+ * @param {string} location
1469
+ * @param {string} data_store
1470
+ * @param {string} target_site
1471
+ * @returns {string} Resource name string.
1472
+ */
1473
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1474
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1475
+ project: project,
1476
+ location: location,
1477
+ data_store: dataStore,
1478
+ target_site: targetSite,
1479
+ });
1480
+ }
1481
+ /**
1482
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1483
+ *
1484
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1485
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1486
+ * @returns {string} A string representing the project.
1487
+ */
1488
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1489
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1490
+ }
1491
+ /**
1492
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1493
+ *
1494
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1495
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1496
+ * @returns {string} A string representing the location.
1497
+ */
1498
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1499
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1500
+ }
1501
+ /**
1502
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1503
+ *
1504
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1505
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1506
+ * @returns {string} A string representing the data_store.
1507
+ */
1508
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1509
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1510
+ }
1511
+ /**
1512
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1513
+ *
1514
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1515
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1516
+ * @returns {string} A string representing the target_site.
1517
+ */
1518
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1519
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1520
+ }
1155
1521
  /**
1156
1522
  * Terminate the gRPC channel and close the client.
1157
1523
  *
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/discoveryengine",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "Discovery Engine API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  "docs-test": "linkinator docs",
39
39
  "fix": "gts fix",
40
40
  "lint": "gts check",
41
- "prepare": "npm run compile-protos && npm run compile",
41
+ "prepare": "npm run compile",
42
42
  "prelint": "cd samples; npm link ../; npm i",
43
43
  "postpack": "minifyProtoJson",
44
44
  "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@types/mocha": "^9.0.0",
53
53
  "@types/node": "^20.4.5",
54
- "@types/sinon": "^10.0.0",
54
+ "@types/sinon": "^17.0.0",
55
55
  "c8": "^8.0.1",
56
56
  "gapic-tools": "^0.2.0",
57
57
  "gts": "^5.0.0",
@@ -62,7 +62,7 @@
62
62
  "long": "^5.2.3",
63
63
  "mocha": "^9.2.2",
64
64
  "pack-n-play": "^2.0.0",
65
- "sinon": "^15.0.0",
65
+ "sinon": "^17.0.0",
66
66
  "typescript": "^5.1.6"
67
67
  },
68
68
  "engines": {