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