@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,1333 @@
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.ConversationalSearchServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1alpha/conversational_search_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./conversational_search_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for conversational search.
31
+ * @class
32
+ * @memberof v1alpha
33
+ */
34
+ class ConversationalSearchServiceClient {
35
+ /**
36
+ * Construct an instance of ConversationalSearchServiceClient.
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 ConversationalSearchServiceClient({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
+ // Some of the methods on this service return "paged" results,
156
+ // (e.g. 50 results at a time, with tokens to get subsequent
157
+ // pages). Denote the keys used for pagination and results.
158
+ this.descriptors.page = {
159
+ listConversations: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversations'),
160
+ };
161
+ // Put together the default options sent with requests.
162
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.ConversationalSearchService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
163
+ // Set up a dictionary of "inner API calls"; the core implementation
164
+ // of calling the API is handled in `google-gax`, with this code
165
+ // merely providing the destination and request information.
166
+ this.innerApiCalls = {};
167
+ // Add a warn function to the client constructor so it can be easily tested.
168
+ this.warn = this._gaxModule.warn;
169
+ }
170
+ /**
171
+ * Initialize the client.
172
+ * Performs asynchronous operations (such as authentication) and prepares the client.
173
+ * This function will be called automatically when any class method is called for the
174
+ * first time, but if you need to initialize it before calling an actual method,
175
+ * feel free to call initialize() directly.
176
+ *
177
+ * You can await on this method if you want to make sure the client is initialized.
178
+ *
179
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
180
+ */
181
+ initialize() {
182
+ // If the client stub promise is already initialized, return immediately.
183
+ if (this.conversationalSearchServiceStub) {
184
+ return this.conversationalSearchServiceStub;
185
+ }
186
+ // Put together the "service stub" for
187
+ // google.cloud.discoveryengine.v1alpha.ConversationalSearchService.
188
+ this.conversationalSearchServiceStub = this._gaxGrpc.createStub(this._opts.fallback
189
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1alpha.ConversationalSearchService')
190
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
191
+ this._protos.google.cloud.discoveryengine.v1alpha
192
+ .ConversationalSearchService, this._opts, this._providedCustomServicePath);
193
+ // Iterate over each of the methods that the service provides
194
+ // and create an API call method for each.
195
+ const conversationalSearchServiceStubMethods = [
196
+ 'converseConversation',
197
+ 'createConversation',
198
+ 'deleteConversation',
199
+ 'updateConversation',
200
+ 'getConversation',
201
+ 'listConversations',
202
+ ];
203
+ for (const methodName of conversationalSearchServiceStubMethods) {
204
+ const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
205
+ if (this._terminated) {
206
+ return Promise.reject('The client has already been closed.');
207
+ }
208
+ const func = stub[methodName];
209
+ return func.apply(stub, args);
210
+ }, (err) => () => {
211
+ throw err;
212
+ });
213
+ const descriptor = this.descriptors.page[methodName] || undefined;
214
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
215
+ this.innerApiCalls[methodName] = apiCall;
216
+ }
217
+ return this.conversationalSearchServiceStub;
218
+ }
219
+ /**
220
+ * The DNS address for this API service.
221
+ * @returns {string} The DNS address for this service.
222
+ */
223
+ static get servicePath() {
224
+ return 'discoveryengine.googleapis.com';
225
+ }
226
+ /**
227
+ * The DNS address for this API service - same as servicePath(),
228
+ * exists for compatibility reasons.
229
+ * @returns {string} The DNS address for this service.
230
+ */
231
+ static get apiEndpoint() {
232
+ return 'discoveryengine.googleapis.com';
233
+ }
234
+ /**
235
+ * The port for this API service.
236
+ * @returns {number} The default port for this service.
237
+ */
238
+ static get port() {
239
+ return 443;
240
+ }
241
+ /**
242
+ * The scopes needed to make gRPC calls for every method defined
243
+ * in this service.
244
+ * @returns {string[]} List of default scopes.
245
+ */
246
+ static get scopes() {
247
+ return ['https://www.googleapis.com/auth/cloud-platform'];
248
+ }
249
+ /**
250
+ * Return the project ID used by this class.
251
+ * @returns {Promise} A promise that resolves to string containing the project ID.
252
+ */
253
+ getProjectId(callback) {
254
+ if (callback) {
255
+ this.auth.getProjectId(callback);
256
+ return;
257
+ }
258
+ return this.auth.getProjectId();
259
+ }
260
+ converseConversation(request, optionsOrCallback, callback) {
261
+ var _a;
262
+ request = request || {};
263
+ let options;
264
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
265
+ callback = optionsOrCallback;
266
+ options = {};
267
+ }
268
+ else {
269
+ options = optionsOrCallback;
270
+ }
271
+ options = options || {};
272
+ options.otherArgs = options.otherArgs || {};
273
+ options.otherArgs.headers = options.otherArgs.headers || {};
274
+ options.otherArgs.headers['x-goog-request-params'] =
275
+ this._gaxModule.routingHeader.fromParams({
276
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
277
+ });
278
+ this.initialize();
279
+ return this.innerApiCalls.converseConversation(request, options, callback);
280
+ }
281
+ createConversation(request, optionsOrCallback, callback) {
282
+ var _a;
283
+ request = request || {};
284
+ let options;
285
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
286
+ callback = optionsOrCallback;
287
+ options = {};
288
+ }
289
+ else {
290
+ options = optionsOrCallback;
291
+ }
292
+ options = options || {};
293
+ options.otherArgs = options.otherArgs || {};
294
+ options.otherArgs.headers = options.otherArgs.headers || {};
295
+ options.otherArgs.headers['x-goog-request-params'] =
296
+ this._gaxModule.routingHeader.fromParams({
297
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
298
+ });
299
+ this.initialize();
300
+ return this.innerApiCalls.createConversation(request, options, callback);
301
+ }
302
+ deleteConversation(request, optionsOrCallback, callback) {
303
+ var _a;
304
+ request = request || {};
305
+ let options;
306
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
307
+ callback = optionsOrCallback;
308
+ options = {};
309
+ }
310
+ else {
311
+ options = optionsOrCallback;
312
+ }
313
+ options = options || {};
314
+ options.otherArgs = options.otherArgs || {};
315
+ options.otherArgs.headers = options.otherArgs.headers || {};
316
+ options.otherArgs.headers['x-goog-request-params'] =
317
+ this._gaxModule.routingHeader.fromParams({
318
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
319
+ });
320
+ this.initialize();
321
+ return this.innerApiCalls.deleteConversation(request, options, callback);
322
+ }
323
+ updateConversation(request, optionsOrCallback, callback) {
324
+ var _a;
325
+ request = request || {};
326
+ let options;
327
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
328
+ callback = optionsOrCallback;
329
+ options = {};
330
+ }
331
+ else {
332
+ options = optionsOrCallback;
333
+ }
334
+ options = options || {};
335
+ options.otherArgs = options.otherArgs || {};
336
+ options.otherArgs.headers = options.otherArgs.headers || {};
337
+ options.otherArgs.headers['x-goog-request-params'] =
338
+ this._gaxModule.routingHeader.fromParams({
339
+ 'conversation.name': (_a = request.conversation.name) !== null && _a !== void 0 ? _a : '',
340
+ });
341
+ this.initialize();
342
+ return this.innerApiCalls.updateConversation(request, options, callback);
343
+ }
344
+ getConversation(request, optionsOrCallback, callback) {
345
+ var _a;
346
+ request = request || {};
347
+ let options;
348
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
349
+ callback = optionsOrCallback;
350
+ options = {};
351
+ }
352
+ else {
353
+ options = optionsOrCallback;
354
+ }
355
+ options = options || {};
356
+ options.otherArgs = options.otherArgs || {};
357
+ options.otherArgs.headers = options.otherArgs.headers || {};
358
+ options.otherArgs.headers['x-goog-request-params'] =
359
+ this._gaxModule.routingHeader.fromParams({
360
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
361
+ });
362
+ this.initialize();
363
+ return this.innerApiCalls.getConversation(request, options, callback);
364
+ }
365
+ listConversations(request, optionsOrCallback, callback) {
366
+ var _a;
367
+ request = request || {};
368
+ let options;
369
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
370
+ callback = optionsOrCallback;
371
+ options = {};
372
+ }
373
+ else {
374
+ options = optionsOrCallback;
375
+ }
376
+ options = options || {};
377
+ options.otherArgs = options.otherArgs || {};
378
+ options.otherArgs.headers = options.otherArgs.headers || {};
379
+ options.otherArgs.headers['x-goog-request-params'] =
380
+ this._gaxModule.routingHeader.fromParams({
381
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
382
+ });
383
+ this.initialize();
384
+ return this.innerApiCalls.listConversations(request, options, callback);
385
+ }
386
+ /**
387
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
388
+ * @param {Object} request
389
+ * The request object that will be sent.
390
+ * @param {string} request.parent
391
+ * Required. The data store resource name. Format:
392
+ * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
393
+ * @param {number} request.pageSize
394
+ * Maximum number of results to return. If unspecified, defaults
395
+ * to 50. Max allowed value is 1000.
396
+ * @param {string} request.pageToken
397
+ * A page token, received from a previous `ListConversations` call.
398
+ * Provide this to retrieve the subsequent page.
399
+ * @param {string} request.filter
400
+ * A filter to apply on the list results. The supported features are:
401
+ * user_pseudo_id, state.
402
+ *
403
+ * Example:
404
+ * "user_pseudo_id = some_id"
405
+ * @param {string} request.orderBy
406
+ * A comma-separated list of fields to order by, sorted in ascending order.
407
+ * Use "desc" after a field name for descending.
408
+ * Supported fields:
409
+ * * `update_time`
410
+ * * `create_time`
411
+ * * `conversation_name`
412
+ *
413
+ * Example:
414
+ * "update_time desc"
415
+ * "create_time"
416
+ * @param {object} [options]
417
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
418
+ * @returns {Stream}
419
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1alpha.Conversation|Conversation} on 'data' event.
420
+ * The client library will perform auto-pagination by default: it will call the API as many
421
+ * times as needed. Note that it can affect your quota.
422
+ * We recommend using `listConversationsAsync()`
423
+ * method described below for async iteration which you can stop as needed.
424
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
425
+ * for more details and examples.
426
+ */
427
+ listConversationsStream(request, options) {
428
+ var _a;
429
+ request = request || {};
430
+ options = options || {};
431
+ options.otherArgs = options.otherArgs || {};
432
+ options.otherArgs.headers = options.otherArgs.headers || {};
433
+ options.otherArgs.headers['x-goog-request-params'] =
434
+ this._gaxModule.routingHeader.fromParams({
435
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
436
+ });
437
+ const defaultCallSettings = this._defaults['listConversations'];
438
+ const callSettings = defaultCallSettings.merge(options);
439
+ this.initialize();
440
+ return this.descriptors.page.listConversations.createStream(this.innerApiCalls.listConversations, request, callSettings);
441
+ }
442
+ /**
443
+ * Equivalent to `listConversations`, but returns an iterable object.
444
+ *
445
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
446
+ * @param {Object} request
447
+ * The request object that will be sent.
448
+ * @param {string} request.parent
449
+ * Required. The data store resource name. Format:
450
+ * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
451
+ * @param {number} request.pageSize
452
+ * Maximum number of results to return. If unspecified, defaults
453
+ * to 50. Max allowed value is 1000.
454
+ * @param {string} request.pageToken
455
+ * A page token, received from a previous `ListConversations` call.
456
+ * Provide this to retrieve the subsequent page.
457
+ * @param {string} request.filter
458
+ * A filter to apply on the list results. The supported features are:
459
+ * user_pseudo_id, state.
460
+ *
461
+ * Example:
462
+ * "user_pseudo_id = some_id"
463
+ * @param {string} request.orderBy
464
+ * A comma-separated list of fields to order by, sorted in ascending order.
465
+ * Use "desc" after a field name for descending.
466
+ * Supported fields:
467
+ * * `update_time`
468
+ * * `create_time`
469
+ * * `conversation_name`
470
+ *
471
+ * Example:
472
+ * "update_time desc"
473
+ * "create_time"
474
+ * @param {object} [options]
475
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
476
+ * @returns {Object}
477
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
478
+ * When you iterate the returned iterable, each element will be an object representing
479
+ * {@link protos.google.cloud.discoveryengine.v1alpha.Conversation|Conversation}. The API will be called under the hood as needed, once per the page,
480
+ * so you can stop the iteration when you don't need more results.
481
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
482
+ * for more details and examples.
483
+ * @example <caption>include:samples/generated/v1alpha/conversational_search_service.list_conversations.js</caption>
484
+ * region_tag:discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_async
485
+ */
486
+ listConversationsAsync(request, options) {
487
+ var _a;
488
+ request = request || {};
489
+ options = options || {};
490
+ options.otherArgs = options.otherArgs || {};
491
+ options.otherArgs.headers = options.otherArgs.headers || {};
492
+ options.otherArgs.headers['x-goog-request-params'] =
493
+ this._gaxModule.routingHeader.fromParams({
494
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
495
+ });
496
+ const defaultCallSettings = this._defaults['listConversations'];
497
+ const callSettings = defaultCallSettings.merge(options);
498
+ this.initialize();
499
+ return this.descriptors.page.listConversations.asyncIterate(this.innerApiCalls['listConversations'], request, callSettings);
500
+ }
501
+ /**
502
+ * Gets information about a location.
503
+ *
504
+ * @param {Object} request
505
+ * The request object that will be sent.
506
+ * @param {string} request.name
507
+ * Resource name for the location.
508
+ * @param {object} [options]
509
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
510
+ * @returns {Promise} - The promise which resolves to an array.
511
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
512
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
513
+ * for more details and examples.
514
+ * @example
515
+ * ```
516
+ * const [response] = await client.getLocation(request);
517
+ * ```
518
+ */
519
+ getLocation(request, options, callback) {
520
+ return this.locationsClient.getLocation(request, options, callback);
521
+ }
522
+ /**
523
+ * Lists information about the supported locations for this service. Returns an iterable object.
524
+ *
525
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
526
+ * @param {Object} request
527
+ * The request object that will be sent.
528
+ * @param {string} request.name
529
+ * The resource that owns the locations collection, if applicable.
530
+ * @param {string} request.filter
531
+ * The standard list filter.
532
+ * @param {number} request.pageSize
533
+ * The standard list page size.
534
+ * @param {string} request.pageToken
535
+ * The standard list page token.
536
+ * @param {object} [options]
537
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
538
+ * @returns {Object}
539
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
540
+ * When you iterate the returned iterable, each element will be an object representing
541
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
542
+ * so you can stop the iteration when you don't need more results.
543
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
544
+ * for more details and examples.
545
+ * @example
546
+ * ```
547
+ * const iterable = client.listLocationsAsync(request);
548
+ * for await (const response of iterable) {
549
+ * // process response
550
+ * }
551
+ * ```
552
+ */
553
+ listLocationsAsync(request, options) {
554
+ return this.locationsClient.listLocationsAsync(request, options);
555
+ }
556
+ // --------------------
557
+ // -- Path templates --
558
+ // --------------------
559
+ /**
560
+ * Return a fully-qualified engine resource name string.
561
+ *
562
+ * @param {string} project
563
+ * @param {string} location
564
+ * @param {string} collection
565
+ * @param {string} engine
566
+ * @returns {string} Resource name string.
567
+ */
568
+ enginePath(project, location, collection, engine) {
569
+ return this.pathTemplates.enginePathTemplate.render({
570
+ project: project,
571
+ location: location,
572
+ collection: collection,
573
+ engine: engine,
574
+ });
575
+ }
576
+ /**
577
+ * Parse the project from Engine resource.
578
+ *
579
+ * @param {string} engineName
580
+ * A fully-qualified path representing Engine resource.
581
+ * @returns {string} A string representing the project.
582
+ */
583
+ matchProjectFromEngineName(engineName) {
584
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
585
+ }
586
+ /**
587
+ * Parse the location from Engine resource.
588
+ *
589
+ * @param {string} engineName
590
+ * A fully-qualified path representing Engine resource.
591
+ * @returns {string} A string representing the location.
592
+ */
593
+ matchLocationFromEngineName(engineName) {
594
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
595
+ }
596
+ /**
597
+ * Parse the collection from Engine resource.
598
+ *
599
+ * @param {string} engineName
600
+ * A fully-qualified path representing Engine resource.
601
+ * @returns {string} A string representing the collection.
602
+ */
603
+ matchCollectionFromEngineName(engineName) {
604
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
605
+ }
606
+ /**
607
+ * Parse the engine from Engine resource.
608
+ *
609
+ * @param {string} engineName
610
+ * A fully-qualified path representing Engine resource.
611
+ * @returns {string} A string representing the engine.
612
+ */
613
+ matchEngineFromEngineName(engineName) {
614
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
615
+ }
616
+ /**
617
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
618
+ *
619
+ * @param {string} project
620
+ * @param {string} location
621
+ * @param {string} collection
622
+ * @param {string} data_store
623
+ * @returns {string} Resource name string.
624
+ */
625
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
626
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
627
+ project: project,
628
+ location: location,
629
+ collection: collection,
630
+ data_store: dataStore,
631
+ });
632
+ }
633
+ /**
634
+ * Parse the project from ProjectLocationCollectionDataStore resource.
635
+ *
636
+ * @param {string} projectLocationCollectionDataStoreName
637
+ * A fully-qualified path representing project_location_collection_data_store resource.
638
+ * @returns {string} A string representing the project.
639
+ */
640
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
641
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
642
+ }
643
+ /**
644
+ * Parse the location from ProjectLocationCollectionDataStore resource.
645
+ *
646
+ * @param {string} projectLocationCollectionDataStoreName
647
+ * A fully-qualified path representing project_location_collection_data_store resource.
648
+ * @returns {string} A string representing the location.
649
+ */
650
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
651
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
652
+ }
653
+ /**
654
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
655
+ *
656
+ * @param {string} projectLocationCollectionDataStoreName
657
+ * A fully-qualified path representing project_location_collection_data_store resource.
658
+ * @returns {string} A string representing the collection.
659
+ */
660
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
661
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
662
+ }
663
+ /**
664
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
665
+ *
666
+ * @param {string} projectLocationCollectionDataStoreName
667
+ * A fully-qualified path representing project_location_collection_data_store resource.
668
+ * @returns {string} A string representing the data_store.
669
+ */
670
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
671
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
672
+ }
673
+ /**
674
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
675
+ *
676
+ * @param {string} project
677
+ * @param {string} location
678
+ * @param {string} collection
679
+ * @param {string} data_store
680
+ * @param {string} branch
681
+ * @param {string} document
682
+ * @returns {string} Resource name string.
683
+ */
684
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
685
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
686
+ project: project,
687
+ location: location,
688
+ collection: collection,
689
+ data_store: dataStore,
690
+ branch: branch,
691
+ document: document,
692
+ });
693
+ }
694
+ /**
695
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
696
+ *
697
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
698
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
699
+ * @returns {string} A string representing the project.
700
+ */
701
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
702
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
703
+ }
704
+ /**
705
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
706
+ *
707
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
708
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
709
+ * @returns {string} A string representing the location.
710
+ */
711
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
712
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
713
+ }
714
+ /**
715
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
716
+ *
717
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
718
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
719
+ * @returns {string} A string representing the collection.
720
+ */
721
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
722
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
723
+ }
724
+ /**
725
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
726
+ *
727
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
728
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
729
+ * @returns {string} A string representing the data_store.
730
+ */
731
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
732
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
733
+ }
734
+ /**
735
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
736
+ *
737
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
738
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
739
+ * @returns {string} A string representing the branch.
740
+ */
741
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
742
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
743
+ }
744
+ /**
745
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
746
+ *
747
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
748
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
749
+ * @returns {string} A string representing the document.
750
+ */
751
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
752
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
753
+ }
754
+ /**
755
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
756
+ *
757
+ * @param {string} project
758
+ * @param {string} location
759
+ * @param {string} collection
760
+ * @param {string} data_store
761
+ * @param {string} conversation
762
+ * @returns {string} Resource name string.
763
+ */
764
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
765
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
766
+ project: project,
767
+ location: location,
768
+ collection: collection,
769
+ data_store: dataStore,
770
+ conversation: conversation,
771
+ });
772
+ }
773
+ /**
774
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
775
+ *
776
+ * @param {string} projectLocationCollectionDataStoreConversationName
777
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
778
+ * @returns {string} A string representing the project.
779
+ */
780
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
781
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
782
+ }
783
+ /**
784
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
785
+ *
786
+ * @param {string} projectLocationCollectionDataStoreConversationName
787
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
788
+ * @returns {string} A string representing the location.
789
+ */
790
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
791
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
792
+ }
793
+ /**
794
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
795
+ *
796
+ * @param {string} projectLocationCollectionDataStoreConversationName
797
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
798
+ * @returns {string} A string representing the collection.
799
+ */
800
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
801
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
802
+ }
803
+ /**
804
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
805
+ *
806
+ * @param {string} projectLocationCollectionDataStoreConversationName
807
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
808
+ * @returns {string} A string representing the data_store.
809
+ */
810
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
811
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
812
+ }
813
+ /**
814
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
815
+ *
816
+ * @param {string} projectLocationCollectionDataStoreConversationName
817
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
818
+ * @returns {string} A string representing the conversation.
819
+ */
820
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
821
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
822
+ }
823
+ /**
824
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
825
+ *
826
+ * @param {string} project
827
+ * @param {string} location
828
+ * @param {string} collection
829
+ * @param {string} data_store
830
+ * @param {string} schema
831
+ * @returns {string} Resource name string.
832
+ */
833
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
834
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
835
+ project: project,
836
+ location: location,
837
+ collection: collection,
838
+ data_store: dataStore,
839
+ schema: schema,
840
+ });
841
+ }
842
+ /**
843
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
844
+ *
845
+ * @param {string} projectLocationCollectionDataStoreSchemaName
846
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
847
+ * @returns {string} A string representing the project.
848
+ */
849
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
850
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
851
+ }
852
+ /**
853
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
854
+ *
855
+ * @param {string} projectLocationCollectionDataStoreSchemaName
856
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
857
+ * @returns {string} A string representing the location.
858
+ */
859
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
860
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
861
+ }
862
+ /**
863
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
864
+ *
865
+ * @param {string} projectLocationCollectionDataStoreSchemaName
866
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
867
+ * @returns {string} A string representing the collection.
868
+ */
869
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
870
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
871
+ }
872
+ /**
873
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
874
+ *
875
+ * @param {string} projectLocationCollectionDataStoreSchemaName
876
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
877
+ * @returns {string} A string representing the data_store.
878
+ */
879
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
880
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
881
+ }
882
+ /**
883
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
884
+ *
885
+ * @param {string} projectLocationCollectionDataStoreSchemaName
886
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
887
+ * @returns {string} A string representing the schema.
888
+ */
889
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
890
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
891
+ }
892
+ /**
893
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
894
+ *
895
+ * @param {string} project
896
+ * @param {string} location
897
+ * @param {string} collection
898
+ * @param {string} data_store
899
+ * @param {string} serving_config
900
+ * @returns {string} Resource name string.
901
+ */
902
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
903
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
904
+ project: project,
905
+ location: location,
906
+ collection: collection,
907
+ data_store: dataStore,
908
+ serving_config: servingConfig,
909
+ });
910
+ }
911
+ /**
912
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
913
+ *
914
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
915
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
916
+ * @returns {string} A string representing the project.
917
+ */
918
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
919
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
920
+ }
921
+ /**
922
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
923
+ *
924
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
925
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
926
+ * @returns {string} A string representing the location.
927
+ */
928
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
929
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
930
+ }
931
+ /**
932
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
933
+ *
934
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
935
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
936
+ * @returns {string} A string representing the collection.
937
+ */
938
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
939
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
940
+ }
941
+ /**
942
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
943
+ *
944
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
945
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
946
+ * @returns {string} A string representing the data_store.
947
+ */
948
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
949
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
950
+ }
951
+ /**
952
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
953
+ *
954
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
955
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
956
+ * @returns {string} A string representing the serving_config.
957
+ */
958
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
959
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
960
+ }
961
+ /**
962
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
963
+ *
964
+ * @param {string} project
965
+ * @param {string} location
966
+ * @param {string} collection
967
+ * @param {string} engine
968
+ * @param {string} serving_config
969
+ * @returns {string} Resource name string.
970
+ */
971
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
972
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
973
+ project: project,
974
+ location: location,
975
+ collection: collection,
976
+ engine: engine,
977
+ serving_config: servingConfig,
978
+ });
979
+ }
980
+ /**
981
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
982
+ *
983
+ * @param {string} projectLocationCollectionEngineServingConfigName
984
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
985
+ * @returns {string} A string representing the project.
986
+ */
987
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
988
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
989
+ }
990
+ /**
991
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
992
+ *
993
+ * @param {string} projectLocationCollectionEngineServingConfigName
994
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
995
+ * @returns {string} A string representing the location.
996
+ */
997
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
998
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
999
+ }
1000
+ /**
1001
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1002
+ *
1003
+ * @param {string} projectLocationCollectionEngineServingConfigName
1004
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1005
+ * @returns {string} A string representing the collection.
1006
+ */
1007
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1008
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1009
+ }
1010
+ /**
1011
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1012
+ *
1013
+ * @param {string} projectLocationCollectionEngineServingConfigName
1014
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1015
+ * @returns {string} A string representing the engine.
1016
+ */
1017
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1018
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1019
+ }
1020
+ /**
1021
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1022
+ *
1023
+ * @param {string} projectLocationCollectionEngineServingConfigName
1024
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1025
+ * @returns {string} A string representing the serving_config.
1026
+ */
1027
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1028
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1029
+ }
1030
+ /**
1031
+ * Return a fully-qualified projectLocationDataStore resource name string.
1032
+ *
1033
+ * @param {string} project
1034
+ * @param {string} location
1035
+ * @param {string} data_store
1036
+ * @returns {string} Resource name string.
1037
+ */
1038
+ projectLocationDataStorePath(project, location, dataStore) {
1039
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1040
+ project: project,
1041
+ location: location,
1042
+ data_store: dataStore,
1043
+ });
1044
+ }
1045
+ /**
1046
+ * Parse the project from ProjectLocationDataStore resource.
1047
+ *
1048
+ * @param {string} projectLocationDataStoreName
1049
+ * A fully-qualified path representing project_location_data_store resource.
1050
+ * @returns {string} A string representing the project.
1051
+ */
1052
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1053
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1054
+ }
1055
+ /**
1056
+ * Parse the location from ProjectLocationDataStore resource.
1057
+ *
1058
+ * @param {string} projectLocationDataStoreName
1059
+ * A fully-qualified path representing project_location_data_store resource.
1060
+ * @returns {string} A string representing the location.
1061
+ */
1062
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1063
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1064
+ }
1065
+ /**
1066
+ * Parse the data_store from ProjectLocationDataStore resource.
1067
+ *
1068
+ * @param {string} projectLocationDataStoreName
1069
+ * A fully-qualified path representing project_location_data_store resource.
1070
+ * @returns {string} A string representing the data_store.
1071
+ */
1072
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1073
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1074
+ }
1075
+ /**
1076
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1077
+ *
1078
+ * @param {string} project
1079
+ * @param {string} location
1080
+ * @param {string} data_store
1081
+ * @param {string} branch
1082
+ * @param {string} document
1083
+ * @returns {string} Resource name string.
1084
+ */
1085
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1086
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1087
+ project: project,
1088
+ location: location,
1089
+ data_store: dataStore,
1090
+ branch: branch,
1091
+ document: document,
1092
+ });
1093
+ }
1094
+ /**
1095
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1096
+ *
1097
+ * @param {string} projectLocationDataStoreBranchDocumentName
1098
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1099
+ * @returns {string} A string representing the project.
1100
+ */
1101
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1102
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1103
+ }
1104
+ /**
1105
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1106
+ *
1107
+ * @param {string} projectLocationDataStoreBranchDocumentName
1108
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1109
+ * @returns {string} A string representing the location.
1110
+ */
1111
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1112
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1113
+ }
1114
+ /**
1115
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1116
+ *
1117
+ * @param {string} projectLocationDataStoreBranchDocumentName
1118
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1119
+ * @returns {string} A string representing the data_store.
1120
+ */
1121
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1122
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1123
+ }
1124
+ /**
1125
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1126
+ *
1127
+ * @param {string} projectLocationDataStoreBranchDocumentName
1128
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1129
+ * @returns {string} A string representing the branch.
1130
+ */
1131
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1132
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1133
+ }
1134
+ /**
1135
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1136
+ *
1137
+ * @param {string} projectLocationDataStoreBranchDocumentName
1138
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1139
+ * @returns {string} A string representing the document.
1140
+ */
1141
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1142
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1143
+ }
1144
+ /**
1145
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1146
+ *
1147
+ * @param {string} project
1148
+ * @param {string} location
1149
+ * @param {string} data_store
1150
+ * @param {string} conversation
1151
+ * @returns {string} Resource name string.
1152
+ */
1153
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1154
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1155
+ project: project,
1156
+ location: location,
1157
+ data_store: dataStore,
1158
+ conversation: conversation,
1159
+ });
1160
+ }
1161
+ /**
1162
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1163
+ *
1164
+ * @param {string} projectLocationDataStoreConversationName
1165
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1166
+ * @returns {string} A string representing the project.
1167
+ */
1168
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1169
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1170
+ }
1171
+ /**
1172
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1173
+ *
1174
+ * @param {string} projectLocationDataStoreConversationName
1175
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1176
+ * @returns {string} A string representing the location.
1177
+ */
1178
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1179
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1180
+ }
1181
+ /**
1182
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1183
+ *
1184
+ * @param {string} projectLocationDataStoreConversationName
1185
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1186
+ * @returns {string} A string representing the data_store.
1187
+ */
1188
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1189
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1190
+ }
1191
+ /**
1192
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1193
+ *
1194
+ * @param {string} projectLocationDataStoreConversationName
1195
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1196
+ * @returns {string} A string representing the conversation.
1197
+ */
1198
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1199
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1200
+ }
1201
+ /**
1202
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1203
+ *
1204
+ * @param {string} project
1205
+ * @param {string} location
1206
+ * @param {string} data_store
1207
+ * @param {string} schema
1208
+ * @returns {string} Resource name string.
1209
+ */
1210
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
1211
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
1212
+ project: project,
1213
+ location: location,
1214
+ data_store: dataStore,
1215
+ schema: schema,
1216
+ });
1217
+ }
1218
+ /**
1219
+ * Parse the project from ProjectLocationDataStoreSchema resource.
1220
+ *
1221
+ * @param {string} projectLocationDataStoreSchemaName
1222
+ * A fully-qualified path representing project_location_data_store_schema resource.
1223
+ * @returns {string} A string representing the project.
1224
+ */
1225
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1226
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
1227
+ }
1228
+ /**
1229
+ * Parse the location from ProjectLocationDataStoreSchema resource.
1230
+ *
1231
+ * @param {string} projectLocationDataStoreSchemaName
1232
+ * A fully-qualified path representing project_location_data_store_schema resource.
1233
+ * @returns {string} A string representing the location.
1234
+ */
1235
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1236
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1237
+ }
1238
+ /**
1239
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1240
+ *
1241
+ * @param {string} projectLocationDataStoreSchemaName
1242
+ * A fully-qualified path representing project_location_data_store_schema resource.
1243
+ * @returns {string} A string representing the data_store.
1244
+ */
1245
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1246
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1247
+ }
1248
+ /**
1249
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1250
+ *
1251
+ * @param {string} projectLocationDataStoreSchemaName
1252
+ * A fully-qualified path representing project_location_data_store_schema resource.
1253
+ * @returns {string} A string representing the schema.
1254
+ */
1255
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1256
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1257
+ }
1258
+ /**
1259
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1260
+ *
1261
+ * @param {string} project
1262
+ * @param {string} location
1263
+ * @param {string} data_store
1264
+ * @param {string} serving_config
1265
+ * @returns {string} Resource name string.
1266
+ */
1267
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1268
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1269
+ project: project,
1270
+ location: location,
1271
+ data_store: dataStore,
1272
+ serving_config: servingConfig,
1273
+ });
1274
+ }
1275
+ /**
1276
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1277
+ *
1278
+ * @param {string} projectLocationDataStoreServingConfigName
1279
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1280
+ * @returns {string} A string representing the project.
1281
+ */
1282
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1283
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1284
+ }
1285
+ /**
1286
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1287
+ *
1288
+ * @param {string} projectLocationDataStoreServingConfigName
1289
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1290
+ * @returns {string} A string representing the location.
1291
+ */
1292
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1293
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1294
+ }
1295
+ /**
1296
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1297
+ *
1298
+ * @param {string} projectLocationDataStoreServingConfigName
1299
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1300
+ * @returns {string} A string representing the data_store.
1301
+ */
1302
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1303
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1304
+ }
1305
+ /**
1306
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1307
+ *
1308
+ * @param {string} projectLocationDataStoreServingConfigName
1309
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1310
+ * @returns {string} A string representing the serving_config.
1311
+ */
1312
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1313
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1314
+ }
1315
+ /**
1316
+ * Terminate the gRPC channel and close the client.
1317
+ *
1318
+ * The client will no longer be usable and all future behavior is undefined.
1319
+ * @returns {Promise} A promise that resolves when the client is closed.
1320
+ */
1321
+ close() {
1322
+ if (this.conversationalSearchServiceStub && !this._terminated) {
1323
+ return this.conversationalSearchServiceStub.then(stub => {
1324
+ this._terminated = true;
1325
+ stub.close();
1326
+ this.locationsClient.close();
1327
+ });
1328
+ }
1329
+ return Promise.resolve();
1330
+ }
1331
+ }
1332
+ exports.ConversationalSearchServiceClient = ConversationalSearchServiceClient;
1333
+ //# sourceMappingURL=conversational_search_service_client.js.map