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