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