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