@google-cloud/discoveryengine 2.2.0 → 2.4.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 (249) hide show
  1. package/README.md +30 -0
  2. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/assist_answer.proto +251 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/assistant.proto +44 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +217 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
  10. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +18 -3
  11. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
  12. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
  14. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
  15. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
  16. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +14 -14
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +21 -8
  22. package/build/protos/google/cloud/discoveryengine/v1/session_service.proto +128 -0
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
  24. package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +15 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +30 -9
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +8 -14
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +238 -8
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/session_service.proto +201 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +26 -5
  32. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +8 -14
  33. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +40 -8
  34. package/build/protos/google/cloud/discoveryengine/v1beta/session_service.proto +128 -0
  35. package/build/protos/protos.d.ts +21218 -11675
  36. package/build/protos/protos.js +92642 -66407
  37. package/build/protos/protos.json +5854 -2801
  38. package/build/src/index.d.ts +16 -1
  39. package/build/src/index.js +12 -2
  40. package/build/src/v1/assistant_service_client.d.ts +2058 -0
  41. package/build/src/v1/assistant_service_client.js +2957 -0
  42. package/build/src/v1/assistant_service_client_config.json +43 -0
  43. package/build/src/v1/assistant_service_proto_list.json +48 -0
  44. package/build/src/v1/cmek_config_service_client.d.ts +2398 -0
  45. package/build/src/v1/cmek_config_service_client.js +3426 -0
  46. package/build/src/v1/cmek_config_service_client_config.json +42 -0
  47. package/build/src/v1/cmek_config_service_proto_list.json +48 -0
  48. package/build/src/v1/completion_service_client.d.ts +345 -144
  49. package/build/src/v1/completion_service_client.js +482 -198
  50. package/build/src/v1/completion_service_proto_list.json +10 -1
  51. package/build/src/v1/control_service_client.d.ts +345 -144
  52. package/build/src/v1/control_service_client.js +498 -196
  53. package/build/src/v1/control_service_proto_list.json +10 -1
  54. package/build/src/v1/conversational_search_service_client.d.ts +392 -155
  55. package/build/src/v1/conversational_search_service_client.js +572 -204
  56. package/build/src/v1/conversational_search_service_proto_list.json +10 -1
  57. package/build/src/v1/data_store_service_client.d.ts +351 -144
  58. package/build/src/v1/data_store_service_client.js +488 -198
  59. package/build/src/v1/data_store_service_proto_list.json +10 -1
  60. package/build/src/v1/document_service_client.d.ts +345 -144
  61. package/build/src/v1/document_service_client.js +506 -198
  62. package/build/src/v1/document_service_proto_list.json +10 -1
  63. package/build/src/v1/engine_service_client.d.ts +345 -144
  64. package/build/src/v1/engine_service_client.js +488 -198
  65. package/build/src/v1/engine_service_proto_list.json +10 -1
  66. package/build/src/v1/gapic_metadata.json +270 -0
  67. package/build/src/v1/grounded_generation_service_client.d.ts +345 -144
  68. package/build/src/v1/grounded_generation_service_client.js +486 -196
  69. package/build/src/v1/grounded_generation_service_proto_list.json +10 -1
  70. package/build/src/v1/identity_mapping_store_service_client.d.ts +2581 -0
  71. package/build/src/v1/identity_mapping_store_service_client.js +3601 -0
  72. package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
  73. package/build/src/v1/identity_mapping_store_service_proto_list.json +48 -0
  74. package/build/src/v1/index.d.ts +5 -0
  75. package/build/src/v1/index.js +11 -1
  76. package/build/src/v1/project_service_client.d.ts +345 -144
  77. package/build/src/v1/project_service_client.js +476 -198
  78. package/build/src/v1/project_service_proto_list.json +10 -1
  79. package/build/src/v1/rank_service_client.d.ts +345 -144
  80. package/build/src/v1/rank_service_client.js +480 -196
  81. package/build/src/v1/rank_service_proto_list.json +10 -1
  82. package/build/src/v1/recommendation_service_client.d.ts +345 -144
  83. package/build/src/v1/recommendation_service_client.js +480 -196
  84. package/build/src/v1/recommendation_service_proto_list.json +10 -1
  85. package/build/src/v1/schema_service_client.d.ts +345 -144
  86. package/build/src/v1/schema_service_client.js +482 -198
  87. package/build/src/v1/schema_service_proto_list.json +10 -1
  88. package/build/src/v1/search_service_client.d.ts +393 -228
  89. package/build/src/v1/search_service_client.js +506 -252
  90. package/build/src/v1/search_service_proto_list.json +10 -1
  91. package/build/src/v1/search_tuning_service_client.d.ts +345 -144
  92. package/build/src/v1/search_tuning_service_client.js +482 -198
  93. package/build/src/v1/search_tuning_service_proto_list.json +10 -1
  94. package/build/src/v1/serving_config_service_client.d.ts +345 -144
  95. package/build/src/v1/serving_config_service_client.js +480 -196
  96. package/build/src/v1/serving_config_service_proto_list.json +10 -1
  97. package/build/src/v1/session_service_client.d.ts +2326 -0
  98. package/build/src/v1/session_service_client.js +3218 -0
  99. package/build/src/v1/session_service_client_config.json +63 -0
  100. package/build/src/v1/session_service_proto_list.json +48 -0
  101. package/build/src/v1/site_search_engine_service_client.d.ts +345 -144
  102. package/build/src/v1/site_search_engine_service_client.js +494 -198
  103. package/build/src/v1/site_search_engine_service_proto_list.json +10 -1
  104. package/build/src/v1/user_event_service_client.d.ts +345 -144
  105. package/build/src/v1/user_event_service_client.js +488 -198
  106. package/build/src/v1/user_event_service_proto_list.json +10 -1
  107. package/build/src/v1/user_license_service_client.d.ts +2367 -0
  108. package/build/src/v1/user_license_service_client.js +3346 -0
  109. package/build/src/v1/user_license_service_client_config.json +34 -0
  110. package/build/src/v1/user_license_service_proto_list.json +48 -0
  111. package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
  112. package/build/src/v1alpha/acl_config_service_client.js +208 -196
  113. package/build/src/v1alpha/acl_config_service_proto_list.json +1 -0
  114. package/build/src/v1alpha/chunk_service_client.d.ts +144 -144
  115. package/build/src/v1alpha/chunk_service_client.js +202 -196
  116. package/build/src/v1alpha/chunk_service_proto_list.json +1 -0
  117. package/build/src/v1alpha/completion_service_client.d.ts +144 -144
  118. package/build/src/v1alpha/completion_service_client.js +203 -197
  119. package/build/src/v1alpha/completion_service_proto_list.json +1 -0
  120. package/build/src/v1alpha/control_service_client.d.ts +144 -144
  121. package/build/src/v1alpha/control_service_client.js +220 -196
  122. package/build/src/v1alpha/control_service_proto_list.json +1 -0
  123. package/build/src/v1alpha/conversational_search_service_client.d.ts +221 -167
  124. package/build/src/v1alpha/conversational_search_service_client.js +310 -210
  125. package/build/src/v1alpha/conversational_search_service_proto_list.json +1 -0
  126. package/build/src/v1alpha/data_store_service_client.d.ts +144 -144
  127. package/build/src/v1alpha/data_store_service_client.js +221 -197
  128. package/build/src/v1alpha/data_store_service_proto_list.json +1 -0
  129. package/build/src/v1alpha/document_service_client.d.ts +144 -144
  130. package/build/src/v1alpha/document_service_client.js +233 -197
  131. package/build/src/v1alpha/document_service_proto_list.json +1 -0
  132. package/build/src/v1alpha/engine_service_client.d.ts +144 -144
  133. package/build/src/v1alpha/engine_service_client.js +221 -197
  134. package/build/src/v1alpha/engine_service_proto_list.json +1 -0
  135. package/build/src/v1alpha/estimate_billing_service_client.d.ts +144 -144
  136. package/build/src/v1alpha/estimate_billing_service_client.js +197 -197
  137. package/build/src/v1alpha/estimate_billing_service_proto_list.json +1 -0
  138. package/build/src/v1alpha/evaluation_service_client.d.ts +144 -144
  139. package/build/src/v1alpha/evaluation_service_client.js +203 -197
  140. package/build/src/v1alpha/evaluation_service_proto_list.json +1 -0
  141. package/build/src/v1alpha/gapic_metadata.json +82 -0
  142. package/build/src/v1alpha/grounded_generation_service_client.d.ts +144 -144
  143. package/build/src/v1alpha/grounded_generation_service_client.js +202 -196
  144. package/build/src/v1alpha/grounded_generation_service_proto_list.json +1 -0
  145. package/build/src/v1alpha/index.d.ts +1 -0
  146. package/build/src/v1alpha/index.js +3 -1
  147. package/build/src/v1alpha/project_service_client.d.ts +144 -144
  148. package/build/src/v1alpha/project_service_client.js +209 -197
  149. package/build/src/v1alpha/project_service_proto_list.json +1 -0
  150. package/build/src/v1alpha/rank_service_client.d.ts +144 -144
  151. package/build/src/v1alpha/rank_service_client.js +202 -196
  152. package/build/src/v1alpha/rank_service_proto_list.json +1 -0
  153. package/build/src/v1alpha/recommendation_service_client.d.ts +144 -144
  154. package/build/src/v1alpha/recommendation_service_client.js +202 -196
  155. package/build/src/v1alpha/recommendation_service_proto_list.json +1 -0
  156. package/build/src/v1alpha/sample_query_service_client.d.ts +144 -144
  157. package/build/src/v1alpha/sample_query_service_client.js +221 -197
  158. package/build/src/v1alpha/sample_query_service_proto_list.json +1 -0
  159. package/build/src/v1alpha/sample_query_set_service_client.d.ts +144 -144
  160. package/build/src/v1alpha/sample_query_set_service_client.js +220 -196
  161. package/build/src/v1alpha/sample_query_set_service_proto_list.json +1 -0
  162. package/build/src/v1alpha/schema_service_client.d.ts +144 -144
  163. package/build/src/v1alpha/schema_service_client.js +203 -197
  164. package/build/src/v1alpha/schema_service_proto_list.json +1 -0
  165. package/build/src/v1alpha/search_service_client.d.ts +168 -186
  166. package/build/src/v1alpha/search_service_client.js +212 -224
  167. package/build/src/v1alpha/search_service_proto_list.json +1 -0
  168. package/build/src/v1alpha/search_tuning_service_client.d.ts +144 -144
  169. package/build/src/v1alpha/search_tuning_service_client.js +203 -197
  170. package/build/src/v1alpha/search_tuning_service_proto_list.json +1 -0
  171. package/build/src/v1alpha/serving_config_service_client.d.ts +144 -144
  172. package/build/src/v1alpha/serving_config_service_client.js +208 -196
  173. package/build/src/v1alpha/serving_config_service_proto_list.json +1 -0
  174. package/build/src/v1alpha/session_service_client.d.ts +2331 -0
  175. package/build/src/v1alpha/session_service_client.js +3161 -0
  176. package/build/src/v1alpha/session_service_client_config.json +68 -0
  177. package/build/src/v1alpha/session_service_proto_list.json +49 -0
  178. package/build/src/v1alpha/site_search_engine_service_client.d.ts +144 -144
  179. package/build/src/v1alpha/site_search_engine_service_client.js +215 -197
  180. package/build/src/v1alpha/site_search_engine_service_proto_list.json +1 -0
  181. package/build/src/v1alpha/user_event_service_client.d.ts +144 -144
  182. package/build/src/v1alpha/user_event_service_client.js +209 -197
  183. package/build/src/v1alpha/user_event_service_proto_list.json +1 -0
  184. package/build/src/v1beta/completion_service_client.d.ts +144 -144
  185. package/build/src/v1beta/completion_service_client.js +209 -197
  186. package/build/src/v1beta/completion_service_proto_list.json +1 -0
  187. package/build/src/v1beta/control_service_client.d.ts +144 -144
  188. package/build/src/v1beta/control_service_client.js +220 -196
  189. package/build/src/v1beta/control_service_proto_list.json +1 -0
  190. package/build/src/v1beta/conversational_search_service_client.d.ts +215 -161
  191. package/build/src/v1beta/conversational_search_service_client.js +308 -208
  192. package/build/src/v1beta/conversational_search_service_proto_list.json +1 -0
  193. package/build/src/v1beta/data_store_service_client.d.ts +144 -144
  194. package/build/src/v1beta/data_store_service_client.js +209 -197
  195. package/build/src/v1beta/data_store_service_proto_list.json +1 -0
  196. package/build/src/v1beta/document_service_client.d.ts +144 -144
  197. package/build/src/v1beta/document_service_client.js +227 -197
  198. package/build/src/v1beta/document_service_proto_list.json +1 -0
  199. package/build/src/v1beta/engine_service_client.d.ts +144 -144
  200. package/build/src/v1beta/engine_service_client.js +221 -197
  201. package/build/src/v1beta/engine_service_proto_list.json +1 -0
  202. package/build/src/v1beta/evaluation_service_client.d.ts +144 -144
  203. package/build/src/v1beta/evaluation_service_client.js +203 -197
  204. package/build/src/v1beta/evaluation_service_proto_list.json +1 -0
  205. package/build/src/v1beta/gapic_metadata.json +68 -0
  206. package/build/src/v1beta/grounded_generation_service_client.d.ts +144 -144
  207. package/build/src/v1beta/grounded_generation_service_client.js +208 -196
  208. package/build/src/v1beta/grounded_generation_service_proto_list.json +1 -0
  209. package/build/src/v1beta/index.d.ts +1 -0
  210. package/build/src/v1beta/index.js +3 -1
  211. package/build/src/v1beta/project_service_client.d.ts +144 -144
  212. package/build/src/v1beta/project_service_client.js +197 -197
  213. package/build/src/v1beta/project_service_proto_list.json +1 -0
  214. package/build/src/v1beta/rank_service_client.d.ts +144 -144
  215. package/build/src/v1beta/rank_service_client.js +202 -196
  216. package/build/src/v1beta/rank_service_proto_list.json +1 -0
  217. package/build/src/v1beta/recommendation_service_client.d.ts +144 -144
  218. package/build/src/v1beta/recommendation_service_client.js +202 -196
  219. package/build/src/v1beta/recommendation_service_proto_list.json +1 -0
  220. package/build/src/v1beta/sample_query_service_client.d.ts +144 -144
  221. package/build/src/v1beta/sample_query_service_client.js +221 -197
  222. package/build/src/v1beta/sample_query_service_proto_list.json +1 -0
  223. package/build/src/v1beta/sample_query_set_service_client.d.ts +144 -144
  224. package/build/src/v1beta/sample_query_set_service_client.js +220 -196
  225. package/build/src/v1beta/sample_query_set_service_proto_list.json +1 -0
  226. package/build/src/v1beta/schema_service_client.d.ts +144 -144
  227. package/build/src/v1beta/schema_service_client.js +203 -197
  228. package/build/src/v1beta/schema_service_proto_list.json +1 -0
  229. package/build/src/v1beta/search_service_client.d.ts +192 -228
  230. package/build/src/v1beta/search_service_client.js +228 -252
  231. package/build/src/v1beta/search_service_proto_list.json +1 -0
  232. package/build/src/v1beta/search_tuning_service_client.d.ts +144 -144
  233. package/build/src/v1beta/search_tuning_service_client.js +203 -197
  234. package/build/src/v1beta/search_tuning_service_proto_list.json +1 -0
  235. package/build/src/v1beta/serving_config_service_client.d.ts +144 -144
  236. package/build/src/v1beta/serving_config_service_client.js +208 -196
  237. package/build/src/v1beta/serving_config_service_proto_list.json +1 -0
  238. package/build/src/v1beta/session_service_client.d.ts +2266 -0
  239. package/build/src/v1beta/session_service_client.js +3136 -0
  240. package/build/src/v1beta/session_service_client_config.json +63 -0
  241. package/build/src/v1beta/session_service_proto_list.json +45 -0
  242. package/build/src/v1beta/site_search_engine_service_client.d.ts +144 -144
  243. package/build/src/v1beta/site_search_engine_service_client.js +215 -197
  244. package/build/src/v1beta/site_search_engine_service_proto_list.json +1 -0
  245. package/build/src/v1beta/user_event_service_client.d.ts +144 -144
  246. package/build/src/v1beta/user_event_service_client.js +209 -197
  247. package/build/src/v1beta/user_event_service_proto_list.json +1 -0
  248. package/package.json +7 -7
  249. package/CHANGELOG.md +0 -274
@@ -0,0 +1,3601 @@
1
+ "use strict";
2
+ // Copyright 2025 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.IdentityMappingStoreServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ const google_gax_1 = require("google-gax");
23
+ /**
24
+ * Client JSON configuration object, loaded from
25
+ * `src/v1/identity_mapping_store_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./identity_mapping_store_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Service for managing Identity Mapping Stores.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class IdentityMappingStoreServiceClient {
36
+ _terminated = false;
37
+ _opts;
38
+ _providedCustomServicePath;
39
+ _gaxModule;
40
+ _gaxGrpc;
41
+ _protos;
42
+ _defaults;
43
+ _universeDomain;
44
+ _servicePath;
45
+ _log = google_gax_1.loggingUtils.log('discoveryengine');
46
+ auth;
47
+ descriptors = {
48
+ page: {},
49
+ stream: {},
50
+ longrunning: {},
51
+ batching: {},
52
+ };
53
+ warn;
54
+ innerApiCalls;
55
+ locationsClient;
56
+ pathTemplates;
57
+ operationsClient;
58
+ identityMappingStoreServiceStub;
59
+ /**
60
+ * Construct an instance of IdentityMappingStoreServiceClient.
61
+ *
62
+ * @param {object} [options] - The configuration object.
63
+ * The options accepted by the constructor are described in detail
64
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
65
+ * The common options are:
66
+ * @param {object} [options.credentials] - Credentials object.
67
+ * @param {string} [options.credentials.client_email]
68
+ * @param {string} [options.credentials.private_key]
69
+ * @param {string} [options.email] - Account email address. Required when
70
+ * using a .pem or .p12 keyFilename.
71
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
72
+ * .p12 key downloaded from the Google Developers Console. If you provide
73
+ * a path to a JSON file, the projectId option below is not necessary.
74
+ * NOTE: .pem and .p12 require you to specify options.email as well.
75
+ * @param {number} [options.port] - The port on which to connect to
76
+ * the remote host.
77
+ * @param {string} [options.projectId] - The project ID from the Google
78
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
79
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
80
+ * app is running in an environment which supports
81
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
82
+ * your project ID will be detected automatically.
83
+ * @param {string} [options.apiEndpoint] - The domain name of the
84
+ * API remote host.
85
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
86
+ * Follows the structure of {@link gapicConfig}.
87
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
88
+ * For more information, please check the
89
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
90
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
91
+ * need to avoid loading the default gRPC version and want to use the fallback
92
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
93
+ * ```
94
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
95
+ * const client = new IdentityMappingStoreServiceClient({fallback: true}, gax);
96
+ * ```
97
+ */
98
+ constructor(opts, gaxInstance) {
99
+ // Ensure that options include all the required fields.
100
+ const staticMembers = this.constructor;
101
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
102
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
103
+ }
104
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
105
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
106
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
107
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
108
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
109
+ const port = opts?.port || staticMembers.port;
110
+ const clientConfig = opts?.clientConfig ?? {};
111
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
112
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
113
+ // Request numeric enum values if REST transport is used.
114
+ opts.numericEnums = true;
115
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
116
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
117
+ opts['scopes'] = staticMembers.scopes;
118
+ }
119
+ // Load google-gax module synchronously if needed
120
+ if (!gaxInstance) {
121
+ gaxInstance = require('google-gax');
122
+ }
123
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
124
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
125
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
126
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
127
+ // Save options to use in initialize() method.
128
+ this._opts = opts;
129
+ // Save the auth object to the client, for use by other methods.
130
+ this.auth = this._gaxGrpc.auth;
131
+ // Set useJWTAccessWithScope on the auth object.
132
+ this.auth.useJWTAccessWithScope = true;
133
+ // Set defaultServicePath on the auth object.
134
+ this.auth.defaultServicePath = this._servicePath;
135
+ // Set the default scopes in auth client if needed.
136
+ if (servicePath === this._servicePath) {
137
+ this.auth.defaultScopes = staticMembers.scopes;
138
+ }
139
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
140
+ // Determine the client header string.
141
+ const clientHeader = [
142
+ `gax/${this._gaxModule.version}`,
143
+ `gapic/${version}`,
144
+ ];
145
+ if (typeof process === 'object' && 'versions' in process) {
146
+ clientHeader.push(`gl-node/${process.versions.node}`);
147
+ }
148
+ else {
149
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
150
+ }
151
+ if (!opts.fallback) {
152
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
153
+ }
154
+ else {
155
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
156
+ }
157
+ if (opts.libName && opts.libVersion) {
158
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
159
+ }
160
+ // Load the applicable protos.
161
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
162
+ // This API contains "path templates"; forward-slash-separated
163
+ // identifiers to uniquely identify resources within the API.
164
+ // Create useful helper objects for these.
165
+ this.pathTemplates = {
166
+ assistAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}'),
167
+ assistantPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}'),
168
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
169
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
170
+ locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
171
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
172
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
173
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
174
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
175
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
176
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
177
+ projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
178
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
179
+ projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
180
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
181
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
182
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
183
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
184
+ projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
185
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
186
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
187
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
188
+ projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
189
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
190
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
191
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
192
+ projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
193
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
194
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
195
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
196
+ projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
197
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
198
+ projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
199
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
200
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
201
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
202
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
203
+ projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
204
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
205
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
206
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
207
+ };
208
+ // Some of the methods on this service return "paged" results,
209
+ // (e.g. 50 results at a time, with tokens to get subsequent
210
+ // pages). Denote the keys used for pagination and results.
211
+ this.descriptors.page = {
212
+ listIdentityMappings: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'identityMappingEntries'),
213
+ listIdentityMappingStores: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'identityMappingStores')
214
+ };
215
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
216
+ // This API contains "long-running operations", which return a
217
+ // an Operation object that allows for tracking of the operation,
218
+ // rather than holding a request open.
219
+ const lroOptions = {
220
+ auth: this.auth,
221
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
222
+ };
223
+ if (opts.fallback) {
224
+ lroOptions.protoJson = protoFilesRoot;
225
+ lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
226
+ }, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/operations/*}', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/operations/*}', }, { get: '/v1/{name=projects/*/operations/*}', }],
227
+ }, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*}/operations', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*}/operations', }, { get: '/v1/{name=projects/*}/operations', }],
228
+ }];
229
+ }
230
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
231
+ const deleteIdentityMappingStoreResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
232
+ const deleteIdentityMappingStoreMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreMetadata');
233
+ const importIdentityMappingsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportIdentityMappingsResponse');
234
+ const importIdentityMappingsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.IdentityMappingEntryOperationMetadata');
235
+ const purgeIdentityMappingsResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
236
+ const purgeIdentityMappingsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.IdentityMappingEntryOperationMetadata');
237
+ this.descriptors.longrunning = {
238
+ deleteIdentityMappingStore: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteIdentityMappingStoreResponse.decode.bind(deleteIdentityMappingStoreResponse), deleteIdentityMappingStoreMetadata.decode.bind(deleteIdentityMappingStoreMetadata)),
239
+ importIdentityMappings: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importIdentityMappingsResponse.decode.bind(importIdentityMappingsResponse), importIdentityMappingsMetadata.decode.bind(importIdentityMappingsMetadata)),
240
+ purgeIdentityMappings: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeIdentityMappingsResponse.decode.bind(purgeIdentityMappingsResponse), purgeIdentityMappingsMetadata.decode.bind(purgeIdentityMappingsMetadata))
241
+ };
242
+ // Put together the default options sent with requests.
243
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.IdentityMappingStoreService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
244
+ // Set up a dictionary of "inner API calls"; the core implementation
245
+ // of calling the API is handled in `google-gax`, with this code
246
+ // merely providing the destination and request information.
247
+ this.innerApiCalls = {};
248
+ // Add a warn function to the client constructor so it can be easily tested.
249
+ this.warn = this._gaxModule.warn;
250
+ }
251
+ /**
252
+ * Initialize the client.
253
+ * Performs asynchronous operations (such as authentication) and prepares the client.
254
+ * This function will be called automatically when any class method is called for the
255
+ * first time, but if you need to initialize it before calling an actual method,
256
+ * feel free to call initialize() directly.
257
+ *
258
+ * You can await on this method if you want to make sure the client is initialized.
259
+ *
260
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
261
+ */
262
+ initialize() {
263
+ // If the client stub promise is already initialized, return immediately.
264
+ if (this.identityMappingStoreServiceStub) {
265
+ return this.identityMappingStoreServiceStub;
266
+ }
267
+ // Put together the "service stub" for
268
+ // google.cloud.discoveryengine.v1.IdentityMappingStoreService.
269
+ this.identityMappingStoreServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
270
+ this._protos.lookupService('google.cloud.discoveryengine.v1.IdentityMappingStoreService') :
271
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
272
+ this._protos.google.cloud.discoveryengine.v1.IdentityMappingStoreService, this._opts, this._providedCustomServicePath);
273
+ // Iterate over each of the methods that the service provides
274
+ // and create an API call method for each.
275
+ const identityMappingStoreServiceStubMethods = ['createIdentityMappingStore', 'getIdentityMappingStore', 'deleteIdentityMappingStore', 'importIdentityMappings', 'purgeIdentityMappings', 'listIdentityMappings', 'listIdentityMappingStores'];
276
+ for (const methodName of identityMappingStoreServiceStubMethods) {
277
+ const callPromise = this.identityMappingStoreServiceStub.then(stub => (...args) => {
278
+ if (this._terminated) {
279
+ return Promise.reject('The client has already been closed.');
280
+ }
281
+ const func = stub[methodName];
282
+ return func.apply(stub, args);
283
+ }, (err) => () => {
284
+ throw err;
285
+ });
286
+ const descriptor = this.descriptors.page[methodName] ||
287
+ this.descriptors.longrunning[methodName] ||
288
+ undefined;
289
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
290
+ this.innerApiCalls[methodName] = apiCall;
291
+ }
292
+ return this.identityMappingStoreServiceStub;
293
+ }
294
+ /**
295
+ * The DNS address for this API service.
296
+ * @deprecated Use the apiEndpoint method of the client instance.
297
+ * @returns {string} The DNS address for this service.
298
+ */
299
+ static get servicePath() {
300
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
301
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
302
+ }
303
+ return 'discoveryengine.googleapis.com';
304
+ }
305
+ /**
306
+ * The DNS address for this API service - same as servicePath.
307
+ * @deprecated Use the apiEndpoint method of the client instance.
308
+ * @returns {string} The DNS address for this service.
309
+ */
310
+ static get apiEndpoint() {
311
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
312
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
313
+ }
314
+ return 'discoveryengine.googleapis.com';
315
+ }
316
+ /**
317
+ * The DNS address for this API service.
318
+ * @returns {string} The DNS address for this service.
319
+ */
320
+ get apiEndpoint() {
321
+ return this._servicePath;
322
+ }
323
+ get universeDomain() {
324
+ return this._universeDomain;
325
+ }
326
+ /**
327
+ * The port for this API service.
328
+ * @returns {number} The default port for this service.
329
+ */
330
+ static get port() {
331
+ return 443;
332
+ }
333
+ /**
334
+ * The scopes needed to make gRPC calls for every method defined
335
+ * in this service.
336
+ * @returns {string[]} List of default scopes.
337
+ */
338
+ static get scopes() {
339
+ return [
340
+ 'https://www.googleapis.com/auth/cloud-platform'
341
+ ];
342
+ }
343
+ /**
344
+ * Return the project ID used by this class.
345
+ * @returns {Promise} A promise that resolves to string containing the project ID.
346
+ */
347
+ getProjectId(callback) {
348
+ if (callback) {
349
+ this.auth.getProjectId(callback);
350
+ return;
351
+ }
352
+ return this.auth.getProjectId();
353
+ }
354
+ createIdentityMappingStore(request, optionsOrCallback, callback) {
355
+ request = request || {};
356
+ let options;
357
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
358
+ callback = optionsOrCallback;
359
+ options = {};
360
+ }
361
+ else {
362
+ options = optionsOrCallback;
363
+ }
364
+ options = options || {};
365
+ options.otherArgs = options.otherArgs || {};
366
+ options.otherArgs.headers = options.otherArgs.headers || {};
367
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
368
+ 'parent': request.parent ?? '',
369
+ });
370
+ this.initialize().catch(err => { throw err; });
371
+ this._log.info('createIdentityMappingStore request %j', request);
372
+ const wrappedCallback = callback
373
+ ? (error, response, options, rawResponse) => {
374
+ this._log.info('createIdentityMappingStore response %j', response);
375
+ callback(error, response, options, rawResponse); // We verified callback above.
376
+ }
377
+ : undefined;
378
+ return this.innerApiCalls.createIdentityMappingStore(request, options, wrappedCallback)
379
+ ?.then(([response, options, rawResponse]) => {
380
+ this._log.info('createIdentityMappingStore response %j', response);
381
+ return [response, options, rawResponse];
382
+ }).catch((error) => {
383
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
384
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
385
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
386
+ }
387
+ throw error;
388
+ });
389
+ }
390
+ getIdentityMappingStore(request, optionsOrCallback, callback) {
391
+ request = request || {};
392
+ let options;
393
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
394
+ callback = optionsOrCallback;
395
+ options = {};
396
+ }
397
+ else {
398
+ options = optionsOrCallback;
399
+ }
400
+ options = options || {};
401
+ options.otherArgs = options.otherArgs || {};
402
+ options.otherArgs.headers = options.otherArgs.headers || {};
403
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
404
+ 'name': request.name ?? '',
405
+ });
406
+ this.initialize().catch(err => { throw err; });
407
+ this._log.info('getIdentityMappingStore request %j', request);
408
+ const wrappedCallback = callback
409
+ ? (error, response, options, rawResponse) => {
410
+ this._log.info('getIdentityMappingStore response %j', response);
411
+ callback(error, response, options, rawResponse); // We verified callback above.
412
+ }
413
+ : undefined;
414
+ return this.innerApiCalls.getIdentityMappingStore(request, options, wrappedCallback)
415
+ ?.then(([response, options, rawResponse]) => {
416
+ this._log.info('getIdentityMappingStore response %j', response);
417
+ return [response, options, rawResponse];
418
+ }).catch((error) => {
419
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
420
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
421
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
422
+ }
423
+ throw error;
424
+ });
425
+ }
426
+ deleteIdentityMappingStore(request, optionsOrCallback, callback) {
427
+ request = request || {};
428
+ let options;
429
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
430
+ callback = optionsOrCallback;
431
+ options = {};
432
+ }
433
+ else {
434
+ options = optionsOrCallback;
435
+ }
436
+ options = options || {};
437
+ options.otherArgs = options.otherArgs || {};
438
+ options.otherArgs.headers = options.otherArgs.headers || {};
439
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
440
+ 'name': request.name ?? '',
441
+ });
442
+ this.initialize().catch(err => { throw err; });
443
+ const wrappedCallback = callback
444
+ ? (error, response, rawResponse, _) => {
445
+ this._log.info('deleteIdentityMappingStore response %j', rawResponse);
446
+ callback(error, response, rawResponse, _); // We verified callback above.
447
+ }
448
+ : undefined;
449
+ this._log.info('deleteIdentityMappingStore request %j', request);
450
+ return this.innerApiCalls.deleteIdentityMappingStore(request, options, wrappedCallback)
451
+ ?.then(([response, rawResponse, _]) => {
452
+ this._log.info('deleteIdentityMappingStore response %j', rawResponse);
453
+ return [response, rawResponse, _];
454
+ });
455
+ }
456
+ /**
457
+ * Check the status of the long running operation returned by `deleteIdentityMappingStore()`.
458
+ * @param {String} name
459
+ * The operation name that will be passed.
460
+ * @returns {Promise} - The promise which resolves to an object.
461
+ * The decoded operation object has result and metadata field to get information from.
462
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
463
+ * for more details and examples.
464
+ * @example <caption>include:samples/generated/v1/identity_mapping_store_service.delete_identity_mapping_store.js</caption>
465
+ * region_tag:discoveryengine_v1_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_async
466
+ */
467
+ async checkDeleteIdentityMappingStoreProgress(name) {
468
+ this._log.info('deleteIdentityMappingStore long-running');
469
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
470
+ const [operation] = await this.operationsClient.getOperation(request);
471
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteIdentityMappingStore, this._gaxModule.createDefaultBackoffSettings());
472
+ return decodeOperation;
473
+ }
474
+ importIdentityMappings(request, optionsOrCallback, callback) {
475
+ request = request || {};
476
+ let options;
477
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
478
+ callback = optionsOrCallback;
479
+ options = {};
480
+ }
481
+ else {
482
+ options = optionsOrCallback;
483
+ }
484
+ options = options || {};
485
+ options.otherArgs = options.otherArgs || {};
486
+ options.otherArgs.headers = options.otherArgs.headers || {};
487
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
488
+ 'identity_mapping_store': request.identityMappingStore ?? '',
489
+ });
490
+ this.initialize().catch(err => { throw err; });
491
+ const wrappedCallback = callback
492
+ ? (error, response, rawResponse, _) => {
493
+ this._log.info('importIdentityMappings response %j', rawResponse);
494
+ callback(error, response, rawResponse, _); // We verified callback above.
495
+ }
496
+ : undefined;
497
+ this._log.info('importIdentityMappings request %j', request);
498
+ return this.innerApiCalls.importIdentityMappings(request, options, wrappedCallback)
499
+ ?.then(([response, rawResponse, _]) => {
500
+ this._log.info('importIdentityMappings response %j', rawResponse);
501
+ return [response, rawResponse, _];
502
+ });
503
+ }
504
+ /**
505
+ * Check the status of the long running operation returned by `importIdentityMappings()`.
506
+ * @param {String} name
507
+ * The operation name that will be passed.
508
+ * @returns {Promise} - The promise which resolves to an object.
509
+ * The decoded operation object has result and metadata field to get information from.
510
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
511
+ * for more details and examples.
512
+ * @example <caption>include:samples/generated/v1/identity_mapping_store_service.import_identity_mappings.js</caption>
513
+ * region_tag:discoveryengine_v1_generated_IdentityMappingStoreService_ImportIdentityMappings_async
514
+ */
515
+ async checkImportIdentityMappingsProgress(name) {
516
+ this._log.info('importIdentityMappings long-running');
517
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
518
+ const [operation] = await this.operationsClient.getOperation(request);
519
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importIdentityMappings, this._gaxModule.createDefaultBackoffSettings());
520
+ return decodeOperation;
521
+ }
522
+ purgeIdentityMappings(request, optionsOrCallback, callback) {
523
+ request = request || {};
524
+ let options;
525
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
526
+ callback = optionsOrCallback;
527
+ options = {};
528
+ }
529
+ else {
530
+ options = optionsOrCallback;
531
+ }
532
+ options = options || {};
533
+ options.otherArgs = options.otherArgs || {};
534
+ options.otherArgs.headers = options.otherArgs.headers || {};
535
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
536
+ 'identity_mapping_store': request.identityMappingStore ?? '',
537
+ });
538
+ this.initialize().catch(err => { throw err; });
539
+ const wrappedCallback = callback
540
+ ? (error, response, rawResponse, _) => {
541
+ this._log.info('purgeIdentityMappings response %j', rawResponse);
542
+ callback(error, response, rawResponse, _); // We verified callback above.
543
+ }
544
+ : undefined;
545
+ this._log.info('purgeIdentityMappings request %j', request);
546
+ return this.innerApiCalls.purgeIdentityMappings(request, options, wrappedCallback)
547
+ ?.then(([response, rawResponse, _]) => {
548
+ this._log.info('purgeIdentityMappings response %j', rawResponse);
549
+ return [response, rawResponse, _];
550
+ });
551
+ }
552
+ /**
553
+ * Check the status of the long running operation returned by `purgeIdentityMappings()`.
554
+ * @param {String} name
555
+ * The operation name that will be passed.
556
+ * @returns {Promise} - The promise which resolves to an object.
557
+ * The decoded operation object has result and metadata field to get information from.
558
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
559
+ * for more details and examples.
560
+ * @example <caption>include:samples/generated/v1/identity_mapping_store_service.purge_identity_mappings.js</caption>
561
+ * region_tag:discoveryengine_v1_generated_IdentityMappingStoreService_PurgeIdentityMappings_async
562
+ */
563
+ async checkPurgeIdentityMappingsProgress(name) {
564
+ this._log.info('purgeIdentityMappings long-running');
565
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
566
+ const [operation] = await this.operationsClient.getOperation(request);
567
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeIdentityMappings, this._gaxModule.createDefaultBackoffSettings());
568
+ return decodeOperation;
569
+ }
570
+ listIdentityMappings(request, optionsOrCallback, callback) {
571
+ request = request || {};
572
+ let options;
573
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
574
+ callback = optionsOrCallback;
575
+ options = {};
576
+ }
577
+ else {
578
+ options = optionsOrCallback;
579
+ }
580
+ options = options || {};
581
+ options.otherArgs = options.otherArgs || {};
582
+ options.otherArgs.headers = options.otherArgs.headers || {};
583
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
584
+ 'identity_mapping_store': request.identityMappingStore ?? '',
585
+ });
586
+ this.initialize().catch(err => { throw err; });
587
+ const wrappedCallback = callback
588
+ ? (error, values, nextPageRequest, rawResponse) => {
589
+ this._log.info('listIdentityMappings values %j', values);
590
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
591
+ }
592
+ : undefined;
593
+ this._log.info('listIdentityMappings request %j', request);
594
+ return this.innerApiCalls
595
+ .listIdentityMappings(request, options, wrappedCallback)
596
+ ?.then(([response, input, output]) => {
597
+ this._log.info('listIdentityMappings values %j', response);
598
+ return [response, input, output];
599
+ });
600
+ }
601
+ /**
602
+ * Equivalent to `listIdentityMappings`, but returns a NodeJS Stream object.
603
+ * @param {Object} request
604
+ * The request object that will be sent.
605
+ * @param {string} request.identityMappingStore
606
+ * Required. The name of the Identity Mapping Store to list Identity Mapping
607
+ * Entries in. Format:
608
+ * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
609
+ * @param {number} request.pageSize
610
+ * Maximum number of IdentityMappings to return. If unspecified, defaults
611
+ * to 2000. The maximum allowed value is 10000. Values above 10000 will be
612
+ * coerced to 10000.
613
+ * @param {string} request.pageToken
614
+ * A page token, received from a previous `ListIdentityMappings` call.
615
+ * Provide this to retrieve the subsequent page.
616
+ *
617
+ * When paginating, all other parameters provided to
618
+ * `ListIdentityMappings` must match the call that provided the page
619
+ * token.
620
+ * @param {object} [options]
621
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
622
+ * @returns {Stream}
623
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1.IdentityMappingEntry|IdentityMappingEntry} on 'data' event.
624
+ * The client library will perform auto-pagination by default: it will call the API as many
625
+ * times as needed. Note that it can affect your quota.
626
+ * We recommend using `listIdentityMappingsAsync()`
627
+ * method described below for async iteration which you can stop as needed.
628
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
629
+ * for more details and examples.
630
+ */
631
+ listIdentityMappingsStream(request, options) {
632
+ request = request || {};
633
+ options = options || {};
634
+ options.otherArgs = options.otherArgs || {};
635
+ options.otherArgs.headers = options.otherArgs.headers || {};
636
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
637
+ 'identity_mapping_store': request.identityMappingStore ?? '',
638
+ });
639
+ const defaultCallSettings = this._defaults['listIdentityMappings'];
640
+ const callSettings = defaultCallSettings.merge(options);
641
+ this.initialize().catch(err => { throw err; });
642
+ this._log.info('listIdentityMappings stream %j', request);
643
+ return this.descriptors.page.listIdentityMappings.createStream(this.innerApiCalls.listIdentityMappings, request, callSettings);
644
+ }
645
+ /**
646
+ * Equivalent to `listIdentityMappings`, but returns an iterable object.
647
+ *
648
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
649
+ * @param {Object} request
650
+ * The request object that will be sent.
651
+ * @param {string} request.identityMappingStore
652
+ * Required. The name of the Identity Mapping Store to list Identity Mapping
653
+ * Entries in. Format:
654
+ * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
655
+ * @param {number} request.pageSize
656
+ * Maximum number of IdentityMappings to return. If unspecified, defaults
657
+ * to 2000. The maximum allowed value is 10000. Values above 10000 will be
658
+ * coerced to 10000.
659
+ * @param {string} request.pageToken
660
+ * A page token, received from a previous `ListIdentityMappings` call.
661
+ * Provide this to retrieve the subsequent page.
662
+ *
663
+ * When paginating, all other parameters provided to
664
+ * `ListIdentityMappings` must match the call that provided the page
665
+ * token.
666
+ * @param {object} [options]
667
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
668
+ * @returns {Object}
669
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
670
+ * When you iterate the returned iterable, each element will be an object representing
671
+ * {@link protos.google.cloud.discoveryengine.v1.IdentityMappingEntry|IdentityMappingEntry}. The API will be called under the hood as needed, once per the page,
672
+ * so you can stop the iteration when you don't need more results.
673
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
674
+ * for more details and examples.
675
+ * @example <caption>include:samples/generated/v1/identity_mapping_store_service.list_identity_mappings.js</caption>
676
+ * region_tag:discoveryengine_v1_generated_IdentityMappingStoreService_ListIdentityMappings_async
677
+ */
678
+ listIdentityMappingsAsync(request, options) {
679
+ request = request || {};
680
+ options = options || {};
681
+ options.otherArgs = options.otherArgs || {};
682
+ options.otherArgs.headers = options.otherArgs.headers || {};
683
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
684
+ 'identity_mapping_store': request.identityMappingStore ?? '',
685
+ });
686
+ const defaultCallSettings = this._defaults['listIdentityMappings'];
687
+ const callSettings = defaultCallSettings.merge(options);
688
+ this.initialize().catch(err => { throw err; });
689
+ this._log.info('listIdentityMappings iterate %j', request);
690
+ return this.descriptors.page.listIdentityMappings.asyncIterate(this.innerApiCalls['listIdentityMappings'], request, callSettings);
691
+ }
692
+ listIdentityMappingStores(request, optionsOrCallback, callback) {
693
+ request = request || {};
694
+ let options;
695
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
696
+ callback = optionsOrCallback;
697
+ options = {};
698
+ }
699
+ else {
700
+ options = optionsOrCallback;
701
+ }
702
+ options = options || {};
703
+ options.otherArgs = options.otherArgs || {};
704
+ options.otherArgs.headers = options.otherArgs.headers || {};
705
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
706
+ 'parent': request.parent ?? '',
707
+ });
708
+ this.initialize().catch(err => { throw err; });
709
+ const wrappedCallback = callback
710
+ ? (error, values, nextPageRequest, rawResponse) => {
711
+ this._log.info('listIdentityMappingStores values %j', values);
712
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
713
+ }
714
+ : undefined;
715
+ this._log.info('listIdentityMappingStores request %j', request);
716
+ return this.innerApiCalls
717
+ .listIdentityMappingStores(request, options, wrappedCallback)
718
+ ?.then(([response, input, output]) => {
719
+ this._log.info('listIdentityMappingStores values %j', response);
720
+ return [response, input, output];
721
+ });
722
+ }
723
+ /**
724
+ * Equivalent to `listIdentityMappingStores`, but returns a NodeJS Stream object.
725
+ * @param {Object} request
726
+ * The request object that will be sent.
727
+ * @param {string} request.parent
728
+ * Required. The parent of the Identity Mapping Stores to list.
729
+ * Format:
730
+ * `projects/{project}/locations/{location}`.
731
+ * @param {number} request.pageSize
732
+ * Maximum number of IdentityMappingStores to return. If unspecified, defaults
733
+ * to 100. The maximum allowed value is 1000. Values above 1000 will be
734
+ * coerced to 1000.
735
+ * @param {string} request.pageToken
736
+ * A page token, received from a previous `ListIdentityMappingStores` call.
737
+ * Provide this to retrieve the subsequent page.
738
+ *
739
+ * When paginating, all other parameters provided to
740
+ * `ListIdentityMappingStores` must match the call that provided the page
741
+ * token.
742
+ * @param {object} [options]
743
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
744
+ * @returns {Stream}
745
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1.IdentityMappingStore|IdentityMappingStore} on 'data' event.
746
+ * The client library will perform auto-pagination by default: it will call the API as many
747
+ * times as needed. Note that it can affect your quota.
748
+ * We recommend using `listIdentityMappingStoresAsync()`
749
+ * method described below for async iteration which you can stop as needed.
750
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
751
+ * for more details and examples.
752
+ */
753
+ listIdentityMappingStoresStream(request, options) {
754
+ request = request || {};
755
+ options = options || {};
756
+ options.otherArgs = options.otherArgs || {};
757
+ options.otherArgs.headers = options.otherArgs.headers || {};
758
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
759
+ 'parent': request.parent ?? '',
760
+ });
761
+ const defaultCallSettings = this._defaults['listIdentityMappingStores'];
762
+ const callSettings = defaultCallSettings.merge(options);
763
+ this.initialize().catch(err => { throw err; });
764
+ this._log.info('listIdentityMappingStores stream %j', request);
765
+ return this.descriptors.page.listIdentityMappingStores.createStream(this.innerApiCalls.listIdentityMappingStores, request, callSettings);
766
+ }
767
+ /**
768
+ * Equivalent to `listIdentityMappingStores`, but returns an iterable object.
769
+ *
770
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
771
+ * @param {Object} request
772
+ * The request object that will be sent.
773
+ * @param {string} request.parent
774
+ * Required. The parent of the Identity Mapping Stores to list.
775
+ * Format:
776
+ * `projects/{project}/locations/{location}`.
777
+ * @param {number} request.pageSize
778
+ * Maximum number of IdentityMappingStores to return. If unspecified, defaults
779
+ * to 100. The maximum allowed value is 1000. Values above 1000 will be
780
+ * coerced to 1000.
781
+ * @param {string} request.pageToken
782
+ * A page token, received from a previous `ListIdentityMappingStores` call.
783
+ * Provide this to retrieve the subsequent page.
784
+ *
785
+ * When paginating, all other parameters provided to
786
+ * `ListIdentityMappingStores` must match the call that provided the page
787
+ * token.
788
+ * @param {object} [options]
789
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
790
+ * @returns {Object}
791
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
792
+ * When you iterate the returned iterable, each element will be an object representing
793
+ * {@link protos.google.cloud.discoveryengine.v1.IdentityMappingStore|IdentityMappingStore}. The API will be called under the hood as needed, once per the page,
794
+ * so you can stop the iteration when you don't need more results.
795
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
796
+ * for more details and examples.
797
+ * @example <caption>include:samples/generated/v1/identity_mapping_store_service.list_identity_mapping_stores.js</caption>
798
+ * region_tag:discoveryengine_v1_generated_IdentityMappingStoreService_ListIdentityMappingStores_async
799
+ */
800
+ listIdentityMappingStoresAsync(request, options) {
801
+ request = request || {};
802
+ options = options || {};
803
+ options.otherArgs = options.otherArgs || {};
804
+ options.otherArgs.headers = options.otherArgs.headers || {};
805
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
806
+ 'parent': request.parent ?? '',
807
+ });
808
+ const defaultCallSettings = this._defaults['listIdentityMappingStores'];
809
+ const callSettings = defaultCallSettings.merge(options);
810
+ this.initialize().catch(err => { throw err; });
811
+ this._log.info('listIdentityMappingStores iterate %j', request);
812
+ return this.descriptors.page.listIdentityMappingStores.asyncIterate(this.innerApiCalls['listIdentityMappingStores'], request, callSettings);
813
+ }
814
+ /**
815
+ * Gets information about a location.
816
+ *
817
+ * @param {Object} request
818
+ * The request object that will be sent.
819
+ * @param {string} request.name
820
+ * Resource name for the location.
821
+ * @param {object} [options]
822
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
823
+ * @returns {Promise} - The promise which resolves to an array.
824
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
825
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
826
+ * for more details and examples.
827
+ * @example
828
+ * ```
829
+ * const [response] = await client.getLocation(request);
830
+ * ```
831
+ */
832
+ getLocation(request, options, callback) {
833
+ return this.locationsClient.getLocation(request, options, callback);
834
+ }
835
+ /**
836
+ * Lists information about the supported locations for this service. Returns an iterable object.
837
+ *
838
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
839
+ * @param {Object} request
840
+ * The request object that will be sent.
841
+ * @param {string} request.name
842
+ * The resource that owns the locations collection, if applicable.
843
+ * @param {string} request.filter
844
+ * The standard list filter.
845
+ * @param {number} request.pageSize
846
+ * The standard list page size.
847
+ * @param {string} request.pageToken
848
+ * The standard list page token.
849
+ * @param {object} [options]
850
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
851
+ * @returns {Object}
852
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
853
+ * When you iterate the returned iterable, each element will be an object representing
854
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
855
+ * so you can stop the iteration when you don't need more results.
856
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
857
+ * for more details and examples.
858
+ * @example
859
+ * ```
860
+ * const iterable = client.listLocationsAsync(request);
861
+ * for await (const response of iterable) {
862
+ * // process response
863
+ * }
864
+ * ```
865
+ */
866
+ listLocationsAsync(request, options) {
867
+ return this.locationsClient.listLocationsAsync(request, options);
868
+ }
869
+ /**
870
+ * Gets the latest state of a long-running operation. Clients can use this
871
+ * method to poll the operation result at intervals as recommended by the API
872
+ * service.
873
+ *
874
+ * @param {Object} request - The request object that will be sent.
875
+ * @param {string} request.name - The name of the operation resource.
876
+ * @param {Object=} options
877
+ * Optional parameters. You can override the default settings for this call,
878
+ * e.g, timeout, retries, paginations, etc. See {@link
879
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
880
+ * for the details.
881
+ * @param {function(?Error, ?Object)=} callback
882
+ * The function which will be called with the result of the API call.
883
+ *
884
+ * The second parameter to the callback is an object representing
885
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
886
+ * @return {Promise} - The promise which resolves to an array.
887
+ * The first element of the array is an object representing
888
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
889
+ * The promise has a method named "cancel" which cancels the ongoing API call.
890
+ *
891
+ * @example
892
+ * ```
893
+ * const client = longrunning.operationsClient();
894
+ * const name = '';
895
+ * const [response] = await client.getOperation({name});
896
+ * // doThingsWith(response)
897
+ * ```
898
+ */
899
+ getOperation(request, optionsOrCallback, callback) {
900
+ let options;
901
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
902
+ callback = optionsOrCallback;
903
+ options = {};
904
+ }
905
+ else {
906
+ options = optionsOrCallback;
907
+ }
908
+ options = options || {};
909
+ options.otherArgs = options.otherArgs || {};
910
+ options.otherArgs.headers = options.otherArgs.headers || {};
911
+ options.otherArgs.headers['x-goog-request-params'] =
912
+ this._gaxModule.routingHeader.fromParams({
913
+ name: request.name ?? '',
914
+ });
915
+ return this.operationsClient.getOperation(request, options, callback);
916
+ }
917
+ /**
918
+ * Lists operations that match the specified filter in the request. If the
919
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
920
+ *
921
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
922
+ *
923
+ * @param {Object} request - The request object that will be sent.
924
+ * @param {string} request.name - The name of the operation collection.
925
+ * @param {string} request.filter - The standard list filter.
926
+ * @param {number=} request.pageSize -
927
+ * The maximum number of resources contained in the underlying API
928
+ * response. If page streaming is performed per-resource, this
929
+ * parameter does not affect the return value. If page streaming is
930
+ * performed per-page, this determines the maximum number of
931
+ * resources in a page.
932
+ * @param {Object=} options
933
+ * Optional parameters. You can override the default settings for this call,
934
+ * e.g, timeout, retries, paginations, etc. See {@link
935
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
936
+ * details.
937
+ * @returns {Object}
938
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
939
+ *
940
+ * @example
941
+ * ```
942
+ * const client = longrunning.operationsClient();
943
+ * for await (const response of client.listOperationsAsync(request));
944
+ * // doThingsWith(response)
945
+ * ```
946
+ */
947
+ listOperationsAsync(request, options) {
948
+ options = options || {};
949
+ options.otherArgs = options.otherArgs || {};
950
+ options.otherArgs.headers = options.otherArgs.headers || {};
951
+ options.otherArgs.headers['x-goog-request-params'] =
952
+ this._gaxModule.routingHeader.fromParams({
953
+ name: request.name ?? '',
954
+ });
955
+ return this.operationsClient.listOperationsAsync(request, options);
956
+ }
957
+ /**
958
+ * Starts asynchronous cancellation on a long-running operation. The server
959
+ * makes a best effort to cancel the operation, but success is not
960
+ * guaranteed. If the server doesn't support this method, it returns
961
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
962
+ * {@link Operations.GetOperation} or
963
+ * other methods to check whether the cancellation succeeded or whether the
964
+ * operation completed despite cancellation. On successful cancellation,
965
+ * the operation is not deleted; instead, it becomes an operation with
966
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
967
+ * 1, corresponding to `Code.CANCELLED`.
968
+ *
969
+ * @param {Object} request - The request object that will be sent.
970
+ * @param {string} request.name - The name of the operation resource to be cancelled.
971
+ * @param {Object=} options
972
+ * Optional parameters. You can override the default settings for this call,
973
+ * e.g, timeout, retries, paginations, etc. See {@link
974
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
975
+ * details.
976
+ * @param {function(?Error)=} callback
977
+ * The function which will be called with the result of the API call.
978
+ * @return {Promise} - The promise which resolves when API call finishes.
979
+ * The promise has a method named "cancel" which cancels the ongoing API
980
+ * call.
981
+ *
982
+ * @example
983
+ * ```
984
+ * const client = longrunning.operationsClient();
985
+ * await client.cancelOperation({name: ''});
986
+ * ```
987
+ */
988
+ cancelOperation(request, optionsOrCallback, callback) {
989
+ let options;
990
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
991
+ callback = optionsOrCallback;
992
+ options = {};
993
+ }
994
+ else {
995
+ options = optionsOrCallback;
996
+ }
997
+ options = options || {};
998
+ options.otherArgs = options.otherArgs || {};
999
+ options.otherArgs.headers = options.otherArgs.headers || {};
1000
+ options.otherArgs.headers['x-goog-request-params'] =
1001
+ this._gaxModule.routingHeader.fromParams({
1002
+ name: request.name ?? '',
1003
+ });
1004
+ return this.operationsClient.cancelOperation(request, options, callback);
1005
+ }
1006
+ /**
1007
+ * Deletes a long-running operation. This method indicates that the client is
1008
+ * no longer interested in the operation result. It does not cancel the
1009
+ * operation. If the server doesn't support this method, it returns
1010
+ * `google.rpc.Code.UNIMPLEMENTED`.
1011
+ *
1012
+ * @param {Object} request - The request object that will be sent.
1013
+ * @param {string} request.name - The name of the operation resource to be deleted.
1014
+ * @param {Object=} options
1015
+ * Optional parameters. You can override the default settings for this call,
1016
+ * e.g, timeout, retries, paginations, etc. See {@link
1017
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
1018
+ * for the details.
1019
+ * @param {function(?Error)=} callback
1020
+ * The function which will be called with the result of the API call.
1021
+ * @return {Promise} - The promise which resolves when API call finishes.
1022
+ * The promise has a method named "cancel" which cancels the ongoing API
1023
+ * call.
1024
+ *
1025
+ * @example
1026
+ * ```
1027
+ * const client = longrunning.operationsClient();
1028
+ * await client.deleteOperation({name: ''});
1029
+ * ```
1030
+ */
1031
+ deleteOperation(request, optionsOrCallback, callback) {
1032
+ let options;
1033
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1034
+ callback = optionsOrCallback;
1035
+ options = {};
1036
+ }
1037
+ else {
1038
+ options = optionsOrCallback;
1039
+ }
1040
+ options = options || {};
1041
+ options.otherArgs = options.otherArgs || {};
1042
+ options.otherArgs.headers = options.otherArgs.headers || {};
1043
+ options.otherArgs.headers['x-goog-request-params'] =
1044
+ this._gaxModule.routingHeader.fromParams({
1045
+ name: request.name ?? '',
1046
+ });
1047
+ return this.operationsClient.deleteOperation(request, options, callback);
1048
+ }
1049
+ // --------------------
1050
+ // -- Path templates --
1051
+ // --------------------
1052
+ /**
1053
+ * Return a fully-qualified assistAnswer resource name string.
1054
+ *
1055
+ * @param {string} project
1056
+ * @param {string} location
1057
+ * @param {string} collection
1058
+ * @param {string} engine
1059
+ * @param {string} session
1060
+ * @param {string} assist_answer
1061
+ * @returns {string} Resource name string.
1062
+ */
1063
+ assistAnswerPath(project, location, collection, engine, session, assistAnswer) {
1064
+ return this.pathTemplates.assistAnswerPathTemplate.render({
1065
+ project: project,
1066
+ location: location,
1067
+ collection: collection,
1068
+ engine: engine,
1069
+ session: session,
1070
+ assist_answer: assistAnswer,
1071
+ });
1072
+ }
1073
+ /**
1074
+ * Parse the project from AssistAnswer resource.
1075
+ *
1076
+ * @param {string} assistAnswerName
1077
+ * A fully-qualified path representing AssistAnswer resource.
1078
+ * @returns {string} A string representing the project.
1079
+ */
1080
+ matchProjectFromAssistAnswerName(assistAnswerName) {
1081
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).project;
1082
+ }
1083
+ /**
1084
+ * Parse the location from AssistAnswer resource.
1085
+ *
1086
+ * @param {string} assistAnswerName
1087
+ * A fully-qualified path representing AssistAnswer resource.
1088
+ * @returns {string} A string representing the location.
1089
+ */
1090
+ matchLocationFromAssistAnswerName(assistAnswerName) {
1091
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).location;
1092
+ }
1093
+ /**
1094
+ * Parse the collection from AssistAnswer resource.
1095
+ *
1096
+ * @param {string} assistAnswerName
1097
+ * A fully-qualified path representing AssistAnswer resource.
1098
+ * @returns {string} A string representing the collection.
1099
+ */
1100
+ matchCollectionFromAssistAnswerName(assistAnswerName) {
1101
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).collection;
1102
+ }
1103
+ /**
1104
+ * Parse the engine from AssistAnswer resource.
1105
+ *
1106
+ * @param {string} assistAnswerName
1107
+ * A fully-qualified path representing AssistAnswer resource.
1108
+ * @returns {string} A string representing the engine.
1109
+ */
1110
+ matchEngineFromAssistAnswerName(assistAnswerName) {
1111
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).engine;
1112
+ }
1113
+ /**
1114
+ * Parse the session from AssistAnswer resource.
1115
+ *
1116
+ * @param {string} assistAnswerName
1117
+ * A fully-qualified path representing AssistAnswer resource.
1118
+ * @returns {string} A string representing the session.
1119
+ */
1120
+ matchSessionFromAssistAnswerName(assistAnswerName) {
1121
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).session;
1122
+ }
1123
+ /**
1124
+ * Parse the assist_answer from AssistAnswer resource.
1125
+ *
1126
+ * @param {string} assistAnswerName
1127
+ * A fully-qualified path representing AssistAnswer resource.
1128
+ * @returns {string} A string representing the assist_answer.
1129
+ */
1130
+ matchAssistAnswerFromAssistAnswerName(assistAnswerName) {
1131
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).assist_answer;
1132
+ }
1133
+ /**
1134
+ * Return a fully-qualified assistant resource name string.
1135
+ *
1136
+ * @param {string} project
1137
+ * @param {string} location
1138
+ * @param {string} collection
1139
+ * @param {string} engine
1140
+ * @param {string} assistant
1141
+ * @returns {string} Resource name string.
1142
+ */
1143
+ assistantPath(project, location, collection, engine, assistant) {
1144
+ return this.pathTemplates.assistantPathTemplate.render({
1145
+ project: project,
1146
+ location: location,
1147
+ collection: collection,
1148
+ engine: engine,
1149
+ assistant: assistant,
1150
+ });
1151
+ }
1152
+ /**
1153
+ * Parse the project from Assistant resource.
1154
+ *
1155
+ * @param {string} assistantName
1156
+ * A fully-qualified path representing Assistant resource.
1157
+ * @returns {string} A string representing the project.
1158
+ */
1159
+ matchProjectFromAssistantName(assistantName) {
1160
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).project;
1161
+ }
1162
+ /**
1163
+ * Parse the location from Assistant resource.
1164
+ *
1165
+ * @param {string} assistantName
1166
+ * A fully-qualified path representing Assistant resource.
1167
+ * @returns {string} A string representing the location.
1168
+ */
1169
+ matchLocationFromAssistantName(assistantName) {
1170
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).location;
1171
+ }
1172
+ /**
1173
+ * Parse the collection from Assistant resource.
1174
+ *
1175
+ * @param {string} assistantName
1176
+ * A fully-qualified path representing Assistant resource.
1177
+ * @returns {string} A string representing the collection.
1178
+ */
1179
+ matchCollectionFromAssistantName(assistantName) {
1180
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).collection;
1181
+ }
1182
+ /**
1183
+ * Parse the engine from Assistant resource.
1184
+ *
1185
+ * @param {string} assistantName
1186
+ * A fully-qualified path representing Assistant resource.
1187
+ * @returns {string} A string representing the engine.
1188
+ */
1189
+ matchEngineFromAssistantName(assistantName) {
1190
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).engine;
1191
+ }
1192
+ /**
1193
+ * Parse the assistant from Assistant resource.
1194
+ *
1195
+ * @param {string} assistantName
1196
+ * A fully-qualified path representing Assistant resource.
1197
+ * @returns {string} A string representing the assistant.
1198
+ */
1199
+ matchAssistantFromAssistantName(assistantName) {
1200
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).assistant;
1201
+ }
1202
+ /**
1203
+ * Return a fully-qualified engine resource name string.
1204
+ *
1205
+ * @param {string} project
1206
+ * @param {string} location
1207
+ * @param {string} collection
1208
+ * @param {string} engine
1209
+ * @returns {string} Resource name string.
1210
+ */
1211
+ enginePath(project, location, collection, engine) {
1212
+ return this.pathTemplates.enginePathTemplate.render({
1213
+ project: project,
1214
+ location: location,
1215
+ collection: collection,
1216
+ engine: engine,
1217
+ });
1218
+ }
1219
+ /**
1220
+ * Parse the project from Engine resource.
1221
+ *
1222
+ * @param {string} engineName
1223
+ * A fully-qualified path representing Engine resource.
1224
+ * @returns {string} A string representing the project.
1225
+ */
1226
+ matchProjectFromEngineName(engineName) {
1227
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
1228
+ }
1229
+ /**
1230
+ * Parse the location from Engine resource.
1231
+ *
1232
+ * @param {string} engineName
1233
+ * A fully-qualified path representing Engine resource.
1234
+ * @returns {string} A string representing the location.
1235
+ */
1236
+ matchLocationFromEngineName(engineName) {
1237
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
1238
+ }
1239
+ /**
1240
+ * Parse the collection from Engine resource.
1241
+ *
1242
+ * @param {string} engineName
1243
+ * A fully-qualified path representing Engine resource.
1244
+ * @returns {string} A string representing the collection.
1245
+ */
1246
+ matchCollectionFromEngineName(engineName) {
1247
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
1248
+ }
1249
+ /**
1250
+ * Parse the engine from Engine resource.
1251
+ *
1252
+ * @param {string} engineName
1253
+ * A fully-qualified path representing Engine resource.
1254
+ * @returns {string} A string representing the engine.
1255
+ */
1256
+ matchEngineFromEngineName(engineName) {
1257
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1258
+ }
1259
+ /**
1260
+ * Return a fully-qualified identityMappingStore resource name string.
1261
+ *
1262
+ * @param {string} project
1263
+ * @param {string} location
1264
+ * @param {string} identity_mapping_store
1265
+ * @returns {string} Resource name string.
1266
+ */
1267
+ identityMappingStorePath(project, location, identityMappingStore) {
1268
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
1269
+ project: project,
1270
+ location: location,
1271
+ identity_mapping_store: identityMappingStore,
1272
+ });
1273
+ }
1274
+ /**
1275
+ * Parse the project from IdentityMappingStore resource.
1276
+ *
1277
+ * @param {string} identityMappingStoreName
1278
+ * A fully-qualified path representing IdentityMappingStore resource.
1279
+ * @returns {string} A string representing the project.
1280
+ */
1281
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
1282
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
1283
+ }
1284
+ /**
1285
+ * Parse the location from IdentityMappingStore resource.
1286
+ *
1287
+ * @param {string} identityMappingStoreName
1288
+ * A fully-qualified path representing IdentityMappingStore resource.
1289
+ * @returns {string} A string representing the location.
1290
+ */
1291
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
1292
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
1293
+ }
1294
+ /**
1295
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
1296
+ *
1297
+ * @param {string} identityMappingStoreName
1298
+ * A fully-qualified path representing IdentityMappingStore resource.
1299
+ * @returns {string} A string representing the identity_mapping_store.
1300
+ */
1301
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
1302
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
1303
+ }
1304
+ /**
1305
+ * Return a fully-qualified location resource name string.
1306
+ *
1307
+ * @param {string} project
1308
+ * @param {string} location
1309
+ * @returns {string} Resource name string.
1310
+ */
1311
+ locationPath(project, location) {
1312
+ return this.pathTemplates.locationPathTemplate.render({
1313
+ project: project,
1314
+ location: location,
1315
+ });
1316
+ }
1317
+ /**
1318
+ * Parse the project from Location resource.
1319
+ *
1320
+ * @param {string} locationName
1321
+ * A fully-qualified path representing Location resource.
1322
+ * @returns {string} A string representing the project.
1323
+ */
1324
+ matchProjectFromLocationName(locationName) {
1325
+ return this.pathTemplates.locationPathTemplate.match(locationName).project;
1326
+ }
1327
+ /**
1328
+ * Parse the location from Location resource.
1329
+ *
1330
+ * @param {string} locationName
1331
+ * A fully-qualified path representing Location resource.
1332
+ * @returns {string} A string representing the location.
1333
+ */
1334
+ matchLocationFromLocationName(locationName) {
1335
+ return this.pathTemplates.locationPathTemplate.match(locationName).location;
1336
+ }
1337
+ /**
1338
+ * Return a fully-qualified project resource name string.
1339
+ *
1340
+ * @param {string} project
1341
+ * @returns {string} Resource name string.
1342
+ */
1343
+ projectPath(project) {
1344
+ return this.pathTemplates.projectPathTemplate.render({
1345
+ project: project,
1346
+ });
1347
+ }
1348
+ /**
1349
+ * Parse the project from Project resource.
1350
+ *
1351
+ * @param {string} projectName
1352
+ * A fully-qualified path representing Project resource.
1353
+ * @returns {string} A string representing the project.
1354
+ */
1355
+ matchProjectFromProjectName(projectName) {
1356
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
1357
+ }
1358
+ /**
1359
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1360
+ *
1361
+ * @param {string} project
1362
+ * @param {string} location
1363
+ * @returns {string} Resource name string.
1364
+ */
1365
+ projectLocationCmekConfigPath(project, location) {
1366
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
1367
+ project: project,
1368
+ location: location,
1369
+ });
1370
+ }
1371
+ /**
1372
+ * Parse the project from ProjectLocationCmekConfig resource.
1373
+ *
1374
+ * @param {string} projectLocationCmekConfigName
1375
+ * A fully-qualified path representing project_location_cmekConfig resource.
1376
+ * @returns {string} A string representing the project.
1377
+ */
1378
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1379
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
1380
+ }
1381
+ /**
1382
+ * Parse the location from ProjectLocationCmekConfig resource.
1383
+ *
1384
+ * @param {string} projectLocationCmekConfigName
1385
+ * A fully-qualified path representing project_location_cmekConfig resource.
1386
+ * @returns {string} A string representing the location.
1387
+ */
1388
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1389
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
1390
+ }
1391
+ /**
1392
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1393
+ *
1394
+ * @param {string} project
1395
+ * @param {string} location
1396
+ * @param {string} cmek_config
1397
+ * @returns {string} Resource name string.
1398
+ */
1399
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
1400
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
1401
+ project: project,
1402
+ location: location,
1403
+ cmek_config: cmekConfig,
1404
+ });
1405
+ }
1406
+ /**
1407
+ * Parse the project from ProjectLocationCmekConfigs resource.
1408
+ *
1409
+ * @param {string} projectLocationCmekConfigsName
1410
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1411
+ * @returns {string} A string representing the project.
1412
+ */
1413
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1414
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
1415
+ }
1416
+ /**
1417
+ * Parse the location from ProjectLocationCmekConfigs resource.
1418
+ *
1419
+ * @param {string} projectLocationCmekConfigsName
1420
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1421
+ * @returns {string} A string representing the location.
1422
+ */
1423
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1424
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
1425
+ }
1426
+ /**
1427
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1428
+ *
1429
+ * @param {string} projectLocationCmekConfigsName
1430
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1431
+ * @returns {string} A string representing the cmek_config.
1432
+ */
1433
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1434
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
1435
+ }
1436
+ /**
1437
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1438
+ *
1439
+ * @param {string} project
1440
+ * @param {string} location
1441
+ * @param {string} collection
1442
+ * @param {string} data_store
1443
+ * @returns {string} Resource name string.
1444
+ */
1445
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
1446
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
1447
+ project: project,
1448
+ location: location,
1449
+ collection: collection,
1450
+ data_store: dataStore,
1451
+ });
1452
+ }
1453
+ /**
1454
+ * Parse the project from ProjectLocationCollectionDataStore resource.
1455
+ *
1456
+ * @param {string} projectLocationCollectionDataStoreName
1457
+ * A fully-qualified path representing project_location_collection_data_store resource.
1458
+ * @returns {string} A string representing the project.
1459
+ */
1460
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1461
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
1462
+ }
1463
+ /**
1464
+ * Parse the location from ProjectLocationCollectionDataStore resource.
1465
+ *
1466
+ * @param {string} projectLocationCollectionDataStoreName
1467
+ * A fully-qualified path representing project_location_collection_data_store resource.
1468
+ * @returns {string} A string representing the location.
1469
+ */
1470
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1471
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
1472
+ }
1473
+ /**
1474
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
1475
+ *
1476
+ * @param {string} projectLocationCollectionDataStoreName
1477
+ * A fully-qualified path representing project_location_collection_data_store resource.
1478
+ * @returns {string} A string representing the collection.
1479
+ */
1480
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1481
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
1482
+ }
1483
+ /**
1484
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
1485
+ *
1486
+ * @param {string} projectLocationCollectionDataStoreName
1487
+ * A fully-qualified path representing project_location_collection_data_store resource.
1488
+ * @returns {string} A string representing the data_store.
1489
+ */
1490
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1491
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
1492
+ }
1493
+ /**
1494
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
1495
+ *
1496
+ * @param {string} project
1497
+ * @param {string} location
1498
+ * @param {string} collection
1499
+ * @param {string} data_store
1500
+ * @param {string} branch
1501
+ * @param {string} document
1502
+ * @returns {string} Resource name string.
1503
+ */
1504
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
1505
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
1506
+ project: project,
1507
+ location: location,
1508
+ collection: collection,
1509
+ data_store: dataStore,
1510
+ branch: branch,
1511
+ document: document,
1512
+ });
1513
+ }
1514
+ /**
1515
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
1516
+ *
1517
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1518
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1519
+ * @returns {string} A string representing the project.
1520
+ */
1521
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1522
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
1523
+ }
1524
+ /**
1525
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
1526
+ *
1527
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1528
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1529
+ * @returns {string} A string representing the location.
1530
+ */
1531
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1532
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
1533
+ }
1534
+ /**
1535
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
1536
+ *
1537
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1538
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1539
+ * @returns {string} A string representing the collection.
1540
+ */
1541
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1542
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
1543
+ }
1544
+ /**
1545
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
1546
+ *
1547
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1548
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1549
+ * @returns {string} A string representing the data_store.
1550
+ */
1551
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1552
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
1553
+ }
1554
+ /**
1555
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
1556
+ *
1557
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1558
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1559
+ * @returns {string} A string representing the branch.
1560
+ */
1561
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1562
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
1563
+ }
1564
+ /**
1565
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
1566
+ *
1567
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1568
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1569
+ * @returns {string} A string representing the document.
1570
+ */
1571
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1572
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1573
+ }
1574
+ /**
1575
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
1576
+ *
1577
+ * @param {string} project
1578
+ * @param {string} location
1579
+ * @param {string} collection
1580
+ * @param {string} data_store
1581
+ * @param {string} branch
1582
+ * @param {string} document
1583
+ * @param {string} chunk
1584
+ * @returns {string} Resource name string.
1585
+ */
1586
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
1587
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
1588
+ project: project,
1589
+ location: location,
1590
+ collection: collection,
1591
+ data_store: dataStore,
1592
+ branch: branch,
1593
+ document: document,
1594
+ chunk: chunk,
1595
+ });
1596
+ }
1597
+ /**
1598
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1599
+ *
1600
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1601
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1602
+ * @returns {string} A string representing the project.
1603
+ */
1604
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1605
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1606
+ }
1607
+ /**
1608
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1609
+ *
1610
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1611
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1612
+ * @returns {string} A string representing the location.
1613
+ */
1614
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1615
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1616
+ }
1617
+ /**
1618
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1619
+ *
1620
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1621
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1622
+ * @returns {string} A string representing the collection.
1623
+ */
1624
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1625
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1626
+ }
1627
+ /**
1628
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1629
+ *
1630
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1631
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1632
+ * @returns {string} A string representing the data_store.
1633
+ */
1634
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1635
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1636
+ }
1637
+ /**
1638
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1639
+ *
1640
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1641
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1642
+ * @returns {string} A string representing the branch.
1643
+ */
1644
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1645
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1646
+ }
1647
+ /**
1648
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1649
+ *
1650
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1651
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1652
+ * @returns {string} A string representing the document.
1653
+ */
1654
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1655
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1656
+ }
1657
+ /**
1658
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1659
+ *
1660
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1661
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1662
+ * @returns {string} A string representing the chunk.
1663
+ */
1664
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1665
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1666
+ }
1667
+ /**
1668
+ * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1669
+ *
1670
+ * @param {string} project
1671
+ * @param {string} location
1672
+ * @param {string} collection
1673
+ * @param {string} data_store
1674
+ * @param {string} control
1675
+ * @returns {string} Resource name string.
1676
+ */
1677
+ projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
1678
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
1679
+ project: project,
1680
+ location: location,
1681
+ collection: collection,
1682
+ data_store: dataStore,
1683
+ control: control,
1684
+ });
1685
+ }
1686
+ /**
1687
+ * Parse the project from ProjectLocationCollectionDataStoreControl resource.
1688
+ *
1689
+ * @param {string} projectLocationCollectionDataStoreControlName
1690
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1691
+ * @returns {string} A string representing the project.
1692
+ */
1693
+ matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1694
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
1695
+ }
1696
+ /**
1697
+ * Parse the location from ProjectLocationCollectionDataStoreControl resource.
1698
+ *
1699
+ * @param {string} projectLocationCollectionDataStoreControlName
1700
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1701
+ * @returns {string} A string representing the location.
1702
+ */
1703
+ matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1704
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
1705
+ }
1706
+ /**
1707
+ * Parse the collection from ProjectLocationCollectionDataStoreControl resource.
1708
+ *
1709
+ * @param {string} projectLocationCollectionDataStoreControlName
1710
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1711
+ * @returns {string} A string representing the collection.
1712
+ */
1713
+ matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1714
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
1715
+ }
1716
+ /**
1717
+ * Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
1718
+ *
1719
+ * @param {string} projectLocationCollectionDataStoreControlName
1720
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1721
+ * @returns {string} A string representing the data_store.
1722
+ */
1723
+ matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1724
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
1725
+ }
1726
+ /**
1727
+ * Parse the control from ProjectLocationCollectionDataStoreControl resource.
1728
+ *
1729
+ * @param {string} projectLocationCollectionDataStoreControlName
1730
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1731
+ * @returns {string} A string representing the control.
1732
+ */
1733
+ matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1734
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
1735
+ }
1736
+ /**
1737
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1738
+ *
1739
+ * @param {string} project
1740
+ * @param {string} location
1741
+ * @param {string} collection
1742
+ * @param {string} data_store
1743
+ * @param {string} conversation
1744
+ * @returns {string} Resource name string.
1745
+ */
1746
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1747
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1748
+ project: project,
1749
+ location: location,
1750
+ collection: collection,
1751
+ data_store: dataStore,
1752
+ conversation: conversation,
1753
+ });
1754
+ }
1755
+ /**
1756
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1757
+ *
1758
+ * @param {string} projectLocationCollectionDataStoreConversationName
1759
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1760
+ * @returns {string} A string representing the project.
1761
+ */
1762
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1763
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1764
+ }
1765
+ /**
1766
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1767
+ *
1768
+ * @param {string} projectLocationCollectionDataStoreConversationName
1769
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1770
+ * @returns {string} A string representing the location.
1771
+ */
1772
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1773
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1774
+ }
1775
+ /**
1776
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1777
+ *
1778
+ * @param {string} projectLocationCollectionDataStoreConversationName
1779
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1780
+ * @returns {string} A string representing the collection.
1781
+ */
1782
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1783
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1784
+ }
1785
+ /**
1786
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1787
+ *
1788
+ * @param {string} projectLocationCollectionDataStoreConversationName
1789
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1790
+ * @returns {string} A string representing the data_store.
1791
+ */
1792
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1793
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1794
+ }
1795
+ /**
1796
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1797
+ *
1798
+ * @param {string} projectLocationCollectionDataStoreConversationName
1799
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1800
+ * @returns {string} A string representing the conversation.
1801
+ */
1802
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1803
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1804
+ }
1805
+ /**
1806
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
1807
+ *
1808
+ * @param {string} project
1809
+ * @param {string} location
1810
+ * @param {string} collection
1811
+ * @param {string} data_store
1812
+ * @param {string} custom_tuning_model
1813
+ * @returns {string} Resource name string.
1814
+ */
1815
+ projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
1816
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
1817
+ project: project,
1818
+ location: location,
1819
+ collection: collection,
1820
+ data_store: dataStore,
1821
+ custom_tuning_model: customTuningModel,
1822
+ });
1823
+ }
1824
+ /**
1825
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1826
+ *
1827
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1828
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1829
+ * @returns {string} A string representing the project.
1830
+ */
1831
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1832
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
1833
+ }
1834
+ /**
1835
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1836
+ *
1837
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1838
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1839
+ * @returns {string} A string representing the location.
1840
+ */
1841
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1842
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
1843
+ }
1844
+ /**
1845
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1846
+ *
1847
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1848
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1849
+ * @returns {string} A string representing the collection.
1850
+ */
1851
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1852
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
1853
+ }
1854
+ /**
1855
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1856
+ *
1857
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1858
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1859
+ * @returns {string} A string representing the data_store.
1860
+ */
1861
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1862
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
1863
+ }
1864
+ /**
1865
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1866
+ *
1867
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1868
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1869
+ * @returns {string} A string representing the custom_tuning_model.
1870
+ */
1871
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1872
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
1873
+ }
1874
+ /**
1875
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1876
+ *
1877
+ * @param {string} project
1878
+ * @param {string} location
1879
+ * @param {string} collection
1880
+ * @param {string} data_store
1881
+ * @returns {string} Resource name string.
1882
+ */
1883
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1884
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1885
+ project: project,
1886
+ location: location,
1887
+ collection: collection,
1888
+ data_store: dataStore,
1889
+ });
1890
+ }
1891
+ /**
1892
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1893
+ *
1894
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1895
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1896
+ * @returns {string} A string representing the project.
1897
+ */
1898
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1899
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1900
+ }
1901
+ /**
1902
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1903
+ *
1904
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1905
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1906
+ * @returns {string} A string representing the location.
1907
+ */
1908
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1909
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1910
+ }
1911
+ /**
1912
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1913
+ *
1914
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1915
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1916
+ * @returns {string} A string representing the collection.
1917
+ */
1918
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1919
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1920
+ }
1921
+ /**
1922
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1923
+ *
1924
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1925
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1926
+ * @returns {string} A string representing the data_store.
1927
+ */
1928
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1929
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1930
+ }
1931
+ /**
1932
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1933
+ *
1934
+ * @param {string} project
1935
+ * @param {string} location
1936
+ * @param {string} collection
1937
+ * @param {string} data_store
1938
+ * @param {string} schema
1939
+ * @returns {string} Resource name string.
1940
+ */
1941
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
1942
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
1943
+ project: project,
1944
+ location: location,
1945
+ collection: collection,
1946
+ data_store: dataStore,
1947
+ schema: schema,
1948
+ });
1949
+ }
1950
+ /**
1951
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
1952
+ *
1953
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1954
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1955
+ * @returns {string} A string representing the project.
1956
+ */
1957
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1958
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1959
+ }
1960
+ /**
1961
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1962
+ *
1963
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1964
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1965
+ * @returns {string} A string representing the location.
1966
+ */
1967
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1968
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1969
+ }
1970
+ /**
1971
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1972
+ *
1973
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1974
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1975
+ * @returns {string} A string representing the collection.
1976
+ */
1977
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1978
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1979
+ }
1980
+ /**
1981
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1982
+ *
1983
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1984
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1985
+ * @returns {string} A string representing the data_store.
1986
+ */
1987
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1988
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1989
+ }
1990
+ /**
1991
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1992
+ *
1993
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1994
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1995
+ * @returns {string} A string representing the schema.
1996
+ */
1997
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1998
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1999
+ }
2000
+ /**
2001
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
2002
+ *
2003
+ * @param {string} project
2004
+ * @param {string} location
2005
+ * @param {string} collection
2006
+ * @param {string} data_store
2007
+ * @param {string} serving_config
2008
+ * @returns {string} Resource name string.
2009
+ */
2010
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
2011
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
2012
+ project: project,
2013
+ location: location,
2014
+ collection: collection,
2015
+ data_store: dataStore,
2016
+ serving_config: servingConfig,
2017
+ });
2018
+ }
2019
+ /**
2020
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
2021
+ *
2022
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2023
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2024
+ * @returns {string} A string representing the project.
2025
+ */
2026
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2027
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
2028
+ }
2029
+ /**
2030
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
2031
+ *
2032
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2033
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2034
+ * @returns {string} A string representing the location.
2035
+ */
2036
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2037
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
2038
+ }
2039
+ /**
2040
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
2041
+ *
2042
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2043
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2044
+ * @returns {string} A string representing the collection.
2045
+ */
2046
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2047
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
2048
+ }
2049
+ /**
2050
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
2051
+ *
2052
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2053
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2054
+ * @returns {string} A string representing the data_store.
2055
+ */
2056
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2057
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
2058
+ }
2059
+ /**
2060
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
2061
+ *
2062
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
2063
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
2064
+ * @returns {string} A string representing the serving_config.
2065
+ */
2066
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
2067
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
2068
+ }
2069
+ /**
2070
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
2071
+ *
2072
+ * @param {string} project
2073
+ * @param {string} location
2074
+ * @param {string} collection
2075
+ * @param {string} data_store
2076
+ * @param {string} session
2077
+ * @param {string} answer
2078
+ * @returns {string} Resource name string.
2079
+ */
2080
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
2081
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
2082
+ project: project,
2083
+ location: location,
2084
+ collection: collection,
2085
+ data_store: dataStore,
2086
+ session: session,
2087
+ answer: answer,
2088
+ });
2089
+ }
2090
+ /**
2091
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
2092
+ *
2093
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2094
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2095
+ * @returns {string} A string representing the project.
2096
+ */
2097
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2098
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
2099
+ }
2100
+ /**
2101
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
2102
+ *
2103
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2104
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2105
+ * @returns {string} A string representing the location.
2106
+ */
2107
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2108
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
2109
+ }
2110
+ /**
2111
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
2112
+ *
2113
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2114
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2115
+ * @returns {string} A string representing the collection.
2116
+ */
2117
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2118
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
2119
+ }
2120
+ /**
2121
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
2122
+ *
2123
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2124
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2125
+ * @returns {string} A string representing the data_store.
2126
+ */
2127
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2128
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
2129
+ }
2130
+ /**
2131
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
2132
+ *
2133
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2134
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2135
+ * @returns {string} A string representing the session.
2136
+ */
2137
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2138
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
2139
+ }
2140
+ /**
2141
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
2142
+ *
2143
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2144
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2145
+ * @returns {string} A string representing the answer.
2146
+ */
2147
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2148
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
2149
+ }
2150
+ /**
2151
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
2152
+ *
2153
+ * @param {string} project
2154
+ * @param {string} location
2155
+ * @param {string} collection
2156
+ * @param {string} data_store
2157
+ * @param {string} session
2158
+ * @returns {string} Resource name string.
2159
+ */
2160
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
2161
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
2162
+ project: project,
2163
+ location: location,
2164
+ collection: collection,
2165
+ data_store: dataStore,
2166
+ session: session,
2167
+ });
2168
+ }
2169
+ /**
2170
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
2171
+ *
2172
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2173
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2174
+ * @returns {string} A string representing the project.
2175
+ */
2176
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2177
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
2178
+ }
2179
+ /**
2180
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
2181
+ *
2182
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2183
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2184
+ * @returns {string} A string representing the location.
2185
+ */
2186
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2187
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
2188
+ }
2189
+ /**
2190
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
2191
+ *
2192
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2193
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2194
+ * @returns {string} A string representing the collection.
2195
+ */
2196
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2197
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
2198
+ }
2199
+ /**
2200
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
2201
+ *
2202
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2203
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2204
+ * @returns {string} A string representing the data_store.
2205
+ */
2206
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2207
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
2208
+ }
2209
+ /**
2210
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
2211
+ *
2212
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2213
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2214
+ * @returns {string} A string representing the session.
2215
+ */
2216
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2217
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
2218
+ }
2219
+ /**
2220
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
2221
+ *
2222
+ * @param {string} project
2223
+ * @param {string} location
2224
+ * @param {string} collection
2225
+ * @param {string} data_store
2226
+ * @returns {string} Resource name string.
2227
+ */
2228
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
2229
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
2230
+ project: project,
2231
+ location: location,
2232
+ collection: collection,
2233
+ data_store: dataStore,
2234
+ });
2235
+ }
2236
+ /**
2237
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
2238
+ *
2239
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
2240
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
2241
+ * @returns {string} A string representing the project.
2242
+ */
2243
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
2244
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
2245
+ }
2246
+ /**
2247
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
2248
+ *
2249
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
2250
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
2251
+ * @returns {string} A string representing the location.
2252
+ */
2253
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
2254
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
2255
+ }
2256
+ /**
2257
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
2258
+ *
2259
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
2260
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
2261
+ * @returns {string} A string representing the collection.
2262
+ */
2263
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
2264
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
2265
+ }
2266
+ /**
2267
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
2268
+ *
2269
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
2270
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
2271
+ * @returns {string} A string representing the data_store.
2272
+ */
2273
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
2274
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
2275
+ }
2276
+ /**
2277
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
2278
+ *
2279
+ * @param {string} project
2280
+ * @param {string} location
2281
+ * @param {string} collection
2282
+ * @param {string} data_store
2283
+ * @param {string} sitemap
2284
+ * @returns {string} Resource name string.
2285
+ */
2286
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
2287
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
2288
+ project: project,
2289
+ location: location,
2290
+ collection: collection,
2291
+ data_store: dataStore,
2292
+ sitemap: sitemap,
2293
+ });
2294
+ }
2295
+ /**
2296
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2297
+ *
2298
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2299
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2300
+ * @returns {string} A string representing the project.
2301
+ */
2302
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2303
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
2304
+ }
2305
+ /**
2306
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2307
+ *
2308
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2309
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2310
+ * @returns {string} A string representing the location.
2311
+ */
2312
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2313
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
2314
+ }
2315
+ /**
2316
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2317
+ *
2318
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2319
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2320
+ * @returns {string} A string representing the collection.
2321
+ */
2322
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2323
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
2324
+ }
2325
+ /**
2326
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2327
+ *
2328
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2329
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2330
+ * @returns {string} A string representing the data_store.
2331
+ */
2332
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2333
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
2334
+ }
2335
+ /**
2336
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2337
+ *
2338
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2339
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2340
+ * @returns {string} A string representing the sitemap.
2341
+ */
2342
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2343
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
2344
+ }
2345
+ /**
2346
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
2347
+ *
2348
+ * @param {string} project
2349
+ * @param {string} location
2350
+ * @param {string} collection
2351
+ * @param {string} data_store
2352
+ * @param {string} target_site
2353
+ * @returns {string} Resource name string.
2354
+ */
2355
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
2356
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
2357
+ project: project,
2358
+ location: location,
2359
+ collection: collection,
2360
+ data_store: dataStore,
2361
+ target_site: targetSite,
2362
+ });
2363
+ }
2364
+ /**
2365
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2366
+ *
2367
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2368
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2369
+ * @returns {string} A string representing the project.
2370
+ */
2371
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2372
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
2373
+ }
2374
+ /**
2375
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2376
+ *
2377
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2378
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2379
+ * @returns {string} A string representing the location.
2380
+ */
2381
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2382
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
2383
+ }
2384
+ /**
2385
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2386
+ *
2387
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2388
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2389
+ * @returns {string} A string representing the collection.
2390
+ */
2391
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2392
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
2393
+ }
2394
+ /**
2395
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2396
+ *
2397
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2398
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2399
+ * @returns {string} A string representing the data_store.
2400
+ */
2401
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2402
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
2403
+ }
2404
+ /**
2405
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2406
+ *
2407
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2408
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2409
+ * @returns {string} A string representing the target_site.
2410
+ */
2411
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2412
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
2413
+ }
2414
+ /**
2415
+ * Return a fully-qualified projectLocationCollectionEngineControl resource name string.
2416
+ *
2417
+ * @param {string} project
2418
+ * @param {string} location
2419
+ * @param {string} collection
2420
+ * @param {string} engine
2421
+ * @param {string} control
2422
+ * @returns {string} Resource name string.
2423
+ */
2424
+ projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
2425
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
2426
+ project: project,
2427
+ location: location,
2428
+ collection: collection,
2429
+ engine: engine,
2430
+ control: control,
2431
+ });
2432
+ }
2433
+ /**
2434
+ * Parse the project from ProjectLocationCollectionEngineControl resource.
2435
+ *
2436
+ * @param {string} projectLocationCollectionEngineControlName
2437
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2438
+ * @returns {string} A string representing the project.
2439
+ */
2440
+ matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2441
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
2442
+ }
2443
+ /**
2444
+ * Parse the location from ProjectLocationCollectionEngineControl resource.
2445
+ *
2446
+ * @param {string} projectLocationCollectionEngineControlName
2447
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2448
+ * @returns {string} A string representing the location.
2449
+ */
2450
+ matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2451
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
2452
+ }
2453
+ /**
2454
+ * Parse the collection from ProjectLocationCollectionEngineControl resource.
2455
+ *
2456
+ * @param {string} projectLocationCollectionEngineControlName
2457
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2458
+ * @returns {string} A string representing the collection.
2459
+ */
2460
+ matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2461
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
2462
+ }
2463
+ /**
2464
+ * Parse the engine from ProjectLocationCollectionEngineControl resource.
2465
+ *
2466
+ * @param {string} projectLocationCollectionEngineControlName
2467
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2468
+ * @returns {string} A string representing the engine.
2469
+ */
2470
+ matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2471
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
2472
+ }
2473
+ /**
2474
+ * Parse the control from ProjectLocationCollectionEngineControl resource.
2475
+ *
2476
+ * @param {string} projectLocationCollectionEngineControlName
2477
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2478
+ * @returns {string} A string representing the control.
2479
+ */
2480
+ matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2481
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
2482
+ }
2483
+ /**
2484
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
2485
+ *
2486
+ * @param {string} project
2487
+ * @param {string} location
2488
+ * @param {string} collection
2489
+ * @param {string} engine
2490
+ * @param {string} conversation
2491
+ * @returns {string} Resource name string.
2492
+ */
2493
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
2494
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
2495
+ project: project,
2496
+ location: location,
2497
+ collection: collection,
2498
+ engine: engine,
2499
+ conversation: conversation,
2500
+ });
2501
+ }
2502
+ /**
2503
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
2504
+ *
2505
+ * @param {string} projectLocationCollectionEngineConversationName
2506
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2507
+ * @returns {string} A string representing the project.
2508
+ */
2509
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2510
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
2511
+ }
2512
+ /**
2513
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
2514
+ *
2515
+ * @param {string} projectLocationCollectionEngineConversationName
2516
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2517
+ * @returns {string} A string representing the location.
2518
+ */
2519
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2520
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
2521
+ }
2522
+ /**
2523
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
2524
+ *
2525
+ * @param {string} projectLocationCollectionEngineConversationName
2526
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2527
+ * @returns {string} A string representing the collection.
2528
+ */
2529
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2530
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
2531
+ }
2532
+ /**
2533
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
2534
+ *
2535
+ * @param {string} projectLocationCollectionEngineConversationName
2536
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2537
+ * @returns {string} A string representing the engine.
2538
+ */
2539
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2540
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
2541
+ }
2542
+ /**
2543
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
2544
+ *
2545
+ * @param {string} projectLocationCollectionEngineConversationName
2546
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2547
+ * @returns {string} A string representing the conversation.
2548
+ */
2549
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2550
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
2551
+ }
2552
+ /**
2553
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
2554
+ *
2555
+ * @param {string} project
2556
+ * @param {string} location
2557
+ * @param {string} collection
2558
+ * @param {string} engine
2559
+ * @param {string} serving_config
2560
+ * @returns {string} Resource name string.
2561
+ */
2562
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
2563
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
2564
+ project: project,
2565
+ location: location,
2566
+ collection: collection,
2567
+ engine: engine,
2568
+ serving_config: servingConfig,
2569
+ });
2570
+ }
2571
+ /**
2572
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
2573
+ *
2574
+ * @param {string} projectLocationCollectionEngineServingConfigName
2575
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2576
+ * @returns {string} A string representing the project.
2577
+ */
2578
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2579
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
2580
+ }
2581
+ /**
2582
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
2583
+ *
2584
+ * @param {string} projectLocationCollectionEngineServingConfigName
2585
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2586
+ * @returns {string} A string representing the location.
2587
+ */
2588
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2589
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
2590
+ }
2591
+ /**
2592
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
2593
+ *
2594
+ * @param {string} projectLocationCollectionEngineServingConfigName
2595
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2596
+ * @returns {string} A string representing the collection.
2597
+ */
2598
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2599
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
2600
+ }
2601
+ /**
2602
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
2603
+ *
2604
+ * @param {string} projectLocationCollectionEngineServingConfigName
2605
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2606
+ * @returns {string} A string representing the engine.
2607
+ */
2608
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2609
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
2610
+ }
2611
+ /**
2612
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
2613
+ *
2614
+ * @param {string} projectLocationCollectionEngineServingConfigName
2615
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2616
+ * @returns {string} A string representing the serving_config.
2617
+ */
2618
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2619
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2620
+ }
2621
+ /**
2622
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2623
+ *
2624
+ * @param {string} project
2625
+ * @param {string} location
2626
+ * @param {string} collection
2627
+ * @param {string} engine
2628
+ * @param {string} session
2629
+ * @param {string} answer
2630
+ * @returns {string} Resource name string.
2631
+ */
2632
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2633
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2634
+ project: project,
2635
+ location: location,
2636
+ collection: collection,
2637
+ engine: engine,
2638
+ session: session,
2639
+ answer: answer,
2640
+ });
2641
+ }
2642
+ /**
2643
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2644
+ *
2645
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2646
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2647
+ * @returns {string} A string representing the project.
2648
+ */
2649
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2650
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2651
+ }
2652
+ /**
2653
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2654
+ *
2655
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2656
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2657
+ * @returns {string} A string representing the location.
2658
+ */
2659
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2660
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2661
+ }
2662
+ /**
2663
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2664
+ *
2665
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2666
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2667
+ * @returns {string} A string representing the collection.
2668
+ */
2669
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2670
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2671
+ }
2672
+ /**
2673
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2674
+ *
2675
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2676
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2677
+ * @returns {string} A string representing the engine.
2678
+ */
2679
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2680
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2681
+ }
2682
+ /**
2683
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2684
+ *
2685
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2686
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2687
+ * @returns {string} A string representing the session.
2688
+ */
2689
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2690
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2691
+ }
2692
+ /**
2693
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2694
+ *
2695
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2696
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2697
+ * @returns {string} A string representing the answer.
2698
+ */
2699
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2700
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2701
+ }
2702
+ /**
2703
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
2704
+ *
2705
+ * @param {string} project
2706
+ * @param {string} location
2707
+ * @param {string} collection
2708
+ * @param {string} engine
2709
+ * @param {string} session
2710
+ * @returns {string} Resource name string.
2711
+ */
2712
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
2713
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
2714
+ project: project,
2715
+ location: location,
2716
+ collection: collection,
2717
+ engine: engine,
2718
+ session: session,
2719
+ });
2720
+ }
2721
+ /**
2722
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
2723
+ *
2724
+ * @param {string} projectLocationCollectionEngineSessionsName
2725
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2726
+ * @returns {string} A string representing the project.
2727
+ */
2728
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2729
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
2730
+ }
2731
+ /**
2732
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
2733
+ *
2734
+ * @param {string} projectLocationCollectionEngineSessionsName
2735
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2736
+ * @returns {string} A string representing the location.
2737
+ */
2738
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2739
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
2740
+ }
2741
+ /**
2742
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
2743
+ *
2744
+ * @param {string} projectLocationCollectionEngineSessionsName
2745
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2746
+ * @returns {string} A string representing the collection.
2747
+ */
2748
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2749
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
2750
+ }
2751
+ /**
2752
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
2753
+ *
2754
+ * @param {string} projectLocationCollectionEngineSessionsName
2755
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2756
+ * @returns {string} A string representing the engine.
2757
+ */
2758
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2759
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
2760
+ }
2761
+ /**
2762
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
2763
+ *
2764
+ * @param {string} projectLocationCollectionEngineSessionsName
2765
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2766
+ * @returns {string} A string representing the session.
2767
+ */
2768
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2769
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
2770
+ }
2771
+ /**
2772
+ * Return a fully-qualified projectLocationDataStore resource name string.
2773
+ *
2774
+ * @param {string} project
2775
+ * @param {string} location
2776
+ * @param {string} data_store
2777
+ * @returns {string} Resource name string.
2778
+ */
2779
+ projectLocationDataStorePath(project, location, dataStore) {
2780
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
2781
+ project: project,
2782
+ location: location,
2783
+ data_store: dataStore,
2784
+ });
2785
+ }
2786
+ /**
2787
+ * Parse the project from ProjectLocationDataStore resource.
2788
+ *
2789
+ * @param {string} projectLocationDataStoreName
2790
+ * A fully-qualified path representing project_location_data_store resource.
2791
+ * @returns {string} A string representing the project.
2792
+ */
2793
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2794
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
2795
+ }
2796
+ /**
2797
+ * Parse the location from ProjectLocationDataStore resource.
2798
+ *
2799
+ * @param {string} projectLocationDataStoreName
2800
+ * A fully-qualified path representing project_location_data_store resource.
2801
+ * @returns {string} A string representing the location.
2802
+ */
2803
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2804
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
2805
+ }
2806
+ /**
2807
+ * Parse the data_store from ProjectLocationDataStore resource.
2808
+ *
2809
+ * @param {string} projectLocationDataStoreName
2810
+ * A fully-qualified path representing project_location_data_store resource.
2811
+ * @returns {string} A string representing the data_store.
2812
+ */
2813
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2814
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
2815
+ }
2816
+ /**
2817
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
2818
+ *
2819
+ * @param {string} project
2820
+ * @param {string} location
2821
+ * @param {string} data_store
2822
+ * @param {string} branch
2823
+ * @param {string} document
2824
+ * @returns {string} Resource name string.
2825
+ */
2826
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
2827
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
2828
+ project: project,
2829
+ location: location,
2830
+ data_store: dataStore,
2831
+ branch: branch,
2832
+ document: document,
2833
+ });
2834
+ }
2835
+ /**
2836
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
2837
+ *
2838
+ * @param {string} projectLocationDataStoreBranchDocumentName
2839
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2840
+ * @returns {string} A string representing the project.
2841
+ */
2842
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2843
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
2844
+ }
2845
+ /**
2846
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
2847
+ *
2848
+ * @param {string} projectLocationDataStoreBranchDocumentName
2849
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2850
+ * @returns {string} A string representing the location.
2851
+ */
2852
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2853
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
2854
+ }
2855
+ /**
2856
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
2857
+ *
2858
+ * @param {string} projectLocationDataStoreBranchDocumentName
2859
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2860
+ * @returns {string} A string representing the data_store.
2861
+ */
2862
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2863
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
2864
+ }
2865
+ /**
2866
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
2867
+ *
2868
+ * @param {string} projectLocationDataStoreBranchDocumentName
2869
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2870
+ * @returns {string} A string representing the branch.
2871
+ */
2872
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2873
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
2874
+ }
2875
+ /**
2876
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
2877
+ *
2878
+ * @param {string} projectLocationDataStoreBranchDocumentName
2879
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2880
+ * @returns {string} A string representing the document.
2881
+ */
2882
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2883
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2884
+ }
2885
+ /**
2886
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2887
+ *
2888
+ * @param {string} project
2889
+ * @param {string} location
2890
+ * @param {string} data_store
2891
+ * @param {string} branch
2892
+ * @param {string} document
2893
+ * @param {string} chunk
2894
+ * @returns {string} Resource name string.
2895
+ */
2896
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2897
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2898
+ project: project,
2899
+ location: location,
2900
+ data_store: dataStore,
2901
+ branch: branch,
2902
+ document: document,
2903
+ chunk: chunk,
2904
+ });
2905
+ }
2906
+ /**
2907
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2908
+ *
2909
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2910
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2911
+ * @returns {string} A string representing the project.
2912
+ */
2913
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2914
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2915
+ }
2916
+ /**
2917
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2918
+ *
2919
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2920
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2921
+ * @returns {string} A string representing the location.
2922
+ */
2923
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2924
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2925
+ }
2926
+ /**
2927
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2928
+ *
2929
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2930
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2931
+ * @returns {string} A string representing the data_store.
2932
+ */
2933
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2934
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2935
+ }
2936
+ /**
2937
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2938
+ *
2939
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2940
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2941
+ * @returns {string} A string representing the branch.
2942
+ */
2943
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2944
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2945
+ }
2946
+ /**
2947
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2948
+ *
2949
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2950
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2951
+ * @returns {string} A string representing the document.
2952
+ */
2953
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2954
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2955
+ }
2956
+ /**
2957
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2958
+ *
2959
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2960
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2961
+ * @returns {string} A string representing the chunk.
2962
+ */
2963
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2964
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2965
+ }
2966
+ /**
2967
+ * Return a fully-qualified projectLocationDataStoreControl resource name string.
2968
+ *
2969
+ * @param {string} project
2970
+ * @param {string} location
2971
+ * @param {string} data_store
2972
+ * @param {string} control
2973
+ * @returns {string} Resource name string.
2974
+ */
2975
+ projectLocationDataStoreControlPath(project, location, dataStore, control) {
2976
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
2977
+ project: project,
2978
+ location: location,
2979
+ data_store: dataStore,
2980
+ control: control,
2981
+ });
2982
+ }
2983
+ /**
2984
+ * Parse the project from ProjectLocationDataStoreControl resource.
2985
+ *
2986
+ * @param {string} projectLocationDataStoreControlName
2987
+ * A fully-qualified path representing project_location_data_store_control resource.
2988
+ * @returns {string} A string representing the project.
2989
+ */
2990
+ matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2991
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
2992
+ }
2993
+ /**
2994
+ * Parse the location from ProjectLocationDataStoreControl resource.
2995
+ *
2996
+ * @param {string} projectLocationDataStoreControlName
2997
+ * A fully-qualified path representing project_location_data_store_control resource.
2998
+ * @returns {string} A string representing the location.
2999
+ */
3000
+ matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
3001
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
3002
+ }
3003
+ /**
3004
+ * Parse the data_store from ProjectLocationDataStoreControl resource.
3005
+ *
3006
+ * @param {string} projectLocationDataStoreControlName
3007
+ * A fully-qualified path representing project_location_data_store_control resource.
3008
+ * @returns {string} A string representing the data_store.
3009
+ */
3010
+ matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
3011
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
3012
+ }
3013
+ /**
3014
+ * Parse the control from ProjectLocationDataStoreControl resource.
3015
+ *
3016
+ * @param {string} projectLocationDataStoreControlName
3017
+ * A fully-qualified path representing project_location_data_store_control resource.
3018
+ * @returns {string} A string representing the control.
3019
+ */
3020
+ matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
3021
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
3022
+ }
3023
+ /**
3024
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
3025
+ *
3026
+ * @param {string} project
3027
+ * @param {string} location
3028
+ * @param {string} data_store
3029
+ * @param {string} conversation
3030
+ * @returns {string} Resource name string.
3031
+ */
3032
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
3033
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
3034
+ project: project,
3035
+ location: location,
3036
+ data_store: dataStore,
3037
+ conversation: conversation,
3038
+ });
3039
+ }
3040
+ /**
3041
+ * Parse the project from ProjectLocationDataStoreConversation resource.
3042
+ *
3043
+ * @param {string} projectLocationDataStoreConversationName
3044
+ * A fully-qualified path representing project_location_data_store_conversation resource.
3045
+ * @returns {string} A string representing the project.
3046
+ */
3047
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
3048
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
3049
+ }
3050
+ /**
3051
+ * Parse the location from ProjectLocationDataStoreConversation resource.
3052
+ *
3053
+ * @param {string} projectLocationDataStoreConversationName
3054
+ * A fully-qualified path representing project_location_data_store_conversation resource.
3055
+ * @returns {string} A string representing the location.
3056
+ */
3057
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
3058
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
3059
+ }
3060
+ /**
3061
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
3062
+ *
3063
+ * @param {string} projectLocationDataStoreConversationName
3064
+ * A fully-qualified path representing project_location_data_store_conversation resource.
3065
+ * @returns {string} A string representing the data_store.
3066
+ */
3067
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
3068
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
3069
+ }
3070
+ /**
3071
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
3072
+ *
3073
+ * @param {string} projectLocationDataStoreConversationName
3074
+ * A fully-qualified path representing project_location_data_store_conversation resource.
3075
+ * @returns {string} A string representing the conversation.
3076
+ */
3077
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
3078
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
3079
+ }
3080
+ /**
3081
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
3082
+ *
3083
+ * @param {string} project
3084
+ * @param {string} location
3085
+ * @param {string} data_store
3086
+ * @param {string} custom_tuning_model
3087
+ * @returns {string} Resource name string.
3088
+ */
3089
+ projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
3090
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
3091
+ project: project,
3092
+ location: location,
3093
+ data_store: dataStore,
3094
+ custom_tuning_model: customTuningModel,
3095
+ });
3096
+ }
3097
+ /**
3098
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
3099
+ *
3100
+ * @param {string} projectLocationDataStoreCustomTuningModelName
3101
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
3102
+ * @returns {string} A string representing the project.
3103
+ */
3104
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
3105
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
3106
+ }
3107
+ /**
3108
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
3109
+ *
3110
+ * @param {string} projectLocationDataStoreCustomTuningModelName
3111
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
3112
+ * @returns {string} A string representing the location.
3113
+ */
3114
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
3115
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
3116
+ }
3117
+ /**
3118
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
3119
+ *
3120
+ * @param {string} projectLocationDataStoreCustomTuningModelName
3121
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
3122
+ * @returns {string} A string representing the data_store.
3123
+ */
3124
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
3125
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
3126
+ }
3127
+ /**
3128
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
3129
+ *
3130
+ * @param {string} projectLocationDataStoreCustomTuningModelName
3131
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
3132
+ * @returns {string} A string representing the custom_tuning_model.
3133
+ */
3134
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
3135
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
3136
+ }
3137
+ /**
3138
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
3139
+ *
3140
+ * @param {string} project
3141
+ * @param {string} location
3142
+ * @param {string} data_store
3143
+ * @returns {string} Resource name string.
3144
+ */
3145
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
3146
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
3147
+ project: project,
3148
+ location: location,
3149
+ data_store: dataStore,
3150
+ });
3151
+ }
3152
+ /**
3153
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
3154
+ *
3155
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
3156
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
3157
+ * @returns {string} A string representing the project.
3158
+ */
3159
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
3160
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
3161
+ }
3162
+ /**
3163
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
3164
+ *
3165
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
3166
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
3167
+ * @returns {string} A string representing the location.
3168
+ */
3169
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
3170
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
3171
+ }
3172
+ /**
3173
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
3174
+ *
3175
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
3176
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
3177
+ * @returns {string} A string representing the data_store.
3178
+ */
3179
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
3180
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
3181
+ }
3182
+ /**
3183
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
3184
+ *
3185
+ * @param {string} project
3186
+ * @param {string} location
3187
+ * @param {string} data_store
3188
+ * @param {string} schema
3189
+ * @returns {string} Resource name string.
3190
+ */
3191
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
3192
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
3193
+ project: project,
3194
+ location: location,
3195
+ data_store: dataStore,
3196
+ schema: schema,
3197
+ });
3198
+ }
3199
+ /**
3200
+ * Parse the project from ProjectLocationDataStoreSchema resource.
3201
+ *
3202
+ * @param {string} projectLocationDataStoreSchemaName
3203
+ * A fully-qualified path representing project_location_data_store_schema resource.
3204
+ * @returns {string} A string representing the project.
3205
+ */
3206
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
3207
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
3208
+ }
3209
+ /**
3210
+ * Parse the location from ProjectLocationDataStoreSchema resource.
3211
+ *
3212
+ * @param {string} projectLocationDataStoreSchemaName
3213
+ * A fully-qualified path representing project_location_data_store_schema resource.
3214
+ * @returns {string} A string representing the location.
3215
+ */
3216
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
3217
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
3218
+ }
3219
+ /**
3220
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
3221
+ *
3222
+ * @param {string} projectLocationDataStoreSchemaName
3223
+ * A fully-qualified path representing project_location_data_store_schema resource.
3224
+ * @returns {string} A string representing the data_store.
3225
+ */
3226
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
3227
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
3228
+ }
3229
+ /**
3230
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
3231
+ *
3232
+ * @param {string} projectLocationDataStoreSchemaName
3233
+ * A fully-qualified path representing project_location_data_store_schema resource.
3234
+ * @returns {string} A string representing the schema.
3235
+ */
3236
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
3237
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
3238
+ }
3239
+ /**
3240
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
3241
+ *
3242
+ * @param {string} project
3243
+ * @param {string} location
3244
+ * @param {string} data_store
3245
+ * @param {string} serving_config
3246
+ * @returns {string} Resource name string.
3247
+ */
3248
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
3249
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
3250
+ project: project,
3251
+ location: location,
3252
+ data_store: dataStore,
3253
+ serving_config: servingConfig,
3254
+ });
3255
+ }
3256
+ /**
3257
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
3258
+ *
3259
+ * @param {string} projectLocationDataStoreServingConfigName
3260
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3261
+ * @returns {string} A string representing the project.
3262
+ */
3263
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3264
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
3265
+ }
3266
+ /**
3267
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
3268
+ *
3269
+ * @param {string} projectLocationDataStoreServingConfigName
3270
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3271
+ * @returns {string} A string representing the location.
3272
+ */
3273
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3274
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
3275
+ }
3276
+ /**
3277
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
3278
+ *
3279
+ * @param {string} projectLocationDataStoreServingConfigName
3280
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3281
+ * @returns {string} A string representing the data_store.
3282
+ */
3283
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3284
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
3285
+ }
3286
+ /**
3287
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
3288
+ *
3289
+ * @param {string} projectLocationDataStoreServingConfigName
3290
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3291
+ * @returns {string} A string representing the serving_config.
3292
+ */
3293
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3294
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
3295
+ }
3296
+ /**
3297
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
3298
+ *
3299
+ * @param {string} project
3300
+ * @param {string} location
3301
+ * @param {string} data_store
3302
+ * @param {string} session
3303
+ * @param {string} answer
3304
+ * @returns {string} Resource name string.
3305
+ */
3306
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
3307
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
3308
+ project: project,
3309
+ location: location,
3310
+ data_store: dataStore,
3311
+ session: session,
3312
+ answer: answer,
3313
+ });
3314
+ }
3315
+ /**
3316
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
3317
+ *
3318
+ * @param {string} projectLocationDataStoreSessionAnswerName
3319
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3320
+ * @returns {string} A string representing the project.
3321
+ */
3322
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3323
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
3324
+ }
3325
+ /**
3326
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
3327
+ *
3328
+ * @param {string} projectLocationDataStoreSessionAnswerName
3329
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3330
+ * @returns {string} A string representing the location.
3331
+ */
3332
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3333
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
3334
+ }
3335
+ /**
3336
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
3337
+ *
3338
+ * @param {string} projectLocationDataStoreSessionAnswerName
3339
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3340
+ * @returns {string} A string representing the data_store.
3341
+ */
3342
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3343
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
3344
+ }
3345
+ /**
3346
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
3347
+ *
3348
+ * @param {string} projectLocationDataStoreSessionAnswerName
3349
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3350
+ * @returns {string} A string representing the session.
3351
+ */
3352
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3353
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
3354
+ }
3355
+ /**
3356
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
3357
+ *
3358
+ * @param {string} projectLocationDataStoreSessionAnswerName
3359
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3360
+ * @returns {string} A string representing the answer.
3361
+ */
3362
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3363
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
3364
+ }
3365
+ /**
3366
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
3367
+ *
3368
+ * @param {string} project
3369
+ * @param {string} location
3370
+ * @param {string} data_store
3371
+ * @param {string} session
3372
+ * @returns {string} Resource name string.
3373
+ */
3374
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
3375
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
3376
+ project: project,
3377
+ location: location,
3378
+ data_store: dataStore,
3379
+ session: session,
3380
+ });
3381
+ }
3382
+ /**
3383
+ * Parse the project from ProjectLocationDataStoreSessions resource.
3384
+ *
3385
+ * @param {string} projectLocationDataStoreSessionsName
3386
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3387
+ * @returns {string} A string representing the project.
3388
+ */
3389
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3390
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
3391
+ }
3392
+ /**
3393
+ * Parse the location from ProjectLocationDataStoreSessions resource.
3394
+ *
3395
+ * @param {string} projectLocationDataStoreSessionsName
3396
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3397
+ * @returns {string} A string representing the location.
3398
+ */
3399
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3400
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
3401
+ }
3402
+ /**
3403
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
3404
+ *
3405
+ * @param {string} projectLocationDataStoreSessionsName
3406
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3407
+ * @returns {string} A string representing the data_store.
3408
+ */
3409
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3410
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
3411
+ }
3412
+ /**
3413
+ * Parse the session from ProjectLocationDataStoreSessions resource.
3414
+ *
3415
+ * @param {string} projectLocationDataStoreSessionsName
3416
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3417
+ * @returns {string} A string representing the session.
3418
+ */
3419
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3420
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
3421
+ }
3422
+ /**
3423
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
3424
+ *
3425
+ * @param {string} project
3426
+ * @param {string} location
3427
+ * @param {string} data_store
3428
+ * @returns {string} Resource name string.
3429
+ */
3430
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
3431
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
3432
+ project: project,
3433
+ location: location,
3434
+ data_store: dataStore,
3435
+ });
3436
+ }
3437
+ /**
3438
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
3439
+ *
3440
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
3441
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
3442
+ * @returns {string} A string representing the project.
3443
+ */
3444
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3445
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
3446
+ }
3447
+ /**
3448
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
3449
+ *
3450
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
3451
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
3452
+ * @returns {string} A string representing the location.
3453
+ */
3454
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3455
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
3456
+ }
3457
+ /**
3458
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
3459
+ *
3460
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
3461
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
3462
+ * @returns {string} A string representing the data_store.
3463
+ */
3464
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3465
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
3466
+ }
3467
+ /**
3468
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
3469
+ *
3470
+ * @param {string} project
3471
+ * @param {string} location
3472
+ * @param {string} data_store
3473
+ * @param {string} sitemap
3474
+ * @returns {string} Resource name string.
3475
+ */
3476
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
3477
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
3478
+ project: project,
3479
+ location: location,
3480
+ data_store: dataStore,
3481
+ sitemap: sitemap,
3482
+ });
3483
+ }
3484
+ /**
3485
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3486
+ *
3487
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3488
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3489
+ * @returns {string} A string representing the project.
3490
+ */
3491
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3492
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
3493
+ }
3494
+ /**
3495
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3496
+ *
3497
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3498
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3499
+ * @returns {string} A string representing the location.
3500
+ */
3501
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3502
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
3503
+ }
3504
+ /**
3505
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3506
+ *
3507
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3508
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3509
+ * @returns {string} A string representing the data_store.
3510
+ */
3511
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3512
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
3513
+ }
3514
+ /**
3515
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3516
+ *
3517
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3518
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3519
+ * @returns {string} A string representing the sitemap.
3520
+ */
3521
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3522
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
3523
+ }
3524
+ /**
3525
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
3526
+ *
3527
+ * @param {string} project
3528
+ * @param {string} location
3529
+ * @param {string} data_store
3530
+ * @param {string} target_site
3531
+ * @returns {string} Resource name string.
3532
+ */
3533
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
3534
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
3535
+ project: project,
3536
+ location: location,
3537
+ data_store: dataStore,
3538
+ target_site: targetSite,
3539
+ });
3540
+ }
3541
+ /**
3542
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3543
+ *
3544
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3545
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3546
+ * @returns {string} A string representing the project.
3547
+ */
3548
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3549
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
3550
+ }
3551
+ /**
3552
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3553
+ *
3554
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3555
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3556
+ * @returns {string} A string representing the location.
3557
+ */
3558
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3559
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
3560
+ }
3561
+ /**
3562
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3563
+ *
3564
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3565
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3566
+ * @returns {string} A string representing the data_store.
3567
+ */
3568
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3569
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
3570
+ }
3571
+ /**
3572
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3573
+ *
3574
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3575
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3576
+ * @returns {string} A string representing the target_site.
3577
+ */
3578
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3579
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
3580
+ }
3581
+ /**
3582
+ * Terminate the gRPC channel and close the client.
3583
+ *
3584
+ * The client will no longer be usable and all future behavior is undefined.
3585
+ * @returns {Promise} A promise that resolves when the client is closed.
3586
+ */
3587
+ close() {
3588
+ if (this.identityMappingStoreServiceStub && !this._terminated) {
3589
+ return this.identityMappingStoreServiceStub.then(stub => {
3590
+ this._log.info('ending gRPC channel');
3591
+ this._terminated = true;
3592
+ stub.close();
3593
+ this.locationsClient.close().catch(err => { throw err; });
3594
+ void this.operationsClient.close();
3595
+ });
3596
+ }
3597
+ return Promise.resolve();
3598
+ }
3599
+ }
3600
+ exports.IdentityMappingStoreServiceClient = IdentityMappingStoreServiceClient;
3601
+ //# sourceMappingURL=identity_mapping_store_service_client.js.map