@google-cloud/discoveryengine 1.3.1 → 1.4.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 (166) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +64 -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/acl_config.proto +49 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
  33. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
  46. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
  47. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
  48. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
  49. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
  50. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +45 -1
  51. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +120 -0
  52. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
  53. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +10 -1
  54. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
  55. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
  56. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
  57. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
  58. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +41 -0
  59. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
  60. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +169 -15
  61. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
  62. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +265 -0
  63. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +148 -0
  64. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
  65. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
  66. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
  67. package/build/protos/protos.d.ts +48530 -23682
  68. package/build/protos/protos.js +122429 -63306
  69. package/build/protos/protos.json +13438 -7286
  70. package/build/src/index.d.ts +10 -1
  71. package/build/src/index.js +10 -1
  72. package/build/src/v1/completion_service_client.d.ts +489 -7
  73. package/build/src/v1/completion_service_client.js +715 -11
  74. package/build/src/v1/completion_service_client_config.json +10 -0
  75. package/build/src/v1/conversational_search_service_client.d.ts +341 -3
  76. package/build/src/v1/conversational_search_service_client.js +466 -9
  77. package/build/src/v1/data_store_service_client.d.ts +1286 -0
  78. package/build/src/v1/data_store_service_client.js +1768 -0
  79. package/build/src/v1/data_store_service_client_config.json +46 -0
  80. package/build/src/v1/document_service_client.d.ts +347 -2
  81. package/build/src/v1/document_service_client.js +506 -9
  82. package/build/src/v1/engine_service_client.d.ts +1211 -0
  83. package/build/src/v1/engine_service_client.js +1731 -0
  84. package/build/src/v1/engine_service_client_config.json +46 -0
  85. package/build/src/v1/index.d.ts +3 -0
  86. package/build/src/v1/index.js +7 -1
  87. package/build/src/v1/schema_service_client.d.ts +272 -2
  88. package/build/src/v1/schema_service_client.js +402 -9
  89. package/build/src/v1/search_service_client.d.ts +515 -11
  90. package/build/src/v1/search_service_client.js +648 -15
  91. package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
  92. package/build/src/v1/site_search_engine_service_client.js +2075 -0
  93. package/build/src/v1/site_search_engine_service_client_config.json +74 -0
  94. package/build/src/v1/user_event_service_client.d.ts +272 -2
  95. package/build/src/v1/user_event_service_client.js +402 -9
  96. package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
  97. package/build/src/v1alpha/acl_config_service_client.js +1765 -0
  98. package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
  99. package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
  100. package/build/src/v1alpha/chunk_service_client.js +1886 -0
  101. package/build/src/v1alpha/chunk_service_client_config.json +34 -0
  102. package/build/src/v1alpha/completion_service_client.d.ts +599 -5
  103. package/build/src/v1alpha/completion_service_client.js +868 -12
  104. package/build/src/v1alpha/completion_service_client_config.json +10 -0
  105. package/build/src/v1alpha/conversational_search_service_client.d.ts +244 -3
  106. package/build/src/v1alpha/conversational_search_service_client.js +353 -10
  107. package/build/src/v1alpha/data_store_service_client.d.ts +462 -5
  108. package/build/src/v1alpha/data_store_service_client.js +599 -12
  109. package/build/src/v1alpha/data_store_service_client_config.json +8 -0
  110. package/build/src/v1alpha/document_service_client.d.ts +393 -2
  111. package/build/src/v1alpha/document_service_client.js +551 -10
  112. package/build/src/v1alpha/engine_service_client.d.ts +386 -4
  113. package/build/src/v1alpha/engine_service_client.js +551 -10
  114. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
  115. package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
  116. package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
  117. package/build/src/v1alpha/index.d.ts +4 -0
  118. package/build/src/v1alpha/index.js +10 -2
  119. package/build/src/v1alpha/recommendation_service_client.d.ts +242 -3
  120. package/build/src/v1alpha/recommendation_service_client.js +353 -10
  121. package/build/src/v1alpha/schema_service_client.d.ts +383 -2
  122. package/build/src/v1alpha/schema_service_client.js +551 -10
  123. package/build/src/v1alpha/search_service_client.d.ts +269 -17
  124. package/build/src/v1alpha/search_service_client.js +373 -20
  125. package/build/src/v1alpha/search_tuning_service_client.d.ts +384 -3
  126. package/build/src/v1alpha/search_tuning_service_client.js +551 -10
  127. package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
  128. package/build/src/v1alpha/serving_config_service_client.js +1935 -0
  129. package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
  130. package/build/src/v1alpha/site_search_engine_service_client.d.ts +383 -2
  131. package/build/src/v1alpha/site_search_engine_service_client.js +551 -10
  132. package/build/src/v1alpha/user_event_service_client.d.ts +383 -2
  133. package/build/src/v1alpha/user_event_service_client.js +551 -10
  134. package/build/src/v1beta/completion_service_client.d.ts +708 -7
  135. package/build/src/v1beta/completion_service_client.js +1015 -11
  136. package/build/src/v1beta/completion_service_client_config.json +10 -0
  137. package/build/src/v1beta/conversational_search_service_client.d.ts +420 -3
  138. package/build/src/v1beta/conversational_search_service_client.js +570 -9
  139. package/build/src/v1beta/data_store_service_client.d.ts +1508 -0
  140. package/build/src/v1beta/data_store_service_client.js +2070 -0
  141. package/build/src/v1beta/data_store_service_client_config.json +46 -0
  142. package/build/src/v1beta/document_service_client.d.ts +566 -2
  143. package/build/src/v1beta/document_service_client.js +810 -11
  144. package/build/src/v1beta/engine_service_client.d.ts +1432 -0
  145. package/build/src/v1beta/engine_service_client.js +2032 -0
  146. package/build/src/v1beta/engine_service_client_config.json +46 -0
  147. package/build/src/v1beta/index.d.ts +5 -0
  148. package/build/src/v1beta/index.js +11 -1
  149. package/build/src/v1beta/recommendation_service_client.d.ts +495 -5
  150. package/build/src/v1beta/recommendation_service_client.js +674 -9
  151. package/build/src/v1beta/schema_service_client.d.ts +491 -2
  152. package/build/src/v1beta/schema_service_client.js +706 -11
  153. package/build/src/v1beta/search_service_client.d.ts +620 -29
  154. package/build/src/v1beta/search_service_client.js +772 -27
  155. package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
  156. package/build/src/v1beta/search_tuning_service_client.js +1781 -0
  157. package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
  158. package/build/src/v1beta/serving_config_service_client.d.ts +1217 -0
  159. package/build/src/v1beta/serving_config_service_client.js +1724 -0
  160. package/build/src/v1beta/serving_config_service_client_config.json +38 -0
  161. package/build/src/v1beta/site_search_engine_service_client.d.ts +1787 -0
  162. package/build/src/v1beta/site_search_engine_service_client.js +2375 -0
  163. package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
  164. package/build/src/v1beta/user_event_service_client.d.ts +491 -2
  165. package/build/src/v1beta/user_event_service_client.js +706 -11
  166. package/package.json +3 -3
@@ -72,7 +72,7 @@ class ConversationalSearchServiceClient {
72
72
  * ```
73
73
  */
74
74
  constructor(opts, gaxInstance) {
75
- var _a, _b;
75
+ var _a, _b, _c, _d;
76
76
  this._terminated = false;
77
77
  this.descriptors = {
78
78
  page: {},
@@ -83,16 +83,24 @@ class ConversationalSearchServiceClient {
83
83
  // Ensure that options include all the required fields.
84
84
  const staticMembers = this
85
85
  .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 ConversationalSearchServiceClient {
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);
@@ -139,16 +147,25 @@ class ConversationalSearchServiceClient {
139
147
  // identifiers to uniquely identify resources within the API.
140
148
  // Create useful helper objects for these.
141
149
  this.pathTemplates = {
150
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
142
151
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
143
152
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
144
153
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
154
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
145
155
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
146
156
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
157
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
158
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
159
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
160
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
147
161
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
148
162
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
149
163
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
164
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
150
165
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
151
166
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
167
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
168
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
152
169
  };
153
170
  // Some of the methods on this service return "paged" results,
154
171
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -216,19 +233,38 @@ class ConversationalSearchServiceClient {
216
233
  }
217
234
  /**
218
235
  * The DNS address for this API service.
236
+ * @deprecated Use the apiEndpoint method of the client instance.
219
237
  * @returns {string} The DNS address for this service.
220
238
  */
221
239
  static get servicePath() {
240
+ if (typeof process !== undefined &&
241
+ typeof process.emitWarning === 'function') {
242
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
243
+ }
222
244
  return 'discoveryengine.googleapis.com';
223
245
  }
224
246
  /**
225
- * The DNS address for this API service - same as servicePath(),
226
- * exists for compatibility reasons.
247
+ * The DNS address for this API service - same as servicePath.
248
+ * @deprecated Use the apiEndpoint method of the client instance.
227
249
  * @returns {string} The DNS address for this service.
228
250
  */
229
251
  static get apiEndpoint() {
252
+ if (typeof process !== undefined &&
253
+ typeof process.emitWarning === 'function') {
254
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
255
+ }
230
256
  return 'discoveryengine.googleapis.com';
231
257
  }
258
+ /**
259
+ * The DNS address for this API service.
260
+ * @returns {string} The DNS address for this service.
261
+ */
262
+ get apiEndpoint() {
263
+ return this._servicePath;
264
+ }
265
+ get universeDomain() {
266
+ return this._universeDomain;
267
+ }
232
268
  /**
233
269
  * The port for this API service.
234
270
  * @returns {number} The default port for this service.
@@ -554,6 +590,63 @@ class ConversationalSearchServiceClient {
554
590
  // --------------------
555
591
  // -- Path templates --
556
592
  // --------------------
593
+ /**
594
+ * Return a fully-qualified engine resource name string.
595
+ *
596
+ * @param {string} project
597
+ * @param {string} location
598
+ * @param {string} collection
599
+ * @param {string} engine
600
+ * @returns {string} Resource name string.
601
+ */
602
+ enginePath(project, location, collection, engine) {
603
+ return this.pathTemplates.enginePathTemplate.render({
604
+ project: project,
605
+ location: location,
606
+ collection: collection,
607
+ engine: engine,
608
+ });
609
+ }
610
+ /**
611
+ * Parse the project from Engine resource.
612
+ *
613
+ * @param {string} engineName
614
+ * A fully-qualified path representing Engine resource.
615
+ * @returns {string} A string representing the project.
616
+ */
617
+ matchProjectFromEngineName(engineName) {
618
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
619
+ }
620
+ /**
621
+ * Parse the location from Engine resource.
622
+ *
623
+ * @param {string} engineName
624
+ * A fully-qualified path representing Engine resource.
625
+ * @returns {string} A string representing the location.
626
+ */
627
+ matchLocationFromEngineName(engineName) {
628
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
629
+ }
630
+ /**
631
+ * Parse the collection from Engine resource.
632
+ *
633
+ * @param {string} engineName
634
+ * A fully-qualified path representing Engine resource.
635
+ * @returns {string} A string representing the collection.
636
+ */
637
+ matchCollectionFromEngineName(engineName) {
638
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
639
+ }
640
+ /**
641
+ * Parse the engine from Engine resource.
642
+ *
643
+ * @param {string} engineName
644
+ * A fully-qualified path representing Engine resource.
645
+ * @returns {string} A string representing the engine.
646
+ */
647
+ matchEngineFromEngineName(engineName) {
648
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
649
+ }
557
650
  /**
558
651
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
559
652
  *
@@ -761,6 +854,63 @@ class ConversationalSearchServiceClient {
761
854
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
762
855
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
763
856
  }
857
+ /**
858
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
859
+ *
860
+ * @param {string} project
861
+ * @param {string} location
862
+ * @param {string} collection
863
+ * @param {string} data_store
864
+ * @returns {string} Resource name string.
865
+ */
866
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
867
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
868
+ project: project,
869
+ location: location,
870
+ collection: collection,
871
+ data_store: dataStore,
872
+ });
873
+ }
874
+ /**
875
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
876
+ *
877
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
878
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
879
+ * @returns {string} A string representing the project.
880
+ */
881
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
882
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
883
+ }
884
+ /**
885
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
886
+ *
887
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
888
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
889
+ * @returns {string} A string representing the location.
890
+ */
891
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
892
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
893
+ }
894
+ /**
895
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
896
+ *
897
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
898
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
899
+ * @returns {string} A string representing the collection.
900
+ */
901
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
902
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
903
+ }
904
+ /**
905
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
906
+ *
907
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
908
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
909
+ * @returns {string} A string representing the data_store.
910
+ */
911
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
912
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
913
+ }
764
914
  /**
765
915
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
766
916
  *
@@ -899,6 +1049,270 @@ class ConversationalSearchServiceClient {
899
1049
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
900
1050
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
901
1051
  }
1052
+ /**
1053
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1054
+ *
1055
+ * @param {string} project
1056
+ * @param {string} location
1057
+ * @param {string} collection
1058
+ * @param {string} data_store
1059
+ * @returns {string} Resource name string.
1060
+ */
1061
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1062
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1063
+ project: project,
1064
+ location: location,
1065
+ collection: collection,
1066
+ data_store: dataStore,
1067
+ });
1068
+ }
1069
+ /**
1070
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1071
+ *
1072
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1073
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1074
+ * @returns {string} A string representing the project.
1075
+ */
1076
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1077
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1078
+ }
1079
+ /**
1080
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1081
+ *
1082
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1083
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1084
+ * @returns {string} A string representing the location.
1085
+ */
1086
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1087
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1088
+ }
1089
+ /**
1090
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1091
+ *
1092
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1093
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1094
+ * @returns {string} A string representing the collection.
1095
+ */
1096
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1097
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1098
+ }
1099
+ /**
1100
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1101
+ *
1102
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1103
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1104
+ * @returns {string} A string representing the data_store.
1105
+ */
1106
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1107
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1108
+ }
1109
+ /**
1110
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1111
+ *
1112
+ * @param {string} project
1113
+ * @param {string} location
1114
+ * @param {string} collection
1115
+ * @param {string} data_store
1116
+ * @param {string} target_site
1117
+ * @returns {string} Resource name string.
1118
+ */
1119
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1120
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1121
+ project: project,
1122
+ location: location,
1123
+ collection: collection,
1124
+ data_store: dataStore,
1125
+ target_site: targetSite,
1126
+ });
1127
+ }
1128
+ /**
1129
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1130
+ *
1131
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1132
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1133
+ * @returns {string} A string representing the project.
1134
+ */
1135
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1136
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1137
+ }
1138
+ /**
1139
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1140
+ *
1141
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1142
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1143
+ * @returns {string} A string representing the location.
1144
+ */
1145
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1146
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1147
+ }
1148
+ /**
1149
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1150
+ *
1151
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1152
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1153
+ * @returns {string} A string representing the collection.
1154
+ */
1155
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1156
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1157
+ }
1158
+ /**
1159
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1160
+ *
1161
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1162
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1163
+ * @returns {string} A string representing the data_store.
1164
+ */
1165
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1166
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1167
+ }
1168
+ /**
1169
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1170
+ *
1171
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1172
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1173
+ * @returns {string} A string representing the target_site.
1174
+ */
1175
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1176
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1177
+ }
1178
+ /**
1179
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1180
+ *
1181
+ * @param {string} project
1182
+ * @param {string} location
1183
+ * @param {string} collection
1184
+ * @param {string} engine
1185
+ * @param {string} conversation
1186
+ * @returns {string} Resource name string.
1187
+ */
1188
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1189
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1190
+ project: project,
1191
+ location: location,
1192
+ collection: collection,
1193
+ engine: engine,
1194
+ conversation: conversation,
1195
+ });
1196
+ }
1197
+ /**
1198
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1199
+ *
1200
+ * @param {string} projectLocationCollectionEngineConversationName
1201
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1202
+ * @returns {string} A string representing the project.
1203
+ */
1204
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1205
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1206
+ }
1207
+ /**
1208
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1209
+ *
1210
+ * @param {string} projectLocationCollectionEngineConversationName
1211
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1212
+ * @returns {string} A string representing the location.
1213
+ */
1214
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1215
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1216
+ }
1217
+ /**
1218
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1219
+ *
1220
+ * @param {string} projectLocationCollectionEngineConversationName
1221
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1222
+ * @returns {string} A string representing the collection.
1223
+ */
1224
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1225
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1226
+ }
1227
+ /**
1228
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1229
+ *
1230
+ * @param {string} projectLocationCollectionEngineConversationName
1231
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1232
+ * @returns {string} A string representing the engine.
1233
+ */
1234
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1235
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1236
+ }
1237
+ /**
1238
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1239
+ *
1240
+ * @param {string} projectLocationCollectionEngineConversationName
1241
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1242
+ * @returns {string} A string representing the conversation.
1243
+ */
1244
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1245
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1246
+ }
1247
+ /**
1248
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1249
+ *
1250
+ * @param {string} project
1251
+ * @param {string} location
1252
+ * @param {string} collection
1253
+ * @param {string} engine
1254
+ * @param {string} serving_config
1255
+ * @returns {string} Resource name string.
1256
+ */
1257
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1258
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1259
+ project: project,
1260
+ location: location,
1261
+ collection: collection,
1262
+ engine: engine,
1263
+ serving_config: servingConfig,
1264
+ });
1265
+ }
1266
+ /**
1267
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1268
+ *
1269
+ * @param {string} projectLocationCollectionEngineServingConfigName
1270
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1271
+ * @returns {string} A string representing the project.
1272
+ */
1273
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1274
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1275
+ }
1276
+ /**
1277
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1278
+ *
1279
+ * @param {string} projectLocationCollectionEngineServingConfigName
1280
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1281
+ * @returns {string} A string representing the location.
1282
+ */
1283
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1284
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1285
+ }
1286
+ /**
1287
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1288
+ *
1289
+ * @param {string} projectLocationCollectionEngineServingConfigName
1290
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1291
+ * @returns {string} A string representing the collection.
1292
+ */
1293
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1294
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1295
+ }
1296
+ /**
1297
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1298
+ *
1299
+ * @param {string} projectLocationCollectionEngineServingConfigName
1300
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1301
+ * @returns {string} A string representing the engine.
1302
+ */
1303
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1304
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1305
+ }
1306
+ /**
1307
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1308
+ *
1309
+ * @param {string} projectLocationCollectionEngineServingConfigName
1310
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1311
+ * @returns {string} A string representing the serving_config.
1312
+ */
1313
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1314
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1315
+ }
902
1316
  /**
903
1317
  * Return a fully-qualified projectLocationDataStore resource name string.
904
1318
  *
@@ -1070,6 +1484,51 @@ class ConversationalSearchServiceClient {
1070
1484
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1071
1485
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1072
1486
  }
1487
+ /**
1488
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1489
+ *
1490
+ * @param {string} project
1491
+ * @param {string} location
1492
+ * @param {string} data_store
1493
+ * @returns {string} Resource name string.
1494
+ */
1495
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1496
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1497
+ project: project,
1498
+ location: location,
1499
+ data_store: dataStore,
1500
+ });
1501
+ }
1502
+ /**
1503
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1504
+ *
1505
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1506
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1507
+ * @returns {string} A string representing the project.
1508
+ */
1509
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1510
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1511
+ }
1512
+ /**
1513
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1514
+ *
1515
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1516
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1517
+ * @returns {string} A string representing the location.
1518
+ */
1519
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1520
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1521
+ }
1522
+ /**
1523
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1524
+ *
1525
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1526
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1527
+ * @returns {string} A string representing the data_store.
1528
+ */
1529
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1530
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1531
+ }
1073
1532
  /**
1074
1533
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1075
1534
  *
@@ -1184,6 +1643,108 @@ class ConversationalSearchServiceClient {
1184
1643
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1185
1644
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1186
1645
  }
1646
+ /**
1647
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1648
+ *
1649
+ * @param {string} project
1650
+ * @param {string} location
1651
+ * @param {string} data_store
1652
+ * @returns {string} Resource name string.
1653
+ */
1654
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1655
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1656
+ project: project,
1657
+ location: location,
1658
+ data_store: dataStore,
1659
+ });
1660
+ }
1661
+ /**
1662
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1663
+ *
1664
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1665
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1666
+ * @returns {string} A string representing the project.
1667
+ */
1668
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1669
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1670
+ }
1671
+ /**
1672
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1673
+ *
1674
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1675
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1676
+ * @returns {string} A string representing the location.
1677
+ */
1678
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1679
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1680
+ }
1681
+ /**
1682
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1683
+ *
1684
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1685
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1686
+ * @returns {string} A string representing the data_store.
1687
+ */
1688
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1689
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1690
+ }
1691
+ /**
1692
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1693
+ *
1694
+ * @param {string} project
1695
+ * @param {string} location
1696
+ * @param {string} data_store
1697
+ * @param {string} target_site
1698
+ * @returns {string} Resource name string.
1699
+ */
1700
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1701
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1702
+ project: project,
1703
+ location: location,
1704
+ data_store: dataStore,
1705
+ target_site: targetSite,
1706
+ });
1707
+ }
1708
+ /**
1709
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1710
+ *
1711
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1712
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1713
+ * @returns {string} A string representing the project.
1714
+ */
1715
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1716
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1717
+ }
1718
+ /**
1719
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1720
+ *
1721
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1722
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1723
+ * @returns {string} A string representing the location.
1724
+ */
1725
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1726
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1727
+ }
1728
+ /**
1729
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1730
+ *
1731
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1732
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1733
+ * @returns {string} A string representing the data_store.
1734
+ */
1735
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1736
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1737
+ }
1738
+ /**
1739
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1740
+ *
1741
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1742
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1743
+ * @returns {string} A string representing the target_site.
1744
+ */
1745
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1746
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1747
+ }
1187
1748
  /**
1188
1749
  * Terminate the gRPC channel and close the client.
1189
1750
  *