@google-cloud/discoveryengine 1.1.0 → 1.3.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 (59) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +39 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +190 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +134 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +138 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +306 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +98 -0
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +307 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +121 -0
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +318 -0
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +370 -0
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +336 -0
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +343 -0
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +159 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +227 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +312 -0
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +260 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +874 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +152 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +475 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +154 -0
  22. package/build/protos/protos.d.ts +16365 -7
  23. package/build/protos/protos.js +42499 -1945
  24. package/build/protos/protos.json +4455 -5
  25. package/build/src/index.d.ts +3 -1
  26. package/build/src/index.js +4 -1
  27. package/build/src/v1alpha/completion_service_client.d.ts +645 -0
  28. package/build/src/v1alpha/completion_service_client.js +901 -0
  29. package/build/src/v1alpha/completion_service_client_config.json +43 -0
  30. package/build/src/v1alpha/conversational_search_service_client.d.ts +1040 -0
  31. package/build/src/v1alpha/conversational_search_service_client.js +1333 -0
  32. package/build/src/v1alpha/conversational_search_service_client_config.json +68 -0
  33. package/build/src/v1alpha/data_store_service_client.d.ts +1060 -0
  34. package/build/src/v1alpha/data_store_service_client.js +1431 -0
  35. package/build/src/v1alpha/data_store_service_client_config.json +46 -0
  36. package/build/src/v1alpha/document_service_client.d.ts +1257 -0
  37. package/build/src/v1alpha/document_service_client.js +1555 -0
  38. package/build/src/v1alpha/document_service_client_config.json +82 -0
  39. package/build/src/v1alpha/engine_service_client.d.ts +1079 -0
  40. package/build/src/v1alpha/engine_service_client.js +1481 -0
  41. package/build/src/v1alpha/engine_service_client_config.json +58 -0
  42. package/build/src/v1alpha/index.d.ts +10 -0
  43. package/build/src/v1alpha/index.js +41 -0
  44. package/build/src/v1alpha/recommendation_service_client.d.ts +858 -0
  45. package/build/src/v1alpha/recommendation_service_client.js +1100 -0
  46. package/build/src/v1alpha/recommendation_service_client_config.json +43 -0
  47. package/build/src/v1alpha/schema_service_client.d.ts +977 -0
  48. package/build/src/v1alpha/schema_service_client.js +1385 -0
  49. package/build/src/v1alpha/schema_service_client_config.json +63 -0
  50. package/build/src/v1alpha/search_service_client.d.ts +1394 -0
  51. package/build/src/v1alpha/search_service_client.js +1640 -0
  52. package/build/src/v1alpha/search_service_client_config.json +43 -0
  53. package/build/src/v1alpha/site_search_engine_service_client.d.ts +821 -0
  54. package/build/src/v1alpha/site_search_engine_service_client.js +1249 -0
  55. package/build/src/v1alpha/site_search_engine_service_client_config.json +30 -0
  56. package/build/src/v1alpha/user_event_service_client.d.ts +895 -0
  57. package/build/src/v1alpha/user_event_service_client.js +1232 -0
  58. package/build/src/v1alpha/user_event_service_client_config.json +67 -0
  59. package/package.json +5 -5
@@ -0,0 +1,1100 @@
1
+ "use strict";
2
+ // Copyright 2023 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.RecommendationServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1alpha/recommendation_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./recommendation_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for making recommendations.
31
+ * @class
32
+ * @memberof v1alpha
33
+ */
34
+ class RecommendationServiceClient {
35
+ /**
36
+ * Construct an instance of RecommendationServiceClient.
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 RecommendationServiceClient({fallback: true}, gax);
72
+ * ```
73
+ */
74
+ constructor(opts, gaxInstance) {
75
+ var _a, _b;
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
85
+ .constructor;
86
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
87
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
88
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
89
+ const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
90
+ const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
91
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
92
+ // Request numeric enum values if REST transport is used.
93
+ opts.numericEnums = true;
94
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
95
+ if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
96
+ opts['scopes'] = staticMembers.scopes;
97
+ }
98
+ // Load google-gax module synchronously if needed
99
+ if (!gaxInstance) {
100
+ gaxInstance = require('google-gax');
101
+ }
102
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
103
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
104
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
105
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
106
+ // Save options to use in initialize() method.
107
+ this._opts = opts;
108
+ // Save the auth object to the client, for use by other methods.
109
+ this.auth = this._gaxGrpc.auth;
110
+ // Set useJWTAccessWithScope on the auth object.
111
+ this.auth.useJWTAccessWithScope = true;
112
+ // Set defaultServicePath on the auth object.
113
+ this.auth.defaultServicePath = staticMembers.servicePath;
114
+ // Set the default scopes in auth client if needed.
115
+ if (servicePath === staticMembers.servicePath) {
116
+ this.auth.defaultScopes = staticMembers.scopes;
117
+ }
118
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
119
+ // Determine the client header string.
120
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
121
+ if (typeof process !== 'undefined' && 'versions' in process) {
122
+ clientHeader.push(`gl-node/${process.versions.node}`);
123
+ }
124
+ else {
125
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
126
+ }
127
+ if (!opts.fallback) {
128
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
129
+ }
130
+ else {
131
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
132
+ }
133
+ if (opts.libName && opts.libVersion) {
134
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
135
+ }
136
+ // Load the applicable protos.
137
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
138
+ // This API contains "path templates"; forward-slash-separated
139
+ // identifiers to uniquely identify resources within the API.
140
+ // Create useful helper objects for these.
141
+ this.pathTemplates = {
142
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
143
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
144
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
145
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
146
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
147
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
148
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
149
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
150
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
151
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
152
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
153
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
154
+ };
155
+ // Put together the default options sent with requests.
156
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.RecommendationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
157
+ // Set up a dictionary of "inner API calls"; the core implementation
158
+ // of calling the API is handled in `google-gax`, with this code
159
+ // merely providing the destination and request information.
160
+ this.innerApiCalls = {};
161
+ // Add a warn function to the client constructor so it can be easily tested.
162
+ this.warn = this._gaxModule.warn;
163
+ }
164
+ /**
165
+ * Initialize the client.
166
+ * Performs asynchronous operations (such as authentication) and prepares the client.
167
+ * This function will be called automatically when any class method is called for the
168
+ * first time, but if you need to initialize it before calling an actual method,
169
+ * feel free to call initialize() directly.
170
+ *
171
+ * You can await on this method if you want to make sure the client is initialized.
172
+ *
173
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
174
+ */
175
+ initialize() {
176
+ // If the client stub promise is already initialized, return immediately.
177
+ if (this.recommendationServiceStub) {
178
+ return this.recommendationServiceStub;
179
+ }
180
+ // Put together the "service stub" for
181
+ // google.cloud.discoveryengine.v1alpha.RecommendationService.
182
+ this.recommendationServiceStub = this._gaxGrpc.createStub(this._opts.fallback
183
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1alpha.RecommendationService')
184
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
185
+ this._protos.google.cloud.discoveryengine.v1alpha
186
+ .RecommendationService, this._opts, this._providedCustomServicePath);
187
+ // Iterate over each of the methods that the service provides
188
+ // and create an API call method for each.
189
+ const recommendationServiceStubMethods = ['recommend'];
190
+ for (const methodName of recommendationServiceStubMethods) {
191
+ const callPromise = this.recommendationServiceStub.then(stub => (...args) => {
192
+ if (this._terminated) {
193
+ return Promise.reject('The client has already been closed.');
194
+ }
195
+ const func = stub[methodName];
196
+ return func.apply(stub, args);
197
+ }, (err) => () => {
198
+ throw err;
199
+ });
200
+ const descriptor = undefined;
201
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
202
+ this.innerApiCalls[methodName] = apiCall;
203
+ }
204
+ return this.recommendationServiceStub;
205
+ }
206
+ /**
207
+ * The DNS address for this API service.
208
+ * @returns {string} The DNS address for this service.
209
+ */
210
+ static get servicePath() {
211
+ return 'discoveryengine.googleapis.com';
212
+ }
213
+ /**
214
+ * The DNS address for this API service - same as servicePath(),
215
+ * exists for compatibility reasons.
216
+ * @returns {string} The DNS address for this service.
217
+ */
218
+ static get apiEndpoint() {
219
+ return 'discoveryengine.googleapis.com';
220
+ }
221
+ /**
222
+ * The port for this API service.
223
+ * @returns {number} The default port for this service.
224
+ */
225
+ static get port() {
226
+ return 443;
227
+ }
228
+ /**
229
+ * The scopes needed to make gRPC calls for every method defined
230
+ * in this service.
231
+ * @returns {string[]} List of default scopes.
232
+ */
233
+ static get scopes() {
234
+ return ['https://www.googleapis.com/auth/cloud-platform'];
235
+ }
236
+ /**
237
+ * Return the project ID used by this class.
238
+ * @returns {Promise} A promise that resolves to string containing the project ID.
239
+ */
240
+ getProjectId(callback) {
241
+ if (callback) {
242
+ this.auth.getProjectId(callback);
243
+ return;
244
+ }
245
+ return this.auth.getProjectId();
246
+ }
247
+ recommend(request, optionsOrCallback, callback) {
248
+ var _a;
249
+ request = request || {};
250
+ let options;
251
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
252
+ callback = optionsOrCallback;
253
+ options = {};
254
+ }
255
+ else {
256
+ options = optionsOrCallback;
257
+ }
258
+ options = options || {};
259
+ options.otherArgs = options.otherArgs || {};
260
+ options.otherArgs.headers = options.otherArgs.headers || {};
261
+ options.otherArgs.headers['x-goog-request-params'] =
262
+ this._gaxModule.routingHeader.fromParams({
263
+ serving_config: (_a = request.servingConfig) !== null && _a !== void 0 ? _a : '',
264
+ });
265
+ this.initialize();
266
+ return this.innerApiCalls.recommend(request, options, callback);
267
+ }
268
+ /**
269
+ * Gets information about a location.
270
+ *
271
+ * @param {Object} request
272
+ * The request object that will be sent.
273
+ * @param {string} request.name
274
+ * Resource name for the location.
275
+ * @param {object} [options]
276
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
277
+ * @returns {Promise} - The promise which resolves to an array.
278
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
279
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
280
+ * for more details and examples.
281
+ * @example
282
+ * ```
283
+ * const [response] = await client.getLocation(request);
284
+ * ```
285
+ */
286
+ getLocation(request, options, callback) {
287
+ return this.locationsClient.getLocation(request, options, callback);
288
+ }
289
+ /**
290
+ * Lists information about the supported locations for this service. Returns an iterable object.
291
+ *
292
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
293
+ * @param {Object} request
294
+ * The request object that will be sent.
295
+ * @param {string} request.name
296
+ * The resource that owns the locations collection, if applicable.
297
+ * @param {string} request.filter
298
+ * The standard list filter.
299
+ * @param {number} request.pageSize
300
+ * The standard list page size.
301
+ * @param {string} request.pageToken
302
+ * The standard list page token.
303
+ * @param {object} [options]
304
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
305
+ * @returns {Object}
306
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
307
+ * When you iterate the returned iterable, each element will be an object representing
308
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
309
+ * so you can stop the iteration when you don't need more results.
310
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
311
+ * for more details and examples.
312
+ * @example
313
+ * ```
314
+ * const iterable = client.listLocationsAsync(request);
315
+ * for await (const response of iterable) {
316
+ * // process response
317
+ * }
318
+ * ```
319
+ */
320
+ listLocationsAsync(request, options) {
321
+ return this.locationsClient.listLocationsAsync(request, options);
322
+ }
323
+ // --------------------
324
+ // -- Path templates --
325
+ // --------------------
326
+ /**
327
+ * Return a fully-qualified engine resource name string.
328
+ *
329
+ * @param {string} project
330
+ * @param {string} location
331
+ * @param {string} collection
332
+ * @param {string} engine
333
+ * @returns {string} Resource name string.
334
+ */
335
+ enginePath(project, location, collection, engine) {
336
+ return this.pathTemplates.enginePathTemplate.render({
337
+ project: project,
338
+ location: location,
339
+ collection: collection,
340
+ engine: engine,
341
+ });
342
+ }
343
+ /**
344
+ * Parse the project from Engine resource.
345
+ *
346
+ * @param {string} engineName
347
+ * A fully-qualified path representing Engine resource.
348
+ * @returns {string} A string representing the project.
349
+ */
350
+ matchProjectFromEngineName(engineName) {
351
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
352
+ }
353
+ /**
354
+ * Parse the location from Engine resource.
355
+ *
356
+ * @param {string} engineName
357
+ * A fully-qualified path representing Engine resource.
358
+ * @returns {string} A string representing the location.
359
+ */
360
+ matchLocationFromEngineName(engineName) {
361
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
362
+ }
363
+ /**
364
+ * Parse the collection from Engine resource.
365
+ *
366
+ * @param {string} engineName
367
+ * A fully-qualified path representing Engine resource.
368
+ * @returns {string} A string representing the collection.
369
+ */
370
+ matchCollectionFromEngineName(engineName) {
371
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
372
+ }
373
+ /**
374
+ * Parse the engine from Engine resource.
375
+ *
376
+ * @param {string} engineName
377
+ * A fully-qualified path representing Engine resource.
378
+ * @returns {string} A string representing the engine.
379
+ */
380
+ matchEngineFromEngineName(engineName) {
381
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
382
+ }
383
+ /**
384
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
385
+ *
386
+ * @param {string} project
387
+ * @param {string} location
388
+ * @param {string} collection
389
+ * @param {string} data_store
390
+ * @returns {string} Resource name string.
391
+ */
392
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
393
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
394
+ project: project,
395
+ location: location,
396
+ collection: collection,
397
+ data_store: dataStore,
398
+ });
399
+ }
400
+ /**
401
+ * Parse the project from ProjectLocationCollectionDataStore resource.
402
+ *
403
+ * @param {string} projectLocationCollectionDataStoreName
404
+ * A fully-qualified path representing project_location_collection_data_store resource.
405
+ * @returns {string} A string representing the project.
406
+ */
407
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
408
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
409
+ }
410
+ /**
411
+ * Parse the location from ProjectLocationCollectionDataStore resource.
412
+ *
413
+ * @param {string} projectLocationCollectionDataStoreName
414
+ * A fully-qualified path representing project_location_collection_data_store resource.
415
+ * @returns {string} A string representing the location.
416
+ */
417
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
418
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
419
+ }
420
+ /**
421
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
422
+ *
423
+ * @param {string} projectLocationCollectionDataStoreName
424
+ * A fully-qualified path representing project_location_collection_data_store resource.
425
+ * @returns {string} A string representing the collection.
426
+ */
427
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
428
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
429
+ }
430
+ /**
431
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
432
+ *
433
+ * @param {string} projectLocationCollectionDataStoreName
434
+ * A fully-qualified path representing project_location_collection_data_store resource.
435
+ * @returns {string} A string representing the data_store.
436
+ */
437
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
438
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
439
+ }
440
+ /**
441
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
442
+ *
443
+ * @param {string} project
444
+ * @param {string} location
445
+ * @param {string} collection
446
+ * @param {string} data_store
447
+ * @param {string} branch
448
+ * @param {string} document
449
+ * @returns {string} Resource name string.
450
+ */
451
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
452
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
453
+ project: project,
454
+ location: location,
455
+ collection: collection,
456
+ data_store: dataStore,
457
+ branch: branch,
458
+ document: document,
459
+ });
460
+ }
461
+ /**
462
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
463
+ *
464
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
465
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
466
+ * @returns {string} A string representing the project.
467
+ */
468
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
469
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
470
+ }
471
+ /**
472
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
473
+ *
474
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
475
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
476
+ * @returns {string} A string representing the location.
477
+ */
478
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
479
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
480
+ }
481
+ /**
482
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
483
+ *
484
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
485
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
486
+ * @returns {string} A string representing the collection.
487
+ */
488
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
489
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
490
+ }
491
+ /**
492
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
493
+ *
494
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
495
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
496
+ * @returns {string} A string representing the data_store.
497
+ */
498
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
499
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
500
+ }
501
+ /**
502
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
503
+ *
504
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
505
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
506
+ * @returns {string} A string representing the branch.
507
+ */
508
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
509
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
510
+ }
511
+ /**
512
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
513
+ *
514
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
515
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
516
+ * @returns {string} A string representing the document.
517
+ */
518
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
519
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
520
+ }
521
+ /**
522
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
523
+ *
524
+ * @param {string} project
525
+ * @param {string} location
526
+ * @param {string} collection
527
+ * @param {string} data_store
528
+ * @param {string} conversation
529
+ * @returns {string} Resource name string.
530
+ */
531
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
532
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
533
+ project: project,
534
+ location: location,
535
+ collection: collection,
536
+ data_store: dataStore,
537
+ conversation: conversation,
538
+ });
539
+ }
540
+ /**
541
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
542
+ *
543
+ * @param {string} projectLocationCollectionDataStoreConversationName
544
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
545
+ * @returns {string} A string representing the project.
546
+ */
547
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
548
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
549
+ }
550
+ /**
551
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
552
+ *
553
+ * @param {string} projectLocationCollectionDataStoreConversationName
554
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
555
+ * @returns {string} A string representing the location.
556
+ */
557
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
558
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
559
+ }
560
+ /**
561
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
562
+ *
563
+ * @param {string} projectLocationCollectionDataStoreConversationName
564
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
565
+ * @returns {string} A string representing the collection.
566
+ */
567
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
568
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
569
+ }
570
+ /**
571
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
572
+ *
573
+ * @param {string} projectLocationCollectionDataStoreConversationName
574
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
575
+ * @returns {string} A string representing the data_store.
576
+ */
577
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
578
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
579
+ }
580
+ /**
581
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
582
+ *
583
+ * @param {string} projectLocationCollectionDataStoreConversationName
584
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
585
+ * @returns {string} A string representing the conversation.
586
+ */
587
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
588
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
589
+ }
590
+ /**
591
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
592
+ *
593
+ * @param {string} project
594
+ * @param {string} location
595
+ * @param {string} collection
596
+ * @param {string} data_store
597
+ * @param {string} schema
598
+ * @returns {string} Resource name string.
599
+ */
600
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
601
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
602
+ project: project,
603
+ location: location,
604
+ collection: collection,
605
+ data_store: dataStore,
606
+ schema: schema,
607
+ });
608
+ }
609
+ /**
610
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
611
+ *
612
+ * @param {string} projectLocationCollectionDataStoreSchemaName
613
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
614
+ * @returns {string} A string representing the project.
615
+ */
616
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
617
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
618
+ }
619
+ /**
620
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
621
+ *
622
+ * @param {string} projectLocationCollectionDataStoreSchemaName
623
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
624
+ * @returns {string} A string representing the location.
625
+ */
626
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
627
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
628
+ }
629
+ /**
630
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
631
+ *
632
+ * @param {string} projectLocationCollectionDataStoreSchemaName
633
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
634
+ * @returns {string} A string representing the collection.
635
+ */
636
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
637
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
638
+ }
639
+ /**
640
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
641
+ *
642
+ * @param {string} projectLocationCollectionDataStoreSchemaName
643
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
644
+ * @returns {string} A string representing the data_store.
645
+ */
646
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
647
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
648
+ }
649
+ /**
650
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
651
+ *
652
+ * @param {string} projectLocationCollectionDataStoreSchemaName
653
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
654
+ * @returns {string} A string representing the schema.
655
+ */
656
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
657
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
658
+ }
659
+ /**
660
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
661
+ *
662
+ * @param {string} project
663
+ * @param {string} location
664
+ * @param {string} collection
665
+ * @param {string} data_store
666
+ * @param {string} serving_config
667
+ * @returns {string} Resource name string.
668
+ */
669
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
670
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
671
+ project: project,
672
+ location: location,
673
+ collection: collection,
674
+ data_store: dataStore,
675
+ serving_config: servingConfig,
676
+ });
677
+ }
678
+ /**
679
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
680
+ *
681
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
682
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
683
+ * @returns {string} A string representing the project.
684
+ */
685
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
686
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
687
+ }
688
+ /**
689
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
690
+ *
691
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
692
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
693
+ * @returns {string} A string representing the location.
694
+ */
695
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
696
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
697
+ }
698
+ /**
699
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
700
+ *
701
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
702
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
703
+ * @returns {string} A string representing the collection.
704
+ */
705
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
706
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
707
+ }
708
+ /**
709
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
710
+ *
711
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
712
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
713
+ * @returns {string} A string representing the data_store.
714
+ */
715
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
716
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
717
+ }
718
+ /**
719
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
720
+ *
721
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
722
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
723
+ * @returns {string} A string representing the serving_config.
724
+ */
725
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
726
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
727
+ }
728
+ /**
729
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
730
+ *
731
+ * @param {string} project
732
+ * @param {string} location
733
+ * @param {string} collection
734
+ * @param {string} engine
735
+ * @param {string} serving_config
736
+ * @returns {string} Resource name string.
737
+ */
738
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
739
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
740
+ project: project,
741
+ location: location,
742
+ collection: collection,
743
+ engine: engine,
744
+ serving_config: servingConfig,
745
+ });
746
+ }
747
+ /**
748
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
749
+ *
750
+ * @param {string} projectLocationCollectionEngineServingConfigName
751
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
752
+ * @returns {string} A string representing the project.
753
+ */
754
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
755
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
756
+ }
757
+ /**
758
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
759
+ *
760
+ * @param {string} projectLocationCollectionEngineServingConfigName
761
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
762
+ * @returns {string} A string representing the location.
763
+ */
764
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
765
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
766
+ }
767
+ /**
768
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
769
+ *
770
+ * @param {string} projectLocationCollectionEngineServingConfigName
771
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
772
+ * @returns {string} A string representing the collection.
773
+ */
774
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
775
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
776
+ }
777
+ /**
778
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
779
+ *
780
+ * @param {string} projectLocationCollectionEngineServingConfigName
781
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
782
+ * @returns {string} A string representing the engine.
783
+ */
784
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
785
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
786
+ }
787
+ /**
788
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
789
+ *
790
+ * @param {string} projectLocationCollectionEngineServingConfigName
791
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
792
+ * @returns {string} A string representing the serving_config.
793
+ */
794
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
795
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
796
+ }
797
+ /**
798
+ * Return a fully-qualified projectLocationDataStore resource name string.
799
+ *
800
+ * @param {string} project
801
+ * @param {string} location
802
+ * @param {string} data_store
803
+ * @returns {string} Resource name string.
804
+ */
805
+ projectLocationDataStorePath(project, location, dataStore) {
806
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
807
+ project: project,
808
+ location: location,
809
+ data_store: dataStore,
810
+ });
811
+ }
812
+ /**
813
+ * Parse the project from ProjectLocationDataStore resource.
814
+ *
815
+ * @param {string} projectLocationDataStoreName
816
+ * A fully-qualified path representing project_location_data_store resource.
817
+ * @returns {string} A string representing the project.
818
+ */
819
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
820
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
821
+ }
822
+ /**
823
+ * Parse the location from ProjectLocationDataStore resource.
824
+ *
825
+ * @param {string} projectLocationDataStoreName
826
+ * A fully-qualified path representing project_location_data_store resource.
827
+ * @returns {string} A string representing the location.
828
+ */
829
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
830
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
831
+ }
832
+ /**
833
+ * Parse the data_store from ProjectLocationDataStore resource.
834
+ *
835
+ * @param {string} projectLocationDataStoreName
836
+ * A fully-qualified path representing project_location_data_store resource.
837
+ * @returns {string} A string representing the data_store.
838
+ */
839
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
840
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
841
+ }
842
+ /**
843
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
844
+ *
845
+ * @param {string} project
846
+ * @param {string} location
847
+ * @param {string} data_store
848
+ * @param {string} branch
849
+ * @param {string} document
850
+ * @returns {string} Resource name string.
851
+ */
852
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
853
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
854
+ project: project,
855
+ location: location,
856
+ data_store: dataStore,
857
+ branch: branch,
858
+ document: document,
859
+ });
860
+ }
861
+ /**
862
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
863
+ *
864
+ * @param {string} projectLocationDataStoreBranchDocumentName
865
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
866
+ * @returns {string} A string representing the project.
867
+ */
868
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
869
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
870
+ }
871
+ /**
872
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
873
+ *
874
+ * @param {string} projectLocationDataStoreBranchDocumentName
875
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
876
+ * @returns {string} A string representing the location.
877
+ */
878
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
879
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
880
+ }
881
+ /**
882
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
883
+ *
884
+ * @param {string} projectLocationDataStoreBranchDocumentName
885
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
886
+ * @returns {string} A string representing the data_store.
887
+ */
888
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
889
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
890
+ }
891
+ /**
892
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
893
+ *
894
+ * @param {string} projectLocationDataStoreBranchDocumentName
895
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
896
+ * @returns {string} A string representing the branch.
897
+ */
898
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
899
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
900
+ }
901
+ /**
902
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
903
+ *
904
+ * @param {string} projectLocationDataStoreBranchDocumentName
905
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
906
+ * @returns {string} A string representing the document.
907
+ */
908
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
909
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
910
+ }
911
+ /**
912
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
913
+ *
914
+ * @param {string} project
915
+ * @param {string} location
916
+ * @param {string} data_store
917
+ * @param {string} conversation
918
+ * @returns {string} Resource name string.
919
+ */
920
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
921
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
922
+ project: project,
923
+ location: location,
924
+ data_store: dataStore,
925
+ conversation: conversation,
926
+ });
927
+ }
928
+ /**
929
+ * Parse the project from ProjectLocationDataStoreConversation resource.
930
+ *
931
+ * @param {string} projectLocationDataStoreConversationName
932
+ * A fully-qualified path representing project_location_data_store_conversation resource.
933
+ * @returns {string} A string representing the project.
934
+ */
935
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
936
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
937
+ }
938
+ /**
939
+ * Parse the location from ProjectLocationDataStoreConversation resource.
940
+ *
941
+ * @param {string} projectLocationDataStoreConversationName
942
+ * A fully-qualified path representing project_location_data_store_conversation resource.
943
+ * @returns {string} A string representing the location.
944
+ */
945
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
946
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
947
+ }
948
+ /**
949
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
950
+ *
951
+ * @param {string} projectLocationDataStoreConversationName
952
+ * A fully-qualified path representing project_location_data_store_conversation resource.
953
+ * @returns {string} A string representing the data_store.
954
+ */
955
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
956
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
957
+ }
958
+ /**
959
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
960
+ *
961
+ * @param {string} projectLocationDataStoreConversationName
962
+ * A fully-qualified path representing project_location_data_store_conversation resource.
963
+ * @returns {string} A string representing the conversation.
964
+ */
965
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
966
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
967
+ }
968
+ /**
969
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
970
+ *
971
+ * @param {string} project
972
+ * @param {string} location
973
+ * @param {string} data_store
974
+ * @param {string} schema
975
+ * @returns {string} Resource name string.
976
+ */
977
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
978
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
979
+ project: project,
980
+ location: location,
981
+ data_store: dataStore,
982
+ schema: schema,
983
+ });
984
+ }
985
+ /**
986
+ * Parse the project from ProjectLocationDataStoreSchema resource.
987
+ *
988
+ * @param {string} projectLocationDataStoreSchemaName
989
+ * A fully-qualified path representing project_location_data_store_schema resource.
990
+ * @returns {string} A string representing the project.
991
+ */
992
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
993
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
994
+ }
995
+ /**
996
+ * Parse the location from ProjectLocationDataStoreSchema resource.
997
+ *
998
+ * @param {string} projectLocationDataStoreSchemaName
999
+ * A fully-qualified path representing project_location_data_store_schema resource.
1000
+ * @returns {string} A string representing the location.
1001
+ */
1002
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1003
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1004
+ }
1005
+ /**
1006
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1007
+ *
1008
+ * @param {string} projectLocationDataStoreSchemaName
1009
+ * A fully-qualified path representing project_location_data_store_schema resource.
1010
+ * @returns {string} A string representing the data_store.
1011
+ */
1012
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1013
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1014
+ }
1015
+ /**
1016
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1017
+ *
1018
+ * @param {string} projectLocationDataStoreSchemaName
1019
+ * A fully-qualified path representing project_location_data_store_schema resource.
1020
+ * @returns {string} A string representing the schema.
1021
+ */
1022
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1023
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1024
+ }
1025
+ /**
1026
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1027
+ *
1028
+ * @param {string} project
1029
+ * @param {string} location
1030
+ * @param {string} data_store
1031
+ * @param {string} serving_config
1032
+ * @returns {string} Resource name string.
1033
+ */
1034
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1035
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1036
+ project: project,
1037
+ location: location,
1038
+ data_store: dataStore,
1039
+ serving_config: servingConfig,
1040
+ });
1041
+ }
1042
+ /**
1043
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1044
+ *
1045
+ * @param {string} projectLocationDataStoreServingConfigName
1046
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1047
+ * @returns {string} A string representing the project.
1048
+ */
1049
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1050
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1051
+ }
1052
+ /**
1053
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1054
+ *
1055
+ * @param {string} projectLocationDataStoreServingConfigName
1056
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1057
+ * @returns {string} A string representing the location.
1058
+ */
1059
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1060
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1061
+ }
1062
+ /**
1063
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1064
+ *
1065
+ * @param {string} projectLocationDataStoreServingConfigName
1066
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1067
+ * @returns {string} A string representing the data_store.
1068
+ */
1069
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1070
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1071
+ }
1072
+ /**
1073
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1074
+ *
1075
+ * @param {string} projectLocationDataStoreServingConfigName
1076
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1077
+ * @returns {string} A string representing the serving_config.
1078
+ */
1079
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1080
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1081
+ }
1082
+ /**
1083
+ * Terminate the gRPC channel and close the client.
1084
+ *
1085
+ * The client will no longer be usable and all future behavior is undefined.
1086
+ * @returns {Promise} A promise that resolves when the client is closed.
1087
+ */
1088
+ close() {
1089
+ if (this.recommendationServiceStub && !this._terminated) {
1090
+ return this.recommendationServiceStub.then(stub => {
1091
+ this._terminated = true;
1092
+ stub.close();
1093
+ this.locationsClient.close();
1094
+ });
1095
+ }
1096
+ return Promise.resolve();
1097
+ }
1098
+ }
1099
+ exports.RecommendationServiceClient = RecommendationServiceClient;
1100
+ //# sourceMappingURL=recommendation_service_client.js.map