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