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