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