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