@google-cloud/discoveryengine 1.1.0 → 1.2.0

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