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