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