@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 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,10 +147,13 @@ 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
+ aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
142
151
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
143
152
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
144
153
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
154
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
145
155
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
156
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
146
157
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
147
158
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
148
159
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
@@ -151,7 +162,9 @@ class ConversationalSearchServiceClient {
151
162
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
152
163
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
153
164
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
165
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
154
166
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
167
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
155
168
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
156
169
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
157
170
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
@@ -223,19 +236,38 @@ class ConversationalSearchServiceClient {
223
236
  }
224
237
  /**
225
238
  * The DNS address for this API service.
239
+ * @deprecated Use the apiEndpoint method of the client instance.
226
240
  * @returns {string} The DNS address for this service.
227
241
  */
228
242
  static get servicePath() {
243
+ if (typeof process !== undefined &&
244
+ typeof process.emitWarning === 'function') {
245
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
246
+ }
229
247
  return 'discoveryengine.googleapis.com';
230
248
  }
231
249
  /**
232
- * The DNS address for this API service - same as servicePath(),
233
- * exists for compatibility reasons.
250
+ * The DNS address for this API service - same as servicePath.
251
+ * @deprecated Use the apiEndpoint method of the client instance.
234
252
  * @returns {string} The DNS address for this service.
235
253
  */
236
254
  static get apiEndpoint() {
255
+ if (typeof process !== undefined &&
256
+ typeof process.emitWarning === 'function') {
257
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
258
+ }
237
259
  return 'discoveryengine.googleapis.com';
238
260
  }
261
+ /**
262
+ * The DNS address for this API service.
263
+ * @returns {string} The DNS address for this service.
264
+ */
265
+ get apiEndpoint() {
266
+ return this._servicePath;
267
+ }
268
+ get universeDomain() {
269
+ return this._universeDomain;
270
+ }
239
271
  /**
240
272
  * The port for this API service.
241
273
  * @returns {number} The default port for this service.
@@ -561,6 +593,41 @@ class ConversationalSearchServiceClient {
561
593
  // --------------------
562
594
  // -- Path templates --
563
595
  // --------------------
596
+ /**
597
+ * Return a fully-qualified aclConfig resource name string.
598
+ *
599
+ * @param {string} project
600
+ * @param {string} location
601
+ * @returns {string} Resource name string.
602
+ */
603
+ aclConfigPath(project, location) {
604
+ return this.pathTemplates.aclConfigPathTemplate.render({
605
+ project: project,
606
+ location: location,
607
+ });
608
+ }
609
+ /**
610
+ * Parse the project from AclConfig resource.
611
+ *
612
+ * @param {string} aclConfigName
613
+ * A fully-qualified path representing AclConfig resource.
614
+ * @returns {string} A string representing the project.
615
+ */
616
+ matchProjectFromAclConfigName(aclConfigName) {
617
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
618
+ .project;
619
+ }
620
+ /**
621
+ * Parse the location from AclConfig resource.
622
+ *
623
+ * @param {string} aclConfigName
624
+ * A fully-qualified path representing AclConfig resource.
625
+ * @returns {string} A string representing the location.
626
+ */
627
+ matchLocationFromAclConfigName(aclConfigName) {
628
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
629
+ .location;
630
+ }
564
631
  /**
565
632
  * Return a fully-qualified engine resource name string.
566
633
  *
@@ -756,6 +823,99 @@ class ConversationalSearchServiceClient {
756
823
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
757
824
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
758
825
  }
826
+ /**
827
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
828
+ *
829
+ * @param {string} project
830
+ * @param {string} location
831
+ * @param {string} collection
832
+ * @param {string} data_store
833
+ * @param {string} branch
834
+ * @param {string} document
835
+ * @param {string} chunk
836
+ * @returns {string} Resource name string.
837
+ */
838
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
839
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
840
+ project: project,
841
+ location: location,
842
+ collection: collection,
843
+ data_store: dataStore,
844
+ branch: branch,
845
+ document: document,
846
+ chunk: chunk,
847
+ });
848
+ }
849
+ /**
850
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
851
+ *
852
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
853
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
854
+ * @returns {string} A string representing the project.
855
+ */
856
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
857
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
858
+ }
859
+ /**
860
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
861
+ *
862
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
863
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
864
+ * @returns {string} A string representing the location.
865
+ */
866
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
867
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
868
+ }
869
+ /**
870
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
871
+ *
872
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
873
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
874
+ * @returns {string} A string representing the collection.
875
+ */
876
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
877
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
878
+ }
879
+ /**
880
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
881
+ *
882
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
883
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
884
+ * @returns {string} A string representing the data_store.
885
+ */
886
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
887
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
888
+ }
889
+ /**
890
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
891
+ *
892
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
893
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
894
+ * @returns {string} A string representing the branch.
895
+ */
896
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
897
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
898
+ }
899
+ /**
900
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
901
+ *
902
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
903
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
904
+ * @returns {string} A string representing the document.
905
+ */
906
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
907
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
908
+ }
909
+ /**
910
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
911
+ *
912
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
913
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
914
+ * @returns {string} A string representing the chunk.
915
+ */
916
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
917
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
918
+ }
759
919
  /**
760
920
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
761
921
  *
@@ -825,6 +985,63 @@ class ConversationalSearchServiceClient {
825
985
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
826
986
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
827
987
  }
988
+ /**
989
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
990
+ *
991
+ * @param {string} project
992
+ * @param {string} location
993
+ * @param {string} collection
994
+ * @param {string} data_store
995
+ * @returns {string} Resource name string.
996
+ */
997
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
998
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
999
+ project: project,
1000
+ location: location,
1001
+ collection: collection,
1002
+ data_store: dataStore,
1003
+ });
1004
+ }
1005
+ /**
1006
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1007
+ *
1008
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1009
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1010
+ * @returns {string} A string representing the project.
1011
+ */
1012
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1013
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1014
+ }
1015
+ /**
1016
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1017
+ *
1018
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1019
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1020
+ * @returns {string} A string representing the location.
1021
+ */
1022
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1023
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1024
+ }
1025
+ /**
1026
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1027
+ *
1028
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1029
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1030
+ * @returns {string} A string representing the collection.
1031
+ */
1032
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1033
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1034
+ }
1035
+ /**
1036
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1037
+ *
1038
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1039
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1040
+ * @returns {string} A string representing the data_store.
1041
+ */
1042
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1043
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1044
+ }
828
1045
  /**
829
1046
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
830
1047
  *
@@ -1341,6 +1558,87 @@ class ConversationalSearchServiceClient {
1341
1558
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1342
1559
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1343
1560
  }
1561
+ /**
1562
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1563
+ *
1564
+ * @param {string} project
1565
+ * @param {string} location
1566
+ * @param {string} data_store
1567
+ * @param {string} branch
1568
+ * @param {string} document
1569
+ * @param {string} chunk
1570
+ * @returns {string} Resource name string.
1571
+ */
1572
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1573
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1574
+ project: project,
1575
+ location: location,
1576
+ data_store: dataStore,
1577
+ branch: branch,
1578
+ document: document,
1579
+ chunk: chunk,
1580
+ });
1581
+ }
1582
+ /**
1583
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1584
+ *
1585
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1586
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1587
+ * @returns {string} A string representing the project.
1588
+ */
1589
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1590
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1591
+ }
1592
+ /**
1593
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1594
+ *
1595
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1596
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1597
+ * @returns {string} A string representing the location.
1598
+ */
1599
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1600
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1601
+ }
1602
+ /**
1603
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1604
+ *
1605
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1606
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1607
+ * @returns {string} A string representing the data_store.
1608
+ */
1609
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1610
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1611
+ }
1612
+ /**
1613
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1614
+ *
1615
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1616
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1617
+ * @returns {string} A string representing the branch.
1618
+ */
1619
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1620
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1621
+ }
1622
+ /**
1623
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1624
+ *
1625
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1626
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1627
+ * @returns {string} A string representing the document.
1628
+ */
1629
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1630
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
1631
+ }
1632
+ /**
1633
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1634
+ *
1635
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1636
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1637
+ * @returns {string} A string representing the chunk.
1638
+ */
1639
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1640
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
1641
+ }
1344
1642
  /**
1345
1643
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1346
1644
  *
@@ -1398,6 +1696,51 @@ class ConversationalSearchServiceClient {
1398
1696
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1399
1697
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1400
1698
  }
1699
+ /**
1700
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1701
+ *
1702
+ * @param {string} project
1703
+ * @param {string} location
1704
+ * @param {string} data_store
1705
+ * @returns {string} Resource name string.
1706
+ */
1707
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1708
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1709
+ project: project,
1710
+ location: location,
1711
+ data_store: dataStore,
1712
+ });
1713
+ }
1714
+ /**
1715
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1716
+ *
1717
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1718
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1719
+ * @returns {string} A string representing the project.
1720
+ */
1721
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1722
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1723
+ }
1724
+ /**
1725
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1726
+ *
1727
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1728
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1729
+ * @returns {string} A string representing the location.
1730
+ */
1731
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1732
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1733
+ }
1734
+ /**
1735
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1736
+ *
1737
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1738
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1739
+ * @returns {string} A string representing the data_store.
1740
+ */
1741
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1742
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1743
+ }
1401
1744
  /**
1402
1745
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1403
1746
  *