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