@google-cloud/discoveryengine 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +51 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
  4. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
  6. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
  16. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
  19. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
  20. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
  21. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
  22. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
  23. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +40 -1
  24. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +98 -0
  25. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
  26. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  27. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
  29. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +38 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
  32. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +150 -11
  33. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +264 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +147 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
  38. package/build/protos/protos.d.ts +41157 -23655
  39. package/build/protos/protos.js +103188 -62466
  40. package/build/protos/protos.json +10400 -6075
  41. package/build/src/index.d.ts +10 -1
  42. package/build/src/index.js +10 -1
  43. package/build/src/v1/completion_service_client.d.ts +489 -7
  44. package/build/src/v1/completion_service_client.js +715 -11
  45. package/build/src/v1/completion_service_client_config.json +10 -0
  46. package/build/src/v1/conversational_search_service_client.d.ts +341 -3
  47. package/build/src/v1/conversational_search_service_client.js +466 -9
  48. package/build/src/v1/data_store_service_client.d.ts +1286 -0
  49. package/build/src/v1/data_store_service_client.js +1768 -0
  50. package/build/src/v1/data_store_service_client_config.json +46 -0
  51. package/build/src/v1/document_service_client.d.ts +347 -2
  52. package/build/src/v1/document_service_client.js +506 -9
  53. package/build/src/v1/engine_service_client.d.ts +1211 -0
  54. package/build/src/v1/engine_service_client.js +1731 -0
  55. package/build/src/v1/engine_service_client_config.json +46 -0
  56. package/build/src/v1/index.d.ts +3 -0
  57. package/build/src/v1/index.js +7 -1
  58. package/build/src/v1/schema_service_client.d.ts +272 -2
  59. package/build/src/v1/schema_service_client.js +402 -9
  60. package/build/src/v1/search_service_client.d.ts +515 -11
  61. package/build/src/v1/search_service_client.js +648 -15
  62. package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
  63. package/build/src/v1/site_search_engine_service_client.js +2075 -0
  64. package/build/src/v1/site_search_engine_service_client_config.json +74 -0
  65. package/build/src/v1/user_event_service_client.d.ts +272 -2
  66. package/build/src/v1/user_event_service_client.js +402 -9
  67. package/build/src/v1alpha/completion_service_client.d.ts +11 -2
  68. package/build/src/v1alpha/completion_service_client.js +37 -10
  69. package/build/src/v1alpha/conversational_search_service_client.d.ts +11 -2
  70. package/build/src/v1alpha/conversational_search_service_client.js +37 -10
  71. package/build/src/v1alpha/data_store_service_client.d.ts +11 -2
  72. package/build/src/v1alpha/data_store_service_client.js +37 -10
  73. package/build/src/v1alpha/document_service_client.d.ts +11 -2
  74. package/build/src/v1alpha/document_service_client.js +37 -10
  75. package/build/src/v1alpha/engine_service_client.d.ts +11 -2
  76. package/build/src/v1alpha/engine_service_client.js +37 -10
  77. package/build/src/v1alpha/index.js +1 -1
  78. package/build/src/v1alpha/recommendation_service_client.d.ts +11 -2
  79. package/build/src/v1alpha/recommendation_service_client.js +37 -10
  80. package/build/src/v1alpha/schema_service_client.d.ts +11 -2
  81. package/build/src/v1alpha/schema_service_client.js +37 -10
  82. package/build/src/v1alpha/search_service_client.d.ts +11 -2
  83. package/build/src/v1alpha/search_service_client.js +37 -10
  84. package/build/src/v1alpha/search_tuning_service_client.d.ts +11 -2
  85. package/build/src/v1alpha/search_tuning_service_client.js +37 -10
  86. package/build/src/v1alpha/site_search_engine_service_client.d.ts +11 -2
  87. package/build/src/v1alpha/site_search_engine_service_client.js +37 -10
  88. package/build/src/v1alpha/user_event_service_client.d.ts +11 -2
  89. package/build/src/v1alpha/user_event_service_client.js +37 -10
  90. package/build/src/v1beta/completion_service_client.d.ts +633 -7
  91. package/build/src/v1beta/completion_service_client.js +911 -11
  92. package/build/src/v1beta/completion_service_client_config.json +10 -0
  93. package/build/src/v1beta/conversational_search_service_client.d.ts +341 -3
  94. package/build/src/v1beta/conversational_search_service_client.js +466 -9
  95. package/build/src/v1beta/data_store_service_client.d.ts +1433 -0
  96. package/build/src/v1beta/data_store_service_client.js +1966 -0
  97. package/build/src/v1beta/data_store_service_client_config.json +46 -0
  98. package/build/src/v1beta/document_service_client.d.ts +491 -2
  99. package/build/src/v1beta/document_service_client.js +706 -11
  100. package/build/src/v1beta/engine_service_client.d.ts +1357 -0
  101. package/build/src/v1beta/engine_service_client.js +1928 -0
  102. package/build/src/v1beta/engine_service_client_config.json +46 -0
  103. package/build/src/v1beta/index.d.ts +4 -0
  104. package/build/src/v1beta/index.js +9 -1
  105. package/build/src/v1beta/recommendation_service_client.d.ts +420 -5
  106. package/build/src/v1beta/recommendation_service_client.js +570 -9
  107. package/build/src/v1beta/schema_service_client.d.ts +416 -2
  108. package/build/src/v1beta/schema_service_client.js +602 -11
  109. package/build/src/v1beta/search_service_client.d.ts +539 -29
  110. package/build/src/v1beta/search_service_client.js +664 -27
  111. package/build/src/v1beta/serving_config_service_client.d.ts +1102 -0
  112. package/build/src/v1beta/serving_config_service_client.js +1563 -0
  113. package/build/src/v1beta/serving_config_service_client_config.json +38 -0
  114. package/build/src/v1beta/site_search_engine_service_client.d.ts +1712 -0
  115. package/build/src/v1beta/site_search_engine_service_client.js +2271 -0
  116. package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
  117. package/build/src/v1beta/user_event_service_client.d.ts +416 -2
  118. package/build/src/v1beta/user_event_service_client.js +602 -11
  119. package/package.json +2 -2
@@ -0,0 +1,1731 @@
1
+ "use strict";
2
+ // Copyright 2024 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.EngineServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1/engine_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./engine_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for managing {@link protos.google.cloud.discoveryengine.v1.Engine|Engine}
31
+ * configuration.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class EngineServiceClient {
36
+ /**
37
+ * Construct an instance of EngineServiceClient.
38
+ *
39
+ * @param {object} [options] - The configuration object.
40
+ * The options accepted by the constructor are described in detail
41
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
42
+ * The common options are:
43
+ * @param {object} [options.credentials] - Credentials object.
44
+ * @param {string} [options.credentials.client_email]
45
+ * @param {string} [options.credentials.private_key]
46
+ * @param {string} [options.email] - Account email address. Required when
47
+ * using a .pem or .p12 keyFilename.
48
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
49
+ * .p12 key downloaded from the Google Developers Console. If you provide
50
+ * a path to a JSON file, the projectId option below is not necessary.
51
+ * NOTE: .pem and .p12 require you to specify options.email as well.
52
+ * @param {number} [options.port] - The port on which to connect to
53
+ * the remote host.
54
+ * @param {string} [options.projectId] - The project ID from the Google
55
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
56
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
57
+ * app is running in an environment which supports
58
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
59
+ * your project ID will be detected automatically.
60
+ * @param {string} [options.apiEndpoint] - The domain name of the
61
+ * API remote host.
62
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
63
+ * Follows the structure of {@link gapicConfig}.
64
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
65
+ * For more information, please check the
66
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
67
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
68
+ * need to avoid loading the default gRPC version and want to use the fallback
69
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
70
+ * ```
71
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
72
+ * const client = new EngineServiceClient({fallback: true}, gax);
73
+ * ```
74
+ */
75
+ constructor(opts, gaxInstance) {
76
+ var _a, _b, _c, _d;
77
+ this._terminated = false;
78
+ this.descriptors = {
79
+ page: {},
80
+ stream: {},
81
+ longrunning: {},
82
+ batching: {},
83
+ };
84
+ // Ensure that options include all the required fields.
85
+ const staticMembers = this.constructor;
86
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
87
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
88
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
89
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
90
+ }
91
+ this._universeDomain =
92
+ (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
93
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
94
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
95
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
96
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
97
+ const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
98
+ const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
99
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
100
+ // Request numeric enum values if REST transport is used.
101
+ opts.numericEnums = true;
102
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
103
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
104
+ opts['scopes'] = staticMembers.scopes;
105
+ }
106
+ // Load google-gax module synchronously if needed
107
+ if (!gaxInstance) {
108
+ gaxInstance = require('google-gax');
109
+ }
110
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
111
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
112
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
113
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
114
+ // Save options to use in initialize() method.
115
+ this._opts = opts;
116
+ // Save the auth object to the client, for use by other methods.
117
+ this.auth = this._gaxGrpc.auth;
118
+ // Set useJWTAccessWithScope on the auth object.
119
+ this.auth.useJWTAccessWithScope = true;
120
+ // Set defaultServicePath on the auth object.
121
+ this.auth.defaultServicePath = this._servicePath;
122
+ // Set the default scopes in auth client if needed.
123
+ if (servicePath === this._servicePath) {
124
+ this.auth.defaultScopes = staticMembers.scopes;
125
+ }
126
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
127
+ // Determine the client header string.
128
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
129
+ if (typeof process !== 'undefined' && 'versions' in process) {
130
+ clientHeader.push(`gl-node/${process.versions.node}`);
131
+ }
132
+ else {
133
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
134
+ }
135
+ if (!opts.fallback) {
136
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
137
+ }
138
+ else {
139
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
140
+ }
141
+ if (opts.libName && opts.libVersion) {
142
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
143
+ }
144
+ // Load the applicable protos.
145
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
146
+ // This API contains "path templates"; forward-slash-separated
147
+ // identifiers to uniquely identify resources within the API.
148
+ // Create useful helper objects for these.
149
+ this.pathTemplates = {
150
+ collectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}'),
151
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
152
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
153
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
154
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
155
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
156
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
157
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
158
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
159
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
160
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
161
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
162
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
163
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
164
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
165
+ };
166
+ // Some of the methods on this service return "paged" results,
167
+ // (e.g. 50 results at a time, with tokens to get subsequent
168
+ // pages). Denote the keys used for pagination and results.
169
+ this.descriptors.page = {
170
+ listEngines: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'engines'),
171
+ };
172
+ const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
173
+ // This API contains "long-running operations", which return a
174
+ // an Operation object that allows for tracking of the operation,
175
+ // rather than holding a request open.
176
+ const lroOptions = {
177
+ auth: this.auth,
178
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
179
+ };
180
+ if (opts.fallback) {
181
+ lroOptions.protoJson = protoFilesRoot;
182
+ lroOptions.httpRules = [
183
+ {
184
+ selector: 'google.longrunning.Operations.GetOperation',
185
+ get: '/v1/{name=projects/*/operations/*}',
186
+ additional_bindings: [
187
+ {
188
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
189
+ },
190
+ {
191
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
192
+ },
193
+ {
194
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
195
+ },
196
+ {
197
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
198
+ },
199
+ {
200
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
201
+ },
202
+ {
203
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
204
+ },
205
+ {
206
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
207
+ },
208
+ {
209
+ get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
210
+ },
211
+ {
212
+ get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
213
+ },
214
+ {
215
+ get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
216
+ },
217
+ {
218
+ get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
219
+ },
220
+ {
221
+ get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
222
+ },
223
+ { get: '/v1/{name=projects/*/locations/*/operations/*}' },
224
+ { get: '/v1/{name=projects/*/operations/*}' },
225
+ ],
226
+ },
227
+ {
228
+ selector: 'google.longrunning.Operations.ListOperations',
229
+ get: '/v1/{name=projects/*}/operations',
230
+ additional_bindings: [
231
+ {
232
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
233
+ },
234
+ {
235
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
236
+ },
237
+ {
238
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
239
+ },
240
+ {
241
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
242
+ },
243
+ {
244
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
245
+ },
246
+ {
247
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
248
+ },
249
+ {
250
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
251
+ },
252
+ {
253
+ get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
254
+ },
255
+ { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
256
+ {
257
+ get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
258
+ },
259
+ {
260
+ get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
261
+ },
262
+ { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
263
+ { get: '/v1/{name=projects/*/locations/*}/operations' },
264
+ { get: '/v1/{name=projects/*}/operations' },
265
+ ],
266
+ },
267
+ ];
268
+ }
269
+ this.operationsClient = this._gaxModule
270
+ .lro(lroOptions)
271
+ .operationsClient(opts);
272
+ const createEngineResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Engine');
273
+ const createEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateEngineMetadata');
274
+ const deleteEngineResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
275
+ const deleteEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteEngineMetadata');
276
+ this.descriptors.longrunning = {
277
+ createEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createEngineResponse.decode.bind(createEngineResponse), createEngineMetadata.decode.bind(createEngineMetadata)),
278
+ deleteEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteEngineResponse.decode.bind(deleteEngineResponse), deleteEngineMetadata.decode.bind(deleteEngineMetadata)),
279
+ };
280
+ // Put together the default options sent with requests.
281
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.EngineService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
282
+ // Set up a dictionary of "inner API calls"; the core implementation
283
+ // of calling the API is handled in `google-gax`, with this code
284
+ // merely providing the destination and request information.
285
+ this.innerApiCalls = {};
286
+ // Add a warn function to the client constructor so it can be easily tested.
287
+ this.warn = this._gaxModule.warn;
288
+ }
289
+ /**
290
+ * Initialize the client.
291
+ * Performs asynchronous operations (such as authentication) and prepares the client.
292
+ * This function will be called automatically when any class method is called for the
293
+ * first time, but if you need to initialize it before calling an actual method,
294
+ * feel free to call initialize() directly.
295
+ *
296
+ * You can await on this method if you want to make sure the client is initialized.
297
+ *
298
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
299
+ */
300
+ initialize() {
301
+ // If the client stub promise is already initialized, return immediately.
302
+ if (this.engineServiceStub) {
303
+ return this.engineServiceStub;
304
+ }
305
+ // Put together the "service stub" for
306
+ // google.cloud.discoveryengine.v1.EngineService.
307
+ this.engineServiceStub = this._gaxGrpc.createStub(this._opts.fallback
308
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1.EngineService')
309
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
310
+ this._protos.google.cloud.discoveryengine.v1.EngineService, this._opts, this._providedCustomServicePath);
311
+ // Iterate over each of the methods that the service provides
312
+ // and create an API call method for each.
313
+ const engineServiceStubMethods = [
314
+ 'createEngine',
315
+ 'deleteEngine',
316
+ 'updateEngine',
317
+ 'getEngine',
318
+ 'listEngines',
319
+ ];
320
+ for (const methodName of engineServiceStubMethods) {
321
+ const callPromise = this.engineServiceStub.then(stub => (...args) => {
322
+ if (this._terminated) {
323
+ return Promise.reject('The client has already been closed.');
324
+ }
325
+ const func = stub[methodName];
326
+ return func.apply(stub, args);
327
+ }, (err) => () => {
328
+ throw err;
329
+ });
330
+ const descriptor = this.descriptors.page[methodName] ||
331
+ this.descriptors.longrunning[methodName] ||
332
+ undefined;
333
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
334
+ this.innerApiCalls[methodName] = apiCall;
335
+ }
336
+ return this.engineServiceStub;
337
+ }
338
+ /**
339
+ * The DNS address for this API service.
340
+ * @deprecated Use the apiEndpoint method of the client instance.
341
+ * @returns {string} The DNS address for this service.
342
+ */
343
+ static get servicePath() {
344
+ if (typeof process !== undefined &&
345
+ typeof process.emitWarning === 'function') {
346
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
347
+ }
348
+ return 'discoveryengine.googleapis.com';
349
+ }
350
+ /**
351
+ * The DNS address for this API service - same as servicePath.
352
+ * @deprecated Use the apiEndpoint method of the client instance.
353
+ * @returns {string} The DNS address for this service.
354
+ */
355
+ static get apiEndpoint() {
356
+ if (typeof process !== undefined &&
357
+ typeof process.emitWarning === 'function') {
358
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
359
+ }
360
+ return 'discoveryengine.googleapis.com';
361
+ }
362
+ /**
363
+ * The DNS address for this API service.
364
+ * @returns {string} The DNS address for this service.
365
+ */
366
+ get apiEndpoint() {
367
+ return this._servicePath;
368
+ }
369
+ get universeDomain() {
370
+ return this._universeDomain;
371
+ }
372
+ /**
373
+ * The port for this API service.
374
+ * @returns {number} The default port for this service.
375
+ */
376
+ static get port() {
377
+ return 443;
378
+ }
379
+ /**
380
+ * The scopes needed to make gRPC calls for every method defined
381
+ * in this service.
382
+ * @returns {string[]} List of default scopes.
383
+ */
384
+ static get scopes() {
385
+ return ['https://www.googleapis.com/auth/cloud-platform'];
386
+ }
387
+ /**
388
+ * Return the project ID used by this class.
389
+ * @returns {Promise} A promise that resolves to string containing the project ID.
390
+ */
391
+ getProjectId(callback) {
392
+ if (callback) {
393
+ this.auth.getProjectId(callback);
394
+ return;
395
+ }
396
+ return this.auth.getProjectId();
397
+ }
398
+ updateEngine(request, optionsOrCallback, callback) {
399
+ var _a;
400
+ request = request || {};
401
+ let options;
402
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
403
+ callback = optionsOrCallback;
404
+ options = {};
405
+ }
406
+ else {
407
+ options = optionsOrCallback;
408
+ }
409
+ options = options || {};
410
+ options.otherArgs = options.otherArgs || {};
411
+ options.otherArgs.headers = options.otherArgs.headers || {};
412
+ options.otherArgs.headers['x-goog-request-params'] =
413
+ this._gaxModule.routingHeader.fromParams({
414
+ 'engine.name': (_a = request.engine.name) !== null && _a !== void 0 ? _a : '',
415
+ });
416
+ this.initialize();
417
+ return this.innerApiCalls.updateEngine(request, options, callback);
418
+ }
419
+ getEngine(request, optionsOrCallback, callback) {
420
+ var _a;
421
+ request = request || {};
422
+ let options;
423
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
424
+ callback = optionsOrCallback;
425
+ options = {};
426
+ }
427
+ else {
428
+ options = optionsOrCallback;
429
+ }
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
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
436
+ });
437
+ this.initialize();
438
+ return this.innerApiCalls.getEngine(request, options, callback);
439
+ }
440
+ createEngine(request, optionsOrCallback, callback) {
441
+ var _a;
442
+ request = request || {};
443
+ let options;
444
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
445
+ callback = optionsOrCallback;
446
+ options = {};
447
+ }
448
+ else {
449
+ options = optionsOrCallback;
450
+ }
451
+ options = options || {};
452
+ options.otherArgs = options.otherArgs || {};
453
+ options.otherArgs.headers = options.otherArgs.headers || {};
454
+ options.otherArgs.headers['x-goog-request-params'] =
455
+ this._gaxModule.routingHeader.fromParams({
456
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
457
+ });
458
+ this.initialize();
459
+ return this.innerApiCalls.createEngine(request, options, callback);
460
+ }
461
+ /**
462
+ * Check the status of the long running operation returned by `createEngine()`.
463
+ * @param {String} name
464
+ * The operation name that will be passed.
465
+ * @returns {Promise} - The promise which resolves to an object.
466
+ * The decoded operation object has result and metadata field to get information from.
467
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
468
+ * for more details and examples.
469
+ * @example <caption>include:samples/generated/v1/engine_service.create_engine.js</caption>
470
+ * region_tag:discoveryengine_v1_generated_EngineService_CreateEngine_async
471
+ */
472
+ async checkCreateEngineProgress(name) {
473
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
474
+ const [operation] = await this.operationsClient.getOperation(request);
475
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createEngine, this._gaxModule.createDefaultBackoffSettings());
476
+ return decodeOperation;
477
+ }
478
+ deleteEngine(request, optionsOrCallback, callback) {
479
+ var _a;
480
+ request = request || {};
481
+ let options;
482
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
483
+ callback = optionsOrCallback;
484
+ options = {};
485
+ }
486
+ else {
487
+ options = optionsOrCallback;
488
+ }
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
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
495
+ });
496
+ this.initialize();
497
+ return this.innerApiCalls.deleteEngine(request, options, callback);
498
+ }
499
+ /**
500
+ * Check the status of the long running operation returned by `deleteEngine()`.
501
+ * @param {String} name
502
+ * The operation name that will be passed.
503
+ * @returns {Promise} - The promise which resolves to an object.
504
+ * The decoded operation object has result and metadata field to get information from.
505
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
506
+ * for more details and examples.
507
+ * @example <caption>include:samples/generated/v1/engine_service.delete_engine.js</caption>
508
+ * region_tag:discoveryengine_v1_generated_EngineService_DeleteEngine_async
509
+ */
510
+ async checkDeleteEngineProgress(name) {
511
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
512
+ const [operation] = await this.operationsClient.getOperation(request);
513
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteEngine, this._gaxModule.createDefaultBackoffSettings());
514
+ return decodeOperation;
515
+ }
516
+ listEngines(request, optionsOrCallback, callback) {
517
+ var _a;
518
+ request = request || {};
519
+ let options;
520
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
521
+ callback = optionsOrCallback;
522
+ options = {};
523
+ }
524
+ else {
525
+ options = optionsOrCallback;
526
+ }
527
+ options = options || {};
528
+ options.otherArgs = options.otherArgs || {};
529
+ options.otherArgs.headers = options.otherArgs.headers || {};
530
+ options.otherArgs.headers['x-goog-request-params'] =
531
+ this._gaxModule.routingHeader.fromParams({
532
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
533
+ });
534
+ this.initialize();
535
+ return this.innerApiCalls.listEngines(request, options, callback);
536
+ }
537
+ /**
538
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
539
+ * @param {Object} request
540
+ * The request object that will be sent.
541
+ * @param {string} request.parent
542
+ * Required. The parent resource name, such as
543
+ * `projects/{project}/locations/{location}/collections/{collection_id}`.
544
+ * @param {number} [request.pageSize]
545
+ * Optional. Not supported.
546
+ * @param {string} [request.pageToken]
547
+ * Optional. Not supported.
548
+ * @param {string} [request.filter]
549
+ * Optional. Filter by solution type. For example:
550
+ * solution_type=SOLUTION_TYPE_SEARCH
551
+ * @param {object} [options]
552
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
553
+ * @returns {Stream}
554
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1.Engine|Engine} on 'data' event.
555
+ * The client library will perform auto-pagination by default: it will call the API as many
556
+ * times as needed. Note that it can affect your quota.
557
+ * We recommend using `listEnginesAsync()`
558
+ * method described below for async iteration which you can stop as needed.
559
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
560
+ * for more details and examples.
561
+ */
562
+ listEnginesStream(request, options) {
563
+ var _a;
564
+ request = request || {};
565
+ options = options || {};
566
+ options.otherArgs = options.otherArgs || {};
567
+ options.otherArgs.headers = options.otherArgs.headers || {};
568
+ options.otherArgs.headers['x-goog-request-params'] =
569
+ this._gaxModule.routingHeader.fromParams({
570
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
571
+ });
572
+ const defaultCallSettings = this._defaults['listEngines'];
573
+ const callSettings = defaultCallSettings.merge(options);
574
+ this.initialize();
575
+ return this.descriptors.page.listEngines.createStream(this.innerApiCalls.listEngines, request, callSettings);
576
+ }
577
+ /**
578
+ * Equivalent to `listEngines`, but returns an iterable object.
579
+ *
580
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
581
+ * @param {Object} request
582
+ * The request object that will be sent.
583
+ * @param {string} request.parent
584
+ * Required. The parent resource name, such as
585
+ * `projects/{project}/locations/{location}/collections/{collection_id}`.
586
+ * @param {number} [request.pageSize]
587
+ * Optional. Not supported.
588
+ * @param {string} [request.pageToken]
589
+ * Optional. Not supported.
590
+ * @param {string} [request.filter]
591
+ * Optional. Filter by solution type. For example:
592
+ * solution_type=SOLUTION_TYPE_SEARCH
593
+ * @param {object} [options]
594
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
595
+ * @returns {Object}
596
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
597
+ * When you iterate the returned iterable, each element will be an object representing
598
+ * {@link protos.google.cloud.discoveryengine.v1.Engine|Engine}. The API will be called under the hood as needed, once per the page,
599
+ * so you can stop the iteration when you don't need more results.
600
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
601
+ * for more details and examples.
602
+ * @example <caption>include:samples/generated/v1/engine_service.list_engines.js</caption>
603
+ * region_tag:discoveryengine_v1_generated_EngineService_ListEngines_async
604
+ */
605
+ listEnginesAsync(request, options) {
606
+ var _a;
607
+ request = request || {};
608
+ options = options || {};
609
+ options.otherArgs = options.otherArgs || {};
610
+ options.otherArgs.headers = options.otherArgs.headers || {};
611
+ options.otherArgs.headers['x-goog-request-params'] =
612
+ this._gaxModule.routingHeader.fromParams({
613
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
614
+ });
615
+ const defaultCallSettings = this._defaults['listEngines'];
616
+ const callSettings = defaultCallSettings.merge(options);
617
+ this.initialize();
618
+ return this.descriptors.page.listEngines.asyncIterate(this.innerApiCalls['listEngines'], request, callSettings);
619
+ }
620
+ /**
621
+ * Gets information about a location.
622
+ *
623
+ * @param {Object} request
624
+ * The request object that will be sent.
625
+ * @param {string} request.name
626
+ * Resource name for the location.
627
+ * @param {object} [options]
628
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
629
+ * @returns {Promise} - The promise which resolves to an array.
630
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
631
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
632
+ * for more details and examples.
633
+ * @example
634
+ * ```
635
+ * const [response] = await client.getLocation(request);
636
+ * ```
637
+ */
638
+ getLocation(request, options, callback) {
639
+ return this.locationsClient.getLocation(request, options, callback);
640
+ }
641
+ /**
642
+ * Lists information about the supported locations for this service. Returns an iterable object.
643
+ *
644
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
645
+ * @param {Object} request
646
+ * The request object that will be sent.
647
+ * @param {string} request.name
648
+ * The resource that owns the locations collection, if applicable.
649
+ * @param {string} request.filter
650
+ * The standard list filter.
651
+ * @param {number} request.pageSize
652
+ * The standard list page size.
653
+ * @param {string} request.pageToken
654
+ * The standard list page token.
655
+ * @param {object} [options]
656
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
657
+ * @returns {Object}
658
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
659
+ * When you iterate the returned iterable, each element will be an object representing
660
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
661
+ * so you can stop the iteration when you don't need more results.
662
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
663
+ * for more details and examples.
664
+ * @example
665
+ * ```
666
+ * const iterable = client.listLocationsAsync(request);
667
+ * for await (const response of iterable) {
668
+ * // process response
669
+ * }
670
+ * ```
671
+ */
672
+ listLocationsAsync(request, options) {
673
+ return this.locationsClient.listLocationsAsync(request, options);
674
+ }
675
+ /**
676
+ * Gets the latest state of a long-running operation. Clients can use this
677
+ * method to poll the operation result at intervals as recommended by the API
678
+ * service.
679
+ *
680
+ * @param {Object} request - The request object that will be sent.
681
+ * @param {string} request.name - The name of the operation resource.
682
+ * @param {Object=} options
683
+ * Optional parameters. You can override the default settings for this call,
684
+ * e.g, timeout, retries, paginations, etc. See {@link
685
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
686
+ * for the details.
687
+ * @param {function(?Error, ?Object)=} callback
688
+ * The function which will be called with the result of the API call.
689
+ *
690
+ * The second parameter to the callback is an object representing
691
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
692
+ * @return {Promise} - The promise which resolves to an array.
693
+ * The first element of the array is an object representing
694
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
695
+ * The promise has a method named "cancel" which cancels the ongoing API call.
696
+ *
697
+ * @example
698
+ * ```
699
+ * const client = longrunning.operationsClient();
700
+ * const name = '';
701
+ * const [response] = await client.getOperation({name});
702
+ * // doThingsWith(response)
703
+ * ```
704
+ */
705
+ getOperation(request, options, callback) {
706
+ return this.operationsClient.getOperation(request, options, callback);
707
+ }
708
+ /**
709
+ * Lists operations that match the specified filter in the request. If the
710
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
711
+ *
712
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
713
+ *
714
+ * @param {Object} request - The request object that will be sent.
715
+ * @param {string} request.name - The name of the operation collection.
716
+ * @param {string} request.filter - The standard list filter.
717
+ * @param {number=} request.pageSize -
718
+ * The maximum number of resources contained in the underlying API
719
+ * response. If page streaming is performed per-resource, this
720
+ * parameter does not affect the return value. If page streaming is
721
+ * performed per-page, this determines the maximum number of
722
+ * resources in a page.
723
+ * @param {Object=} options
724
+ * Optional parameters. You can override the default settings for this call,
725
+ * e.g, timeout, retries, paginations, etc. See {@link
726
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
727
+ * details.
728
+ * @returns {Object}
729
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
730
+ *
731
+ * @example
732
+ * ```
733
+ * const client = longrunning.operationsClient();
734
+ * for await (const response of client.listOperationsAsync(request));
735
+ * // doThingsWith(response)
736
+ * ```
737
+ */
738
+ listOperationsAsync(request, options) {
739
+ return this.operationsClient.listOperationsAsync(request, options);
740
+ }
741
+ /**
742
+ * Starts asynchronous cancellation on a long-running operation. The server
743
+ * makes a best effort to cancel the operation, but success is not
744
+ * guaranteed. If the server doesn't support this method, it returns
745
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
746
+ * {@link Operations.GetOperation} or
747
+ * other methods to check whether the cancellation succeeded or whether the
748
+ * operation completed despite cancellation. On successful cancellation,
749
+ * the operation is not deleted; instead, it becomes an operation with
750
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
751
+ * 1, corresponding to `Code.CANCELLED`.
752
+ *
753
+ * @param {Object} request - The request object that will be sent.
754
+ * @param {string} request.name - The name of the operation resource to be cancelled.
755
+ * @param {Object=} options
756
+ * Optional parameters. You can override the default settings for this call,
757
+ * e.g, timeout, retries, paginations, etc. See {@link
758
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
759
+ * details.
760
+ * @param {function(?Error)=} callback
761
+ * The function which will be called with the result of the API call.
762
+ * @return {Promise} - The promise which resolves when API call finishes.
763
+ * The promise has a method named "cancel" which cancels the ongoing API
764
+ * call.
765
+ *
766
+ * @example
767
+ * ```
768
+ * const client = longrunning.operationsClient();
769
+ * await client.cancelOperation({name: ''});
770
+ * ```
771
+ */
772
+ cancelOperation(request, options, callback) {
773
+ return this.operationsClient.cancelOperation(request, options, callback);
774
+ }
775
+ /**
776
+ * Deletes a long-running operation. This method indicates that the client is
777
+ * no longer interested in the operation result. It does not cancel the
778
+ * operation. If the server doesn't support this method, it returns
779
+ * `google.rpc.Code.UNIMPLEMENTED`.
780
+ *
781
+ * @param {Object} request - The request object that will be sent.
782
+ * @param {string} request.name - The name of the operation resource to be deleted.
783
+ * @param {Object=} options
784
+ * Optional parameters. You can override the default settings for this call,
785
+ * e.g, timeout, retries, paginations, etc. See {@link
786
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
787
+ * for the details.
788
+ * @param {function(?Error)=} callback
789
+ * The function which will be called with the result of the API call.
790
+ * @return {Promise} - The promise which resolves when API call finishes.
791
+ * The promise has a method named "cancel" which cancels the ongoing API
792
+ * call.
793
+ *
794
+ * @example
795
+ * ```
796
+ * const client = longrunning.operationsClient();
797
+ * await client.deleteOperation({name: ''});
798
+ * ```
799
+ */
800
+ deleteOperation(request, options, callback) {
801
+ return this.operationsClient.deleteOperation(request, options, callback);
802
+ }
803
+ // --------------------
804
+ // -- Path templates --
805
+ // --------------------
806
+ /**
807
+ * Return a fully-qualified collection resource name string.
808
+ *
809
+ * @param {string} project
810
+ * @param {string} location
811
+ * @param {string} collection
812
+ * @returns {string} Resource name string.
813
+ */
814
+ collectionPath(project, location, collection) {
815
+ return this.pathTemplates.collectionPathTemplate.render({
816
+ project: project,
817
+ location: location,
818
+ collection: collection,
819
+ });
820
+ }
821
+ /**
822
+ * Parse the project from Collection resource.
823
+ *
824
+ * @param {string} collectionName
825
+ * A fully-qualified path representing Collection resource.
826
+ * @returns {string} A string representing the project.
827
+ */
828
+ matchProjectFromCollectionName(collectionName) {
829
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
830
+ .project;
831
+ }
832
+ /**
833
+ * Parse the location from Collection resource.
834
+ *
835
+ * @param {string} collectionName
836
+ * A fully-qualified path representing Collection resource.
837
+ * @returns {string} A string representing the location.
838
+ */
839
+ matchLocationFromCollectionName(collectionName) {
840
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
841
+ .location;
842
+ }
843
+ /**
844
+ * Parse the collection from Collection resource.
845
+ *
846
+ * @param {string} collectionName
847
+ * A fully-qualified path representing Collection resource.
848
+ * @returns {string} A string representing the collection.
849
+ */
850
+ matchCollectionFromCollectionName(collectionName) {
851
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
852
+ .collection;
853
+ }
854
+ /**
855
+ * Return a fully-qualified engine resource name string.
856
+ *
857
+ * @param {string} project
858
+ * @param {string} location
859
+ * @param {string} collection
860
+ * @param {string} engine
861
+ * @returns {string} Resource name string.
862
+ */
863
+ enginePath(project, location, collection, engine) {
864
+ return this.pathTemplates.enginePathTemplate.render({
865
+ project: project,
866
+ location: location,
867
+ collection: collection,
868
+ engine: engine,
869
+ });
870
+ }
871
+ /**
872
+ * Parse the project from Engine resource.
873
+ *
874
+ * @param {string} engineName
875
+ * A fully-qualified path representing Engine resource.
876
+ * @returns {string} A string representing the project.
877
+ */
878
+ matchProjectFromEngineName(engineName) {
879
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
880
+ }
881
+ /**
882
+ * Parse the location from Engine resource.
883
+ *
884
+ * @param {string} engineName
885
+ * A fully-qualified path representing Engine resource.
886
+ * @returns {string} A string representing the location.
887
+ */
888
+ matchLocationFromEngineName(engineName) {
889
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
890
+ }
891
+ /**
892
+ * Parse the collection from Engine resource.
893
+ *
894
+ * @param {string} engineName
895
+ * A fully-qualified path representing Engine resource.
896
+ * @returns {string} A string representing the collection.
897
+ */
898
+ matchCollectionFromEngineName(engineName) {
899
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
900
+ }
901
+ /**
902
+ * Parse the engine from Engine resource.
903
+ *
904
+ * @param {string} engineName
905
+ * A fully-qualified path representing Engine resource.
906
+ * @returns {string} A string representing the engine.
907
+ */
908
+ matchEngineFromEngineName(engineName) {
909
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
910
+ }
911
+ /**
912
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
913
+ *
914
+ * @param {string} project
915
+ * @param {string} location
916
+ * @param {string} collection
917
+ * @param {string} data_store
918
+ * @returns {string} Resource name string.
919
+ */
920
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
921
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
922
+ project: project,
923
+ location: location,
924
+ collection: collection,
925
+ data_store: dataStore,
926
+ });
927
+ }
928
+ /**
929
+ * Parse the project from ProjectLocationCollectionDataStore resource.
930
+ *
931
+ * @param {string} projectLocationCollectionDataStoreName
932
+ * A fully-qualified path representing project_location_collection_data_store resource.
933
+ * @returns {string} A string representing the project.
934
+ */
935
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
936
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
937
+ }
938
+ /**
939
+ * Parse the location from ProjectLocationCollectionDataStore resource.
940
+ *
941
+ * @param {string} projectLocationCollectionDataStoreName
942
+ * A fully-qualified path representing project_location_collection_data_store resource.
943
+ * @returns {string} A string representing the location.
944
+ */
945
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
946
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
947
+ }
948
+ /**
949
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
950
+ *
951
+ * @param {string} projectLocationCollectionDataStoreName
952
+ * A fully-qualified path representing project_location_collection_data_store resource.
953
+ * @returns {string} A string representing the collection.
954
+ */
955
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
956
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
957
+ }
958
+ /**
959
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
960
+ *
961
+ * @param {string} projectLocationCollectionDataStoreName
962
+ * A fully-qualified path representing project_location_collection_data_store resource.
963
+ * @returns {string} A string representing the data_store.
964
+ */
965
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
966
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
967
+ }
968
+ /**
969
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
970
+ *
971
+ * @param {string} project
972
+ * @param {string} location
973
+ * @param {string} collection
974
+ * @param {string} data_store
975
+ * @param {string} branch
976
+ * @param {string} document
977
+ * @returns {string} Resource name string.
978
+ */
979
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
980
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
981
+ project: project,
982
+ location: location,
983
+ collection: collection,
984
+ data_store: dataStore,
985
+ branch: branch,
986
+ document: document,
987
+ });
988
+ }
989
+ /**
990
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
991
+ *
992
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
993
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
994
+ * @returns {string} A string representing the project.
995
+ */
996
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
997
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
998
+ }
999
+ /**
1000
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
1001
+ *
1002
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1003
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1004
+ * @returns {string} A string representing the location.
1005
+ */
1006
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1007
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
1008
+ }
1009
+ /**
1010
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
1011
+ *
1012
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1013
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1014
+ * @returns {string} A string representing the collection.
1015
+ */
1016
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1017
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
1018
+ }
1019
+ /**
1020
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
1021
+ *
1022
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1023
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1024
+ * @returns {string} A string representing the data_store.
1025
+ */
1026
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1027
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
1028
+ }
1029
+ /**
1030
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
1031
+ *
1032
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1033
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1034
+ * @returns {string} A string representing the branch.
1035
+ */
1036
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1037
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
1038
+ }
1039
+ /**
1040
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
1041
+ *
1042
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1043
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1044
+ * @returns {string} A string representing the document.
1045
+ */
1046
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1047
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1048
+ }
1049
+ /**
1050
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1051
+ *
1052
+ * @param {string} project
1053
+ * @param {string} location
1054
+ * @param {string} collection
1055
+ * @param {string} data_store
1056
+ * @param {string} conversation
1057
+ * @returns {string} Resource name string.
1058
+ */
1059
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1060
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1061
+ project: project,
1062
+ location: location,
1063
+ collection: collection,
1064
+ data_store: dataStore,
1065
+ conversation: conversation,
1066
+ });
1067
+ }
1068
+ /**
1069
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1070
+ *
1071
+ * @param {string} projectLocationCollectionDataStoreConversationName
1072
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1073
+ * @returns {string} A string representing the project.
1074
+ */
1075
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1076
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1077
+ }
1078
+ /**
1079
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1080
+ *
1081
+ * @param {string} projectLocationCollectionDataStoreConversationName
1082
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1083
+ * @returns {string} A string representing the location.
1084
+ */
1085
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1086
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1087
+ }
1088
+ /**
1089
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1090
+ *
1091
+ * @param {string} projectLocationCollectionDataStoreConversationName
1092
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1093
+ * @returns {string} A string representing the collection.
1094
+ */
1095
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1096
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1097
+ }
1098
+ /**
1099
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1100
+ *
1101
+ * @param {string} projectLocationCollectionDataStoreConversationName
1102
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1103
+ * @returns {string} A string representing the data_store.
1104
+ */
1105
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1106
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1107
+ }
1108
+ /**
1109
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1110
+ *
1111
+ * @param {string} projectLocationCollectionDataStoreConversationName
1112
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1113
+ * @returns {string} A string representing the conversation.
1114
+ */
1115
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1116
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1117
+ }
1118
+ /**
1119
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1120
+ *
1121
+ * @param {string} project
1122
+ * @param {string} location
1123
+ * @param {string} collection
1124
+ * @param {string} data_store
1125
+ * @param {string} schema
1126
+ * @returns {string} Resource name string.
1127
+ */
1128
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
1129
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
1130
+ project: project,
1131
+ location: location,
1132
+ collection: collection,
1133
+ data_store: dataStore,
1134
+ schema: schema,
1135
+ });
1136
+ }
1137
+ /**
1138
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
1139
+ *
1140
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1141
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1142
+ * @returns {string} A string representing the project.
1143
+ */
1144
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1145
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1146
+ }
1147
+ /**
1148
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1149
+ *
1150
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1151
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1152
+ * @returns {string} A string representing the location.
1153
+ */
1154
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1155
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1156
+ }
1157
+ /**
1158
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1159
+ *
1160
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1161
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1162
+ * @returns {string} A string representing the collection.
1163
+ */
1164
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1165
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1166
+ }
1167
+ /**
1168
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1169
+ *
1170
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1171
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1172
+ * @returns {string} A string representing the data_store.
1173
+ */
1174
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1175
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1176
+ }
1177
+ /**
1178
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1179
+ *
1180
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1181
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1182
+ * @returns {string} A string representing the schema.
1183
+ */
1184
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1185
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1186
+ }
1187
+ /**
1188
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1189
+ *
1190
+ * @param {string} project
1191
+ * @param {string} location
1192
+ * @param {string} collection
1193
+ * @param {string} data_store
1194
+ * @returns {string} Resource name string.
1195
+ */
1196
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1197
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1198
+ project: project,
1199
+ location: location,
1200
+ collection: collection,
1201
+ data_store: dataStore,
1202
+ });
1203
+ }
1204
+ /**
1205
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1206
+ *
1207
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1208
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1209
+ * @returns {string} A string representing the project.
1210
+ */
1211
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1212
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1213
+ }
1214
+ /**
1215
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1216
+ *
1217
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1218
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1219
+ * @returns {string} A string representing the location.
1220
+ */
1221
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1222
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1223
+ }
1224
+ /**
1225
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1226
+ *
1227
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1228
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1229
+ * @returns {string} A string representing the collection.
1230
+ */
1231
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1232
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1233
+ }
1234
+ /**
1235
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1236
+ *
1237
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1238
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1239
+ * @returns {string} A string representing the data_store.
1240
+ */
1241
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1242
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1243
+ }
1244
+ /**
1245
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1246
+ *
1247
+ * @param {string} project
1248
+ * @param {string} location
1249
+ * @param {string} collection
1250
+ * @param {string} data_store
1251
+ * @param {string} target_site
1252
+ * @returns {string} Resource name string.
1253
+ */
1254
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1255
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1256
+ project: project,
1257
+ location: location,
1258
+ collection: collection,
1259
+ data_store: dataStore,
1260
+ target_site: targetSite,
1261
+ });
1262
+ }
1263
+ /**
1264
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1265
+ *
1266
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1267
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1268
+ * @returns {string} A string representing the project.
1269
+ */
1270
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1271
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1272
+ }
1273
+ /**
1274
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1275
+ *
1276
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1277
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1278
+ * @returns {string} A string representing the location.
1279
+ */
1280
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1281
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1282
+ }
1283
+ /**
1284
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1285
+ *
1286
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1287
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1288
+ * @returns {string} A string representing the collection.
1289
+ */
1290
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1291
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1292
+ }
1293
+ /**
1294
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1295
+ *
1296
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1297
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1298
+ * @returns {string} A string representing the data_store.
1299
+ */
1300
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1301
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1302
+ }
1303
+ /**
1304
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1305
+ *
1306
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1307
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1308
+ * @returns {string} A string representing the target_site.
1309
+ */
1310
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1311
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1312
+ }
1313
+ /**
1314
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1315
+ *
1316
+ * @param {string} project
1317
+ * @param {string} location
1318
+ * @param {string} collection
1319
+ * @param {string} engine
1320
+ * @param {string} conversation
1321
+ * @returns {string} Resource name string.
1322
+ */
1323
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1324
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1325
+ project: project,
1326
+ location: location,
1327
+ collection: collection,
1328
+ engine: engine,
1329
+ conversation: conversation,
1330
+ });
1331
+ }
1332
+ /**
1333
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1334
+ *
1335
+ * @param {string} projectLocationCollectionEngineConversationName
1336
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1337
+ * @returns {string} A string representing the project.
1338
+ */
1339
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1340
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1341
+ }
1342
+ /**
1343
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1344
+ *
1345
+ * @param {string} projectLocationCollectionEngineConversationName
1346
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1347
+ * @returns {string} A string representing the location.
1348
+ */
1349
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1350
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1351
+ }
1352
+ /**
1353
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1354
+ *
1355
+ * @param {string} projectLocationCollectionEngineConversationName
1356
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1357
+ * @returns {string} A string representing the collection.
1358
+ */
1359
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1360
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1361
+ }
1362
+ /**
1363
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1364
+ *
1365
+ * @param {string} projectLocationCollectionEngineConversationName
1366
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1367
+ * @returns {string} A string representing the engine.
1368
+ */
1369
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1370
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1371
+ }
1372
+ /**
1373
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1374
+ *
1375
+ * @param {string} projectLocationCollectionEngineConversationName
1376
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1377
+ * @returns {string} A string representing the conversation.
1378
+ */
1379
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1380
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1381
+ }
1382
+ /**
1383
+ * Return a fully-qualified projectLocationDataStore resource name string.
1384
+ *
1385
+ * @param {string} project
1386
+ * @param {string} location
1387
+ * @param {string} data_store
1388
+ * @returns {string} Resource name string.
1389
+ */
1390
+ projectLocationDataStorePath(project, location, dataStore) {
1391
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1392
+ project: project,
1393
+ location: location,
1394
+ data_store: dataStore,
1395
+ });
1396
+ }
1397
+ /**
1398
+ * Parse the project from ProjectLocationDataStore resource.
1399
+ *
1400
+ * @param {string} projectLocationDataStoreName
1401
+ * A fully-qualified path representing project_location_data_store resource.
1402
+ * @returns {string} A string representing the project.
1403
+ */
1404
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1405
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1406
+ }
1407
+ /**
1408
+ * Parse the location from ProjectLocationDataStore resource.
1409
+ *
1410
+ * @param {string} projectLocationDataStoreName
1411
+ * A fully-qualified path representing project_location_data_store resource.
1412
+ * @returns {string} A string representing the location.
1413
+ */
1414
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1415
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1416
+ }
1417
+ /**
1418
+ * Parse the data_store from ProjectLocationDataStore resource.
1419
+ *
1420
+ * @param {string} projectLocationDataStoreName
1421
+ * A fully-qualified path representing project_location_data_store resource.
1422
+ * @returns {string} A string representing the data_store.
1423
+ */
1424
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1425
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1426
+ }
1427
+ /**
1428
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1429
+ *
1430
+ * @param {string} project
1431
+ * @param {string} location
1432
+ * @param {string} data_store
1433
+ * @param {string} branch
1434
+ * @param {string} document
1435
+ * @returns {string} Resource name string.
1436
+ */
1437
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1438
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1439
+ project: project,
1440
+ location: location,
1441
+ data_store: dataStore,
1442
+ branch: branch,
1443
+ document: document,
1444
+ });
1445
+ }
1446
+ /**
1447
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1448
+ *
1449
+ * @param {string} projectLocationDataStoreBranchDocumentName
1450
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1451
+ * @returns {string} A string representing the project.
1452
+ */
1453
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1454
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1455
+ }
1456
+ /**
1457
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1458
+ *
1459
+ * @param {string} projectLocationDataStoreBranchDocumentName
1460
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1461
+ * @returns {string} A string representing the location.
1462
+ */
1463
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1464
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1465
+ }
1466
+ /**
1467
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1468
+ *
1469
+ * @param {string} projectLocationDataStoreBranchDocumentName
1470
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1471
+ * @returns {string} A string representing the data_store.
1472
+ */
1473
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1474
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1475
+ }
1476
+ /**
1477
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1478
+ *
1479
+ * @param {string} projectLocationDataStoreBranchDocumentName
1480
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1481
+ * @returns {string} A string representing the branch.
1482
+ */
1483
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1484
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1485
+ }
1486
+ /**
1487
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1488
+ *
1489
+ * @param {string} projectLocationDataStoreBranchDocumentName
1490
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1491
+ * @returns {string} A string representing the document.
1492
+ */
1493
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1494
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1495
+ }
1496
+ /**
1497
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1498
+ *
1499
+ * @param {string} project
1500
+ * @param {string} location
1501
+ * @param {string} data_store
1502
+ * @param {string} conversation
1503
+ * @returns {string} Resource name string.
1504
+ */
1505
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1506
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1507
+ project: project,
1508
+ location: location,
1509
+ data_store: dataStore,
1510
+ conversation: conversation,
1511
+ });
1512
+ }
1513
+ /**
1514
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1515
+ *
1516
+ * @param {string} projectLocationDataStoreConversationName
1517
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1518
+ * @returns {string} A string representing the project.
1519
+ */
1520
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1521
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1522
+ }
1523
+ /**
1524
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1525
+ *
1526
+ * @param {string} projectLocationDataStoreConversationName
1527
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1528
+ * @returns {string} A string representing the location.
1529
+ */
1530
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1531
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1532
+ }
1533
+ /**
1534
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1535
+ *
1536
+ * @param {string} projectLocationDataStoreConversationName
1537
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1538
+ * @returns {string} A string representing the data_store.
1539
+ */
1540
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1541
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1542
+ }
1543
+ /**
1544
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1545
+ *
1546
+ * @param {string} projectLocationDataStoreConversationName
1547
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1548
+ * @returns {string} A string representing the conversation.
1549
+ */
1550
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1551
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1552
+ }
1553
+ /**
1554
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1555
+ *
1556
+ * @param {string} project
1557
+ * @param {string} location
1558
+ * @param {string} data_store
1559
+ * @param {string} schema
1560
+ * @returns {string} Resource name string.
1561
+ */
1562
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
1563
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
1564
+ project: project,
1565
+ location: location,
1566
+ data_store: dataStore,
1567
+ schema: schema,
1568
+ });
1569
+ }
1570
+ /**
1571
+ * Parse the project from ProjectLocationDataStoreSchema resource.
1572
+ *
1573
+ * @param {string} projectLocationDataStoreSchemaName
1574
+ * A fully-qualified path representing project_location_data_store_schema resource.
1575
+ * @returns {string} A string representing the project.
1576
+ */
1577
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1578
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
1579
+ }
1580
+ /**
1581
+ * Parse the location from ProjectLocationDataStoreSchema resource.
1582
+ *
1583
+ * @param {string} projectLocationDataStoreSchemaName
1584
+ * A fully-qualified path representing project_location_data_store_schema resource.
1585
+ * @returns {string} A string representing the location.
1586
+ */
1587
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1588
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1589
+ }
1590
+ /**
1591
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1592
+ *
1593
+ * @param {string} projectLocationDataStoreSchemaName
1594
+ * A fully-qualified path representing project_location_data_store_schema resource.
1595
+ * @returns {string} A string representing the data_store.
1596
+ */
1597
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1598
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1599
+ }
1600
+ /**
1601
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1602
+ *
1603
+ * @param {string} projectLocationDataStoreSchemaName
1604
+ * A fully-qualified path representing project_location_data_store_schema resource.
1605
+ * @returns {string} A string representing the schema.
1606
+ */
1607
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1608
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1609
+ }
1610
+ /**
1611
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1612
+ *
1613
+ * @param {string} project
1614
+ * @param {string} location
1615
+ * @param {string} data_store
1616
+ * @returns {string} Resource name string.
1617
+ */
1618
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1619
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1620
+ project: project,
1621
+ location: location,
1622
+ data_store: dataStore,
1623
+ });
1624
+ }
1625
+ /**
1626
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1627
+ *
1628
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1629
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1630
+ * @returns {string} A string representing the project.
1631
+ */
1632
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1633
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1634
+ }
1635
+ /**
1636
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1637
+ *
1638
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1639
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1640
+ * @returns {string} A string representing the location.
1641
+ */
1642
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1643
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1644
+ }
1645
+ /**
1646
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1647
+ *
1648
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1649
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1650
+ * @returns {string} A string representing the data_store.
1651
+ */
1652
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1653
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1654
+ }
1655
+ /**
1656
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1657
+ *
1658
+ * @param {string} project
1659
+ * @param {string} location
1660
+ * @param {string} data_store
1661
+ * @param {string} target_site
1662
+ * @returns {string} Resource name string.
1663
+ */
1664
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1665
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1666
+ project: project,
1667
+ location: location,
1668
+ data_store: dataStore,
1669
+ target_site: targetSite,
1670
+ });
1671
+ }
1672
+ /**
1673
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1674
+ *
1675
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1676
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1677
+ * @returns {string} A string representing the project.
1678
+ */
1679
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1680
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1681
+ }
1682
+ /**
1683
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1684
+ *
1685
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1686
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1687
+ * @returns {string} A string representing the location.
1688
+ */
1689
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1690
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1691
+ }
1692
+ /**
1693
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1694
+ *
1695
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1696
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1697
+ * @returns {string} A string representing the data_store.
1698
+ */
1699
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1700
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1701
+ }
1702
+ /**
1703
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1704
+ *
1705
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1706
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1707
+ * @returns {string} A string representing the target_site.
1708
+ */
1709
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1710
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1711
+ }
1712
+ /**
1713
+ * Terminate the gRPC channel and close the client.
1714
+ *
1715
+ * The client will no longer be usable and all future behavior is undefined.
1716
+ * @returns {Promise} A promise that resolves when the client is closed.
1717
+ */
1718
+ close() {
1719
+ if (this.engineServiceStub && !this._terminated) {
1720
+ return this.engineServiceStub.then(stub => {
1721
+ this._terminated = true;
1722
+ stub.close();
1723
+ this.locationsClient.close();
1724
+ this.operationsClient.close();
1725
+ });
1726
+ }
1727
+ return Promise.resolve();
1728
+ }
1729
+ }
1730
+ exports.EngineServiceClient = EngineServiceClient;
1731
+ //# sourceMappingURL=engine_service_client.js.map