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