@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
@@ -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.
@@ -72,7 +72,7 @@ class SearchTuningServiceClient {
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: {},
@@ -82,16 +82,24 @@ class SearchTuningServiceClient {
82
82
  };
83
83
  // Ensure that options include all the required fields.
84
84
  const staticMembers = this.constructor;
85
- const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
85
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
86
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
87
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
88
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
89
+ }
90
+ this._universeDomain =
91
+ (_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';
92
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
93
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
86
94
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
87
95
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
88
- const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
89
- 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');
96
+ const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
97
+ 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');
90
98
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
91
99
  // Request numeric enum values if REST transport is used.
92
100
  opts.numericEnums = true;
93
101
  // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
94
- if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
102
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
95
103
  opts['scopes'] = staticMembers.scopes;
96
104
  }
97
105
  // Load google-gax module synchronously if needed
@@ -109,9 +117,9 @@ class SearchTuningServiceClient {
109
117
  // Set useJWTAccessWithScope on the auth object.
110
118
  this.auth.useJWTAccessWithScope = true;
111
119
  // Set defaultServicePath on the auth object.
112
- this.auth.defaultServicePath = staticMembers.servicePath;
120
+ this.auth.defaultServicePath = this._servicePath;
113
121
  // Set the default scopes in auth client if needed.
114
- if (servicePath === staticMembers.servicePath) {
122
+ if (servicePath === this._servicePath) {
115
123
  this.auth.defaultScopes = staticMembers.scopes;
116
124
  }
117
125
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
@@ -138,18 +146,26 @@ class SearchTuningServiceClient {
138
146
  // identifiers to uniquely identify resources within the API.
139
147
  // Create useful helper objects for these.
140
148
  this.pathTemplates = {
149
+ aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
141
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}'),
153
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
144
154
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
155
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
145
156
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
157
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
146
158
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
147
159
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
148
160
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
161
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
149
162
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
150
163
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
164
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
151
165
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
166
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
152
167
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
168
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
153
169
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
154
170
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
155
171
  };
@@ -309,19 +325,38 @@ class SearchTuningServiceClient {
309
325
  }
310
326
  /**
311
327
  * The DNS address for this API service.
328
+ * @deprecated Use the apiEndpoint method of the client instance.
312
329
  * @returns {string} The DNS address for this service.
313
330
  */
314
331
  static get servicePath() {
332
+ if (typeof process !== undefined &&
333
+ typeof process.emitWarning === 'function') {
334
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
335
+ }
315
336
  return 'discoveryengine.googleapis.com';
316
337
  }
317
338
  /**
318
- * The DNS address for this API service - same as servicePath(),
319
- * exists for compatibility reasons.
339
+ * The DNS address for this API service - same as servicePath.
340
+ * @deprecated Use the apiEndpoint method of the client instance.
320
341
  * @returns {string} The DNS address for this service.
321
342
  */
322
343
  static get apiEndpoint() {
344
+ if (typeof process !== undefined &&
345
+ typeof process.emitWarning === 'function') {
346
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
347
+ }
323
348
  return 'discoveryengine.googleapis.com';
324
349
  }
350
+ /**
351
+ * The DNS address for this API service.
352
+ * @returns {string} The DNS address for this service.
353
+ */
354
+ get apiEndpoint() {
355
+ return this._servicePath;
356
+ }
357
+ get universeDomain() {
358
+ return this._universeDomain;
359
+ }
325
360
  /**
326
361
  * The port for this API service.
327
362
  * @returns {number} The default port for this service.
@@ -572,6 +607,41 @@ class SearchTuningServiceClient {
572
607
  // --------------------
573
608
  // -- Path templates --
574
609
  // --------------------
610
+ /**
611
+ * Return a fully-qualified aclConfig resource name string.
612
+ *
613
+ * @param {string} project
614
+ * @param {string} location
615
+ * @returns {string} Resource name string.
616
+ */
617
+ aclConfigPath(project, location) {
618
+ return this.pathTemplates.aclConfigPathTemplate.render({
619
+ project: project,
620
+ location: location,
621
+ });
622
+ }
623
+ /**
624
+ * Parse the project from AclConfig resource.
625
+ *
626
+ * @param {string} aclConfigName
627
+ * A fully-qualified path representing AclConfig resource.
628
+ * @returns {string} A string representing the project.
629
+ */
630
+ matchProjectFromAclConfigName(aclConfigName) {
631
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
632
+ .project;
633
+ }
634
+ /**
635
+ * Parse the location from AclConfig resource.
636
+ *
637
+ * @param {string} aclConfigName
638
+ * A fully-qualified path representing AclConfig resource.
639
+ * @returns {string} A string representing the location.
640
+ */
641
+ matchLocationFromAclConfigName(aclConfigName) {
642
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
643
+ .location;
644
+ }
575
645
  /**
576
646
  * Return a fully-qualified engine resource name string.
577
647
  *
@@ -767,6 +837,99 @@ class SearchTuningServiceClient {
767
837
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
768
838
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
769
839
  }
840
+ /**
841
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
842
+ *
843
+ * @param {string} project
844
+ * @param {string} location
845
+ * @param {string} collection
846
+ * @param {string} data_store
847
+ * @param {string} branch
848
+ * @param {string} document
849
+ * @param {string} chunk
850
+ * @returns {string} Resource name string.
851
+ */
852
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
853
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
854
+ project: project,
855
+ location: location,
856
+ collection: collection,
857
+ data_store: dataStore,
858
+ branch: branch,
859
+ document: document,
860
+ chunk: chunk,
861
+ });
862
+ }
863
+ /**
864
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
865
+ *
866
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
867
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
868
+ * @returns {string} A string representing the project.
869
+ */
870
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
871
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
872
+ }
873
+ /**
874
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
875
+ *
876
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
877
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
878
+ * @returns {string} A string representing the location.
879
+ */
880
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
881
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
882
+ }
883
+ /**
884
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
885
+ *
886
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
887
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
888
+ * @returns {string} A string representing the collection.
889
+ */
890
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
891
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
892
+ }
893
+ /**
894
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
895
+ *
896
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
897
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
898
+ * @returns {string} A string representing the data_store.
899
+ */
900
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
901
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
902
+ }
903
+ /**
904
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
905
+ *
906
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
907
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
908
+ * @returns {string} A string representing the branch.
909
+ */
910
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
911
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
912
+ }
913
+ /**
914
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
915
+ *
916
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
917
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
918
+ * @returns {string} A string representing the document.
919
+ */
920
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
921
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
922
+ }
923
+ /**
924
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
925
+ *
926
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
927
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
928
+ * @returns {string} A string representing the chunk.
929
+ */
930
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
931
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
932
+ }
770
933
  /**
771
934
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
772
935
  *
@@ -836,6 +999,63 @@ class SearchTuningServiceClient {
836
999
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
837
1000
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
838
1001
  }
1002
+ /**
1003
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1004
+ *
1005
+ * @param {string} project
1006
+ * @param {string} location
1007
+ * @param {string} collection
1008
+ * @param {string} data_store
1009
+ * @returns {string} Resource name string.
1010
+ */
1011
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1012
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1013
+ project: project,
1014
+ location: location,
1015
+ collection: collection,
1016
+ data_store: dataStore,
1017
+ });
1018
+ }
1019
+ /**
1020
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1021
+ *
1022
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1023
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1024
+ * @returns {string} A string representing the project.
1025
+ */
1026
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1027
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1028
+ }
1029
+ /**
1030
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1031
+ *
1032
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1033
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1034
+ * @returns {string} A string representing the location.
1035
+ */
1036
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1037
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1038
+ }
1039
+ /**
1040
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1041
+ *
1042
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1043
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1044
+ * @returns {string} A string representing the collection.
1045
+ */
1046
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1047
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1048
+ }
1049
+ /**
1050
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1051
+ *
1052
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1053
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1054
+ * @returns {string} A string representing the data_store.
1055
+ */
1056
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1057
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1058
+ }
839
1059
  /**
840
1060
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
841
1061
  *
@@ -905,6 +1125,75 @@ class SearchTuningServiceClient {
905
1125
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
906
1126
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
907
1127
  }
1128
+ /**
1129
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1130
+ *
1131
+ * @param {string} project
1132
+ * @param {string} location
1133
+ * @param {string} collection
1134
+ * @param {string} data_store
1135
+ * @param {string} serving_config
1136
+ * @returns {string} Resource name string.
1137
+ */
1138
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1139
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1140
+ project: project,
1141
+ location: location,
1142
+ collection: collection,
1143
+ data_store: dataStore,
1144
+ serving_config: servingConfig,
1145
+ });
1146
+ }
1147
+ /**
1148
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1149
+ *
1150
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1151
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1152
+ * @returns {string} A string representing the project.
1153
+ */
1154
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1155
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1156
+ }
1157
+ /**
1158
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1159
+ *
1160
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1161
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1162
+ * @returns {string} A string representing the location.
1163
+ */
1164
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1165
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1166
+ }
1167
+ /**
1168
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1169
+ *
1170
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1171
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1172
+ * @returns {string} A string representing the collection.
1173
+ */
1174
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1175
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1176
+ }
1177
+ /**
1178
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1179
+ *
1180
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1181
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1182
+ * @returns {string} A string representing the data_store.
1183
+ */
1184
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1185
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1186
+ }
1187
+ /**
1188
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1189
+ *
1190
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1191
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1192
+ * @returns {string} A string representing the serving_config.
1193
+ */
1194
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1195
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1196
+ }
908
1197
  /**
909
1198
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
910
1199
  *
@@ -1100,6 +1389,75 @@ class SearchTuningServiceClient {
1100
1389
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1101
1390
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1102
1391
  }
1392
+ /**
1393
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1394
+ *
1395
+ * @param {string} project
1396
+ * @param {string} location
1397
+ * @param {string} collection
1398
+ * @param {string} engine
1399
+ * @param {string} serving_config
1400
+ * @returns {string} Resource name string.
1401
+ */
1402
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1403
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1404
+ project: project,
1405
+ location: location,
1406
+ collection: collection,
1407
+ engine: engine,
1408
+ serving_config: servingConfig,
1409
+ });
1410
+ }
1411
+ /**
1412
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1413
+ *
1414
+ * @param {string} projectLocationCollectionEngineServingConfigName
1415
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1416
+ * @returns {string} A string representing the project.
1417
+ */
1418
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1419
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1420
+ }
1421
+ /**
1422
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1423
+ *
1424
+ * @param {string} projectLocationCollectionEngineServingConfigName
1425
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1426
+ * @returns {string} A string representing the location.
1427
+ */
1428
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1429
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1430
+ }
1431
+ /**
1432
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1433
+ *
1434
+ * @param {string} projectLocationCollectionEngineServingConfigName
1435
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1436
+ * @returns {string} A string representing the collection.
1437
+ */
1438
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1439
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1440
+ }
1441
+ /**
1442
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1443
+ *
1444
+ * @param {string} projectLocationCollectionEngineServingConfigName
1445
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1446
+ * @returns {string} A string representing the engine.
1447
+ */
1448
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1449
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1450
+ }
1451
+ /**
1452
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1453
+ *
1454
+ * @param {string} projectLocationCollectionEngineServingConfigName
1455
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1456
+ * @returns {string} A string representing the serving_config.
1457
+ */
1458
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1459
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1460
+ }
1103
1461
  /**
1104
1462
  * Return a fully-qualified projectLocationDataStore resource name string.
1105
1463
  *
@@ -1214,6 +1572,87 @@ class SearchTuningServiceClient {
1214
1572
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1215
1573
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1216
1574
  }
1575
+ /**
1576
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1577
+ *
1578
+ * @param {string} project
1579
+ * @param {string} location
1580
+ * @param {string} data_store
1581
+ * @param {string} branch
1582
+ * @param {string} document
1583
+ * @param {string} chunk
1584
+ * @returns {string} Resource name string.
1585
+ */
1586
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1587
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1588
+ project: project,
1589
+ location: location,
1590
+ data_store: dataStore,
1591
+ branch: branch,
1592
+ document: document,
1593
+ chunk: chunk,
1594
+ });
1595
+ }
1596
+ /**
1597
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1598
+ *
1599
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1600
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1601
+ * @returns {string} A string representing the project.
1602
+ */
1603
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1604
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1605
+ }
1606
+ /**
1607
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1608
+ *
1609
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1610
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1611
+ * @returns {string} A string representing the location.
1612
+ */
1613
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1614
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1615
+ }
1616
+ /**
1617
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1618
+ *
1619
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1620
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1621
+ * @returns {string} A string representing the data_store.
1622
+ */
1623
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1624
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1625
+ }
1626
+ /**
1627
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1628
+ *
1629
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1630
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1631
+ * @returns {string} A string representing the branch.
1632
+ */
1633
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1634
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1635
+ }
1636
+ /**
1637
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1638
+ *
1639
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1640
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1641
+ * @returns {string} A string representing the document.
1642
+ */
1643
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1644
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
1645
+ }
1646
+ /**
1647
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1648
+ *
1649
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1650
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1651
+ * @returns {string} A string representing the chunk.
1652
+ */
1653
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1654
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
1655
+ }
1217
1656
  /**
1218
1657
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1219
1658
  *
@@ -1271,6 +1710,51 @@ class SearchTuningServiceClient {
1271
1710
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1272
1711
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1273
1712
  }
1713
+ /**
1714
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1715
+ *
1716
+ * @param {string} project
1717
+ * @param {string} location
1718
+ * @param {string} data_store
1719
+ * @returns {string} Resource name string.
1720
+ */
1721
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1722
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1723
+ project: project,
1724
+ location: location,
1725
+ data_store: dataStore,
1726
+ });
1727
+ }
1728
+ /**
1729
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1730
+ *
1731
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1732
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1733
+ * @returns {string} A string representing the project.
1734
+ */
1735
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1736
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1737
+ }
1738
+ /**
1739
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1740
+ *
1741
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1742
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1743
+ * @returns {string} A string representing the location.
1744
+ */
1745
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1746
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1747
+ }
1748
+ /**
1749
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1750
+ *
1751
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1752
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1753
+ * @returns {string} A string representing the data_store.
1754
+ */
1755
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1756
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1757
+ }
1274
1758
  /**
1275
1759
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1276
1760
  *
@@ -1328,6 +1812,63 @@ class SearchTuningServiceClient {
1328
1812
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1329
1813
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1330
1814
  }
1815
+ /**
1816
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1817
+ *
1818
+ * @param {string} project
1819
+ * @param {string} location
1820
+ * @param {string} data_store
1821
+ * @param {string} serving_config
1822
+ * @returns {string} Resource name string.
1823
+ */
1824
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1825
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1826
+ project: project,
1827
+ location: location,
1828
+ data_store: dataStore,
1829
+ serving_config: servingConfig,
1830
+ });
1831
+ }
1832
+ /**
1833
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1834
+ *
1835
+ * @param {string} projectLocationDataStoreServingConfigName
1836
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1837
+ * @returns {string} A string representing the project.
1838
+ */
1839
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1840
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1841
+ }
1842
+ /**
1843
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1844
+ *
1845
+ * @param {string} projectLocationDataStoreServingConfigName
1846
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1847
+ * @returns {string} A string representing the location.
1848
+ */
1849
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1850
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1851
+ }
1852
+ /**
1853
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1854
+ *
1855
+ * @param {string} projectLocationDataStoreServingConfigName
1856
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1857
+ * @returns {string} A string representing the data_store.
1858
+ */
1859
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1860
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1861
+ }
1862
+ /**
1863
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1864
+ *
1865
+ * @param {string} projectLocationDataStoreServingConfigName
1866
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1867
+ * @returns {string} A string representing the serving_config.
1868
+ */
1869
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1870
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1871
+ }
1331
1872
  /**
1332
1873
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1333
1874
  *