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