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