@google-cloud/discoveryengine 1.3.0 → 1.4.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 (131) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +63 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
  4. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
  6. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
  16. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +0 -5
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +39 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +97 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +147 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +164 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +540 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
  29. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +40 -1
  33. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +98 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  36. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
  39. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +38 -0
  40. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
  41. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +150 -11
  42. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +264 -0
  43. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +147 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
  45. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
  46. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
  47. package/build/protos/protos.d.ts +42822 -21397
  48. package/build/protos/protos.js +110509 -61572
  49. package/build/protos/protos.json +11779 -6752
  50. package/build/src/index.d.ts +10 -1
  51. package/build/src/index.js +11 -2
  52. package/build/src/v1/completion_service_client.d.ts +489 -7
  53. package/build/src/v1/completion_service_client.js +716 -12
  54. package/build/src/v1/completion_service_client_config.json +10 -0
  55. package/build/src/v1/conversational_search_service_client.d.ts +341 -3
  56. package/build/src/v1/conversational_search_service_client.js +467 -10
  57. package/build/src/v1/data_store_service_client.d.ts +1286 -0
  58. package/build/src/v1/data_store_service_client.js +1768 -0
  59. package/build/src/v1/data_store_service_client_config.json +46 -0
  60. package/build/src/v1/document_service_client.d.ts +347 -2
  61. package/build/src/v1/document_service_client.js +507 -10
  62. package/build/src/v1/engine_service_client.d.ts +1211 -0
  63. package/build/src/v1/engine_service_client.js +1731 -0
  64. package/build/src/v1/engine_service_client_config.json +46 -0
  65. package/build/src/v1/index.d.ts +3 -0
  66. package/build/src/v1/index.js +8 -2
  67. package/build/src/v1/schema_service_client.d.ts +272 -2
  68. package/build/src/v1/schema_service_client.js +403 -10
  69. package/build/src/v1/search_service_client.d.ts +515 -11
  70. package/build/src/v1/search_service_client.js +649 -16
  71. package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
  72. package/build/src/v1/site_search_engine_service_client.js +2075 -0
  73. package/build/src/v1/site_search_engine_service_client_config.json +74 -0
  74. package/build/src/v1/user_event_service_client.d.ts +272 -2
  75. package/build/src/v1/user_event_service_client.js +403 -10
  76. package/build/src/v1alpha/completion_service_client.d.ts +230 -2
  77. package/build/src/v1alpha/completion_service_client.js +339 -10
  78. package/build/src/v1alpha/conversational_search_service_client.d.ts +247 -2
  79. package/build/src/v1alpha/conversational_search_service_client.js +339 -10
  80. package/build/src/v1alpha/data_store_service_client.d.ts +230 -2
  81. package/build/src/v1alpha/data_store_service_client.js +347 -12
  82. package/build/src/v1alpha/document_service_client.d.ts +230 -2
  83. package/build/src/v1alpha/document_service_client.js +347 -12
  84. package/build/src/v1alpha/engine_service_client.d.ts +231 -3
  85. package/build/src/v1alpha/engine_service_client.js +347 -12
  86. package/build/src/v1alpha/index.d.ts +1 -0
  87. package/build/src/v1alpha/index.js +4 -2
  88. package/build/src/v1alpha/recommendation_service_client.d.ts +230 -2
  89. package/build/src/v1alpha/recommendation_service_client.js +339 -10
  90. package/build/src/v1alpha/schema_service_client.d.ts +230 -2
  91. package/build/src/v1alpha/schema_service_client.js +347 -12
  92. package/build/src/v1alpha/search_service_client.d.ts +269 -2
  93. package/build/src/v1alpha/search_service_client.js +365 -10
  94. package/build/src/v1alpha/search_tuning_service_client.d.ts +977 -0
  95. package/build/src/v1alpha/search_tuning_service_client.js +1479 -0
  96. package/build/src/v1alpha/search_tuning_service_client_config.json +30 -0
  97. package/build/src/v1alpha/site_search_engine_service_client.d.ts +750 -3
  98. package/build/src/v1alpha/site_search_engine_service_client.js +838 -14
  99. package/build/src/v1alpha/site_search_engine_service_client_config.json +44 -0
  100. package/build/src/v1alpha/user_event_service_client.d.ts +230 -2
  101. package/build/src/v1alpha/user_event_service_client.js +347 -12
  102. package/build/src/v1beta/completion_service_client.d.ts +633 -7
  103. package/build/src/v1beta/completion_service_client.js +912 -12
  104. package/build/src/v1beta/completion_service_client_config.json +10 -0
  105. package/build/src/v1beta/conversational_search_service_client.d.ts +341 -3
  106. package/build/src/v1beta/conversational_search_service_client.js +467 -10
  107. package/build/src/v1beta/data_store_service_client.d.ts +1433 -0
  108. package/build/src/v1beta/data_store_service_client.js +1966 -0
  109. package/build/src/v1beta/data_store_service_client_config.json +46 -0
  110. package/build/src/v1beta/document_service_client.d.ts +491 -2
  111. package/build/src/v1beta/document_service_client.js +707 -12
  112. package/build/src/v1beta/engine_service_client.d.ts +1357 -0
  113. package/build/src/v1beta/engine_service_client.js +1928 -0
  114. package/build/src/v1beta/engine_service_client_config.json +46 -0
  115. package/build/src/v1beta/index.d.ts +4 -0
  116. package/build/src/v1beta/index.js +10 -2
  117. package/build/src/v1beta/recommendation_service_client.d.ts +420 -5
  118. package/build/src/v1beta/recommendation_service_client.js +571 -10
  119. package/build/src/v1beta/schema_service_client.d.ts +416 -2
  120. package/build/src/v1beta/schema_service_client.js +603 -12
  121. package/build/src/v1beta/search_service_client.d.ts +539 -29
  122. package/build/src/v1beta/search_service_client.js +665 -28
  123. package/build/src/v1beta/serving_config_service_client.d.ts +1102 -0
  124. package/build/src/v1beta/serving_config_service_client.js +1563 -0
  125. package/build/src/v1beta/serving_config_service_client_config.json +38 -0
  126. package/build/src/v1beta/site_search_engine_service_client.d.ts +1712 -0
  127. package/build/src/v1beta/site_search_engine_service_client.js +2271 -0
  128. package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
  129. package/build/src/v1beta/user_event_service_client.d.ts +416 -2
  130. package/build/src/v1beta/user_event_service_client.js +603 -12
  131. package/package.json +3 -3
@@ -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.
@@ -73,7 +73,7 @@ class DataStoreServiceClient {
73
73
  * ```
74
74
  */
75
75
  constructor(opts, gaxInstance) {
76
- var _a, _b;
76
+ var _a, _b, _c, _d;
77
77
  this._terminated = false;
78
78
  this.descriptors = {
79
79
  page: {},
@@ -83,16 +83,24 @@ class DataStoreServiceClient {
83
83
  };
84
84
  // Ensure that options include all the required fields.
85
85
  const staticMembers = this.constructor;
86
- const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
86
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
87
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
88
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
89
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
90
+ }
91
+ this._universeDomain =
92
+ (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
93
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
94
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
87
95
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
88
96
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
89
- const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
90
- const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
97
+ const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
98
+ const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
91
99
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
92
100
  // Request numeric enum values if REST transport is used.
93
101
  opts.numericEnums = true;
94
102
  // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
95
- if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
103
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
96
104
  opts['scopes'] = staticMembers.scopes;
97
105
  }
98
106
  // Load google-gax module synchronously if needed
@@ -110,9 +118,9 @@ class DataStoreServiceClient {
110
118
  // Set useJWTAccessWithScope on the auth object.
111
119
  this.auth.useJWTAccessWithScope = true;
112
120
  // Set defaultServicePath on the auth object.
113
- this.auth.defaultServicePath = staticMembers.servicePath;
121
+ this.auth.defaultServicePath = this._servicePath;
114
122
  // Set the default scopes in auth client if needed.
115
- if (servicePath === staticMembers.servicePath) {
123
+ if (servicePath === this._servicePath) {
116
124
  this.auth.defaultScopes = staticMembers.scopes;
117
125
  }
118
126
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
@@ -145,10 +153,15 @@ class DataStoreServiceClient {
145
153
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
146
154
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
147
155
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
156
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
157
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
158
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
148
159
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
149
160
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
150
161
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
151
162
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
163
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
164
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
152
165
  };
153
166
  // Some of the methods on this service return "paged" results,
154
167
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -169,8 +182,11 @@ class DataStoreServiceClient {
169
182
  lroOptions.httpRules = [
170
183
  {
171
184
  selector: 'google.longrunning.Operations.GetOperation',
172
- get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
185
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
173
186
  additional_bindings: [
187
+ {
188
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
189
+ },
174
190
  {
175
191
  get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
176
192
  },
@@ -207,8 +223,11 @@ class DataStoreServiceClient {
207
223
  },
208
224
  {
209
225
  selector: 'google.longrunning.Operations.ListOperations',
210
- get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
226
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
211
227
  additional_bindings: [
228
+ {
229
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
230
+ },
212
231
  {
213
232
  get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
214
233
  },
@@ -317,19 +336,38 @@ class DataStoreServiceClient {
317
336
  }
318
337
  /**
319
338
  * The DNS address for this API service.
339
+ * @deprecated Use the apiEndpoint method of the client instance.
320
340
  * @returns {string} The DNS address for this service.
321
341
  */
322
342
  static get servicePath() {
343
+ if (typeof process !== undefined &&
344
+ typeof process.emitWarning === 'function') {
345
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
346
+ }
323
347
  return 'discoveryengine.googleapis.com';
324
348
  }
325
349
  /**
326
- * The DNS address for this API service - same as servicePath(),
327
- * exists for compatibility reasons.
350
+ * The DNS address for this API service - same as servicePath.
351
+ * @deprecated Use the apiEndpoint method of the client instance.
328
352
  * @returns {string} The DNS address for this service.
329
353
  */
330
354
  static get apiEndpoint() {
355
+ if (typeof process !== undefined &&
356
+ typeof process.emitWarning === 'function') {
357
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
358
+ }
331
359
  return 'discoveryengine.googleapis.com';
332
360
  }
361
+ /**
362
+ * The DNS address for this API service.
363
+ * @returns {string} The DNS address for this service.
364
+ */
365
+ get apiEndpoint() {
366
+ return this._servicePath;
367
+ }
368
+ get universeDomain() {
369
+ return this._universeDomain;
370
+ }
333
371
  /**
334
372
  * The port for this API service.
335
373
  * @returns {number} The default port for this service.
@@ -1181,6 +1219,201 @@ class DataStoreServiceClient {
1181
1219
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1182
1220
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1183
1221
  }
1222
+ /**
1223
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1224
+ *
1225
+ * @param {string} project
1226
+ * @param {string} location
1227
+ * @param {string} collection
1228
+ * @param {string} data_store
1229
+ * @returns {string} Resource name string.
1230
+ */
1231
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1232
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1233
+ project: project,
1234
+ location: location,
1235
+ collection: collection,
1236
+ data_store: dataStore,
1237
+ });
1238
+ }
1239
+ /**
1240
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1241
+ *
1242
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1243
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1244
+ * @returns {string} A string representing the project.
1245
+ */
1246
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1247
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1248
+ }
1249
+ /**
1250
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1251
+ *
1252
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1253
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1254
+ * @returns {string} A string representing the location.
1255
+ */
1256
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1257
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1258
+ }
1259
+ /**
1260
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1261
+ *
1262
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1263
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1264
+ * @returns {string} A string representing the collection.
1265
+ */
1266
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1267
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1268
+ }
1269
+ /**
1270
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1271
+ *
1272
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1273
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1274
+ * @returns {string} A string representing the data_store.
1275
+ */
1276
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1277
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1278
+ }
1279
+ /**
1280
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1281
+ *
1282
+ * @param {string} project
1283
+ * @param {string} location
1284
+ * @param {string} collection
1285
+ * @param {string} data_store
1286
+ * @param {string} target_site
1287
+ * @returns {string} Resource name string.
1288
+ */
1289
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1290
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1291
+ project: project,
1292
+ location: location,
1293
+ collection: collection,
1294
+ data_store: dataStore,
1295
+ target_site: targetSite,
1296
+ });
1297
+ }
1298
+ /**
1299
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1300
+ *
1301
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1302
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1303
+ * @returns {string} A string representing the project.
1304
+ */
1305
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1306
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1307
+ }
1308
+ /**
1309
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1310
+ *
1311
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1312
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1313
+ * @returns {string} A string representing the location.
1314
+ */
1315
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1316
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1317
+ }
1318
+ /**
1319
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1320
+ *
1321
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1322
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1323
+ * @returns {string} A string representing the collection.
1324
+ */
1325
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1326
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1327
+ }
1328
+ /**
1329
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1330
+ *
1331
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1332
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1333
+ * @returns {string} A string representing the data_store.
1334
+ */
1335
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1336
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1337
+ }
1338
+ /**
1339
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1340
+ *
1341
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1342
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1343
+ * @returns {string} A string representing the target_site.
1344
+ */
1345
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1346
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1347
+ }
1348
+ /**
1349
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1350
+ *
1351
+ * @param {string} project
1352
+ * @param {string} location
1353
+ * @param {string} collection
1354
+ * @param {string} engine
1355
+ * @param {string} conversation
1356
+ * @returns {string} Resource name string.
1357
+ */
1358
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1359
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1360
+ project: project,
1361
+ location: location,
1362
+ collection: collection,
1363
+ engine: engine,
1364
+ conversation: conversation,
1365
+ });
1366
+ }
1367
+ /**
1368
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1369
+ *
1370
+ * @param {string} projectLocationCollectionEngineConversationName
1371
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1372
+ * @returns {string} A string representing the project.
1373
+ */
1374
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1375
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1376
+ }
1377
+ /**
1378
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1379
+ *
1380
+ * @param {string} projectLocationCollectionEngineConversationName
1381
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1382
+ * @returns {string} A string representing the location.
1383
+ */
1384
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1385
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1386
+ }
1387
+ /**
1388
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1389
+ *
1390
+ * @param {string} projectLocationCollectionEngineConversationName
1391
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1392
+ * @returns {string} A string representing the collection.
1393
+ */
1394
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1395
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1396
+ }
1397
+ /**
1398
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1399
+ *
1400
+ * @param {string} projectLocationCollectionEngineConversationName
1401
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1402
+ * @returns {string} A string representing the engine.
1403
+ */
1404
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1405
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1406
+ }
1407
+ /**
1408
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1409
+ *
1410
+ * @param {string} projectLocationCollectionEngineConversationName
1411
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1412
+ * @returns {string} A string representing the conversation.
1413
+ */
1414
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1415
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1416
+ }
1184
1417
  /**
1185
1418
  * Return a fully-qualified projectLocationDataStore resource name string.
1186
1419
  *
@@ -1409,6 +1642,108 @@ class DataStoreServiceClient {
1409
1642
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1410
1643
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1411
1644
  }
1645
+ /**
1646
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1647
+ *
1648
+ * @param {string} project
1649
+ * @param {string} location
1650
+ * @param {string} data_store
1651
+ * @returns {string} Resource name string.
1652
+ */
1653
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1654
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1655
+ project: project,
1656
+ location: location,
1657
+ data_store: dataStore,
1658
+ });
1659
+ }
1660
+ /**
1661
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1662
+ *
1663
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1664
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1665
+ * @returns {string} A string representing the project.
1666
+ */
1667
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1668
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1669
+ }
1670
+ /**
1671
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1672
+ *
1673
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1674
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1675
+ * @returns {string} A string representing the location.
1676
+ */
1677
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1678
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1679
+ }
1680
+ /**
1681
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1682
+ *
1683
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1684
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1685
+ * @returns {string} A string representing the data_store.
1686
+ */
1687
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1688
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1689
+ }
1690
+ /**
1691
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1692
+ *
1693
+ * @param {string} project
1694
+ * @param {string} location
1695
+ * @param {string} data_store
1696
+ * @param {string} target_site
1697
+ * @returns {string} Resource name string.
1698
+ */
1699
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1700
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1701
+ project: project,
1702
+ location: location,
1703
+ data_store: dataStore,
1704
+ target_site: targetSite,
1705
+ });
1706
+ }
1707
+ /**
1708
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1709
+ *
1710
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1711
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1712
+ * @returns {string} A string representing the project.
1713
+ */
1714
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1715
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1716
+ }
1717
+ /**
1718
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1719
+ *
1720
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1721
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1722
+ * @returns {string} A string representing the location.
1723
+ */
1724
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1725
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1726
+ }
1727
+ /**
1728
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1729
+ *
1730
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1731
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1732
+ * @returns {string} A string representing the data_store.
1733
+ */
1734
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1735
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1736
+ }
1737
+ /**
1738
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1739
+ *
1740
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1741
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1742
+ * @returns {string} A string representing the target_site.
1743
+ */
1744
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1745
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1746
+ }
1412
1747
  /**
1413
1748
  * Terminate the gRPC channel and close the client.
1414
1749
  *