@google-cloud/discoveryengine 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +33 -4
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +337 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/common.proto +34 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +1 -1
  6. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +1 -1
  7. package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -3
  10. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +570 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +5 -1
  12. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +3 -3
  13. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +7 -7
  16. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +5 -5
  17. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +1 -1
  18. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +5 -5
  21. package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
  23. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +1 -1
  24. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +21 -20
  26. package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
  27. package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +6 -6
  28. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +24 -19
  29. package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
  30. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +4 -1
  31. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +1 -1
  32. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +29 -4
  33. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +19 -3
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +1 -1
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +10 -1
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +8 -1
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +1 -1
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +17 -1
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +1 -1
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +1 -1
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -3
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +20 -4
  46. package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
  47. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +1 -1
  48. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +3 -3
  49. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
  50. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +2 -1
  51. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +13 -10
  52. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +5 -5
  53. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
  54. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +1 -1
  55. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +31 -2
  56. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +4 -1
  57. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +5 -5
  58. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +2 -1
  59. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +3 -1
  60. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +1 -1
  61. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +20 -1
  62. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +21 -20
  63. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +38 -3
  64. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +7 -7
  65. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +29 -32
  66. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +40 -1
  67. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +1 -1
  68. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +1 -1
  69. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +4 -1
  70. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +4 -1
  71. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +1 -1
  72. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +30 -4
  73. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +19 -3
  74. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +11 -2
  75. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +17 -1
  76. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +1 -1
  77. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +1 -1
  78. package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
  79. package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
  80. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -3
  81. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +20 -4
  82. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
  83. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +1 -1
  84. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +3 -3
  85. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  86. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +2 -1
  87. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +8 -9
  88. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +5 -5
  89. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +1 -1
  90. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +31 -2
  91. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +4 -1
  92. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +5 -5
  93. package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
  94. package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
  95. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +1 -1
  96. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +20 -1
  97. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +21 -20
  98. package/build/protos/google/cloud/discoveryengine/v1beta/schema.proto +1 -1
  99. package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +6 -6
  100. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +31 -25
  101. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +40 -1
  102. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +1 -1
  103. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +1 -1
  104. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +5 -2
  105. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +4 -1
  106. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +1 -1
  107. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +29 -4
  108. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +19 -3
  109. package/build/protos/protos.d.ts +52350 -38733
  110. package/build/protos/protos.js +136479 -103212
  111. package/build/protos/protos.json +9460 -5916
  112. package/build/src/index.d.ts +13 -1
  113. package/build/src/index.js +13 -1
  114. package/build/src/v1/completion_service_client.d.ts +549 -0
  115. package/build/src/v1/completion_service_client.js +771 -0
  116. package/build/src/v1/control_service_client.d.ts +1623 -0
  117. package/build/src/v1/control_service_client.js +2218 -0
  118. package/build/src/v1/control_service_client_config.json +63 -0
  119. package/build/src/v1/conversational_search_service_client.d.ts +893 -0
  120. package/build/src/v1/conversational_search_service_client.js +1040 -14
  121. package/build/src/v1/conversational_search_service_client_config.json +35 -0
  122. package/build/src/v1/data_store_service_client.d.ts +555 -6
  123. package/build/src/v1/data_store_service_client.js +775 -4
  124. package/build/src/v1/document_service_client.d.ts +557 -8
  125. package/build/src/v1/document_service_client.js +773 -2
  126. package/build/src/v1/engine_service_client.d.ts +549 -0
  127. package/build/src/v1/engine_service_client.js +771 -0
  128. package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
  129. package/build/src/v1/grounded_generation_service_client.js +2036 -0
  130. package/build/src/v1/grounded_generation_service_client_config.json +43 -0
  131. package/build/src/v1/index.d.ts +4 -0
  132. package/build/src/v1/index.js +9 -1
  133. package/build/src/v1/project_service_client.d.ts +1533 -0
  134. package/build/src/v1/project_service_client.js +2255 -0
  135. package/build/src/v1/project_service_client_config.json +43 -0
  136. package/build/src/v1/rank_service_client.d.ts +1449 -0
  137. package/build/src/v1/rank_service_client.js +2037 -0
  138. package/build/src/v1/rank_service_client_config.json +43 -0
  139. package/build/src/v1/recommendation_service_client.d.ts +568 -18
  140. package/build/src/v1/recommendation_service_client.js +756 -0
  141. package/build/src/v1/schema_service_client.d.ts +558 -9
  142. package/build/src/v1/schema_service_client.js +775 -4
  143. package/build/src/v1/search_service_client.d.ts +579 -21
  144. package/build/src/v1/search_service_client.js +776 -14
  145. package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
  146. package/build/src/v1/site_search_engine_service_client.js +771 -0
  147. package/build/src/v1/user_event_service_client.d.ts +562 -2
  148. package/build/src/v1/user_event_service_client.js +771 -0
  149. package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
  150. package/build/src/v1alpha/acl_config_service_client.js +326 -0
  151. package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
  152. package/build/src/v1alpha/chunk_service_client.js +326 -0
  153. package/build/src/v1alpha/completion_service_client.d.ts +237 -0
  154. package/build/src/v1alpha/completion_service_client.js +340 -0
  155. package/build/src/v1alpha/control_service_client.d.ts +2013 -0
  156. package/build/src/v1alpha/control_service_client.js +2757 -0
  157. package/build/src/v1alpha/control_service_client_config.json +63 -0
  158. package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
  159. package/build/src/v1alpha/conversational_search_service_client.js +326 -0
  160. package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
  161. package/build/src/v1alpha/data_store_service_client.js +344 -4
  162. package/build/src/v1alpha/document_service_client.d.ts +246 -9
  163. package/build/src/v1alpha/document_service_client.js +342 -2
  164. package/build/src/v1alpha/engine_service_client.d.ts +237 -0
  165. package/build/src/v1alpha/engine_service_client.js +340 -0
  166. package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
  167. package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
  168. package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
  169. package/build/src/v1alpha/grounded_generation_service_client.js +326 -0
  170. package/build/src/v1alpha/index.d.ts +1 -0
  171. package/build/src/v1alpha/index.js +3 -1
  172. package/build/src/v1alpha/project_service_client.d.ts +239 -0
  173. package/build/src/v1alpha/project_service_client.js +340 -0
  174. package/build/src/v1alpha/project_service_client_config.json +21 -6
  175. package/build/src/v1alpha/rank_service_client.d.ts +255 -0
  176. package/build/src/v1alpha/rank_service_client.js +326 -0
  177. package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
  178. package/build/src/v1alpha/recommendation_service_client.js +326 -0
  179. package/build/src/v1alpha/schema_service_client.d.ts +247 -10
  180. package/build/src/v1alpha/schema_service_client.js +344 -4
  181. package/build/src/v1alpha/search_service_client.d.ts +267 -21
  182. package/build/src/v1alpha/search_service_client.js +346 -14
  183. package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
  184. package/build/src/v1alpha/search_tuning_service_client.js +365 -1
  185. package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
  186. package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
  187. package/build/src/v1alpha/serving_config_service_client.js +326 -0
  188. package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
  189. package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
  190. package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
  191. package/build/src/v1alpha/user_event_service_client.js +340 -0
  192. package/build/src/v1beta/completion_service_client.d.ts +252 -0
  193. package/build/src/v1beta/completion_service_client.js +359 -0
  194. package/build/src/v1beta/control_service_client.d.ts +1860 -0
  195. package/build/src/v1beta/control_service_client.js +2545 -0
  196. package/build/src/v1beta/control_service_client_config.json +63 -0
  197. package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
  198. package/build/src/v1beta/conversational_search_service_client.js +348 -0
  199. package/build/src/v1beta/data_store_service_client.d.ts +258 -6
  200. package/build/src/v1beta/data_store_service_client.js +363 -4
  201. package/build/src/v1beta/document_service_client.d.ts +261 -10
  202. package/build/src/v1beta/document_service_client.js +361 -2
  203. package/build/src/v1beta/engine_service_client.d.ts +252 -0
  204. package/build/src/v1beta/engine_service_client.js +359 -0
  205. package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
  206. package/build/src/v1beta/grounded_generation_service_client.js +348 -0
  207. package/build/src/v1beta/index.d.ts +2 -0
  208. package/build/src/v1beta/index.js +5 -1
  209. package/build/src/v1beta/project_service_client.d.ts +1770 -0
  210. package/build/src/v1beta/project_service_client.js +2576 -0
  211. package/build/src/v1beta/project_service_client_config.json +43 -0
  212. package/build/src/v1beta/rank_service_client.d.ts +270 -0
  213. package/build/src/v1beta/rank_service_client.js +348 -0
  214. package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
  215. package/build/src/v1beta/recommendation_service_client.js +348 -0
  216. package/build/src/v1beta/schema_service_client.d.ts +261 -9
  217. package/build/src/v1beta/schema_service_client.js +363 -4
  218. package/build/src/v1beta/search_service_client.d.ts +282 -21
  219. package/build/src/v1beta/search_service_client.js +368 -14
  220. package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
  221. package/build/src/v1beta/search_tuning_service_client.js +384 -1
  222. package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
  223. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  224. package/build/src/v1beta/serving_config_service_client.js +326 -0
  225. package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
  226. package/build/src/v1beta/site_search_engine_service_client.js +359 -0
  227. package/build/src/v1beta/user_event_service_client.d.ts +265 -2
  228. package/build/src/v1beta/user_event_service_client.js +359 -0
  229. package/package.json +2 -2
@@ -0,0 +1,2757 @@
1
+ "use strict";
2
+ // Copyright 2024 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.ControlServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1alpha/control_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./control_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for performing CRUD operations on Controls.
31
+ * Controls allow for custom logic to be implemented in the serving path.
32
+ * Controls need to be attached to a Serving Config to be considered during a
33
+ * request.
34
+ * @class
35
+ * @memberof v1alpha
36
+ */
37
+ class ControlServiceClient {
38
+ /**
39
+ * Construct an instance of ControlServiceClient.
40
+ *
41
+ * @param {object} [options] - The configuration object.
42
+ * The options accepted by the constructor are described in detail
43
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
44
+ * The common options are:
45
+ * @param {object} [options.credentials] - Credentials object.
46
+ * @param {string} [options.credentials.client_email]
47
+ * @param {string} [options.credentials.private_key]
48
+ * @param {string} [options.email] - Account email address. Required when
49
+ * using a .pem or .p12 keyFilename.
50
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
51
+ * .p12 key downloaded from the Google Developers Console. If you provide
52
+ * a path to a JSON file, the projectId option below is not necessary.
53
+ * NOTE: .pem and .p12 require you to specify options.email as well.
54
+ * @param {number} [options.port] - The port on which to connect to
55
+ * the remote host.
56
+ * @param {string} [options.projectId] - The project ID from the Google
57
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
58
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
59
+ * app is running in an environment which supports
60
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
61
+ * your project ID will be detected automatically.
62
+ * @param {string} [options.apiEndpoint] - The domain name of the
63
+ * API remote host.
64
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
65
+ * Follows the structure of {@link gapicConfig}.
66
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
67
+ * For more information, please check the
68
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
69
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
70
+ * need to avoid loading the default gRPC version and want to use the fallback
71
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
72
+ * ```
73
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
74
+ * const client = new ControlServiceClient({fallback: true}, gax);
75
+ * ```
76
+ */
77
+ constructor(opts, gaxInstance) {
78
+ var _a, _b, _c, _d, _e;
79
+ this._terminated = false;
80
+ this.descriptors = {
81
+ page: {},
82
+ stream: {},
83
+ longrunning: {},
84
+ batching: {},
85
+ };
86
+ // Ensure that options include all the required fields.
87
+ const staticMembers = this.constructor;
88
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
89
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
90
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
91
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
92
+ }
93
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
94
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
95
+ : undefined;
96
+ this._universeDomain =
97
+ (_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
98
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
99
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
100
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
101
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
102
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
103
+ const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
104
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
105
+ // Request numeric enum values if REST transport is used.
106
+ opts.numericEnums = true;
107
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
108
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
109
+ opts['scopes'] = staticMembers.scopes;
110
+ }
111
+ // Load google-gax module synchronously if needed
112
+ if (!gaxInstance) {
113
+ gaxInstance = require('google-gax');
114
+ }
115
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
116
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
117
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
118
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
119
+ // Save options to use in initialize() method.
120
+ this._opts = opts;
121
+ // Save the auth object to the client, for use by other methods.
122
+ this.auth = this._gaxGrpc.auth;
123
+ // Set useJWTAccessWithScope on the auth object.
124
+ this.auth.useJWTAccessWithScope = true;
125
+ // Set defaultServicePath on the auth object.
126
+ this.auth.defaultServicePath = this._servicePath;
127
+ // Set the default scopes in auth client if needed.
128
+ if (servicePath === this._servicePath) {
129
+ this.auth.defaultScopes = staticMembers.scopes;
130
+ }
131
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
132
+ // Determine the client header string.
133
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
134
+ if (typeof process === 'object' && 'versions' in process) {
135
+ clientHeader.push(`gl-node/${process.versions.node}`);
136
+ }
137
+ else {
138
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
139
+ }
140
+ if (!opts.fallback) {
141
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
142
+ }
143
+ else {
144
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
145
+ }
146
+ if (opts.libName && opts.libVersion) {
147
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
148
+ }
149
+ // Load the applicable protos.
150
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
151
+ // This API contains "path templates"; forward-slash-separated
152
+ // identifiers to uniquely identify resources within the API.
153
+ // Create useful helper objects for these.
154
+ this.pathTemplates = {
155
+ aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
156
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
157
+ locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
158
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
159
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
160
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
161
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
162
+ projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
163
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
164
+ projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
165
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
166
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
167
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
168
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
169
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
170
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
171
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
172
+ projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
173
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
174
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
175
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
176
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
177
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
178
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
179
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
180
+ projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
181
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
182
+ projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
183
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
184
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
185
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
186
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
187
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
188
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
189
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
190
+ };
191
+ // Some of the methods on this service return "paged" results,
192
+ // (e.g. 50 results at a time, with tokens to get subsequent
193
+ // pages). Denote the keys used for pagination and results.
194
+ this.descriptors.page = {
195
+ listControls: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'controls'),
196
+ };
197
+ // Put together the default options sent with requests.
198
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.ControlService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
199
+ // Set up a dictionary of "inner API calls"; the core implementation
200
+ // of calling the API is handled in `google-gax`, with this code
201
+ // merely providing the destination and request information.
202
+ this.innerApiCalls = {};
203
+ // Add a warn function to the client constructor so it can be easily tested.
204
+ this.warn = this._gaxModule.warn;
205
+ }
206
+ /**
207
+ * Initialize the client.
208
+ * Performs asynchronous operations (such as authentication) and prepares the client.
209
+ * This function will be called automatically when any class method is called for the
210
+ * first time, but if you need to initialize it before calling an actual method,
211
+ * feel free to call initialize() directly.
212
+ *
213
+ * You can await on this method if you want to make sure the client is initialized.
214
+ *
215
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
216
+ */
217
+ initialize() {
218
+ // If the client stub promise is already initialized, return immediately.
219
+ if (this.controlServiceStub) {
220
+ return this.controlServiceStub;
221
+ }
222
+ // Put together the "service stub" for
223
+ // google.cloud.discoveryengine.v1alpha.ControlService.
224
+ this.controlServiceStub = this._gaxGrpc.createStub(this._opts.fallback
225
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1alpha.ControlService')
226
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
227
+ this._protos.google.cloud.discoveryengine.v1alpha
228
+ .ControlService, this._opts, this._providedCustomServicePath);
229
+ // Iterate over each of the methods that the service provides
230
+ // and create an API call method for each.
231
+ const controlServiceStubMethods = [
232
+ 'createControl',
233
+ 'deleteControl',
234
+ 'updateControl',
235
+ 'getControl',
236
+ 'listControls',
237
+ ];
238
+ for (const methodName of controlServiceStubMethods) {
239
+ const callPromise = this.controlServiceStub.then(stub => (...args) => {
240
+ if (this._terminated) {
241
+ return Promise.reject('The client has already been closed.');
242
+ }
243
+ const func = stub[methodName];
244
+ return func.apply(stub, args);
245
+ }, (err) => () => {
246
+ throw err;
247
+ });
248
+ const descriptor = this.descriptors.page[methodName] || undefined;
249
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
250
+ this.innerApiCalls[methodName] = apiCall;
251
+ }
252
+ return this.controlServiceStub;
253
+ }
254
+ /**
255
+ * The DNS address for this API service.
256
+ * @deprecated Use the apiEndpoint method of the client instance.
257
+ * @returns {string} The DNS address for this service.
258
+ */
259
+ static get servicePath() {
260
+ if (typeof process === 'object' &&
261
+ typeof process.emitWarning === 'function') {
262
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
263
+ }
264
+ return 'discoveryengine.googleapis.com';
265
+ }
266
+ /**
267
+ * The DNS address for this API service - same as servicePath.
268
+ * @deprecated Use the apiEndpoint method of the client instance.
269
+ * @returns {string} The DNS address for this service.
270
+ */
271
+ static get apiEndpoint() {
272
+ if (typeof process === 'object' &&
273
+ typeof process.emitWarning === 'function') {
274
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
275
+ }
276
+ return 'discoveryengine.googleapis.com';
277
+ }
278
+ /**
279
+ * The DNS address for this API service.
280
+ * @returns {string} The DNS address for this service.
281
+ */
282
+ get apiEndpoint() {
283
+ return this._servicePath;
284
+ }
285
+ get universeDomain() {
286
+ return this._universeDomain;
287
+ }
288
+ /**
289
+ * The port for this API service.
290
+ * @returns {number} The default port for this service.
291
+ */
292
+ static get port() {
293
+ return 443;
294
+ }
295
+ /**
296
+ * The scopes needed to make gRPC calls for every method defined
297
+ * in this service.
298
+ * @returns {string[]} List of default scopes.
299
+ */
300
+ static get scopes() {
301
+ return ['https://www.googleapis.com/auth/cloud-platform'];
302
+ }
303
+ /**
304
+ * Return the project ID used by this class.
305
+ * @returns {Promise} A promise that resolves to string containing the project ID.
306
+ */
307
+ getProjectId(callback) {
308
+ if (callback) {
309
+ this.auth.getProjectId(callback);
310
+ return;
311
+ }
312
+ return this.auth.getProjectId();
313
+ }
314
+ createControl(request, optionsOrCallback, callback) {
315
+ var _a;
316
+ request = request || {};
317
+ let options;
318
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
319
+ callback = optionsOrCallback;
320
+ options = {};
321
+ }
322
+ else {
323
+ options = optionsOrCallback;
324
+ }
325
+ options = options || {};
326
+ options.otherArgs = options.otherArgs || {};
327
+ options.otherArgs.headers = options.otherArgs.headers || {};
328
+ options.otherArgs.headers['x-goog-request-params'] =
329
+ this._gaxModule.routingHeader.fromParams({
330
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
331
+ });
332
+ this.initialize();
333
+ return this.innerApiCalls.createControl(request, options, callback);
334
+ }
335
+ deleteControl(request, optionsOrCallback, callback) {
336
+ var _a;
337
+ request = request || {};
338
+ let options;
339
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
340
+ callback = optionsOrCallback;
341
+ options = {};
342
+ }
343
+ else {
344
+ options = optionsOrCallback;
345
+ }
346
+ options = options || {};
347
+ options.otherArgs = options.otherArgs || {};
348
+ options.otherArgs.headers = options.otherArgs.headers || {};
349
+ options.otherArgs.headers['x-goog-request-params'] =
350
+ this._gaxModule.routingHeader.fromParams({
351
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
352
+ });
353
+ this.initialize();
354
+ return this.innerApiCalls.deleteControl(request, options, callback);
355
+ }
356
+ updateControl(request, optionsOrCallback, callback) {
357
+ var _a;
358
+ request = request || {};
359
+ let options;
360
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
361
+ callback = optionsOrCallback;
362
+ options = {};
363
+ }
364
+ else {
365
+ options = optionsOrCallback;
366
+ }
367
+ options = options || {};
368
+ options.otherArgs = options.otherArgs || {};
369
+ options.otherArgs.headers = options.otherArgs.headers || {};
370
+ options.otherArgs.headers['x-goog-request-params'] =
371
+ this._gaxModule.routingHeader.fromParams({
372
+ 'control.name': (_a = request.control.name) !== null && _a !== void 0 ? _a : '',
373
+ });
374
+ this.initialize();
375
+ return this.innerApiCalls.updateControl(request, options, callback);
376
+ }
377
+ getControl(request, optionsOrCallback, callback) {
378
+ var _a;
379
+ request = request || {};
380
+ let options;
381
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
382
+ callback = optionsOrCallback;
383
+ options = {};
384
+ }
385
+ else {
386
+ options = optionsOrCallback;
387
+ }
388
+ options = options || {};
389
+ options.otherArgs = options.otherArgs || {};
390
+ options.otherArgs.headers = options.otherArgs.headers || {};
391
+ options.otherArgs.headers['x-goog-request-params'] =
392
+ this._gaxModule.routingHeader.fromParams({
393
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
394
+ });
395
+ this.initialize();
396
+ return this.innerApiCalls.getControl(request, options, callback);
397
+ }
398
+ listControls(request, optionsOrCallback, callback) {
399
+ var _a;
400
+ request = request || {};
401
+ let options;
402
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
403
+ callback = optionsOrCallback;
404
+ options = {};
405
+ }
406
+ else {
407
+ options = optionsOrCallback;
408
+ }
409
+ options = options || {};
410
+ options.otherArgs = options.otherArgs || {};
411
+ options.otherArgs.headers = options.otherArgs.headers || {};
412
+ options.otherArgs.headers['x-goog-request-params'] =
413
+ this._gaxModule.routingHeader.fromParams({
414
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
415
+ });
416
+ this.initialize();
417
+ return this.innerApiCalls.listControls(request, options, callback);
418
+ }
419
+ /**
420
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
421
+ * @param {Object} request
422
+ * The request object that will be sent.
423
+ * @param {string} request.parent
424
+ * Required. The data store resource name. Format:
425
+ * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
426
+ * or
427
+ * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
428
+ * @param {number} [request.pageSize]
429
+ * Optional. Maximum number of results to return. If unspecified, defaults
430
+ * to 50. Max allowed value is 1000.
431
+ * @param {string} [request.pageToken]
432
+ * Optional. A page token, received from a previous `ListControls` call.
433
+ * Provide this to retrieve the subsequent page.
434
+ * @param {string} [request.filter]
435
+ * Optional. A filter to apply on the list results. Supported features:
436
+ *
437
+ * * List all the products under the parent branch if
438
+ * {@link protos.google.cloud.discoveryengine.v1alpha.ListControlsRequest.filter|filter}
439
+ * is unset. Currently this field is unsupported.
440
+ * @param {object} [options]
441
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
442
+ * @returns {Stream}
443
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1alpha.Control|Control} on 'data' event.
444
+ * The client library will perform auto-pagination by default: it will call the API as many
445
+ * times as needed. Note that it can affect your quota.
446
+ * We recommend using `listControlsAsync()`
447
+ * method described below for async iteration which you can stop as needed.
448
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
449
+ * for more details and examples.
450
+ */
451
+ listControlsStream(request, options) {
452
+ var _a;
453
+ request = request || {};
454
+ options = options || {};
455
+ options.otherArgs = options.otherArgs || {};
456
+ options.otherArgs.headers = options.otherArgs.headers || {};
457
+ options.otherArgs.headers['x-goog-request-params'] =
458
+ this._gaxModule.routingHeader.fromParams({
459
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
460
+ });
461
+ const defaultCallSettings = this._defaults['listControls'];
462
+ const callSettings = defaultCallSettings.merge(options);
463
+ this.initialize();
464
+ return this.descriptors.page.listControls.createStream(this.innerApiCalls.listControls, request, callSettings);
465
+ }
466
+ /**
467
+ * Equivalent to `listControls`, but returns an iterable object.
468
+ *
469
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
470
+ * @param {Object} request
471
+ * The request object that will be sent.
472
+ * @param {string} request.parent
473
+ * Required. The data store resource name. Format:
474
+ * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
475
+ * or
476
+ * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
477
+ * @param {number} [request.pageSize]
478
+ * Optional. Maximum number of results to return. If unspecified, defaults
479
+ * to 50. Max allowed value is 1000.
480
+ * @param {string} [request.pageToken]
481
+ * Optional. A page token, received from a previous `ListControls` call.
482
+ * Provide this to retrieve the subsequent page.
483
+ * @param {string} [request.filter]
484
+ * Optional. A filter to apply on the list results. Supported features:
485
+ *
486
+ * * List all the products under the parent branch if
487
+ * {@link protos.google.cloud.discoveryengine.v1alpha.ListControlsRequest.filter|filter}
488
+ * is unset. Currently this field is unsupported.
489
+ * @param {object} [options]
490
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
491
+ * @returns {Object}
492
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
493
+ * When you iterate the returned iterable, each element will be an object representing
494
+ * {@link protos.google.cloud.discoveryengine.v1alpha.Control|Control}. The API will be called under the hood as needed, once per the page,
495
+ * so you can stop the iteration when you don't need more results.
496
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
497
+ * for more details and examples.
498
+ * @example <caption>include:samples/generated/v1alpha/control_service.list_controls.js</caption>
499
+ * region_tag:discoveryengine_v1alpha_generated_ControlService_ListControls_async
500
+ */
501
+ listControlsAsync(request, options) {
502
+ var _a;
503
+ request = request || {};
504
+ options = options || {};
505
+ options.otherArgs = options.otherArgs || {};
506
+ options.otherArgs.headers = options.otherArgs.headers || {};
507
+ options.otherArgs.headers['x-goog-request-params'] =
508
+ this._gaxModule.routingHeader.fromParams({
509
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
510
+ });
511
+ const defaultCallSettings = this._defaults['listControls'];
512
+ const callSettings = defaultCallSettings.merge(options);
513
+ this.initialize();
514
+ return this.descriptors.page.listControls.asyncIterate(this.innerApiCalls['listControls'], request, callSettings);
515
+ }
516
+ /**
517
+ * Gets information about a location.
518
+ *
519
+ * @param {Object} request
520
+ * The request object that will be sent.
521
+ * @param {string} request.name
522
+ * Resource name for the location.
523
+ * @param {object} [options]
524
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
525
+ * @returns {Promise} - The promise which resolves to an array.
526
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
527
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
528
+ * for more details and examples.
529
+ * @example
530
+ * ```
531
+ * const [response] = await client.getLocation(request);
532
+ * ```
533
+ */
534
+ getLocation(request, options, callback) {
535
+ return this.locationsClient.getLocation(request, options, callback);
536
+ }
537
+ /**
538
+ * Lists information about the supported locations for this service. Returns an iterable object.
539
+ *
540
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
541
+ * @param {Object} request
542
+ * The request object that will be sent.
543
+ * @param {string} request.name
544
+ * The resource that owns the locations collection, if applicable.
545
+ * @param {string} request.filter
546
+ * The standard list filter.
547
+ * @param {number} request.pageSize
548
+ * The standard list page size.
549
+ * @param {string} request.pageToken
550
+ * The standard list page token.
551
+ * @param {object} [options]
552
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
553
+ * @returns {Object}
554
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
555
+ * When you iterate the returned iterable, each element will be an object representing
556
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
557
+ * so you can stop the iteration when you don't need more results.
558
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
559
+ * for more details and examples.
560
+ * @example
561
+ * ```
562
+ * const iterable = client.listLocationsAsync(request);
563
+ * for await (const response of iterable) {
564
+ * // process response
565
+ * }
566
+ * ```
567
+ */
568
+ listLocationsAsync(request, options) {
569
+ return this.locationsClient.listLocationsAsync(request, options);
570
+ }
571
+ // --------------------
572
+ // -- Path templates --
573
+ // --------------------
574
+ /**
575
+ * Return a fully-qualified aclConfig resource name string.
576
+ *
577
+ * @param {string} project
578
+ * @param {string} location
579
+ * @returns {string} Resource name string.
580
+ */
581
+ aclConfigPath(project, location) {
582
+ return this.pathTemplates.aclConfigPathTemplate.render({
583
+ project: project,
584
+ location: location,
585
+ });
586
+ }
587
+ /**
588
+ * Parse the project from AclConfig resource.
589
+ *
590
+ * @param {string} aclConfigName
591
+ * A fully-qualified path representing AclConfig resource.
592
+ * @returns {string} A string representing the project.
593
+ */
594
+ matchProjectFromAclConfigName(aclConfigName) {
595
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
596
+ .project;
597
+ }
598
+ /**
599
+ * Parse the location from AclConfig resource.
600
+ *
601
+ * @param {string} aclConfigName
602
+ * A fully-qualified path representing AclConfig resource.
603
+ * @returns {string} A string representing the location.
604
+ */
605
+ matchLocationFromAclConfigName(aclConfigName) {
606
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
607
+ .location;
608
+ }
609
+ /**
610
+ * Return a fully-qualified engine resource name string.
611
+ *
612
+ * @param {string} project
613
+ * @param {string} location
614
+ * @param {string} collection
615
+ * @param {string} engine
616
+ * @returns {string} Resource name string.
617
+ */
618
+ enginePath(project, location, collection, engine) {
619
+ return this.pathTemplates.enginePathTemplate.render({
620
+ project: project,
621
+ location: location,
622
+ collection: collection,
623
+ engine: engine,
624
+ });
625
+ }
626
+ /**
627
+ * Parse the project from Engine resource.
628
+ *
629
+ * @param {string} engineName
630
+ * A fully-qualified path representing Engine resource.
631
+ * @returns {string} A string representing the project.
632
+ */
633
+ matchProjectFromEngineName(engineName) {
634
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
635
+ }
636
+ /**
637
+ * Parse the location from Engine resource.
638
+ *
639
+ * @param {string} engineName
640
+ * A fully-qualified path representing Engine resource.
641
+ * @returns {string} A string representing the location.
642
+ */
643
+ matchLocationFromEngineName(engineName) {
644
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
645
+ }
646
+ /**
647
+ * Parse the collection from Engine resource.
648
+ *
649
+ * @param {string} engineName
650
+ * A fully-qualified path representing Engine resource.
651
+ * @returns {string} A string representing the collection.
652
+ */
653
+ matchCollectionFromEngineName(engineName) {
654
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
655
+ }
656
+ /**
657
+ * Parse the engine from Engine resource.
658
+ *
659
+ * @param {string} engineName
660
+ * A fully-qualified path representing Engine resource.
661
+ * @returns {string} A string representing the engine.
662
+ */
663
+ matchEngineFromEngineName(engineName) {
664
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
665
+ }
666
+ /**
667
+ * Return a fully-qualified location resource name string.
668
+ *
669
+ * @param {string} project
670
+ * @param {string} location
671
+ * @returns {string} Resource name string.
672
+ */
673
+ locationPath(project, location) {
674
+ return this.pathTemplates.locationPathTemplate.render({
675
+ project: project,
676
+ location: location,
677
+ });
678
+ }
679
+ /**
680
+ * Parse the project from Location resource.
681
+ *
682
+ * @param {string} locationName
683
+ * A fully-qualified path representing Location resource.
684
+ * @returns {string} A string representing the project.
685
+ */
686
+ matchProjectFromLocationName(locationName) {
687
+ return this.pathTemplates.locationPathTemplate.match(locationName).project;
688
+ }
689
+ /**
690
+ * Parse the location from Location resource.
691
+ *
692
+ * @param {string} locationName
693
+ * A fully-qualified path representing Location resource.
694
+ * @returns {string} A string representing the location.
695
+ */
696
+ matchLocationFromLocationName(locationName) {
697
+ return this.pathTemplates.locationPathTemplate.match(locationName).location;
698
+ }
699
+ /**
700
+ * Return a fully-qualified project resource name string.
701
+ *
702
+ * @param {string} project
703
+ * @returns {string} Resource name string.
704
+ */
705
+ projectPath(project) {
706
+ return this.pathTemplates.projectPathTemplate.render({
707
+ project: project,
708
+ });
709
+ }
710
+ /**
711
+ * Parse the project from Project resource.
712
+ *
713
+ * @param {string} projectName
714
+ * A fully-qualified path representing Project resource.
715
+ * @returns {string} A string representing the project.
716
+ */
717
+ matchProjectFromProjectName(projectName) {
718
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
719
+ }
720
+ /**
721
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
722
+ *
723
+ * @param {string} project
724
+ * @param {string} location
725
+ * @param {string} collection
726
+ * @param {string} data_store
727
+ * @returns {string} Resource name string.
728
+ */
729
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
730
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
731
+ project: project,
732
+ location: location,
733
+ collection: collection,
734
+ data_store: dataStore,
735
+ });
736
+ }
737
+ /**
738
+ * Parse the project from ProjectLocationCollectionDataStore resource.
739
+ *
740
+ * @param {string} projectLocationCollectionDataStoreName
741
+ * A fully-qualified path representing project_location_collection_data_store resource.
742
+ * @returns {string} A string representing the project.
743
+ */
744
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
745
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
746
+ }
747
+ /**
748
+ * Parse the location from ProjectLocationCollectionDataStore resource.
749
+ *
750
+ * @param {string} projectLocationCollectionDataStoreName
751
+ * A fully-qualified path representing project_location_collection_data_store resource.
752
+ * @returns {string} A string representing the location.
753
+ */
754
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
755
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
756
+ }
757
+ /**
758
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
759
+ *
760
+ * @param {string} projectLocationCollectionDataStoreName
761
+ * A fully-qualified path representing project_location_collection_data_store resource.
762
+ * @returns {string} A string representing the collection.
763
+ */
764
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
765
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
766
+ }
767
+ /**
768
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
769
+ *
770
+ * @param {string} projectLocationCollectionDataStoreName
771
+ * A fully-qualified path representing project_location_collection_data_store resource.
772
+ * @returns {string} A string representing the data_store.
773
+ */
774
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
775
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
776
+ }
777
+ /**
778
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
779
+ *
780
+ * @param {string} project
781
+ * @param {string} location
782
+ * @param {string} collection
783
+ * @param {string} data_store
784
+ * @param {string} branch
785
+ * @param {string} document
786
+ * @returns {string} Resource name string.
787
+ */
788
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
789
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
790
+ project: project,
791
+ location: location,
792
+ collection: collection,
793
+ data_store: dataStore,
794
+ branch: branch,
795
+ document: document,
796
+ });
797
+ }
798
+ /**
799
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
800
+ *
801
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
802
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
803
+ * @returns {string} A string representing the project.
804
+ */
805
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
806
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
807
+ }
808
+ /**
809
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
810
+ *
811
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
812
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
813
+ * @returns {string} A string representing the location.
814
+ */
815
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
816
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
817
+ }
818
+ /**
819
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
820
+ *
821
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
822
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
823
+ * @returns {string} A string representing the collection.
824
+ */
825
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
826
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
827
+ }
828
+ /**
829
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
830
+ *
831
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
832
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
833
+ * @returns {string} A string representing the data_store.
834
+ */
835
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
836
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
837
+ }
838
+ /**
839
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
840
+ *
841
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
842
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
843
+ * @returns {string} A string representing the branch.
844
+ */
845
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
846
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
847
+ }
848
+ /**
849
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
850
+ *
851
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
852
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
853
+ * @returns {string} A string representing the document.
854
+ */
855
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
856
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
857
+ }
858
+ /**
859
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
860
+ *
861
+ * @param {string} project
862
+ * @param {string} location
863
+ * @param {string} collection
864
+ * @param {string} data_store
865
+ * @param {string} branch
866
+ * @param {string} document
867
+ * @param {string} chunk
868
+ * @returns {string} Resource name string.
869
+ */
870
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
871
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
872
+ project: project,
873
+ location: location,
874
+ collection: collection,
875
+ data_store: dataStore,
876
+ branch: branch,
877
+ document: document,
878
+ chunk: chunk,
879
+ });
880
+ }
881
+ /**
882
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
883
+ *
884
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
885
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
886
+ * @returns {string} A string representing the project.
887
+ */
888
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
889
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
890
+ }
891
+ /**
892
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
893
+ *
894
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
895
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
896
+ * @returns {string} A string representing the location.
897
+ */
898
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
899
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
900
+ }
901
+ /**
902
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
903
+ *
904
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
905
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
906
+ * @returns {string} A string representing the collection.
907
+ */
908
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
909
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
910
+ }
911
+ /**
912
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
913
+ *
914
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
915
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
916
+ * @returns {string} A string representing the data_store.
917
+ */
918
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
919
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
920
+ }
921
+ /**
922
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
923
+ *
924
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
925
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
926
+ * @returns {string} A string representing the branch.
927
+ */
928
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
929
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
930
+ }
931
+ /**
932
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
933
+ *
934
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
935
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
936
+ * @returns {string} A string representing the document.
937
+ */
938
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
939
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
940
+ }
941
+ /**
942
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
943
+ *
944
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
945
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
946
+ * @returns {string} A string representing the chunk.
947
+ */
948
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
949
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
950
+ }
951
+ /**
952
+ * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
953
+ *
954
+ * @param {string} project
955
+ * @param {string} location
956
+ * @param {string} collection
957
+ * @param {string} data_store
958
+ * @param {string} control
959
+ * @returns {string} Resource name string.
960
+ */
961
+ projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
962
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
963
+ project: project,
964
+ location: location,
965
+ collection: collection,
966
+ data_store: dataStore,
967
+ control: control,
968
+ });
969
+ }
970
+ /**
971
+ * Parse the project from ProjectLocationCollectionDataStoreControl resource.
972
+ *
973
+ * @param {string} projectLocationCollectionDataStoreControlName
974
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
975
+ * @returns {string} A string representing the project.
976
+ */
977
+ matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
978
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
979
+ }
980
+ /**
981
+ * Parse the location from ProjectLocationCollectionDataStoreControl resource.
982
+ *
983
+ * @param {string} projectLocationCollectionDataStoreControlName
984
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
985
+ * @returns {string} A string representing the location.
986
+ */
987
+ matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
988
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
989
+ }
990
+ /**
991
+ * Parse the collection from ProjectLocationCollectionDataStoreControl resource.
992
+ *
993
+ * @param {string} projectLocationCollectionDataStoreControlName
994
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
995
+ * @returns {string} A string representing the collection.
996
+ */
997
+ matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
998
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
999
+ }
1000
+ /**
1001
+ * Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
1002
+ *
1003
+ * @param {string} projectLocationCollectionDataStoreControlName
1004
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1005
+ * @returns {string} A string representing the data_store.
1006
+ */
1007
+ matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1008
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
1009
+ }
1010
+ /**
1011
+ * Parse the control from ProjectLocationCollectionDataStoreControl resource.
1012
+ *
1013
+ * @param {string} projectLocationCollectionDataStoreControlName
1014
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1015
+ * @returns {string} A string representing the control.
1016
+ */
1017
+ matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1018
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
1019
+ }
1020
+ /**
1021
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1022
+ *
1023
+ * @param {string} project
1024
+ * @param {string} location
1025
+ * @param {string} collection
1026
+ * @param {string} data_store
1027
+ * @param {string} conversation
1028
+ * @returns {string} Resource name string.
1029
+ */
1030
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1031
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1032
+ project: project,
1033
+ location: location,
1034
+ collection: collection,
1035
+ data_store: dataStore,
1036
+ conversation: conversation,
1037
+ });
1038
+ }
1039
+ /**
1040
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1041
+ *
1042
+ * @param {string} projectLocationCollectionDataStoreConversationName
1043
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1044
+ * @returns {string} A string representing the project.
1045
+ */
1046
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1047
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1048
+ }
1049
+ /**
1050
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1051
+ *
1052
+ * @param {string} projectLocationCollectionDataStoreConversationName
1053
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1054
+ * @returns {string} A string representing the location.
1055
+ */
1056
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1057
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1058
+ }
1059
+ /**
1060
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1061
+ *
1062
+ * @param {string} projectLocationCollectionDataStoreConversationName
1063
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1064
+ * @returns {string} A string representing the collection.
1065
+ */
1066
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1067
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1068
+ }
1069
+ /**
1070
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1071
+ *
1072
+ * @param {string} projectLocationCollectionDataStoreConversationName
1073
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1074
+ * @returns {string} A string representing the data_store.
1075
+ */
1076
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1077
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1078
+ }
1079
+ /**
1080
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1081
+ *
1082
+ * @param {string} projectLocationCollectionDataStoreConversationName
1083
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1084
+ * @returns {string} A string representing the conversation.
1085
+ */
1086
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1087
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1088
+ }
1089
+ /**
1090
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
1091
+ *
1092
+ * @param {string} project
1093
+ * @param {string} location
1094
+ * @param {string} collection
1095
+ * @param {string} data_store
1096
+ * @param {string} custom_tuning_model
1097
+ * @returns {string} Resource name string.
1098
+ */
1099
+ projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
1100
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
1101
+ project: project,
1102
+ location: location,
1103
+ collection: collection,
1104
+ data_store: dataStore,
1105
+ custom_tuning_model: customTuningModel,
1106
+ });
1107
+ }
1108
+ /**
1109
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1110
+ *
1111
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1112
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1113
+ * @returns {string} A string representing the project.
1114
+ */
1115
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1116
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
1117
+ }
1118
+ /**
1119
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1120
+ *
1121
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1122
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1123
+ * @returns {string} A string representing the location.
1124
+ */
1125
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1126
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
1127
+ }
1128
+ /**
1129
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1130
+ *
1131
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1132
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1133
+ * @returns {string} A string representing the collection.
1134
+ */
1135
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1136
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
1137
+ }
1138
+ /**
1139
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1140
+ *
1141
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1142
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1143
+ * @returns {string} A string representing the data_store.
1144
+ */
1145
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1146
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
1147
+ }
1148
+ /**
1149
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1150
+ *
1151
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1152
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1153
+ * @returns {string} A string representing the custom_tuning_model.
1154
+ */
1155
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1156
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
1157
+ }
1158
+ /**
1159
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1160
+ *
1161
+ * @param {string} project
1162
+ * @param {string} location
1163
+ * @param {string} collection
1164
+ * @param {string} data_store
1165
+ * @returns {string} Resource name string.
1166
+ */
1167
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1168
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1169
+ project: project,
1170
+ location: location,
1171
+ collection: collection,
1172
+ data_store: dataStore,
1173
+ });
1174
+ }
1175
+ /**
1176
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1177
+ *
1178
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1179
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1180
+ * @returns {string} A string representing the project.
1181
+ */
1182
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1183
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1184
+ }
1185
+ /**
1186
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1187
+ *
1188
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1189
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1190
+ * @returns {string} A string representing the location.
1191
+ */
1192
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1193
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1194
+ }
1195
+ /**
1196
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1197
+ *
1198
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1199
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1200
+ * @returns {string} A string representing the collection.
1201
+ */
1202
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1203
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1204
+ }
1205
+ /**
1206
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1207
+ *
1208
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1209
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1210
+ * @returns {string} A string representing the data_store.
1211
+ */
1212
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1213
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1214
+ }
1215
+ /**
1216
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1217
+ *
1218
+ * @param {string} project
1219
+ * @param {string} location
1220
+ * @param {string} collection
1221
+ * @param {string} data_store
1222
+ * @param {string} schema
1223
+ * @returns {string} Resource name string.
1224
+ */
1225
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
1226
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
1227
+ project: project,
1228
+ location: location,
1229
+ collection: collection,
1230
+ data_store: dataStore,
1231
+ schema: schema,
1232
+ });
1233
+ }
1234
+ /**
1235
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
1236
+ *
1237
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1238
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1239
+ * @returns {string} A string representing the project.
1240
+ */
1241
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1242
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1243
+ }
1244
+ /**
1245
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1246
+ *
1247
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1248
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1249
+ * @returns {string} A string representing the location.
1250
+ */
1251
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1252
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1253
+ }
1254
+ /**
1255
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1256
+ *
1257
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1258
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1259
+ * @returns {string} A string representing the collection.
1260
+ */
1261
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1262
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1263
+ }
1264
+ /**
1265
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1266
+ *
1267
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1268
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1269
+ * @returns {string} A string representing the data_store.
1270
+ */
1271
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1272
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1273
+ }
1274
+ /**
1275
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1276
+ *
1277
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1278
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1279
+ * @returns {string} A string representing the schema.
1280
+ */
1281
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1282
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1283
+ }
1284
+ /**
1285
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1286
+ *
1287
+ * @param {string} project
1288
+ * @param {string} location
1289
+ * @param {string} collection
1290
+ * @param {string} data_store
1291
+ * @param {string} serving_config
1292
+ * @returns {string} Resource name string.
1293
+ */
1294
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1295
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1296
+ project: project,
1297
+ location: location,
1298
+ collection: collection,
1299
+ data_store: dataStore,
1300
+ serving_config: servingConfig,
1301
+ });
1302
+ }
1303
+ /**
1304
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1305
+ *
1306
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1307
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1308
+ * @returns {string} A string representing the project.
1309
+ */
1310
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1311
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1312
+ }
1313
+ /**
1314
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1315
+ *
1316
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1317
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1318
+ * @returns {string} A string representing the location.
1319
+ */
1320
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1321
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1322
+ }
1323
+ /**
1324
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1325
+ *
1326
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1327
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1328
+ * @returns {string} A string representing the collection.
1329
+ */
1330
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1331
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1332
+ }
1333
+ /**
1334
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1335
+ *
1336
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1337
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1338
+ * @returns {string} A string representing the data_store.
1339
+ */
1340
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1341
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1342
+ }
1343
+ /**
1344
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1345
+ *
1346
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1347
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1348
+ * @returns {string} A string representing the serving_config.
1349
+ */
1350
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1351
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1352
+ }
1353
+ /**
1354
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1355
+ *
1356
+ * @param {string} project
1357
+ * @param {string} location
1358
+ * @param {string} collection
1359
+ * @param {string} data_store
1360
+ * @param {string} session
1361
+ * @returns {string} Resource name string.
1362
+ */
1363
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1364
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1365
+ project: project,
1366
+ location: location,
1367
+ collection: collection,
1368
+ data_store: dataStore,
1369
+ session: session,
1370
+ });
1371
+ }
1372
+ /**
1373
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1374
+ *
1375
+ * @param {string} projectLocationCollectionDataStoreSessionName
1376
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1377
+ * @returns {string} A string representing the project.
1378
+ */
1379
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1380
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1381
+ }
1382
+ /**
1383
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1384
+ *
1385
+ * @param {string} projectLocationCollectionDataStoreSessionName
1386
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1387
+ * @returns {string} A string representing the location.
1388
+ */
1389
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1390
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1391
+ }
1392
+ /**
1393
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1394
+ *
1395
+ * @param {string} projectLocationCollectionDataStoreSessionName
1396
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1397
+ * @returns {string} A string representing the collection.
1398
+ */
1399
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1400
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1401
+ }
1402
+ /**
1403
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1404
+ *
1405
+ * @param {string} projectLocationCollectionDataStoreSessionName
1406
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1407
+ * @returns {string} A string representing the data_store.
1408
+ */
1409
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1410
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1411
+ }
1412
+ /**
1413
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1414
+ *
1415
+ * @param {string} projectLocationCollectionDataStoreSessionName
1416
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1417
+ * @returns {string} A string representing the session.
1418
+ */
1419
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1420
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1421
+ }
1422
+ /**
1423
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1424
+ *
1425
+ * @param {string} project
1426
+ * @param {string} location
1427
+ * @param {string} collection
1428
+ * @param {string} data_store
1429
+ * @param {string} session
1430
+ * @param {string} answer
1431
+ * @returns {string} Resource name string.
1432
+ */
1433
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1434
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1435
+ project: project,
1436
+ location: location,
1437
+ collection: collection,
1438
+ data_store: dataStore,
1439
+ session: session,
1440
+ answer: answer,
1441
+ });
1442
+ }
1443
+ /**
1444
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1445
+ *
1446
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1447
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1448
+ * @returns {string} A string representing the project.
1449
+ */
1450
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1451
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1452
+ }
1453
+ /**
1454
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1455
+ *
1456
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1457
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1458
+ * @returns {string} A string representing the location.
1459
+ */
1460
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1461
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1462
+ }
1463
+ /**
1464
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1465
+ *
1466
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1467
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1468
+ * @returns {string} A string representing the collection.
1469
+ */
1470
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1471
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1472
+ }
1473
+ /**
1474
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1475
+ *
1476
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1477
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1478
+ * @returns {string} A string representing the data_store.
1479
+ */
1480
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1481
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1482
+ }
1483
+ /**
1484
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1485
+ *
1486
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1487
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1488
+ * @returns {string} A string representing the session.
1489
+ */
1490
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1491
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1492
+ }
1493
+ /**
1494
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1495
+ *
1496
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1497
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1498
+ * @returns {string} A string representing the answer.
1499
+ */
1500
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1501
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1502
+ }
1503
+ /**
1504
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1505
+ *
1506
+ * @param {string} project
1507
+ * @param {string} location
1508
+ * @param {string} collection
1509
+ * @param {string} data_store
1510
+ * @returns {string} Resource name string.
1511
+ */
1512
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1513
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1514
+ project: project,
1515
+ location: location,
1516
+ collection: collection,
1517
+ data_store: dataStore,
1518
+ });
1519
+ }
1520
+ /**
1521
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1522
+ *
1523
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1524
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1525
+ * @returns {string} A string representing the project.
1526
+ */
1527
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1528
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1529
+ }
1530
+ /**
1531
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1532
+ *
1533
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1534
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1535
+ * @returns {string} A string representing the location.
1536
+ */
1537
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1538
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1539
+ }
1540
+ /**
1541
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1542
+ *
1543
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1544
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1545
+ * @returns {string} A string representing the collection.
1546
+ */
1547
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1548
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1549
+ }
1550
+ /**
1551
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1552
+ *
1553
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1554
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1555
+ * @returns {string} A string representing the data_store.
1556
+ */
1557
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1558
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1559
+ }
1560
+ /**
1561
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1562
+ *
1563
+ * @param {string} project
1564
+ * @param {string} location
1565
+ * @param {string} collection
1566
+ * @param {string} data_store
1567
+ * @param {string} target_site
1568
+ * @returns {string} Resource name string.
1569
+ */
1570
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1571
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1572
+ project: project,
1573
+ location: location,
1574
+ collection: collection,
1575
+ data_store: dataStore,
1576
+ target_site: targetSite,
1577
+ });
1578
+ }
1579
+ /**
1580
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1581
+ *
1582
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1583
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1584
+ * @returns {string} A string representing the project.
1585
+ */
1586
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1587
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1588
+ }
1589
+ /**
1590
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1591
+ *
1592
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1593
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1594
+ * @returns {string} A string representing the location.
1595
+ */
1596
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1597
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1598
+ }
1599
+ /**
1600
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1601
+ *
1602
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1603
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1604
+ * @returns {string} A string representing the collection.
1605
+ */
1606
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1607
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1608
+ }
1609
+ /**
1610
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1611
+ *
1612
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1613
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1614
+ * @returns {string} A string representing the data_store.
1615
+ */
1616
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1617
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1618
+ }
1619
+ /**
1620
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1621
+ *
1622
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1623
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1624
+ * @returns {string} A string representing the target_site.
1625
+ */
1626
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1627
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1628
+ }
1629
+ /**
1630
+ * Return a fully-qualified projectLocationCollectionEngineControl resource name string.
1631
+ *
1632
+ * @param {string} project
1633
+ * @param {string} location
1634
+ * @param {string} collection
1635
+ * @param {string} engine
1636
+ * @param {string} control
1637
+ * @returns {string} Resource name string.
1638
+ */
1639
+ projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
1640
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
1641
+ project: project,
1642
+ location: location,
1643
+ collection: collection,
1644
+ engine: engine,
1645
+ control: control,
1646
+ });
1647
+ }
1648
+ /**
1649
+ * Parse the project from ProjectLocationCollectionEngineControl resource.
1650
+ *
1651
+ * @param {string} projectLocationCollectionEngineControlName
1652
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1653
+ * @returns {string} A string representing the project.
1654
+ */
1655
+ matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1656
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
1657
+ }
1658
+ /**
1659
+ * Parse the location from ProjectLocationCollectionEngineControl resource.
1660
+ *
1661
+ * @param {string} projectLocationCollectionEngineControlName
1662
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1663
+ * @returns {string} A string representing the location.
1664
+ */
1665
+ matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1666
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
1667
+ }
1668
+ /**
1669
+ * Parse the collection from ProjectLocationCollectionEngineControl resource.
1670
+ *
1671
+ * @param {string} projectLocationCollectionEngineControlName
1672
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1673
+ * @returns {string} A string representing the collection.
1674
+ */
1675
+ matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1676
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
1677
+ }
1678
+ /**
1679
+ * Parse the engine from ProjectLocationCollectionEngineControl resource.
1680
+ *
1681
+ * @param {string} projectLocationCollectionEngineControlName
1682
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1683
+ * @returns {string} A string representing the engine.
1684
+ */
1685
+ matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1686
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
1687
+ }
1688
+ /**
1689
+ * Parse the control from ProjectLocationCollectionEngineControl resource.
1690
+ *
1691
+ * @param {string} projectLocationCollectionEngineControlName
1692
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1693
+ * @returns {string} A string representing the control.
1694
+ */
1695
+ matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1696
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
1697
+ }
1698
+ /**
1699
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1700
+ *
1701
+ * @param {string} project
1702
+ * @param {string} location
1703
+ * @param {string} collection
1704
+ * @param {string} engine
1705
+ * @param {string} conversation
1706
+ * @returns {string} Resource name string.
1707
+ */
1708
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1709
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1710
+ project: project,
1711
+ location: location,
1712
+ collection: collection,
1713
+ engine: engine,
1714
+ conversation: conversation,
1715
+ });
1716
+ }
1717
+ /**
1718
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1719
+ *
1720
+ * @param {string} projectLocationCollectionEngineConversationName
1721
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1722
+ * @returns {string} A string representing the project.
1723
+ */
1724
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1725
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1726
+ }
1727
+ /**
1728
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1729
+ *
1730
+ * @param {string} projectLocationCollectionEngineConversationName
1731
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1732
+ * @returns {string} A string representing the location.
1733
+ */
1734
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1735
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1736
+ }
1737
+ /**
1738
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1739
+ *
1740
+ * @param {string} projectLocationCollectionEngineConversationName
1741
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1742
+ * @returns {string} A string representing the collection.
1743
+ */
1744
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1745
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1746
+ }
1747
+ /**
1748
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1749
+ *
1750
+ * @param {string} projectLocationCollectionEngineConversationName
1751
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1752
+ * @returns {string} A string representing the engine.
1753
+ */
1754
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1755
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1756
+ }
1757
+ /**
1758
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1759
+ *
1760
+ * @param {string} projectLocationCollectionEngineConversationName
1761
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1762
+ * @returns {string} A string representing the conversation.
1763
+ */
1764
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1765
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1766
+ }
1767
+ /**
1768
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1769
+ *
1770
+ * @param {string} project
1771
+ * @param {string} location
1772
+ * @param {string} collection
1773
+ * @param {string} engine
1774
+ * @param {string} serving_config
1775
+ * @returns {string} Resource name string.
1776
+ */
1777
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1778
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1779
+ project: project,
1780
+ location: location,
1781
+ collection: collection,
1782
+ engine: engine,
1783
+ serving_config: servingConfig,
1784
+ });
1785
+ }
1786
+ /**
1787
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1788
+ *
1789
+ * @param {string} projectLocationCollectionEngineServingConfigName
1790
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1791
+ * @returns {string} A string representing the project.
1792
+ */
1793
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1794
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1795
+ }
1796
+ /**
1797
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1798
+ *
1799
+ * @param {string} projectLocationCollectionEngineServingConfigName
1800
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1801
+ * @returns {string} A string representing the location.
1802
+ */
1803
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1804
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1805
+ }
1806
+ /**
1807
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1808
+ *
1809
+ * @param {string} projectLocationCollectionEngineServingConfigName
1810
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1811
+ * @returns {string} A string representing the collection.
1812
+ */
1813
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1814
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1815
+ }
1816
+ /**
1817
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1818
+ *
1819
+ * @param {string} projectLocationCollectionEngineServingConfigName
1820
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1821
+ * @returns {string} A string representing the engine.
1822
+ */
1823
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1824
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1825
+ }
1826
+ /**
1827
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1828
+ *
1829
+ * @param {string} projectLocationCollectionEngineServingConfigName
1830
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1831
+ * @returns {string} A string representing the serving_config.
1832
+ */
1833
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1834
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1835
+ }
1836
+ /**
1837
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1838
+ *
1839
+ * @param {string} project
1840
+ * @param {string} location
1841
+ * @param {string} collection
1842
+ * @param {string} engine
1843
+ * @param {string} session
1844
+ * @returns {string} Resource name string.
1845
+ */
1846
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1847
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1848
+ project: project,
1849
+ location: location,
1850
+ collection: collection,
1851
+ engine: engine,
1852
+ session: session,
1853
+ });
1854
+ }
1855
+ /**
1856
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1857
+ *
1858
+ * @param {string} projectLocationCollectionEngineSessionName
1859
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1860
+ * @returns {string} A string representing the project.
1861
+ */
1862
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1863
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1864
+ }
1865
+ /**
1866
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1867
+ *
1868
+ * @param {string} projectLocationCollectionEngineSessionName
1869
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1870
+ * @returns {string} A string representing the location.
1871
+ */
1872
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1873
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1874
+ }
1875
+ /**
1876
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1877
+ *
1878
+ * @param {string} projectLocationCollectionEngineSessionName
1879
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1880
+ * @returns {string} A string representing the collection.
1881
+ */
1882
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1883
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1884
+ }
1885
+ /**
1886
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1887
+ *
1888
+ * @param {string} projectLocationCollectionEngineSessionName
1889
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1890
+ * @returns {string} A string representing the engine.
1891
+ */
1892
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1893
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1894
+ }
1895
+ /**
1896
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1897
+ *
1898
+ * @param {string} projectLocationCollectionEngineSessionName
1899
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1900
+ * @returns {string} A string representing the session.
1901
+ */
1902
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1903
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1904
+ }
1905
+ /**
1906
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1907
+ *
1908
+ * @param {string} project
1909
+ * @param {string} location
1910
+ * @param {string} collection
1911
+ * @param {string} engine
1912
+ * @param {string} session
1913
+ * @param {string} answer
1914
+ * @returns {string} Resource name string.
1915
+ */
1916
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1917
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1918
+ project: project,
1919
+ location: location,
1920
+ collection: collection,
1921
+ engine: engine,
1922
+ session: session,
1923
+ answer: answer,
1924
+ });
1925
+ }
1926
+ /**
1927
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1928
+ *
1929
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1930
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1931
+ * @returns {string} A string representing the project.
1932
+ */
1933
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1934
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1935
+ }
1936
+ /**
1937
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1938
+ *
1939
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1940
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1941
+ * @returns {string} A string representing the location.
1942
+ */
1943
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1944
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1945
+ }
1946
+ /**
1947
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1948
+ *
1949
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1950
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1951
+ * @returns {string} A string representing the collection.
1952
+ */
1953
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1954
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1955
+ }
1956
+ /**
1957
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1958
+ *
1959
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1960
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1961
+ * @returns {string} A string representing the engine.
1962
+ */
1963
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1964
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1965
+ }
1966
+ /**
1967
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1968
+ *
1969
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1970
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1971
+ * @returns {string} A string representing the session.
1972
+ */
1973
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1974
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1975
+ }
1976
+ /**
1977
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1978
+ *
1979
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1980
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1981
+ * @returns {string} A string representing the answer.
1982
+ */
1983
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1984
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1985
+ }
1986
+ /**
1987
+ * Return a fully-qualified projectLocationDataStore resource name string.
1988
+ *
1989
+ * @param {string} project
1990
+ * @param {string} location
1991
+ * @param {string} data_store
1992
+ * @returns {string} Resource name string.
1993
+ */
1994
+ projectLocationDataStorePath(project, location, dataStore) {
1995
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1996
+ project: project,
1997
+ location: location,
1998
+ data_store: dataStore,
1999
+ });
2000
+ }
2001
+ /**
2002
+ * Parse the project from ProjectLocationDataStore resource.
2003
+ *
2004
+ * @param {string} projectLocationDataStoreName
2005
+ * A fully-qualified path representing project_location_data_store resource.
2006
+ * @returns {string} A string representing the project.
2007
+ */
2008
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2009
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
2010
+ }
2011
+ /**
2012
+ * Parse the location from ProjectLocationDataStore resource.
2013
+ *
2014
+ * @param {string} projectLocationDataStoreName
2015
+ * A fully-qualified path representing project_location_data_store resource.
2016
+ * @returns {string} A string representing the location.
2017
+ */
2018
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2019
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
2020
+ }
2021
+ /**
2022
+ * Parse the data_store from ProjectLocationDataStore resource.
2023
+ *
2024
+ * @param {string} projectLocationDataStoreName
2025
+ * A fully-qualified path representing project_location_data_store resource.
2026
+ * @returns {string} A string representing the data_store.
2027
+ */
2028
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2029
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
2030
+ }
2031
+ /**
2032
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
2033
+ *
2034
+ * @param {string} project
2035
+ * @param {string} location
2036
+ * @param {string} data_store
2037
+ * @param {string} branch
2038
+ * @param {string} document
2039
+ * @returns {string} Resource name string.
2040
+ */
2041
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
2042
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
2043
+ project: project,
2044
+ location: location,
2045
+ data_store: dataStore,
2046
+ branch: branch,
2047
+ document: document,
2048
+ });
2049
+ }
2050
+ /**
2051
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
2052
+ *
2053
+ * @param {string} projectLocationDataStoreBranchDocumentName
2054
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2055
+ * @returns {string} A string representing the project.
2056
+ */
2057
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2058
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
2059
+ }
2060
+ /**
2061
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
2062
+ *
2063
+ * @param {string} projectLocationDataStoreBranchDocumentName
2064
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2065
+ * @returns {string} A string representing the location.
2066
+ */
2067
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2068
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
2069
+ }
2070
+ /**
2071
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
2072
+ *
2073
+ * @param {string} projectLocationDataStoreBranchDocumentName
2074
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2075
+ * @returns {string} A string representing the data_store.
2076
+ */
2077
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2078
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
2079
+ }
2080
+ /**
2081
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
2082
+ *
2083
+ * @param {string} projectLocationDataStoreBranchDocumentName
2084
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2085
+ * @returns {string} A string representing the branch.
2086
+ */
2087
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2088
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
2089
+ }
2090
+ /**
2091
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
2092
+ *
2093
+ * @param {string} projectLocationDataStoreBranchDocumentName
2094
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2095
+ * @returns {string} A string representing the document.
2096
+ */
2097
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2098
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2099
+ }
2100
+ /**
2101
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2102
+ *
2103
+ * @param {string} project
2104
+ * @param {string} location
2105
+ * @param {string} data_store
2106
+ * @param {string} branch
2107
+ * @param {string} document
2108
+ * @param {string} chunk
2109
+ * @returns {string} Resource name string.
2110
+ */
2111
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2112
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2113
+ project: project,
2114
+ location: location,
2115
+ data_store: dataStore,
2116
+ branch: branch,
2117
+ document: document,
2118
+ chunk: chunk,
2119
+ });
2120
+ }
2121
+ /**
2122
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2123
+ *
2124
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2125
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2126
+ * @returns {string} A string representing the project.
2127
+ */
2128
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2129
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2130
+ }
2131
+ /**
2132
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2133
+ *
2134
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2135
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2136
+ * @returns {string} A string representing the location.
2137
+ */
2138
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2139
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2140
+ }
2141
+ /**
2142
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2143
+ *
2144
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2145
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2146
+ * @returns {string} A string representing the data_store.
2147
+ */
2148
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2149
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2150
+ }
2151
+ /**
2152
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2153
+ *
2154
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2155
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2156
+ * @returns {string} A string representing the branch.
2157
+ */
2158
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2159
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2160
+ }
2161
+ /**
2162
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2163
+ *
2164
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2165
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2166
+ * @returns {string} A string representing the document.
2167
+ */
2168
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2169
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2170
+ }
2171
+ /**
2172
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2173
+ *
2174
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2175
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2176
+ * @returns {string} A string representing the chunk.
2177
+ */
2178
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2179
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2180
+ }
2181
+ /**
2182
+ * Return a fully-qualified projectLocationDataStoreControl resource name string.
2183
+ *
2184
+ * @param {string} project
2185
+ * @param {string} location
2186
+ * @param {string} data_store
2187
+ * @param {string} control
2188
+ * @returns {string} Resource name string.
2189
+ */
2190
+ projectLocationDataStoreControlPath(project, location, dataStore, control) {
2191
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
2192
+ project: project,
2193
+ location: location,
2194
+ data_store: dataStore,
2195
+ control: control,
2196
+ });
2197
+ }
2198
+ /**
2199
+ * Parse the project from ProjectLocationDataStoreControl resource.
2200
+ *
2201
+ * @param {string} projectLocationDataStoreControlName
2202
+ * A fully-qualified path representing project_location_data_store_control resource.
2203
+ * @returns {string} A string representing the project.
2204
+ */
2205
+ matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2206
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
2207
+ }
2208
+ /**
2209
+ * Parse the location from ProjectLocationDataStoreControl resource.
2210
+ *
2211
+ * @param {string} projectLocationDataStoreControlName
2212
+ * A fully-qualified path representing project_location_data_store_control resource.
2213
+ * @returns {string} A string representing the location.
2214
+ */
2215
+ matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2216
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
2217
+ }
2218
+ /**
2219
+ * Parse the data_store from ProjectLocationDataStoreControl resource.
2220
+ *
2221
+ * @param {string} projectLocationDataStoreControlName
2222
+ * A fully-qualified path representing project_location_data_store_control resource.
2223
+ * @returns {string} A string representing the data_store.
2224
+ */
2225
+ matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2226
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
2227
+ }
2228
+ /**
2229
+ * Parse the control from ProjectLocationDataStoreControl resource.
2230
+ *
2231
+ * @param {string} projectLocationDataStoreControlName
2232
+ * A fully-qualified path representing project_location_data_store_control resource.
2233
+ * @returns {string} A string representing the control.
2234
+ */
2235
+ matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2236
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
2237
+ }
2238
+ /**
2239
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
2240
+ *
2241
+ * @param {string} project
2242
+ * @param {string} location
2243
+ * @param {string} data_store
2244
+ * @param {string} conversation
2245
+ * @returns {string} Resource name string.
2246
+ */
2247
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
2248
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
2249
+ project: project,
2250
+ location: location,
2251
+ data_store: dataStore,
2252
+ conversation: conversation,
2253
+ });
2254
+ }
2255
+ /**
2256
+ * Parse the project from ProjectLocationDataStoreConversation resource.
2257
+ *
2258
+ * @param {string} projectLocationDataStoreConversationName
2259
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2260
+ * @returns {string} A string representing the project.
2261
+ */
2262
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2263
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
2264
+ }
2265
+ /**
2266
+ * Parse the location from ProjectLocationDataStoreConversation resource.
2267
+ *
2268
+ * @param {string} projectLocationDataStoreConversationName
2269
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2270
+ * @returns {string} A string representing the location.
2271
+ */
2272
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2273
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
2274
+ }
2275
+ /**
2276
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
2277
+ *
2278
+ * @param {string} projectLocationDataStoreConversationName
2279
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2280
+ * @returns {string} A string representing the data_store.
2281
+ */
2282
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2283
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
2284
+ }
2285
+ /**
2286
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
2287
+ *
2288
+ * @param {string} projectLocationDataStoreConversationName
2289
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2290
+ * @returns {string} A string representing the conversation.
2291
+ */
2292
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2293
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
2294
+ }
2295
+ /**
2296
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
2297
+ *
2298
+ * @param {string} project
2299
+ * @param {string} location
2300
+ * @param {string} data_store
2301
+ * @param {string} custom_tuning_model
2302
+ * @returns {string} Resource name string.
2303
+ */
2304
+ projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
2305
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
2306
+ project: project,
2307
+ location: location,
2308
+ data_store: dataStore,
2309
+ custom_tuning_model: customTuningModel,
2310
+ });
2311
+ }
2312
+ /**
2313
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
2314
+ *
2315
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2316
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2317
+ * @returns {string} A string representing the project.
2318
+ */
2319
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2320
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
2321
+ }
2322
+ /**
2323
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
2324
+ *
2325
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2326
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2327
+ * @returns {string} A string representing the location.
2328
+ */
2329
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2330
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
2331
+ }
2332
+ /**
2333
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
2334
+ *
2335
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2336
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2337
+ * @returns {string} A string representing the data_store.
2338
+ */
2339
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2340
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
2341
+ }
2342
+ /**
2343
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
2344
+ *
2345
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2346
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2347
+ * @returns {string} A string representing the custom_tuning_model.
2348
+ */
2349
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2350
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
2351
+ }
2352
+ /**
2353
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2354
+ *
2355
+ * @param {string} project
2356
+ * @param {string} location
2357
+ * @param {string} data_store
2358
+ * @returns {string} Resource name string.
2359
+ */
2360
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
2361
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
2362
+ project: project,
2363
+ location: location,
2364
+ data_store: dataStore,
2365
+ });
2366
+ }
2367
+ /**
2368
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
2369
+ *
2370
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2371
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2372
+ * @returns {string} A string representing the project.
2373
+ */
2374
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2375
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
2376
+ }
2377
+ /**
2378
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
2379
+ *
2380
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2381
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2382
+ * @returns {string} A string representing the location.
2383
+ */
2384
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2385
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
2386
+ }
2387
+ /**
2388
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
2389
+ *
2390
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2391
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2392
+ * @returns {string} A string representing the data_store.
2393
+ */
2394
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2395
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
2396
+ }
2397
+ /**
2398
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
2399
+ *
2400
+ * @param {string} project
2401
+ * @param {string} location
2402
+ * @param {string} data_store
2403
+ * @param {string} schema
2404
+ * @returns {string} Resource name string.
2405
+ */
2406
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
2407
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
2408
+ project: project,
2409
+ location: location,
2410
+ data_store: dataStore,
2411
+ schema: schema,
2412
+ });
2413
+ }
2414
+ /**
2415
+ * Parse the project from ProjectLocationDataStoreSchema resource.
2416
+ *
2417
+ * @param {string} projectLocationDataStoreSchemaName
2418
+ * A fully-qualified path representing project_location_data_store_schema resource.
2419
+ * @returns {string} A string representing the project.
2420
+ */
2421
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2422
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
2423
+ }
2424
+ /**
2425
+ * Parse the location from ProjectLocationDataStoreSchema resource.
2426
+ *
2427
+ * @param {string} projectLocationDataStoreSchemaName
2428
+ * A fully-qualified path representing project_location_data_store_schema resource.
2429
+ * @returns {string} A string representing the location.
2430
+ */
2431
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2432
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
2433
+ }
2434
+ /**
2435
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
2436
+ *
2437
+ * @param {string} projectLocationDataStoreSchemaName
2438
+ * A fully-qualified path representing project_location_data_store_schema resource.
2439
+ * @returns {string} A string representing the data_store.
2440
+ */
2441
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2442
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
2443
+ }
2444
+ /**
2445
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
2446
+ *
2447
+ * @param {string} projectLocationDataStoreSchemaName
2448
+ * A fully-qualified path representing project_location_data_store_schema resource.
2449
+ * @returns {string} A string representing the schema.
2450
+ */
2451
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2452
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2453
+ }
2454
+ /**
2455
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2456
+ *
2457
+ * @param {string} project
2458
+ * @param {string} location
2459
+ * @param {string} data_store
2460
+ * @param {string} serving_config
2461
+ * @returns {string} Resource name string.
2462
+ */
2463
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2464
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2465
+ project: project,
2466
+ location: location,
2467
+ data_store: dataStore,
2468
+ serving_config: servingConfig,
2469
+ });
2470
+ }
2471
+ /**
2472
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2473
+ *
2474
+ * @param {string} projectLocationDataStoreServingConfigName
2475
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2476
+ * @returns {string} A string representing the project.
2477
+ */
2478
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2479
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2480
+ }
2481
+ /**
2482
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2483
+ *
2484
+ * @param {string} projectLocationDataStoreServingConfigName
2485
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2486
+ * @returns {string} A string representing the location.
2487
+ */
2488
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2489
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2490
+ }
2491
+ /**
2492
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2493
+ *
2494
+ * @param {string} projectLocationDataStoreServingConfigName
2495
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2496
+ * @returns {string} A string representing the data_store.
2497
+ */
2498
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2499
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2500
+ }
2501
+ /**
2502
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2503
+ *
2504
+ * @param {string} projectLocationDataStoreServingConfigName
2505
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2506
+ * @returns {string} A string representing the serving_config.
2507
+ */
2508
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2509
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2510
+ }
2511
+ /**
2512
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2513
+ *
2514
+ * @param {string} project
2515
+ * @param {string} location
2516
+ * @param {string} data_store
2517
+ * @param {string} session
2518
+ * @returns {string} Resource name string.
2519
+ */
2520
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2521
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2522
+ project: project,
2523
+ location: location,
2524
+ data_store: dataStore,
2525
+ session: session,
2526
+ });
2527
+ }
2528
+ /**
2529
+ * Parse the project from ProjectLocationDataStoreSession resource.
2530
+ *
2531
+ * @param {string} projectLocationDataStoreSessionName
2532
+ * A fully-qualified path representing project_location_data_store_session resource.
2533
+ * @returns {string} A string representing the project.
2534
+ */
2535
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2536
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2537
+ }
2538
+ /**
2539
+ * Parse the location from ProjectLocationDataStoreSession resource.
2540
+ *
2541
+ * @param {string} projectLocationDataStoreSessionName
2542
+ * A fully-qualified path representing project_location_data_store_session resource.
2543
+ * @returns {string} A string representing the location.
2544
+ */
2545
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2546
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2547
+ }
2548
+ /**
2549
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2550
+ *
2551
+ * @param {string} projectLocationDataStoreSessionName
2552
+ * A fully-qualified path representing project_location_data_store_session resource.
2553
+ * @returns {string} A string representing the data_store.
2554
+ */
2555
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2556
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2557
+ }
2558
+ /**
2559
+ * Parse the session from ProjectLocationDataStoreSession resource.
2560
+ *
2561
+ * @param {string} projectLocationDataStoreSessionName
2562
+ * A fully-qualified path representing project_location_data_store_session resource.
2563
+ * @returns {string} A string representing the session.
2564
+ */
2565
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2566
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2567
+ }
2568
+ /**
2569
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2570
+ *
2571
+ * @param {string} project
2572
+ * @param {string} location
2573
+ * @param {string} data_store
2574
+ * @param {string} session
2575
+ * @param {string} answer
2576
+ * @returns {string} Resource name string.
2577
+ */
2578
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2579
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2580
+ project: project,
2581
+ location: location,
2582
+ data_store: dataStore,
2583
+ session: session,
2584
+ answer: answer,
2585
+ });
2586
+ }
2587
+ /**
2588
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2589
+ *
2590
+ * @param {string} projectLocationDataStoreSessionAnswerName
2591
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2592
+ * @returns {string} A string representing the project.
2593
+ */
2594
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2595
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2596
+ }
2597
+ /**
2598
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2599
+ *
2600
+ * @param {string} projectLocationDataStoreSessionAnswerName
2601
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2602
+ * @returns {string} A string representing the location.
2603
+ */
2604
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2605
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2606
+ }
2607
+ /**
2608
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2609
+ *
2610
+ * @param {string} projectLocationDataStoreSessionAnswerName
2611
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2612
+ * @returns {string} A string representing the data_store.
2613
+ */
2614
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2615
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2616
+ }
2617
+ /**
2618
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2619
+ *
2620
+ * @param {string} projectLocationDataStoreSessionAnswerName
2621
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2622
+ * @returns {string} A string representing the session.
2623
+ */
2624
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2625
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2626
+ }
2627
+ /**
2628
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2629
+ *
2630
+ * @param {string} projectLocationDataStoreSessionAnswerName
2631
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2632
+ * @returns {string} A string representing the answer.
2633
+ */
2634
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2635
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2636
+ }
2637
+ /**
2638
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2639
+ *
2640
+ * @param {string} project
2641
+ * @param {string} location
2642
+ * @param {string} data_store
2643
+ * @returns {string} Resource name string.
2644
+ */
2645
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
2646
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
2647
+ project: project,
2648
+ location: location,
2649
+ data_store: dataStore,
2650
+ });
2651
+ }
2652
+ /**
2653
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
2654
+ *
2655
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2656
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2657
+ * @returns {string} A string representing the project.
2658
+ */
2659
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2660
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
2661
+ }
2662
+ /**
2663
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
2664
+ *
2665
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2666
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2667
+ * @returns {string} A string representing the location.
2668
+ */
2669
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2670
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
2671
+ }
2672
+ /**
2673
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
2674
+ *
2675
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2676
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2677
+ * @returns {string} A string representing the data_store.
2678
+ */
2679
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2680
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2681
+ }
2682
+ /**
2683
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2684
+ *
2685
+ * @param {string} project
2686
+ * @param {string} location
2687
+ * @param {string} data_store
2688
+ * @param {string} target_site
2689
+ * @returns {string} Resource name string.
2690
+ */
2691
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
2692
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
2693
+ project: project,
2694
+ location: location,
2695
+ data_store: dataStore,
2696
+ target_site: targetSite,
2697
+ });
2698
+ }
2699
+ /**
2700
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2701
+ *
2702
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2703
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2704
+ * @returns {string} A string representing the project.
2705
+ */
2706
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2707
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
2708
+ }
2709
+ /**
2710
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2711
+ *
2712
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2713
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2714
+ * @returns {string} A string representing the location.
2715
+ */
2716
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2717
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
2718
+ }
2719
+ /**
2720
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2721
+ *
2722
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2723
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2724
+ * @returns {string} A string representing the data_store.
2725
+ */
2726
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2727
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
2728
+ }
2729
+ /**
2730
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2731
+ *
2732
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2733
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2734
+ * @returns {string} A string representing the target_site.
2735
+ */
2736
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2737
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2738
+ }
2739
+ /**
2740
+ * Terminate the gRPC channel and close the client.
2741
+ *
2742
+ * The client will no longer be usable and all future behavior is undefined.
2743
+ * @returns {Promise} A promise that resolves when the client is closed.
2744
+ */
2745
+ close() {
2746
+ if (this.controlServiceStub && !this._terminated) {
2747
+ return this.controlServiceStub.then(stub => {
2748
+ this._terminated = true;
2749
+ stub.close();
2750
+ this.locationsClient.close();
2751
+ });
2752
+ }
2753
+ return Promise.resolve();
2754
+ }
2755
+ }
2756
+ exports.ControlServiceClient = ControlServiceClient;
2757
+ //# sourceMappingURL=control_service_client.js.map