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