@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,901 @@
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.CompletionServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1alpha/completion_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./completion_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for Auto-Completion.
31
+ * @class
32
+ * @memberof v1alpha
33
+ */
34
+ class CompletionServiceClient {
35
+ /**
36
+ * Construct an instance of CompletionServiceClient.
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 CompletionServiceClient({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.constructor;
85
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
86
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
87
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
88
+ const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
89
+ 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');
90
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
91
+ // Request numeric enum values if REST transport is used.
92
+ opts.numericEnums = true;
93
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
94
+ if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
95
+ opts['scopes'] = staticMembers.scopes;
96
+ }
97
+ // Load google-gax module synchronously if needed
98
+ if (!gaxInstance) {
99
+ gaxInstance = require('google-gax');
100
+ }
101
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
102
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
103
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
104
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
105
+ // Save options to use in initialize() method.
106
+ this._opts = opts;
107
+ // Save the auth object to the client, for use by other methods.
108
+ this.auth = this._gaxGrpc.auth;
109
+ // Set useJWTAccessWithScope on the auth object.
110
+ this.auth.useJWTAccessWithScope = true;
111
+ // Set defaultServicePath on the auth object.
112
+ this.auth.defaultServicePath = staticMembers.servicePath;
113
+ // Set the default scopes in auth client if needed.
114
+ if (servicePath === staticMembers.servicePath) {
115
+ this.auth.defaultScopes = staticMembers.scopes;
116
+ }
117
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
118
+ // Determine the client header string.
119
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
120
+ if (typeof process !== 'undefined' && 'versions' in process) {
121
+ clientHeader.push(`gl-node/${process.versions.node}`);
122
+ }
123
+ else {
124
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
125
+ }
126
+ if (!opts.fallback) {
127
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
128
+ }
129
+ else {
130
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
131
+ }
132
+ if (opts.libName && opts.libVersion) {
133
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
134
+ }
135
+ // Load the applicable protos.
136
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
137
+ // This API contains "path templates"; forward-slash-separated
138
+ // identifiers to uniquely identify resources within the API.
139
+ // Create useful helper objects for these.
140
+ this.pathTemplates = {
141
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
142
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
143
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
144
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
145
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
146
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
147
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
148
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
149
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
150
+ };
151
+ // Put together the default options sent with requests.
152
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
153
+ // Set up a dictionary of "inner API calls"; the core implementation
154
+ // of calling the API is handled in `google-gax`, with this code
155
+ // merely providing the destination and request information.
156
+ this.innerApiCalls = {};
157
+ // Add a warn function to the client constructor so it can be easily tested.
158
+ this.warn = this._gaxModule.warn;
159
+ }
160
+ /**
161
+ * Initialize the client.
162
+ * Performs asynchronous operations (such as authentication) and prepares the client.
163
+ * This function will be called automatically when any class method is called for the
164
+ * first time, but if you need to initialize it before calling an actual method,
165
+ * feel free to call initialize() directly.
166
+ *
167
+ * You can await on this method if you want to make sure the client is initialized.
168
+ *
169
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
170
+ */
171
+ initialize() {
172
+ // If the client stub promise is already initialized, return immediately.
173
+ if (this.completionServiceStub) {
174
+ return this.completionServiceStub;
175
+ }
176
+ // Put together the "service stub" for
177
+ // google.cloud.discoveryengine.v1alpha.CompletionService.
178
+ this.completionServiceStub = this._gaxGrpc.createStub(this._opts.fallback
179
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1alpha.CompletionService')
180
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
181
+ this._protos.google.cloud.discoveryengine.v1alpha
182
+ .CompletionService, this._opts, this._providedCustomServicePath);
183
+ // Iterate over each of the methods that the service provides
184
+ // and create an API call method for each.
185
+ const completionServiceStubMethods = ['completeQuery'];
186
+ for (const methodName of completionServiceStubMethods) {
187
+ const callPromise = this.completionServiceStub.then(stub => (...args) => {
188
+ if (this._terminated) {
189
+ return Promise.reject('The client has already been closed.');
190
+ }
191
+ const func = stub[methodName];
192
+ return func.apply(stub, args);
193
+ }, (err) => () => {
194
+ throw err;
195
+ });
196
+ const descriptor = undefined;
197
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
198
+ this.innerApiCalls[methodName] = apiCall;
199
+ }
200
+ return this.completionServiceStub;
201
+ }
202
+ /**
203
+ * The DNS address for this API service.
204
+ * @returns {string} The DNS address for this service.
205
+ */
206
+ static get servicePath() {
207
+ return 'discoveryengine.googleapis.com';
208
+ }
209
+ /**
210
+ * The DNS address for this API service - same as servicePath(),
211
+ * exists for compatibility reasons.
212
+ * @returns {string} The DNS address for this service.
213
+ */
214
+ static get apiEndpoint() {
215
+ return 'discoveryengine.googleapis.com';
216
+ }
217
+ /**
218
+ * The port for this API service.
219
+ * @returns {number} The default port for this service.
220
+ */
221
+ static get port() {
222
+ return 443;
223
+ }
224
+ /**
225
+ * The scopes needed to make gRPC calls for every method defined
226
+ * in this service.
227
+ * @returns {string[]} List of default scopes.
228
+ */
229
+ static get scopes() {
230
+ return ['https://www.googleapis.com/auth/cloud-platform'];
231
+ }
232
+ /**
233
+ * Return the project ID used by this class.
234
+ * @returns {Promise} A promise that resolves to string containing the project ID.
235
+ */
236
+ getProjectId(callback) {
237
+ if (callback) {
238
+ this.auth.getProjectId(callback);
239
+ return;
240
+ }
241
+ return this.auth.getProjectId();
242
+ }
243
+ completeQuery(request, optionsOrCallback, callback) {
244
+ var _a;
245
+ request = request || {};
246
+ let options;
247
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
248
+ callback = optionsOrCallback;
249
+ options = {};
250
+ }
251
+ else {
252
+ options = optionsOrCallback;
253
+ }
254
+ options = options || {};
255
+ options.otherArgs = options.otherArgs || {};
256
+ options.otherArgs.headers = options.otherArgs.headers || {};
257
+ options.otherArgs.headers['x-goog-request-params'] =
258
+ this._gaxModule.routingHeader.fromParams({
259
+ data_store: (_a = request.dataStore) !== null && _a !== void 0 ? _a : '',
260
+ });
261
+ this.initialize();
262
+ return this.innerApiCalls.completeQuery(request, options, callback);
263
+ }
264
+ /**
265
+ * Gets information about a location.
266
+ *
267
+ * @param {Object} request
268
+ * The request object that will be sent.
269
+ * @param {string} request.name
270
+ * Resource name for the location.
271
+ * @param {object} [options]
272
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
273
+ * @returns {Promise} - The promise which resolves to an array.
274
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
275
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
276
+ * for more details and examples.
277
+ * @example
278
+ * ```
279
+ * const [response] = await client.getLocation(request);
280
+ * ```
281
+ */
282
+ getLocation(request, options, callback) {
283
+ return this.locationsClient.getLocation(request, options, callback);
284
+ }
285
+ /**
286
+ * Lists information about the supported locations for this service. Returns an iterable object.
287
+ *
288
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
289
+ * @param {Object} request
290
+ * The request object that will be sent.
291
+ * @param {string} request.name
292
+ * The resource that owns the locations collection, if applicable.
293
+ * @param {string} request.filter
294
+ * The standard list filter.
295
+ * @param {number} request.pageSize
296
+ * The standard list page size.
297
+ * @param {string} request.pageToken
298
+ * The standard list page token.
299
+ * @param {object} [options]
300
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
301
+ * @returns {Object}
302
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
303
+ * When you iterate the returned iterable, each element will be an object representing
304
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
305
+ * so you can stop the iteration when you don't need more results.
306
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
307
+ * for more details and examples.
308
+ * @example
309
+ * ```
310
+ * const iterable = client.listLocationsAsync(request);
311
+ * for await (const response of iterable) {
312
+ * // process response
313
+ * }
314
+ * ```
315
+ */
316
+ listLocationsAsync(request, options) {
317
+ return this.locationsClient.listLocationsAsync(request, options);
318
+ }
319
+ // --------------------
320
+ // -- Path templates --
321
+ // --------------------
322
+ /**
323
+ * Return a fully-qualified engine resource name string.
324
+ *
325
+ * @param {string} project
326
+ * @param {string} location
327
+ * @param {string} collection
328
+ * @param {string} engine
329
+ * @returns {string} Resource name string.
330
+ */
331
+ enginePath(project, location, collection, engine) {
332
+ return this.pathTemplates.enginePathTemplate.render({
333
+ project: project,
334
+ location: location,
335
+ collection: collection,
336
+ engine: engine,
337
+ });
338
+ }
339
+ /**
340
+ * Parse the project from Engine resource.
341
+ *
342
+ * @param {string} engineName
343
+ * A fully-qualified path representing Engine resource.
344
+ * @returns {string} A string representing the project.
345
+ */
346
+ matchProjectFromEngineName(engineName) {
347
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
348
+ }
349
+ /**
350
+ * Parse the location from Engine resource.
351
+ *
352
+ * @param {string} engineName
353
+ * A fully-qualified path representing Engine resource.
354
+ * @returns {string} A string representing the location.
355
+ */
356
+ matchLocationFromEngineName(engineName) {
357
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
358
+ }
359
+ /**
360
+ * Parse the collection from Engine resource.
361
+ *
362
+ * @param {string} engineName
363
+ * A fully-qualified path representing Engine resource.
364
+ * @returns {string} A string representing the collection.
365
+ */
366
+ matchCollectionFromEngineName(engineName) {
367
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
368
+ }
369
+ /**
370
+ * Parse the engine from Engine resource.
371
+ *
372
+ * @param {string} engineName
373
+ * A fully-qualified path representing Engine resource.
374
+ * @returns {string} A string representing the engine.
375
+ */
376
+ matchEngineFromEngineName(engineName) {
377
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
378
+ }
379
+ /**
380
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
381
+ *
382
+ * @param {string} project
383
+ * @param {string} location
384
+ * @param {string} collection
385
+ * @param {string} data_store
386
+ * @returns {string} Resource name string.
387
+ */
388
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
389
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
390
+ project: project,
391
+ location: location,
392
+ collection: collection,
393
+ data_store: dataStore,
394
+ });
395
+ }
396
+ /**
397
+ * Parse the project from ProjectLocationCollectionDataStore resource.
398
+ *
399
+ * @param {string} projectLocationCollectionDataStoreName
400
+ * A fully-qualified path representing project_location_collection_data_store resource.
401
+ * @returns {string} A string representing the project.
402
+ */
403
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
404
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
405
+ }
406
+ /**
407
+ * Parse the location from ProjectLocationCollectionDataStore resource.
408
+ *
409
+ * @param {string} projectLocationCollectionDataStoreName
410
+ * A fully-qualified path representing project_location_collection_data_store resource.
411
+ * @returns {string} A string representing the location.
412
+ */
413
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
414
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
415
+ }
416
+ /**
417
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
418
+ *
419
+ * @param {string} projectLocationCollectionDataStoreName
420
+ * A fully-qualified path representing project_location_collection_data_store resource.
421
+ * @returns {string} A string representing the collection.
422
+ */
423
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
424
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
425
+ }
426
+ /**
427
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
428
+ *
429
+ * @param {string} projectLocationCollectionDataStoreName
430
+ * A fully-qualified path representing project_location_collection_data_store resource.
431
+ * @returns {string} A string representing the data_store.
432
+ */
433
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
434
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
435
+ }
436
+ /**
437
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
438
+ *
439
+ * @param {string} project
440
+ * @param {string} location
441
+ * @param {string} collection
442
+ * @param {string} data_store
443
+ * @param {string} branch
444
+ * @param {string} document
445
+ * @returns {string} Resource name string.
446
+ */
447
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
448
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
449
+ project: project,
450
+ location: location,
451
+ collection: collection,
452
+ data_store: dataStore,
453
+ branch: branch,
454
+ document: document,
455
+ });
456
+ }
457
+ /**
458
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
459
+ *
460
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
461
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
462
+ * @returns {string} A string representing the project.
463
+ */
464
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
465
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
466
+ }
467
+ /**
468
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
469
+ *
470
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
471
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
472
+ * @returns {string} A string representing the location.
473
+ */
474
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
475
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
476
+ }
477
+ /**
478
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
479
+ *
480
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
481
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
482
+ * @returns {string} A string representing the collection.
483
+ */
484
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
485
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
486
+ }
487
+ /**
488
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
489
+ *
490
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
491
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
492
+ * @returns {string} A string representing the data_store.
493
+ */
494
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
495
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
496
+ }
497
+ /**
498
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
499
+ *
500
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
501
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
502
+ * @returns {string} A string representing the branch.
503
+ */
504
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
505
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
506
+ }
507
+ /**
508
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
509
+ *
510
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
511
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
512
+ * @returns {string} A string representing the document.
513
+ */
514
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
515
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
516
+ }
517
+ /**
518
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
519
+ *
520
+ * @param {string} project
521
+ * @param {string} location
522
+ * @param {string} collection
523
+ * @param {string} data_store
524
+ * @param {string} conversation
525
+ * @returns {string} Resource name string.
526
+ */
527
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
528
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
529
+ project: project,
530
+ location: location,
531
+ collection: collection,
532
+ data_store: dataStore,
533
+ conversation: conversation,
534
+ });
535
+ }
536
+ /**
537
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
538
+ *
539
+ * @param {string} projectLocationCollectionDataStoreConversationName
540
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
541
+ * @returns {string} A string representing the project.
542
+ */
543
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
544
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
545
+ }
546
+ /**
547
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
548
+ *
549
+ * @param {string} projectLocationCollectionDataStoreConversationName
550
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
551
+ * @returns {string} A string representing the location.
552
+ */
553
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
554
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
555
+ }
556
+ /**
557
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
558
+ *
559
+ * @param {string} projectLocationCollectionDataStoreConversationName
560
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
561
+ * @returns {string} A string representing the collection.
562
+ */
563
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
564
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
565
+ }
566
+ /**
567
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
568
+ *
569
+ * @param {string} projectLocationCollectionDataStoreConversationName
570
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
571
+ * @returns {string} A string representing the data_store.
572
+ */
573
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
574
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
575
+ }
576
+ /**
577
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
578
+ *
579
+ * @param {string} projectLocationCollectionDataStoreConversationName
580
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
581
+ * @returns {string} A string representing the conversation.
582
+ */
583
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
584
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
585
+ }
586
+ /**
587
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
588
+ *
589
+ * @param {string} project
590
+ * @param {string} location
591
+ * @param {string} collection
592
+ * @param {string} data_store
593
+ * @param {string} schema
594
+ * @returns {string} Resource name string.
595
+ */
596
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
597
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
598
+ project: project,
599
+ location: location,
600
+ collection: collection,
601
+ data_store: dataStore,
602
+ schema: schema,
603
+ });
604
+ }
605
+ /**
606
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
607
+ *
608
+ * @param {string} projectLocationCollectionDataStoreSchemaName
609
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
610
+ * @returns {string} A string representing the project.
611
+ */
612
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
613
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
614
+ }
615
+ /**
616
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
617
+ *
618
+ * @param {string} projectLocationCollectionDataStoreSchemaName
619
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
620
+ * @returns {string} A string representing the location.
621
+ */
622
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
623
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
624
+ }
625
+ /**
626
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
627
+ *
628
+ * @param {string} projectLocationCollectionDataStoreSchemaName
629
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
630
+ * @returns {string} A string representing the collection.
631
+ */
632
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
633
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
634
+ }
635
+ /**
636
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
637
+ *
638
+ * @param {string} projectLocationCollectionDataStoreSchemaName
639
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
640
+ * @returns {string} A string representing the data_store.
641
+ */
642
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
643
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
644
+ }
645
+ /**
646
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
647
+ *
648
+ * @param {string} projectLocationCollectionDataStoreSchemaName
649
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
650
+ * @returns {string} A string representing the schema.
651
+ */
652
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
653
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
654
+ }
655
+ /**
656
+ * Return a fully-qualified projectLocationDataStore resource name string.
657
+ *
658
+ * @param {string} project
659
+ * @param {string} location
660
+ * @param {string} data_store
661
+ * @returns {string} Resource name string.
662
+ */
663
+ projectLocationDataStorePath(project, location, dataStore) {
664
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
665
+ project: project,
666
+ location: location,
667
+ data_store: dataStore,
668
+ });
669
+ }
670
+ /**
671
+ * Parse the project from ProjectLocationDataStore resource.
672
+ *
673
+ * @param {string} projectLocationDataStoreName
674
+ * A fully-qualified path representing project_location_data_store resource.
675
+ * @returns {string} A string representing the project.
676
+ */
677
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
678
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
679
+ }
680
+ /**
681
+ * Parse the location from ProjectLocationDataStore resource.
682
+ *
683
+ * @param {string} projectLocationDataStoreName
684
+ * A fully-qualified path representing project_location_data_store resource.
685
+ * @returns {string} A string representing the location.
686
+ */
687
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
688
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
689
+ }
690
+ /**
691
+ * Parse the data_store from ProjectLocationDataStore resource.
692
+ *
693
+ * @param {string} projectLocationDataStoreName
694
+ * A fully-qualified path representing project_location_data_store resource.
695
+ * @returns {string} A string representing the data_store.
696
+ */
697
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
698
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
699
+ }
700
+ /**
701
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
702
+ *
703
+ * @param {string} project
704
+ * @param {string} location
705
+ * @param {string} data_store
706
+ * @param {string} branch
707
+ * @param {string} document
708
+ * @returns {string} Resource name string.
709
+ */
710
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
711
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
712
+ project: project,
713
+ location: location,
714
+ data_store: dataStore,
715
+ branch: branch,
716
+ document: document,
717
+ });
718
+ }
719
+ /**
720
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
721
+ *
722
+ * @param {string} projectLocationDataStoreBranchDocumentName
723
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
724
+ * @returns {string} A string representing the project.
725
+ */
726
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
727
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
728
+ }
729
+ /**
730
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
731
+ *
732
+ * @param {string} projectLocationDataStoreBranchDocumentName
733
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
734
+ * @returns {string} A string representing the location.
735
+ */
736
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
737
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
738
+ }
739
+ /**
740
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
741
+ *
742
+ * @param {string} projectLocationDataStoreBranchDocumentName
743
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
744
+ * @returns {string} A string representing the data_store.
745
+ */
746
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
747
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
748
+ }
749
+ /**
750
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
751
+ *
752
+ * @param {string} projectLocationDataStoreBranchDocumentName
753
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
754
+ * @returns {string} A string representing the branch.
755
+ */
756
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
757
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
758
+ }
759
+ /**
760
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
761
+ *
762
+ * @param {string} projectLocationDataStoreBranchDocumentName
763
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
764
+ * @returns {string} A string representing the document.
765
+ */
766
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
767
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
768
+ }
769
+ /**
770
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
771
+ *
772
+ * @param {string} project
773
+ * @param {string} location
774
+ * @param {string} data_store
775
+ * @param {string} conversation
776
+ * @returns {string} Resource name string.
777
+ */
778
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
779
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
780
+ project: project,
781
+ location: location,
782
+ data_store: dataStore,
783
+ conversation: conversation,
784
+ });
785
+ }
786
+ /**
787
+ * Parse the project from ProjectLocationDataStoreConversation resource.
788
+ *
789
+ * @param {string} projectLocationDataStoreConversationName
790
+ * A fully-qualified path representing project_location_data_store_conversation resource.
791
+ * @returns {string} A string representing the project.
792
+ */
793
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
794
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
795
+ }
796
+ /**
797
+ * Parse the location from ProjectLocationDataStoreConversation resource.
798
+ *
799
+ * @param {string} projectLocationDataStoreConversationName
800
+ * A fully-qualified path representing project_location_data_store_conversation resource.
801
+ * @returns {string} A string representing the location.
802
+ */
803
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
804
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
805
+ }
806
+ /**
807
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
808
+ *
809
+ * @param {string} projectLocationDataStoreConversationName
810
+ * A fully-qualified path representing project_location_data_store_conversation resource.
811
+ * @returns {string} A string representing the data_store.
812
+ */
813
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
814
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
815
+ }
816
+ /**
817
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
818
+ *
819
+ * @param {string} projectLocationDataStoreConversationName
820
+ * A fully-qualified path representing project_location_data_store_conversation resource.
821
+ * @returns {string} A string representing the conversation.
822
+ */
823
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
824
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
825
+ }
826
+ /**
827
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
828
+ *
829
+ * @param {string} project
830
+ * @param {string} location
831
+ * @param {string} data_store
832
+ * @param {string} schema
833
+ * @returns {string} Resource name string.
834
+ */
835
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
836
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
837
+ project: project,
838
+ location: location,
839
+ data_store: dataStore,
840
+ schema: schema,
841
+ });
842
+ }
843
+ /**
844
+ * Parse the project from ProjectLocationDataStoreSchema resource.
845
+ *
846
+ * @param {string} projectLocationDataStoreSchemaName
847
+ * A fully-qualified path representing project_location_data_store_schema resource.
848
+ * @returns {string} A string representing the project.
849
+ */
850
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
851
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
852
+ }
853
+ /**
854
+ * Parse the location from ProjectLocationDataStoreSchema resource.
855
+ *
856
+ * @param {string} projectLocationDataStoreSchemaName
857
+ * A fully-qualified path representing project_location_data_store_schema resource.
858
+ * @returns {string} A string representing the location.
859
+ */
860
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
861
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
862
+ }
863
+ /**
864
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
865
+ *
866
+ * @param {string} projectLocationDataStoreSchemaName
867
+ * A fully-qualified path representing project_location_data_store_schema resource.
868
+ * @returns {string} A string representing the data_store.
869
+ */
870
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
871
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
872
+ }
873
+ /**
874
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
875
+ *
876
+ * @param {string} projectLocationDataStoreSchemaName
877
+ * A fully-qualified path representing project_location_data_store_schema resource.
878
+ * @returns {string} A string representing the schema.
879
+ */
880
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
881
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
882
+ }
883
+ /**
884
+ * Terminate the gRPC channel and close the client.
885
+ *
886
+ * The client will no longer be usable and all future behavior is undefined.
887
+ * @returns {Promise} A promise that resolves when the client is closed.
888
+ */
889
+ close() {
890
+ if (this.completionServiceStub && !this._terminated) {
891
+ return this.completionServiceStub.then(stub => {
892
+ this._terminated = true;
893
+ stub.close();
894
+ this.locationsClient.close();
895
+ });
896
+ }
897
+ return Promise.resolve();
898
+ }
899
+ }
900
+ exports.CompletionServiceClient = CompletionServiceClient;
901
+ //# sourceMappingURL=completion_service_client.js.map