@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,1768 @@
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.DataStoreServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1/data_store_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./data_store_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for managing {@link protos.google.cloud.discoveryengine.v1.DataStore|DataStore}
31
+ * configuration.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class DataStoreServiceClient {
36
+ /**
37
+ * Construct an instance of DataStoreServiceClient.
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 DataStoreServiceClient({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
+ listDataStores: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'dataStores'),
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 createDataStoreResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DataStore');
273
+ const createDataStoreMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateDataStoreMetadata');
274
+ const deleteDataStoreResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
275
+ const deleteDataStoreMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteDataStoreMetadata');
276
+ this.descriptors.longrunning = {
277
+ createDataStore: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createDataStoreResponse.decode.bind(createDataStoreResponse), createDataStoreMetadata.decode.bind(createDataStoreMetadata)),
278
+ deleteDataStore: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteDataStoreResponse.decode.bind(deleteDataStoreResponse), deleteDataStoreMetadata.decode.bind(deleteDataStoreMetadata)),
279
+ };
280
+ // Put together the default options sent with requests.
281
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.DataStoreService', 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.dataStoreServiceStub) {
303
+ return this.dataStoreServiceStub;
304
+ }
305
+ // Put together the "service stub" for
306
+ // google.cloud.discoveryengine.v1.DataStoreService.
307
+ this.dataStoreServiceStub = this._gaxGrpc.createStub(this._opts.fallback
308
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1.DataStoreService')
309
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
310
+ this._protos.google.cloud.discoveryengine.v1
311
+ .DataStoreService, this._opts, this._providedCustomServicePath);
312
+ // Iterate over each of the methods that the service provides
313
+ // and create an API call method for each.
314
+ const dataStoreServiceStubMethods = [
315
+ 'createDataStore',
316
+ 'getDataStore',
317
+ 'listDataStores',
318
+ 'deleteDataStore',
319
+ 'updateDataStore',
320
+ ];
321
+ for (const methodName of dataStoreServiceStubMethods) {
322
+ const callPromise = this.dataStoreServiceStub.then(stub => (...args) => {
323
+ if (this._terminated) {
324
+ return Promise.reject('The client has already been closed.');
325
+ }
326
+ const func = stub[methodName];
327
+ return func.apply(stub, args);
328
+ }, (err) => () => {
329
+ throw err;
330
+ });
331
+ const descriptor = this.descriptors.page[methodName] ||
332
+ this.descriptors.longrunning[methodName] ||
333
+ undefined;
334
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
335
+ this.innerApiCalls[methodName] = apiCall;
336
+ }
337
+ return this.dataStoreServiceStub;
338
+ }
339
+ /**
340
+ * The DNS address for this API service.
341
+ * @deprecated Use the apiEndpoint method of the client instance.
342
+ * @returns {string} The DNS address for this service.
343
+ */
344
+ static get servicePath() {
345
+ if (typeof process !== undefined &&
346
+ typeof process.emitWarning === 'function') {
347
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
348
+ }
349
+ return 'discoveryengine.googleapis.com';
350
+ }
351
+ /**
352
+ * The DNS address for this API service - same as servicePath.
353
+ * @deprecated Use the apiEndpoint method of the client instance.
354
+ * @returns {string} The DNS address for this service.
355
+ */
356
+ static get apiEndpoint() {
357
+ if (typeof process !== undefined &&
358
+ typeof process.emitWarning === 'function') {
359
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
360
+ }
361
+ return 'discoveryengine.googleapis.com';
362
+ }
363
+ /**
364
+ * The DNS address for this API service.
365
+ * @returns {string} The DNS address for this service.
366
+ */
367
+ get apiEndpoint() {
368
+ return this._servicePath;
369
+ }
370
+ get universeDomain() {
371
+ return this._universeDomain;
372
+ }
373
+ /**
374
+ * The port for this API service.
375
+ * @returns {number} The default port for this service.
376
+ */
377
+ static get port() {
378
+ return 443;
379
+ }
380
+ /**
381
+ * The scopes needed to make gRPC calls for every method defined
382
+ * in this service.
383
+ * @returns {string[]} List of default scopes.
384
+ */
385
+ static get scopes() {
386
+ return ['https://www.googleapis.com/auth/cloud-platform'];
387
+ }
388
+ /**
389
+ * Return the project ID used by this class.
390
+ * @returns {Promise} A promise that resolves to string containing the project ID.
391
+ */
392
+ getProjectId(callback) {
393
+ if (callback) {
394
+ this.auth.getProjectId(callback);
395
+ return;
396
+ }
397
+ return this.auth.getProjectId();
398
+ }
399
+ getDataStore(request, optionsOrCallback, callback) {
400
+ var _a;
401
+ request = request || {};
402
+ let options;
403
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
404
+ callback = optionsOrCallback;
405
+ options = {};
406
+ }
407
+ else {
408
+ options = optionsOrCallback;
409
+ }
410
+ options = options || {};
411
+ options.otherArgs = options.otherArgs || {};
412
+ options.otherArgs.headers = options.otherArgs.headers || {};
413
+ options.otherArgs.headers['x-goog-request-params'] =
414
+ this._gaxModule.routingHeader.fromParams({
415
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
416
+ });
417
+ this.initialize();
418
+ return this.innerApiCalls.getDataStore(request, options, callback);
419
+ }
420
+ updateDataStore(request, optionsOrCallback, callback) {
421
+ var _a;
422
+ request = request || {};
423
+ let options;
424
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
425
+ callback = optionsOrCallback;
426
+ options = {};
427
+ }
428
+ else {
429
+ options = optionsOrCallback;
430
+ }
431
+ options = options || {};
432
+ options.otherArgs = options.otherArgs || {};
433
+ options.otherArgs.headers = options.otherArgs.headers || {};
434
+ options.otherArgs.headers['x-goog-request-params'] =
435
+ this._gaxModule.routingHeader.fromParams({
436
+ 'data_store.name': (_a = request.dataStore.name) !== null && _a !== void 0 ? _a : '',
437
+ });
438
+ this.initialize();
439
+ return this.innerApiCalls.updateDataStore(request, options, callback);
440
+ }
441
+ createDataStore(request, optionsOrCallback, callback) {
442
+ var _a;
443
+ request = request || {};
444
+ let options;
445
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
446
+ callback = optionsOrCallback;
447
+ options = {};
448
+ }
449
+ else {
450
+ options = optionsOrCallback;
451
+ }
452
+ options = options || {};
453
+ options.otherArgs = options.otherArgs || {};
454
+ options.otherArgs.headers = options.otherArgs.headers || {};
455
+ options.otherArgs.headers['x-goog-request-params'] =
456
+ this._gaxModule.routingHeader.fromParams({
457
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
458
+ });
459
+ this.initialize();
460
+ return this.innerApiCalls.createDataStore(request, options, callback);
461
+ }
462
+ /**
463
+ * Check the status of the long running operation returned by `createDataStore()`.
464
+ * @param {String} name
465
+ * The operation name that will be passed.
466
+ * @returns {Promise} - The promise which resolves to an object.
467
+ * The decoded operation object has result and metadata field to get information from.
468
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
469
+ * for more details and examples.
470
+ * @example <caption>include:samples/generated/v1/data_store_service.create_data_store.js</caption>
471
+ * region_tag:discoveryengine_v1_generated_DataStoreService_CreateDataStore_async
472
+ */
473
+ async checkCreateDataStoreProgress(name) {
474
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
475
+ const [operation] = await this.operationsClient.getOperation(request);
476
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createDataStore, this._gaxModule.createDefaultBackoffSettings());
477
+ return decodeOperation;
478
+ }
479
+ deleteDataStore(request, optionsOrCallback, callback) {
480
+ var _a;
481
+ request = request || {};
482
+ let options;
483
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
484
+ callback = optionsOrCallback;
485
+ options = {};
486
+ }
487
+ else {
488
+ options = optionsOrCallback;
489
+ }
490
+ options = options || {};
491
+ options.otherArgs = options.otherArgs || {};
492
+ options.otherArgs.headers = options.otherArgs.headers || {};
493
+ options.otherArgs.headers['x-goog-request-params'] =
494
+ this._gaxModule.routingHeader.fromParams({
495
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
496
+ });
497
+ this.initialize();
498
+ return this.innerApiCalls.deleteDataStore(request, options, callback);
499
+ }
500
+ /**
501
+ * Check the status of the long running operation returned by `deleteDataStore()`.
502
+ * @param {String} name
503
+ * The operation name that will be passed.
504
+ * @returns {Promise} - The promise which resolves to an object.
505
+ * The decoded operation object has result and metadata field to get information from.
506
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
507
+ * for more details and examples.
508
+ * @example <caption>include:samples/generated/v1/data_store_service.delete_data_store.js</caption>
509
+ * region_tag:discoveryengine_v1_generated_DataStoreService_DeleteDataStore_async
510
+ */
511
+ async checkDeleteDataStoreProgress(name) {
512
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
513
+ const [operation] = await this.operationsClient.getOperation(request);
514
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteDataStore, this._gaxModule.createDefaultBackoffSettings());
515
+ return decodeOperation;
516
+ }
517
+ listDataStores(request, optionsOrCallback, callback) {
518
+ var _a;
519
+ request = request || {};
520
+ let options;
521
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
522
+ callback = optionsOrCallback;
523
+ options = {};
524
+ }
525
+ else {
526
+ options = optionsOrCallback;
527
+ }
528
+ options = options || {};
529
+ options.otherArgs = options.otherArgs || {};
530
+ options.otherArgs.headers = options.otherArgs.headers || {};
531
+ options.otherArgs.headers['x-goog-request-params'] =
532
+ this._gaxModule.routingHeader.fromParams({
533
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
534
+ });
535
+ this.initialize();
536
+ return this.innerApiCalls.listDataStores(request, options, callback);
537
+ }
538
+ /**
539
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
540
+ * @param {Object} request
541
+ * The request object that will be sent.
542
+ * @param {string} request.parent
543
+ * Required. The parent branch resource name, such as
544
+ * `projects/{project}/locations/{location}/collections/{collection_id}`.
545
+ *
546
+ * If the caller does not have permission to list
547
+ * {@link protos.google.cloud.discoveryengine.v1.DataStore|DataStore}s under this
548
+ * location, regardless of whether or not this data store exists, a
549
+ * PERMISSION_DENIED error is returned.
550
+ * @param {number} request.pageSize
551
+ * Maximum number of {@link protos.google.cloud.discoveryengine.v1.DataStore|DataStore}s
552
+ * to return. If unspecified, defaults to 10. The maximum allowed value is 50.
553
+ * Values above 50 will be coerced to 50.
554
+ *
555
+ * If this field is negative, an INVALID_ARGUMENT is returned.
556
+ * @param {string} request.pageToken
557
+ * A page token
558
+ * {@link protos.google.cloud.discoveryengine.v1.ListDataStoresResponse.next_page_token|ListDataStoresResponse.next_page_token},
559
+ * received from a previous
560
+ * {@link protos.google.cloud.discoveryengine.v1.DataStoreService.ListDataStores|DataStoreService.ListDataStores}
561
+ * call. Provide this to retrieve the subsequent page.
562
+ *
563
+ * When paginating, all other parameters provided to
564
+ * {@link protos.google.cloud.discoveryengine.v1.DataStoreService.ListDataStores|DataStoreService.ListDataStores}
565
+ * must match the call that provided the page token. Otherwise, an
566
+ * INVALID_ARGUMENT error is returned.
567
+ * @param {string} request.filter
568
+ * Filter by solution type. For example: filter =
569
+ * 'solution_type:SOLUTION_TYPE_SEARCH'
570
+ * @param {object} [options]
571
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
572
+ * @returns {Stream}
573
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1.DataStore|DataStore} on 'data' event.
574
+ * The client library will perform auto-pagination by default: it will call the API as many
575
+ * times as needed. Note that it can affect your quota.
576
+ * We recommend using `listDataStoresAsync()`
577
+ * method described below for async iteration which you can stop as needed.
578
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
579
+ * for more details and examples.
580
+ */
581
+ listDataStoresStream(request, options) {
582
+ var _a;
583
+ request = request || {};
584
+ options = options || {};
585
+ options.otherArgs = options.otherArgs || {};
586
+ options.otherArgs.headers = options.otherArgs.headers || {};
587
+ options.otherArgs.headers['x-goog-request-params'] =
588
+ this._gaxModule.routingHeader.fromParams({
589
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
590
+ });
591
+ const defaultCallSettings = this._defaults['listDataStores'];
592
+ const callSettings = defaultCallSettings.merge(options);
593
+ this.initialize();
594
+ return this.descriptors.page.listDataStores.createStream(this.innerApiCalls.listDataStores, request, callSettings);
595
+ }
596
+ /**
597
+ * Equivalent to `listDataStores`, but returns an iterable object.
598
+ *
599
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
600
+ * @param {Object} request
601
+ * The request object that will be sent.
602
+ * @param {string} request.parent
603
+ * Required. The parent branch resource name, such as
604
+ * `projects/{project}/locations/{location}/collections/{collection_id}`.
605
+ *
606
+ * If the caller does not have permission to list
607
+ * {@link protos.google.cloud.discoveryengine.v1.DataStore|DataStore}s under this
608
+ * location, regardless of whether or not this data store exists, a
609
+ * PERMISSION_DENIED error is returned.
610
+ * @param {number} request.pageSize
611
+ * Maximum number of {@link protos.google.cloud.discoveryengine.v1.DataStore|DataStore}s
612
+ * to return. If unspecified, defaults to 10. The maximum allowed value is 50.
613
+ * Values above 50 will be coerced to 50.
614
+ *
615
+ * If this field is negative, an INVALID_ARGUMENT is returned.
616
+ * @param {string} request.pageToken
617
+ * A page token
618
+ * {@link protos.google.cloud.discoveryengine.v1.ListDataStoresResponse.next_page_token|ListDataStoresResponse.next_page_token},
619
+ * received from a previous
620
+ * {@link protos.google.cloud.discoveryengine.v1.DataStoreService.ListDataStores|DataStoreService.ListDataStores}
621
+ * call. Provide this to retrieve the subsequent page.
622
+ *
623
+ * When paginating, all other parameters provided to
624
+ * {@link protos.google.cloud.discoveryengine.v1.DataStoreService.ListDataStores|DataStoreService.ListDataStores}
625
+ * must match the call that provided the page token. Otherwise, an
626
+ * INVALID_ARGUMENT error is returned.
627
+ * @param {string} request.filter
628
+ * Filter by solution type. For example: filter =
629
+ * 'solution_type:SOLUTION_TYPE_SEARCH'
630
+ * @param {object} [options]
631
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
632
+ * @returns {Object}
633
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
634
+ * When you iterate the returned iterable, each element will be an object representing
635
+ * {@link protos.google.cloud.discoveryengine.v1.DataStore|DataStore}. The API will be called under the hood as needed, once per the page,
636
+ * so you can stop the iteration when you don't need more results.
637
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
638
+ * for more details and examples.
639
+ * @example <caption>include:samples/generated/v1/data_store_service.list_data_stores.js</caption>
640
+ * region_tag:discoveryengine_v1_generated_DataStoreService_ListDataStores_async
641
+ */
642
+ listDataStoresAsync(request, options) {
643
+ var _a;
644
+ request = request || {};
645
+ options = options || {};
646
+ options.otherArgs = options.otherArgs || {};
647
+ options.otherArgs.headers = options.otherArgs.headers || {};
648
+ options.otherArgs.headers['x-goog-request-params'] =
649
+ this._gaxModule.routingHeader.fromParams({
650
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
651
+ });
652
+ const defaultCallSettings = this._defaults['listDataStores'];
653
+ const callSettings = defaultCallSettings.merge(options);
654
+ this.initialize();
655
+ return this.descriptors.page.listDataStores.asyncIterate(this.innerApiCalls['listDataStores'], request, callSettings);
656
+ }
657
+ /**
658
+ * Gets information about a location.
659
+ *
660
+ * @param {Object} request
661
+ * The request object that will be sent.
662
+ * @param {string} request.name
663
+ * Resource name for the location.
664
+ * @param {object} [options]
665
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
666
+ * @returns {Promise} - The promise which resolves to an array.
667
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
668
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
669
+ * for more details and examples.
670
+ * @example
671
+ * ```
672
+ * const [response] = await client.getLocation(request);
673
+ * ```
674
+ */
675
+ getLocation(request, options, callback) {
676
+ return this.locationsClient.getLocation(request, options, callback);
677
+ }
678
+ /**
679
+ * Lists information about the supported locations for this service. Returns an iterable object.
680
+ *
681
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
682
+ * @param {Object} request
683
+ * The request object that will be sent.
684
+ * @param {string} request.name
685
+ * The resource that owns the locations collection, if applicable.
686
+ * @param {string} request.filter
687
+ * The standard list filter.
688
+ * @param {number} request.pageSize
689
+ * The standard list page size.
690
+ * @param {string} request.pageToken
691
+ * The standard list page token.
692
+ * @param {object} [options]
693
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
694
+ * @returns {Object}
695
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
696
+ * When you iterate the returned iterable, each element will be an object representing
697
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
698
+ * so you can stop the iteration when you don't need more results.
699
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
700
+ * for more details and examples.
701
+ * @example
702
+ * ```
703
+ * const iterable = client.listLocationsAsync(request);
704
+ * for await (const response of iterable) {
705
+ * // process response
706
+ * }
707
+ * ```
708
+ */
709
+ listLocationsAsync(request, options) {
710
+ return this.locationsClient.listLocationsAsync(request, options);
711
+ }
712
+ /**
713
+ * Gets the latest state of a long-running operation. Clients can use this
714
+ * method to poll the operation result at intervals as recommended by the API
715
+ * service.
716
+ *
717
+ * @param {Object} request - The request object that will be sent.
718
+ * @param {string} request.name - The name of the operation resource.
719
+ * @param {Object=} options
720
+ * Optional parameters. You can override the default settings for this call,
721
+ * e.g, timeout, retries, paginations, etc. See {@link
722
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
723
+ * for the details.
724
+ * @param {function(?Error, ?Object)=} callback
725
+ * The function which will be called with the result of the API call.
726
+ *
727
+ * The second parameter to the callback is an object representing
728
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
729
+ * @return {Promise} - The promise which resolves to an array.
730
+ * The first element of the array is an object representing
731
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
732
+ * The promise has a method named "cancel" which cancels the ongoing API call.
733
+ *
734
+ * @example
735
+ * ```
736
+ * const client = longrunning.operationsClient();
737
+ * const name = '';
738
+ * const [response] = await client.getOperation({name});
739
+ * // doThingsWith(response)
740
+ * ```
741
+ */
742
+ getOperation(request, options, callback) {
743
+ return this.operationsClient.getOperation(request, options, callback);
744
+ }
745
+ /**
746
+ * Lists operations that match the specified filter in the request. If the
747
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
748
+ *
749
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
750
+ *
751
+ * @param {Object} request - The request object that will be sent.
752
+ * @param {string} request.name - The name of the operation collection.
753
+ * @param {string} request.filter - The standard list filter.
754
+ * @param {number=} request.pageSize -
755
+ * The maximum number of resources contained in the underlying API
756
+ * response. If page streaming is performed per-resource, this
757
+ * parameter does not affect the return value. If page streaming is
758
+ * performed per-page, this determines the maximum number of
759
+ * resources in a page.
760
+ * @param {Object=} options
761
+ * Optional parameters. You can override the default settings for this call,
762
+ * e.g, timeout, retries, paginations, etc. See {@link
763
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
764
+ * details.
765
+ * @returns {Object}
766
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
767
+ *
768
+ * @example
769
+ * ```
770
+ * const client = longrunning.operationsClient();
771
+ * for await (const response of client.listOperationsAsync(request));
772
+ * // doThingsWith(response)
773
+ * ```
774
+ */
775
+ listOperationsAsync(request, options) {
776
+ return this.operationsClient.listOperationsAsync(request, options);
777
+ }
778
+ /**
779
+ * Starts asynchronous cancellation on a long-running operation. The server
780
+ * makes a best effort to cancel the operation, but success is not
781
+ * guaranteed. If the server doesn't support this method, it returns
782
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
783
+ * {@link Operations.GetOperation} or
784
+ * other methods to check whether the cancellation succeeded or whether the
785
+ * operation completed despite cancellation. On successful cancellation,
786
+ * the operation is not deleted; instead, it becomes an operation with
787
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
788
+ * 1, corresponding to `Code.CANCELLED`.
789
+ *
790
+ * @param {Object} request - The request object that will be sent.
791
+ * @param {string} request.name - The name of the operation resource to be cancelled.
792
+ * @param {Object=} options
793
+ * Optional parameters. You can override the default settings for this call,
794
+ * e.g, timeout, retries, paginations, etc. See {@link
795
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
796
+ * details.
797
+ * @param {function(?Error)=} callback
798
+ * The function which will be called with the result of the API call.
799
+ * @return {Promise} - The promise which resolves when API call finishes.
800
+ * The promise has a method named "cancel" which cancels the ongoing API
801
+ * call.
802
+ *
803
+ * @example
804
+ * ```
805
+ * const client = longrunning.operationsClient();
806
+ * await client.cancelOperation({name: ''});
807
+ * ```
808
+ */
809
+ cancelOperation(request, options, callback) {
810
+ return this.operationsClient.cancelOperation(request, options, callback);
811
+ }
812
+ /**
813
+ * Deletes a long-running operation. This method indicates that the client is
814
+ * no longer interested in the operation result. It does not cancel the
815
+ * operation. If the server doesn't support this method, it returns
816
+ * `google.rpc.Code.UNIMPLEMENTED`.
817
+ *
818
+ * @param {Object} request - The request object that will be sent.
819
+ * @param {string} request.name - The name of the operation resource to be deleted.
820
+ * @param {Object=} options
821
+ * Optional parameters. You can override the default settings for this call,
822
+ * e.g, timeout, retries, paginations, etc. See {@link
823
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
824
+ * for the details.
825
+ * @param {function(?Error)=} callback
826
+ * The function which will be called with the result of the API call.
827
+ * @return {Promise} - The promise which resolves when API call finishes.
828
+ * The promise has a method named "cancel" which cancels the ongoing API
829
+ * call.
830
+ *
831
+ * @example
832
+ * ```
833
+ * const client = longrunning.operationsClient();
834
+ * await client.deleteOperation({name: ''});
835
+ * ```
836
+ */
837
+ deleteOperation(request, options, callback) {
838
+ return this.operationsClient.deleteOperation(request, options, callback);
839
+ }
840
+ // --------------------
841
+ // -- Path templates --
842
+ // --------------------
843
+ /**
844
+ * Return a fully-qualified collection resource name string.
845
+ *
846
+ * @param {string} project
847
+ * @param {string} location
848
+ * @param {string} collection
849
+ * @returns {string} Resource name string.
850
+ */
851
+ collectionPath(project, location, collection) {
852
+ return this.pathTemplates.collectionPathTemplate.render({
853
+ project: project,
854
+ location: location,
855
+ collection: collection,
856
+ });
857
+ }
858
+ /**
859
+ * Parse the project from Collection resource.
860
+ *
861
+ * @param {string} collectionName
862
+ * A fully-qualified path representing Collection resource.
863
+ * @returns {string} A string representing the project.
864
+ */
865
+ matchProjectFromCollectionName(collectionName) {
866
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
867
+ .project;
868
+ }
869
+ /**
870
+ * Parse the location from Collection resource.
871
+ *
872
+ * @param {string} collectionName
873
+ * A fully-qualified path representing Collection resource.
874
+ * @returns {string} A string representing the location.
875
+ */
876
+ matchLocationFromCollectionName(collectionName) {
877
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
878
+ .location;
879
+ }
880
+ /**
881
+ * Parse the collection from Collection resource.
882
+ *
883
+ * @param {string} collectionName
884
+ * A fully-qualified path representing Collection resource.
885
+ * @returns {string} A string representing the collection.
886
+ */
887
+ matchCollectionFromCollectionName(collectionName) {
888
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
889
+ .collection;
890
+ }
891
+ /**
892
+ * Return a fully-qualified engine resource name string.
893
+ *
894
+ * @param {string} project
895
+ * @param {string} location
896
+ * @param {string} collection
897
+ * @param {string} engine
898
+ * @returns {string} Resource name string.
899
+ */
900
+ enginePath(project, location, collection, engine) {
901
+ return this.pathTemplates.enginePathTemplate.render({
902
+ project: project,
903
+ location: location,
904
+ collection: collection,
905
+ engine: engine,
906
+ });
907
+ }
908
+ /**
909
+ * Parse the project from Engine resource.
910
+ *
911
+ * @param {string} engineName
912
+ * A fully-qualified path representing Engine resource.
913
+ * @returns {string} A string representing the project.
914
+ */
915
+ matchProjectFromEngineName(engineName) {
916
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
917
+ }
918
+ /**
919
+ * Parse the location from Engine resource.
920
+ *
921
+ * @param {string} engineName
922
+ * A fully-qualified path representing Engine resource.
923
+ * @returns {string} A string representing the location.
924
+ */
925
+ matchLocationFromEngineName(engineName) {
926
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
927
+ }
928
+ /**
929
+ * Parse the collection from Engine resource.
930
+ *
931
+ * @param {string} engineName
932
+ * A fully-qualified path representing Engine resource.
933
+ * @returns {string} A string representing the collection.
934
+ */
935
+ matchCollectionFromEngineName(engineName) {
936
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
937
+ }
938
+ /**
939
+ * Parse the engine from Engine resource.
940
+ *
941
+ * @param {string} engineName
942
+ * A fully-qualified path representing Engine resource.
943
+ * @returns {string} A string representing the engine.
944
+ */
945
+ matchEngineFromEngineName(engineName) {
946
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
947
+ }
948
+ /**
949
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
950
+ *
951
+ * @param {string} project
952
+ * @param {string} location
953
+ * @param {string} collection
954
+ * @param {string} data_store
955
+ * @returns {string} Resource name string.
956
+ */
957
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
958
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
959
+ project: project,
960
+ location: location,
961
+ collection: collection,
962
+ data_store: dataStore,
963
+ });
964
+ }
965
+ /**
966
+ * Parse the project from ProjectLocationCollectionDataStore resource.
967
+ *
968
+ * @param {string} projectLocationCollectionDataStoreName
969
+ * A fully-qualified path representing project_location_collection_data_store resource.
970
+ * @returns {string} A string representing the project.
971
+ */
972
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
973
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
974
+ }
975
+ /**
976
+ * Parse the location from ProjectLocationCollectionDataStore resource.
977
+ *
978
+ * @param {string} projectLocationCollectionDataStoreName
979
+ * A fully-qualified path representing project_location_collection_data_store resource.
980
+ * @returns {string} A string representing the location.
981
+ */
982
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
983
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
984
+ }
985
+ /**
986
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
987
+ *
988
+ * @param {string} projectLocationCollectionDataStoreName
989
+ * A fully-qualified path representing project_location_collection_data_store resource.
990
+ * @returns {string} A string representing the collection.
991
+ */
992
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
993
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
994
+ }
995
+ /**
996
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
997
+ *
998
+ * @param {string} projectLocationCollectionDataStoreName
999
+ * A fully-qualified path representing project_location_collection_data_store resource.
1000
+ * @returns {string} A string representing the data_store.
1001
+ */
1002
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1003
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
1004
+ }
1005
+ /**
1006
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
1007
+ *
1008
+ * @param {string} project
1009
+ * @param {string} location
1010
+ * @param {string} collection
1011
+ * @param {string} data_store
1012
+ * @param {string} branch
1013
+ * @param {string} document
1014
+ * @returns {string} Resource name string.
1015
+ */
1016
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
1017
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
1018
+ project: project,
1019
+ location: location,
1020
+ collection: collection,
1021
+ data_store: dataStore,
1022
+ branch: branch,
1023
+ document: document,
1024
+ });
1025
+ }
1026
+ /**
1027
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
1028
+ *
1029
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1030
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1031
+ * @returns {string} A string representing the project.
1032
+ */
1033
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1034
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
1035
+ }
1036
+ /**
1037
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
1038
+ *
1039
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1040
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1041
+ * @returns {string} A string representing the location.
1042
+ */
1043
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1044
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
1045
+ }
1046
+ /**
1047
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
1048
+ *
1049
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1050
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1051
+ * @returns {string} A string representing the collection.
1052
+ */
1053
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1054
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
1055
+ }
1056
+ /**
1057
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
1058
+ *
1059
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1060
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1061
+ * @returns {string} A string representing the data_store.
1062
+ */
1063
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1064
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
1065
+ }
1066
+ /**
1067
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
1068
+ *
1069
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1070
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1071
+ * @returns {string} A string representing the branch.
1072
+ */
1073
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1074
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
1075
+ }
1076
+ /**
1077
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
1078
+ *
1079
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1080
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1081
+ * @returns {string} A string representing the document.
1082
+ */
1083
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1084
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1085
+ }
1086
+ /**
1087
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1088
+ *
1089
+ * @param {string} project
1090
+ * @param {string} location
1091
+ * @param {string} collection
1092
+ * @param {string} data_store
1093
+ * @param {string} conversation
1094
+ * @returns {string} Resource name string.
1095
+ */
1096
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1097
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1098
+ project: project,
1099
+ location: location,
1100
+ collection: collection,
1101
+ data_store: dataStore,
1102
+ conversation: conversation,
1103
+ });
1104
+ }
1105
+ /**
1106
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1107
+ *
1108
+ * @param {string} projectLocationCollectionDataStoreConversationName
1109
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1110
+ * @returns {string} A string representing the project.
1111
+ */
1112
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1113
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1114
+ }
1115
+ /**
1116
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1117
+ *
1118
+ * @param {string} projectLocationCollectionDataStoreConversationName
1119
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1120
+ * @returns {string} A string representing the location.
1121
+ */
1122
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1123
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1124
+ }
1125
+ /**
1126
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1127
+ *
1128
+ * @param {string} projectLocationCollectionDataStoreConversationName
1129
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1130
+ * @returns {string} A string representing the collection.
1131
+ */
1132
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1133
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1134
+ }
1135
+ /**
1136
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1137
+ *
1138
+ * @param {string} projectLocationCollectionDataStoreConversationName
1139
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1140
+ * @returns {string} A string representing the data_store.
1141
+ */
1142
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1143
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1144
+ }
1145
+ /**
1146
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1147
+ *
1148
+ * @param {string} projectLocationCollectionDataStoreConversationName
1149
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1150
+ * @returns {string} A string representing the conversation.
1151
+ */
1152
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1153
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1154
+ }
1155
+ /**
1156
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1157
+ *
1158
+ * @param {string} project
1159
+ * @param {string} location
1160
+ * @param {string} collection
1161
+ * @param {string} data_store
1162
+ * @param {string} schema
1163
+ * @returns {string} Resource name string.
1164
+ */
1165
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
1166
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
1167
+ project: project,
1168
+ location: location,
1169
+ collection: collection,
1170
+ data_store: dataStore,
1171
+ schema: schema,
1172
+ });
1173
+ }
1174
+ /**
1175
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
1176
+ *
1177
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1178
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1179
+ * @returns {string} A string representing the project.
1180
+ */
1181
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1182
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1183
+ }
1184
+ /**
1185
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1186
+ *
1187
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1188
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1189
+ * @returns {string} A string representing the location.
1190
+ */
1191
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1192
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1193
+ }
1194
+ /**
1195
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1196
+ *
1197
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1198
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1199
+ * @returns {string} A string representing the collection.
1200
+ */
1201
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1202
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1203
+ }
1204
+ /**
1205
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1206
+ *
1207
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1208
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1209
+ * @returns {string} A string representing the data_store.
1210
+ */
1211
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1212
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1213
+ }
1214
+ /**
1215
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1216
+ *
1217
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1218
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1219
+ * @returns {string} A string representing the schema.
1220
+ */
1221
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1222
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1223
+ }
1224
+ /**
1225
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1226
+ *
1227
+ * @param {string} project
1228
+ * @param {string} location
1229
+ * @param {string} collection
1230
+ * @param {string} data_store
1231
+ * @returns {string} Resource name string.
1232
+ */
1233
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1234
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1235
+ project: project,
1236
+ location: location,
1237
+ collection: collection,
1238
+ data_store: dataStore,
1239
+ });
1240
+ }
1241
+ /**
1242
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1243
+ *
1244
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1245
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1246
+ * @returns {string} A string representing the project.
1247
+ */
1248
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1249
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1250
+ }
1251
+ /**
1252
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1253
+ *
1254
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1255
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1256
+ * @returns {string} A string representing the location.
1257
+ */
1258
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1259
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1260
+ }
1261
+ /**
1262
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1263
+ *
1264
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1265
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1266
+ * @returns {string} A string representing the collection.
1267
+ */
1268
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1269
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1270
+ }
1271
+ /**
1272
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1273
+ *
1274
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1275
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1276
+ * @returns {string} A string representing the data_store.
1277
+ */
1278
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1279
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1280
+ }
1281
+ /**
1282
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1283
+ *
1284
+ * @param {string} project
1285
+ * @param {string} location
1286
+ * @param {string} collection
1287
+ * @param {string} data_store
1288
+ * @param {string} target_site
1289
+ * @returns {string} Resource name string.
1290
+ */
1291
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1292
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1293
+ project: project,
1294
+ location: location,
1295
+ collection: collection,
1296
+ data_store: dataStore,
1297
+ target_site: targetSite,
1298
+ });
1299
+ }
1300
+ /**
1301
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1302
+ *
1303
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1304
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1305
+ * @returns {string} A string representing the project.
1306
+ */
1307
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1308
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1309
+ }
1310
+ /**
1311
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1312
+ *
1313
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1314
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1315
+ * @returns {string} A string representing the location.
1316
+ */
1317
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1318
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1319
+ }
1320
+ /**
1321
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1322
+ *
1323
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1324
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1325
+ * @returns {string} A string representing the collection.
1326
+ */
1327
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1328
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1329
+ }
1330
+ /**
1331
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1332
+ *
1333
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1334
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1335
+ * @returns {string} A string representing the data_store.
1336
+ */
1337
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1338
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1339
+ }
1340
+ /**
1341
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1342
+ *
1343
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1344
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1345
+ * @returns {string} A string representing the target_site.
1346
+ */
1347
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1348
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1349
+ }
1350
+ /**
1351
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1352
+ *
1353
+ * @param {string} project
1354
+ * @param {string} location
1355
+ * @param {string} collection
1356
+ * @param {string} engine
1357
+ * @param {string} conversation
1358
+ * @returns {string} Resource name string.
1359
+ */
1360
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1361
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1362
+ project: project,
1363
+ location: location,
1364
+ collection: collection,
1365
+ engine: engine,
1366
+ conversation: conversation,
1367
+ });
1368
+ }
1369
+ /**
1370
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1371
+ *
1372
+ * @param {string} projectLocationCollectionEngineConversationName
1373
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1374
+ * @returns {string} A string representing the project.
1375
+ */
1376
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1377
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1378
+ }
1379
+ /**
1380
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1381
+ *
1382
+ * @param {string} projectLocationCollectionEngineConversationName
1383
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1384
+ * @returns {string} A string representing the location.
1385
+ */
1386
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1387
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1388
+ }
1389
+ /**
1390
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1391
+ *
1392
+ * @param {string} projectLocationCollectionEngineConversationName
1393
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1394
+ * @returns {string} A string representing the collection.
1395
+ */
1396
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1397
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1398
+ }
1399
+ /**
1400
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1401
+ *
1402
+ * @param {string} projectLocationCollectionEngineConversationName
1403
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1404
+ * @returns {string} A string representing the engine.
1405
+ */
1406
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1407
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1408
+ }
1409
+ /**
1410
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1411
+ *
1412
+ * @param {string} projectLocationCollectionEngineConversationName
1413
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1414
+ * @returns {string} A string representing the conversation.
1415
+ */
1416
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1417
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1418
+ }
1419
+ /**
1420
+ * Return a fully-qualified projectLocationDataStore resource name string.
1421
+ *
1422
+ * @param {string} project
1423
+ * @param {string} location
1424
+ * @param {string} data_store
1425
+ * @returns {string} Resource name string.
1426
+ */
1427
+ projectLocationDataStorePath(project, location, dataStore) {
1428
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1429
+ project: project,
1430
+ location: location,
1431
+ data_store: dataStore,
1432
+ });
1433
+ }
1434
+ /**
1435
+ * Parse the project from ProjectLocationDataStore resource.
1436
+ *
1437
+ * @param {string} projectLocationDataStoreName
1438
+ * A fully-qualified path representing project_location_data_store resource.
1439
+ * @returns {string} A string representing the project.
1440
+ */
1441
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1442
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1443
+ }
1444
+ /**
1445
+ * Parse the location from ProjectLocationDataStore resource.
1446
+ *
1447
+ * @param {string} projectLocationDataStoreName
1448
+ * A fully-qualified path representing project_location_data_store resource.
1449
+ * @returns {string} A string representing the location.
1450
+ */
1451
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1452
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1453
+ }
1454
+ /**
1455
+ * Parse the data_store from ProjectLocationDataStore resource.
1456
+ *
1457
+ * @param {string} projectLocationDataStoreName
1458
+ * A fully-qualified path representing project_location_data_store resource.
1459
+ * @returns {string} A string representing the data_store.
1460
+ */
1461
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1462
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1463
+ }
1464
+ /**
1465
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1466
+ *
1467
+ * @param {string} project
1468
+ * @param {string} location
1469
+ * @param {string} data_store
1470
+ * @param {string} branch
1471
+ * @param {string} document
1472
+ * @returns {string} Resource name string.
1473
+ */
1474
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1475
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1476
+ project: project,
1477
+ location: location,
1478
+ data_store: dataStore,
1479
+ branch: branch,
1480
+ document: document,
1481
+ });
1482
+ }
1483
+ /**
1484
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1485
+ *
1486
+ * @param {string} projectLocationDataStoreBranchDocumentName
1487
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1488
+ * @returns {string} A string representing the project.
1489
+ */
1490
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1491
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1492
+ }
1493
+ /**
1494
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1495
+ *
1496
+ * @param {string} projectLocationDataStoreBranchDocumentName
1497
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1498
+ * @returns {string} A string representing the location.
1499
+ */
1500
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1501
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1502
+ }
1503
+ /**
1504
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1505
+ *
1506
+ * @param {string} projectLocationDataStoreBranchDocumentName
1507
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1508
+ * @returns {string} A string representing the data_store.
1509
+ */
1510
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1511
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1512
+ }
1513
+ /**
1514
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1515
+ *
1516
+ * @param {string} projectLocationDataStoreBranchDocumentName
1517
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1518
+ * @returns {string} A string representing the branch.
1519
+ */
1520
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1521
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1522
+ }
1523
+ /**
1524
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1525
+ *
1526
+ * @param {string} projectLocationDataStoreBranchDocumentName
1527
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1528
+ * @returns {string} A string representing the document.
1529
+ */
1530
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1531
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1532
+ }
1533
+ /**
1534
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1535
+ *
1536
+ * @param {string} project
1537
+ * @param {string} location
1538
+ * @param {string} data_store
1539
+ * @param {string} conversation
1540
+ * @returns {string} Resource name string.
1541
+ */
1542
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1543
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1544
+ project: project,
1545
+ location: location,
1546
+ data_store: dataStore,
1547
+ conversation: conversation,
1548
+ });
1549
+ }
1550
+ /**
1551
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1552
+ *
1553
+ * @param {string} projectLocationDataStoreConversationName
1554
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1555
+ * @returns {string} A string representing the project.
1556
+ */
1557
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1558
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1559
+ }
1560
+ /**
1561
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1562
+ *
1563
+ * @param {string} projectLocationDataStoreConversationName
1564
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1565
+ * @returns {string} A string representing the location.
1566
+ */
1567
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1568
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1569
+ }
1570
+ /**
1571
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1572
+ *
1573
+ * @param {string} projectLocationDataStoreConversationName
1574
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1575
+ * @returns {string} A string representing the data_store.
1576
+ */
1577
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1578
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1579
+ }
1580
+ /**
1581
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1582
+ *
1583
+ * @param {string} projectLocationDataStoreConversationName
1584
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1585
+ * @returns {string} A string representing the conversation.
1586
+ */
1587
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1588
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1589
+ }
1590
+ /**
1591
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1592
+ *
1593
+ * @param {string} project
1594
+ * @param {string} location
1595
+ * @param {string} data_store
1596
+ * @param {string} schema
1597
+ * @returns {string} Resource name string.
1598
+ */
1599
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
1600
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
1601
+ project: project,
1602
+ location: location,
1603
+ data_store: dataStore,
1604
+ schema: schema,
1605
+ });
1606
+ }
1607
+ /**
1608
+ * Parse the project from ProjectLocationDataStoreSchema resource.
1609
+ *
1610
+ * @param {string} projectLocationDataStoreSchemaName
1611
+ * A fully-qualified path representing project_location_data_store_schema resource.
1612
+ * @returns {string} A string representing the project.
1613
+ */
1614
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1615
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
1616
+ }
1617
+ /**
1618
+ * Parse the location from ProjectLocationDataStoreSchema resource.
1619
+ *
1620
+ * @param {string} projectLocationDataStoreSchemaName
1621
+ * A fully-qualified path representing project_location_data_store_schema resource.
1622
+ * @returns {string} A string representing the location.
1623
+ */
1624
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1625
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1626
+ }
1627
+ /**
1628
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1629
+ *
1630
+ * @param {string} projectLocationDataStoreSchemaName
1631
+ * A fully-qualified path representing project_location_data_store_schema resource.
1632
+ * @returns {string} A string representing the data_store.
1633
+ */
1634
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1635
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1636
+ }
1637
+ /**
1638
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1639
+ *
1640
+ * @param {string} projectLocationDataStoreSchemaName
1641
+ * A fully-qualified path representing project_location_data_store_schema resource.
1642
+ * @returns {string} A string representing the schema.
1643
+ */
1644
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1645
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1646
+ }
1647
+ /**
1648
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1649
+ *
1650
+ * @param {string} project
1651
+ * @param {string} location
1652
+ * @param {string} data_store
1653
+ * @returns {string} Resource name string.
1654
+ */
1655
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1656
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1657
+ project: project,
1658
+ location: location,
1659
+ data_store: dataStore,
1660
+ });
1661
+ }
1662
+ /**
1663
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1664
+ *
1665
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1666
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1667
+ * @returns {string} A string representing the project.
1668
+ */
1669
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1670
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1671
+ }
1672
+ /**
1673
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1674
+ *
1675
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1676
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1677
+ * @returns {string} A string representing the location.
1678
+ */
1679
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1680
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1681
+ }
1682
+ /**
1683
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1684
+ *
1685
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1686
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1687
+ * @returns {string} A string representing the data_store.
1688
+ */
1689
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1690
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1691
+ }
1692
+ /**
1693
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1694
+ *
1695
+ * @param {string} project
1696
+ * @param {string} location
1697
+ * @param {string} data_store
1698
+ * @param {string} target_site
1699
+ * @returns {string} Resource name string.
1700
+ */
1701
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1702
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1703
+ project: project,
1704
+ location: location,
1705
+ data_store: dataStore,
1706
+ target_site: targetSite,
1707
+ });
1708
+ }
1709
+ /**
1710
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1711
+ *
1712
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1713
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1714
+ * @returns {string} A string representing the project.
1715
+ */
1716
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1717
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1718
+ }
1719
+ /**
1720
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1721
+ *
1722
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1723
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1724
+ * @returns {string} A string representing the location.
1725
+ */
1726
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1727
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1728
+ }
1729
+ /**
1730
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1731
+ *
1732
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1733
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1734
+ * @returns {string} A string representing the data_store.
1735
+ */
1736
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1737
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1738
+ }
1739
+ /**
1740
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1741
+ *
1742
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1743
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1744
+ * @returns {string} A string representing the target_site.
1745
+ */
1746
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1747
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1748
+ }
1749
+ /**
1750
+ * Terminate the gRPC channel and close the client.
1751
+ *
1752
+ * The client will no longer be usable and all future behavior is undefined.
1753
+ * @returns {Promise} A promise that resolves when the client is closed.
1754
+ */
1755
+ close() {
1756
+ if (this.dataStoreServiceStub && !this._terminated) {
1757
+ return this.dataStoreServiceStub.then(stub => {
1758
+ this._terminated = true;
1759
+ stub.close();
1760
+ this.locationsClient.close();
1761
+ this.operationsClient.close();
1762
+ });
1763
+ }
1764
+ return Promise.resolve();
1765
+ }
1766
+ }
1767
+ exports.DataStoreServiceClient = DataStoreServiceClient;
1768
+ //# sourceMappingURL=data_store_service_client.js.map