@google-cloud/discoveryengine 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
- package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
- package/build/protos/protos.d.ts +4390 -300
- package/build/protos/protos.js +13785 -2922
- package/build/protos/protos.json +1355 -14
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -21
- package/build/src/v1/completion_service_client.d.ts +313 -76
- package/build/src/v1/completion_service_client.js +451 -262
- package/build/src/v1/completion_service_proto_list.json +3 -0
- package/build/src/v1/control_service_client.d.ts +318 -81
- package/build/src/v1/control_service_client.js +422 -132
- package/build/src/v1/control_service_proto_list.json +3 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -134
- package/build/src/v1/conversational_search_service_client.js +395 -223
- package/build/src/v1/conversational_search_service_client_config.json +5 -0
- package/build/src/v1/conversational_search_service_proto_list.json +3 -0
- package/build/src/v1/data_store_service_client.d.ts +359 -122
- package/build/src/v1/data_store_service_client.js +460 -280
- package/build/src/v1/data_store_service_proto_list.json +3 -0
- package/build/src/v1/document_service_client.d.ts +364 -121
- package/build/src/v1/document_service_client.js +469 -300
- package/build/src/v1/document_service_proto_list.json +3 -0
- package/build/src/v1/engine_service_client.d.ts +340 -103
- package/build/src/v1/engine_service_client.js +460 -279
- package/build/src/v1/engine_service_proto_list.json +3 -0
- package/build/src/v1/gapic_metadata.json +59 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +286 -51
- package/build/src/v1/grounded_generation_service_client.js +405 -100
- package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/project_service_client.d.ts +313 -76
- package/build/src/v1/project_service_client.js +434 -222
- package/build/src/v1/project_service_proto_list.json +3 -0
- package/build/src/v1/rank_service_client.d.ts +285 -48
- package/build/src/v1/rank_service_client.js +398 -85
- package/build/src/v1/rank_service_proto_list.json +3 -0
- package/build/src/v1/recommendation_service_client.d.ts +142 -49
- package/build/src/v1/recommendation_service_client.js +198 -82
- package/build/src/v1/recommendation_service_proto_list.json +3 -0
- package/build/src/v1/schema_service_client.d.ts +348 -111
- package/build/src/v1/schema_service_client.js +457 -273
- package/build/src/v1/schema_service_proto_list.json +3 -0
- package/build/src/v1/search_service_client.d.ts +748 -559
- package/build/src/v1/search_service_client.js +302 -133
- package/build/src/v1/search_service_proto_list.json +3 -0
- package/build/src/v1/search_tuning_service_client.d.ts +314 -77
- package/build/src/v1/search_tuning_service_client.js +439 -235
- package/build/src/v1/search_tuning_service_proto_list.json +3 -0
- package/build/src/v1/serving_config_service_client.d.ts +1851 -0
- package/build/src/v1/serving_config_service_client.js +2642 -0
- package/build/src/v1/serving_config_service_client_config.json +30 -0
- package/build/src/v1/serving_config_service_proto_list.json +39 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +504 -151
- package/build/src/v1/site_search_engine_service_client.js +625 -351
- package/build/src/v1/site_search_engine_service_client_config.json +12 -0
- package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
- package/build/src/v1/user_event_service_client.d.ts +335 -86
- package/build/src/v1/user_event_service_client.js +447 -253
- package/build/src/v1/user_event_service_proto_list.json +3 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
- package/build/src/v1alpha/acl_config_service_client.js +82 -106
- package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
- package/build/src/v1alpha/chunk_service_client.js +92 -120
- package/build/src/v1alpha/completion_service_client.d.ts +77 -77
- package/build/src/v1alpha/completion_service_client.js +134 -280
- package/build/src/v1alpha/control_service_client.d.ts +85 -85
- package/build/src/v1alpha/control_service_client.js +105 -151
- package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
- package/build/src/v1alpha/conversational_search_service_client.js +145 -237
- package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
- package/build/src/v1alpha/data_store_service_client.js +151 -316
- package/build/src/v1alpha/document_service_client.d.ts +126 -126
- package/build/src/v1alpha/document_service_client.js +156 -328
- package/build/src/v1alpha/engine_service_client.d.ts +106 -106
- package/build/src/v1alpha/engine_service_client.js +155 -325
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
- package/build/src/v1alpha/estimate_billing_service_client.js +118 -243
- package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
- package/build/src/v1alpha/evaluation_service_client.js +143 -295
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
- package/build/src/v1alpha/grounded_generation_service_client.js +79 -100
- package/build/src/v1alpha/project_service_client.d.ts +78 -78
- package/build/src/v1alpha/project_service_client.js +126 -262
- package/build/src/v1alpha/rank_service_client.d.ts +47 -47
- package/build/src/v1alpha/rank_service_client.js +81 -104
- package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
- package/build/src/v1alpha/recommendation_service_client.js +79 -100
- package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
- package/build/src/v1alpha/sample_query_service_client.js +144 -301
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1alpha/sample_query_set_service_client.js +106 -153
- package/build/src/v1alpha/schema_service_client.d.ts +112 -112
- package/build/src/v1alpha/schema_service_client.js +140 -292
- package/build/src/v1alpha/search_service_client.d.ts +327 -327
- package/build/src/v1alpha/search_service_client.js +88 -112
- package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1alpha/search_tuning_service_client.js +122 -253
- package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
- package/build/src/v1alpha/serving_config_service_client.js +97 -133
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1alpha/site_search_engine_service_client.js +184 -387
- package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
- package/build/src/v1alpha/user_event_service_client.js +130 -271
- package/build/src/v1beta/completion_service_client.d.ts +78 -78
- package/build/src/v1beta/completion_service_client.js +136 -279
- package/build/src/v1beta/control_service_client.d.ts +84 -84
- package/build/src/v1beta/control_service_client.js +103 -147
- package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
- package/build/src/v1beta/conversational_search_service_client.js +143 -233
- package/build/src/v1beta/data_store_service_client.d.ts +124 -124
- package/build/src/v1beta/data_store_service_client.js +141 -288
- package/build/src/v1beta/document_service_client.d.ts +124 -124
- package/build/src/v1beta/document_service_client.js +150 -309
- package/build/src/v1beta/engine_service_client.d.ts +106 -106
- package/build/src/v1beta/engine_service_client.js +153 -315
- package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
- package/build/src/v1beta/evaluation_service_client.js +141 -285
- package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
- package/build/src/v1beta/grounded_generation_service_client.js +86 -114
- package/build/src/v1beta/project_service_client.d.ts +76 -76
- package/build/src/v1beta/project_service_client.js +115 -231
- package/build/src/v1beta/rank_service_client.d.ts +47 -47
- package/build/src/v1beta/rank_service_client.js +79 -99
- package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
- package/build/src/v1beta/recommendation_service_client.js +77 -96
- package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
- package/build/src/v1beta/sample_query_service_client.js +142 -291
- package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1beta/sample_query_set_service_client.js +104 -149
- package/build/src/v1beta/schema_service_client.d.ts +111 -111
- package/build/src/v1beta/schema_service_client.js +138 -282
- package/build/src/v1beta/search_service_client.d.ts +665 -665
- package/build/src/v1beta/search_service_client.js +97 -128
- package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1beta/search_tuning_service_client.js +120 -243
- package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
- package/build/src/v1beta/serving_config_service_client.js +95 -129
- package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1beta/site_search_engine_service_client.js +186 -386
- package/build/src/v1beta/user_event_service_client.d.ts +78 -78
- package/build/src/v1beta/user_event_service_client.js +128 -261
- package/package.json +4 -4
@@ -99,26 +99,17 @@ class DataStoreServiceClient {
|
|
99
99
|
constructor(opts, gaxInstance) {
|
100
100
|
// Ensure that options include all the required fields.
|
101
101
|
const staticMembers = this.constructor;
|
102
|
-
if (opts?.universe_domain &&
|
103
|
-
opts?.universeDomain &&
|
104
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
102
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
105
103
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
106
104
|
}
|
107
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
108
|
-
|
109
|
-
: undefined;
|
110
|
-
this._universeDomain =
|
111
|
-
opts?.universeDomain ??
|
112
|
-
opts?.universe_domain ??
|
113
|
-
universeDomainEnvVar ??
|
114
|
-
'googleapis.com';
|
105
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
106
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
115
107
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
116
108
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
117
109
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
118
110
|
const port = opts?.port || staticMembers.port;
|
119
111
|
const clientConfig = opts?.clientConfig ?? {};
|
120
|
-
const fallback = opts?.fallback ??
|
121
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
112
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
122
113
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
123
114
|
// Request numeric enum values if REST transport is used.
|
124
115
|
opts.numericEnums = true;
|
@@ -148,7 +139,10 @@ class DataStoreServiceClient {
|
|
148
139
|
}
|
149
140
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
150
141
|
// Determine the client header string.
|
151
|
-
const clientHeader = [
|
142
|
+
const clientHeader = [
|
143
|
+
`gax/${this._gaxModule.version}`,
|
144
|
+
`gapic/${version}`,
|
145
|
+
];
|
152
146
|
if (typeof process === 'object' && 'versions' in process) {
|
153
147
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
154
148
|
}
|
@@ -181,12 +175,15 @@ class DataStoreServiceClient {
|
|
181
175
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
182
176
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
183
177
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
178
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
184
179
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
185
180
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
186
181
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
182
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
187
183
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
188
184
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
189
185
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
186
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
190
187
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
191
188
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
192
189
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -197,16 +194,18 @@ class DataStoreServiceClient {
|
|
197
194
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
198
195
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
199
196
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
197
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
200
198
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
201
199
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
202
200
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
201
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
203
202
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
204
203
|
};
|
205
204
|
// Some of the methods on this service return "paged" results,
|
206
205
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
207
206
|
// pages). Denote the keys used for pagination and results.
|
208
207
|
this.descriptors.page = {
|
209
|
-
listDataStores: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'dataStores')
|
208
|
+
listDataStores: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'dataStores')
|
210
209
|
};
|
211
210
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
212
211
|
// This API contains "long-running operations", which return a
|
@@ -214,128 +213,23 @@ class DataStoreServiceClient {
|
|
214
213
|
// rather than holding a request open.
|
215
214
|
const lroOptions = {
|
216
215
|
auth: this.auth,
|
217
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
216
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
218
217
|
};
|
219
218
|
if (opts.fallback) {
|
220
219
|
lroOptions.protoJson = protoFilesRoot;
|
221
|
-
lroOptions.httpRules = [
|
222
|
-
{
|
223
|
-
|
224
|
-
|
225
|
-
body: '*',
|
226
|
-
additional_bindings: [
|
227
|
-
{
|
228
|
-
post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
|
229
|
-
body: '*',
|
230
|
-
},
|
231
|
-
{
|
232
|
-
post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
233
|
-
body: '*',
|
234
|
-
},
|
235
|
-
],
|
236
|
-
},
|
237
|
-
{
|
238
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
239
|
-
get: '/v1/{name=projects/*/operations/*}',
|
240
|
-
additional_bindings: [
|
241
|
-
{
|
242
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
243
|
-
},
|
244
|
-
{
|
245
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
246
|
-
},
|
247
|
-
{
|
248
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
249
|
-
},
|
250
|
-
{
|
251
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
252
|
-
},
|
253
|
-
{
|
254
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
255
|
-
},
|
256
|
-
{
|
257
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
258
|
-
},
|
259
|
-
{
|
260
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
261
|
-
},
|
262
|
-
{
|
263
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
264
|
-
},
|
265
|
-
{
|
266
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
|
267
|
-
},
|
268
|
-
{
|
269
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
270
|
-
},
|
271
|
-
{
|
272
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
273
|
-
},
|
274
|
-
{
|
275
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
276
|
-
},
|
277
|
-
{
|
278
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
|
279
|
-
},
|
280
|
-
{ get: '/v1/{name=projects/*/locations/*/operations/*}' },
|
281
|
-
{ get: '/v1/{name=projects/*/operations/*}' },
|
282
|
-
],
|
283
|
-
},
|
284
|
-
{
|
285
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
286
|
-
get: '/v1/{name=projects/*}/operations',
|
287
|
-
additional_bindings: [
|
288
|
-
{
|
289
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
290
|
-
},
|
291
|
-
{
|
292
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
293
|
-
},
|
294
|
-
{
|
295
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
296
|
-
},
|
297
|
-
{
|
298
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
299
|
-
},
|
300
|
-
{
|
301
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
302
|
-
},
|
303
|
-
{
|
304
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
305
|
-
},
|
306
|
-
{
|
307
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
308
|
-
},
|
309
|
-
{
|
310
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
311
|
-
},
|
312
|
-
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
313
|
-
{
|
314
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
315
|
-
},
|
316
|
-
{
|
317
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
318
|
-
},
|
319
|
-
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
320
|
-
{
|
321
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
322
|
-
},
|
323
|
-
{ get: '/v1/{name=projects/*/locations/*}/operations' },
|
324
|
-
{ get: '/v1/{name=projects/*}/operations' },
|
325
|
-
],
|
326
|
-
},
|
327
|
-
];
|
220
|
+
lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
|
221
|
+
}, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/operations/*}', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/operations/*}', }, { get: '/v1/{name=projects/*/operations/*}', }],
|
222
|
+
}, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*}/operations', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*}/operations', }, { get: '/v1/{name=projects/*}/operations', }],
|
223
|
+
}];
|
328
224
|
}
|
329
|
-
this.operationsClient = this._gaxModule
|
330
|
-
.lro(lroOptions)
|
331
|
-
.operationsClient(opts);
|
225
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
332
226
|
const createDataStoreResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DataStore');
|
333
227
|
const createDataStoreMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateDataStoreMetadata');
|
334
228
|
const deleteDataStoreResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
|
335
229
|
const deleteDataStoreMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteDataStoreMetadata');
|
336
230
|
this.descriptors.longrunning = {
|
337
231
|
createDataStore: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createDataStoreResponse.decode.bind(createDataStoreResponse), createDataStoreMetadata.decode.bind(createDataStoreMetadata)),
|
338
|
-
deleteDataStore: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteDataStoreResponse.decode.bind(deleteDataStoreResponse), deleteDataStoreMetadata.decode.bind(deleteDataStoreMetadata))
|
232
|
+
deleteDataStore: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteDataStoreResponse.decode.bind(deleteDataStoreResponse), deleteDataStoreMetadata.decode.bind(deleteDataStoreMetadata))
|
339
233
|
};
|
340
234
|
// Put together the default options sent with requests.
|
341
235
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.DataStoreService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -364,20 +258,13 @@ class DataStoreServiceClient {
|
|
364
258
|
}
|
365
259
|
// Put together the "service stub" for
|
366
260
|
// google.cloud.discoveryengine.v1.DataStoreService.
|
367
|
-
this.dataStoreServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
.DataStoreService, this._opts, this._providedCustomServicePath);
|
261
|
+
this.dataStoreServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
262
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.DataStoreService') :
|
263
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
264
|
+
this._protos.google.cloud.discoveryengine.v1.DataStoreService, this._opts, this._providedCustomServicePath);
|
372
265
|
// Iterate over each of the methods that the service provides
|
373
266
|
// and create an API call method for each.
|
374
|
-
const dataStoreServiceStubMethods = [
|
375
|
-
'createDataStore',
|
376
|
-
'getDataStore',
|
377
|
-
'listDataStores',
|
378
|
-
'deleteDataStore',
|
379
|
-
'updateDataStore',
|
380
|
-
];
|
267
|
+
const dataStoreServiceStubMethods = ['createDataStore', 'getDataStore', 'listDataStores', 'deleteDataStore', 'updateDataStore'];
|
381
268
|
for (const methodName of dataStoreServiceStubMethods) {
|
382
269
|
const callPromise = this.dataStoreServiceStub.then(stub => (...args) => {
|
383
270
|
if (this._terminated) {
|
@@ -402,8 +289,7 @@ class DataStoreServiceClient {
|
|
402
289
|
* @returns {string} The DNS address for this service.
|
403
290
|
*/
|
404
291
|
static get servicePath() {
|
405
|
-
if (typeof process === 'object' &&
|
406
|
-
typeof process.emitWarning === 'function') {
|
292
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
407
293
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
408
294
|
}
|
409
295
|
return 'discoveryengine.googleapis.com';
|
@@ -414,8 +300,7 @@ class DataStoreServiceClient {
|
|
414
300
|
* @returns {string} The DNS address for this service.
|
415
301
|
*/
|
416
302
|
static get apiEndpoint() {
|
417
|
-
if (typeof process === 'object' &&
|
418
|
-
typeof process.emitWarning === 'function') {
|
303
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
419
304
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
420
305
|
}
|
421
306
|
return 'discoveryengine.googleapis.com';
|
@@ -443,7 +328,9 @@ class DataStoreServiceClient {
|
|
443
328
|
* @returns {string[]} List of default scopes.
|
444
329
|
*/
|
445
330
|
static get scopes() {
|
446
|
-
return [
|
331
|
+
return [
|
332
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
333
|
+
];
|
447
334
|
}
|
448
335
|
/**
|
449
336
|
* Return the project ID used by this class.
|
@@ -469,13 +356,10 @@ class DataStoreServiceClient {
|
|
469
356
|
options = options || {};
|
470
357
|
options.otherArgs = options.otherArgs || {};
|
471
358
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
472
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
473
|
-
|
474
|
-
name: request.name ?? '',
|
475
|
-
});
|
476
|
-
this.initialize().catch(err => {
|
477
|
-
throw err;
|
359
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
360
|
+
'name': request.name ?? '',
|
478
361
|
});
|
362
|
+
this.initialize().catch(err => { throw err; });
|
479
363
|
this._log.info('getDataStore request %j', request);
|
480
364
|
const wrappedCallback = callback
|
481
365
|
? (error, response, options, rawResponse) => {
|
@@ -483,8 +367,7 @@ class DataStoreServiceClient {
|
|
483
367
|
callback(error, response, options, rawResponse); // We verified callback above.
|
484
368
|
}
|
485
369
|
: undefined;
|
486
|
-
return this.innerApiCalls
|
487
|
-
.getDataStore(request, options, wrappedCallback)
|
370
|
+
return this.innerApiCalls.getDataStore(request, options, wrappedCallback)
|
488
371
|
?.then(([response, options, rawResponse]) => {
|
489
372
|
this._log.info('getDataStore response %j', response);
|
490
373
|
return [response, options, rawResponse];
|
@@ -503,13 +386,10 @@ class DataStoreServiceClient {
|
|
503
386
|
options = options || {};
|
504
387
|
options.otherArgs = options.otherArgs || {};
|
505
388
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
506
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
507
|
-
|
508
|
-
'data_store.name': request.dataStore.name ?? '',
|
509
|
-
});
|
510
|
-
this.initialize().catch(err => {
|
511
|
-
throw err;
|
389
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
390
|
+
'data_store.name': request.dataStore.name ?? '',
|
512
391
|
});
|
392
|
+
this.initialize().catch(err => { throw err; });
|
513
393
|
this._log.info('updateDataStore request %j', request);
|
514
394
|
const wrappedCallback = callback
|
515
395
|
? (error, response, options, rawResponse) => {
|
@@ -517,8 +397,7 @@ class DataStoreServiceClient {
|
|
517
397
|
callback(error, response, options, rawResponse); // We verified callback above.
|
518
398
|
}
|
519
399
|
: undefined;
|
520
|
-
return this.innerApiCalls
|
521
|
-
.updateDataStore(request, options, wrappedCallback)
|
400
|
+
return this.innerApiCalls.updateDataStore(request, options, wrappedCallback)
|
522
401
|
?.then(([response, options, rawResponse]) => {
|
523
402
|
this._log.info('updateDataStore response %j', response);
|
524
403
|
return [response, options, rawResponse];
|
@@ -537,13 +416,10 @@ class DataStoreServiceClient {
|
|
537
416
|
options = options || {};
|
538
417
|
options.otherArgs = options.otherArgs || {};
|
539
418
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
540
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
541
|
-
|
542
|
-
parent: request.parent ?? '',
|
543
|
-
});
|
544
|
-
this.initialize().catch(err => {
|
545
|
-
throw err;
|
419
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
420
|
+
'parent': request.parent ?? '',
|
546
421
|
});
|
422
|
+
this.initialize().catch(err => { throw err; });
|
547
423
|
const wrappedCallback = callback
|
548
424
|
? (error, response, rawResponse, _) => {
|
549
425
|
this._log.info('createDataStore response %j', rawResponse);
|
@@ -551,8 +427,7 @@ class DataStoreServiceClient {
|
|
551
427
|
}
|
552
428
|
: undefined;
|
553
429
|
this._log.info('createDataStore request %j', request);
|
554
|
-
return this.innerApiCalls
|
555
|
-
.createDataStore(request, options, wrappedCallback)
|
430
|
+
return this.innerApiCalls.createDataStore(request, options, wrappedCallback)
|
556
431
|
?.then(([response, rawResponse, _]) => {
|
557
432
|
this._log.info('createDataStore response %j', rawResponse);
|
558
433
|
return [response, rawResponse, _];
|
@@ -589,13 +464,10 @@ class DataStoreServiceClient {
|
|
589
464
|
options = options || {};
|
590
465
|
options.otherArgs = options.otherArgs || {};
|
591
466
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
592
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
593
|
-
|
594
|
-
name: request.name ?? '',
|
595
|
-
});
|
596
|
-
this.initialize().catch(err => {
|
597
|
-
throw err;
|
467
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
468
|
+
'name': request.name ?? '',
|
598
469
|
});
|
470
|
+
this.initialize().catch(err => { throw err; });
|
599
471
|
const wrappedCallback = callback
|
600
472
|
? (error, response, rawResponse, _) => {
|
601
473
|
this._log.info('deleteDataStore response %j', rawResponse);
|
@@ -603,8 +475,7 @@ class DataStoreServiceClient {
|
|
603
475
|
}
|
604
476
|
: undefined;
|
605
477
|
this._log.info('deleteDataStore request %j', request);
|
606
|
-
return this.innerApiCalls
|
607
|
-
.deleteDataStore(request, options, wrappedCallback)
|
478
|
+
return this.innerApiCalls.deleteDataStore(request, options, wrappedCallback)
|
608
479
|
?.then(([response, rawResponse, _]) => {
|
609
480
|
this._log.info('deleteDataStore response %j', rawResponse);
|
610
481
|
return [response, rawResponse, _];
|
@@ -641,13 +512,10 @@ class DataStoreServiceClient {
|
|
641
512
|
options = options || {};
|
642
513
|
options.otherArgs = options.otherArgs || {};
|
643
514
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
644
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
645
|
-
|
646
|
-
parent: request.parent ?? '',
|
647
|
-
});
|
648
|
-
this.initialize().catch(err => {
|
649
|
-
throw err;
|
515
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
516
|
+
'parent': request.parent ?? '',
|
650
517
|
});
|
518
|
+
this.initialize().catch(err => { throw err; });
|
651
519
|
const wrappedCallback = callback
|
652
520
|
? (error, values, nextPageRequest, rawResponse) => {
|
653
521
|
this._log.info('listDataStores values %j', values);
|
@@ -710,15 +578,12 @@ class DataStoreServiceClient {
|
|
710
578
|
options = options || {};
|
711
579
|
options.otherArgs = options.otherArgs || {};
|
712
580
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
713
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
714
|
-
|
715
|
-
|
716
|
-
});
|
581
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
582
|
+
'parent': request.parent ?? '',
|
583
|
+
});
|
717
584
|
const defaultCallSettings = this._defaults['listDataStores'];
|
718
585
|
const callSettings = defaultCallSettings.merge(options);
|
719
|
-
this.initialize().catch(err => {
|
720
|
-
throw err;
|
721
|
-
});
|
586
|
+
this.initialize().catch(err => { throw err; });
|
722
587
|
this._log.info('listDataStores stream %j', request);
|
723
588
|
return this.descriptors.page.listDataStores.createStream(this.innerApiCalls.listDataStores, request, callSettings);
|
724
589
|
}
|
@@ -773,103 +638,100 @@ class DataStoreServiceClient {
|
|
773
638
|
options = options || {};
|
774
639
|
options.otherArgs = options.otherArgs || {};
|
775
640
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
776
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
777
|
-
|
778
|
-
|
779
|
-
});
|
641
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
642
|
+
'parent': request.parent ?? '',
|
643
|
+
});
|
780
644
|
const defaultCallSettings = this._defaults['listDataStores'];
|
781
645
|
const callSettings = defaultCallSettings.merge(options);
|
782
|
-
this.initialize().catch(err => {
|
783
|
-
throw err;
|
784
|
-
});
|
646
|
+
this.initialize().catch(err => { throw err; });
|
785
647
|
this._log.info('listDataStores iterate %j', request);
|
786
648
|
return this.descriptors.page.listDataStores.asyncIterate(this.innerApiCalls['listDataStores'], request, callSettings);
|
787
649
|
}
|
788
650
|
/**
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
651
|
+
* Gets information about a location.
|
652
|
+
*
|
653
|
+
* @param {Object} request
|
654
|
+
* The request object that will be sent.
|
655
|
+
* @param {string} request.name
|
656
|
+
* Resource name for the location.
|
657
|
+
* @param {object} [options]
|
658
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
659
|
+
* @returns {Promise} - The promise which resolves to an array.
|
660
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
661
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
662
|
+
* for more details and examples.
|
663
|
+
* @example
|
664
|
+
* ```
|
665
|
+
* const [response] = await client.getLocation(request);
|
666
|
+
* ```
|
667
|
+
*/
|
806
668
|
getLocation(request, options, callback) {
|
807
669
|
return this.locationsClient.getLocation(request, options, callback);
|
808
670
|
}
|
809
671
|
/**
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
672
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
673
|
+
*
|
674
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
675
|
+
* @param {Object} request
|
676
|
+
* The request object that will be sent.
|
677
|
+
* @param {string} request.name
|
678
|
+
* The resource that owns the locations collection, if applicable.
|
679
|
+
* @param {string} request.filter
|
680
|
+
* The standard list filter.
|
681
|
+
* @param {number} request.pageSize
|
682
|
+
* The standard list page size.
|
683
|
+
* @param {string} request.pageToken
|
684
|
+
* The standard list page token.
|
685
|
+
* @param {object} [options]
|
686
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
687
|
+
* @returns {Object}
|
688
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
689
|
+
* When you iterate the returned iterable, each element will be an object representing
|
690
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
691
|
+
* so you can stop the iteration when you don't need more results.
|
692
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
693
|
+
* for more details and examples.
|
694
|
+
* @example
|
695
|
+
* ```
|
696
|
+
* const iterable = client.listLocationsAsync(request);
|
697
|
+
* for await (const response of iterable) {
|
698
|
+
* // process response
|
699
|
+
* }
|
700
|
+
* ```
|
701
|
+
*/
|
840
702
|
listLocationsAsync(request, options) {
|
841
703
|
return this.locationsClient.listLocationsAsync(request, options);
|
842
704
|
}
|
843
705
|
/**
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
706
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
707
|
+
* method to poll the operation result at intervals as recommended by the API
|
708
|
+
* service.
|
709
|
+
*
|
710
|
+
* @param {Object} request - The request object that will be sent.
|
711
|
+
* @param {string} request.name - The name of the operation resource.
|
712
|
+
* @param {Object=} options
|
713
|
+
* Optional parameters. You can override the default settings for this call,
|
714
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
715
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
716
|
+
* for the details.
|
717
|
+
* @param {function(?Error, ?Object)=} callback
|
718
|
+
* The function which will be called with the result of the API call.
|
719
|
+
*
|
720
|
+
* The second parameter to the callback is an object representing
|
721
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
722
|
+
* @return {Promise} - The promise which resolves to an array.
|
723
|
+
* The first element of the array is an object representing
|
724
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
725
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
726
|
+
*
|
727
|
+
* @example
|
728
|
+
* ```
|
729
|
+
* const client = longrunning.operationsClient();
|
730
|
+
* const name = '';
|
731
|
+
* const [response] = await client.getOperation({name});
|
732
|
+
* // doThingsWith(response)
|
733
|
+
* ```
|
734
|
+
*/
|
873
735
|
getOperation(request, optionsOrCallback, callback) {
|
874
736
|
let options;
|
875
737
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1046,8 +908,7 @@ class DataStoreServiceClient {
|
|
1046
908
|
* @returns {string} A string representing the project.
|
1047
909
|
*/
|
1048
910
|
matchProjectFromCollectionName(collectionName) {
|
1049
|
-
return this.pathTemplates.collectionPathTemplate.match(collectionName)
|
1050
|
-
.project;
|
911
|
+
return this.pathTemplates.collectionPathTemplate.match(collectionName).project;
|
1051
912
|
}
|
1052
913
|
/**
|
1053
914
|
* Parse the location from Collection resource.
|
@@ -1057,8 +918,7 @@ class DataStoreServiceClient {
|
|
1057
918
|
* @returns {string} A string representing the location.
|
1058
919
|
*/
|
1059
920
|
matchLocationFromCollectionName(collectionName) {
|
1060
|
-
return this.pathTemplates.collectionPathTemplate.match(collectionName)
|
1061
|
-
.location;
|
921
|
+
return this.pathTemplates.collectionPathTemplate.match(collectionName).location;
|
1062
922
|
}
|
1063
923
|
/**
|
1064
924
|
* Parse the collection from Collection resource.
|
@@ -1068,8 +928,7 @@ class DataStoreServiceClient {
|
|
1068
928
|
* @returns {string} A string representing the collection.
|
1069
929
|
*/
|
1070
930
|
matchCollectionFromCollectionName(collectionName) {
|
1071
|
-
return this.pathTemplates.collectionPathTemplate.match(collectionName)
|
1072
|
-
.collection;
|
931
|
+
return this.pathTemplates.collectionPathTemplate.match(collectionName).collection;
|
1073
932
|
}
|
1074
933
|
/**
|
1075
934
|
* Return a fully-qualified engine resource name string.
|
@@ -1713,6 +1572,75 @@ class DataStoreServiceClient {
|
|
1713
1572
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1714
1573
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1715
1574
|
}
|
1575
|
+
/**
|
1576
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1577
|
+
*
|
1578
|
+
* @param {string} project
|
1579
|
+
* @param {string} location
|
1580
|
+
* @param {string} collection
|
1581
|
+
* @param {string} data_store
|
1582
|
+
* @param {string} serving_config
|
1583
|
+
* @returns {string} Resource name string.
|
1584
|
+
*/
|
1585
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1586
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1587
|
+
project: project,
|
1588
|
+
location: location,
|
1589
|
+
collection: collection,
|
1590
|
+
data_store: dataStore,
|
1591
|
+
serving_config: servingConfig,
|
1592
|
+
});
|
1593
|
+
}
|
1594
|
+
/**
|
1595
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1596
|
+
*
|
1597
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1598
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1599
|
+
* @returns {string} A string representing the project.
|
1600
|
+
*/
|
1601
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1602
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1603
|
+
}
|
1604
|
+
/**
|
1605
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1606
|
+
*
|
1607
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1608
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1609
|
+
* @returns {string} A string representing the location.
|
1610
|
+
*/
|
1611
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1612
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1613
|
+
}
|
1614
|
+
/**
|
1615
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1616
|
+
*
|
1617
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1618
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1619
|
+
* @returns {string} A string representing the collection.
|
1620
|
+
*/
|
1621
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1622
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1623
|
+
}
|
1624
|
+
/**
|
1625
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1626
|
+
*
|
1627
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1628
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1629
|
+
* @returns {string} A string representing the data_store.
|
1630
|
+
*/
|
1631
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1632
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1633
|
+
}
|
1634
|
+
/**
|
1635
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1636
|
+
*
|
1637
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1638
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1639
|
+
* @returns {string} A string representing the serving_config.
|
1640
|
+
*/
|
1641
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1642
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1643
|
+
}
|
1716
1644
|
/**
|
1717
1645
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1718
1646
|
*
|
@@ -1920,6 +1848,75 @@ class DataStoreServiceClient {
|
|
1920
1848
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1921
1849
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1922
1850
|
}
|
1851
|
+
/**
|
1852
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1853
|
+
*
|
1854
|
+
* @param {string} project
|
1855
|
+
* @param {string} location
|
1856
|
+
* @param {string} collection
|
1857
|
+
* @param {string} data_store
|
1858
|
+
* @param {string} sitemap
|
1859
|
+
* @returns {string} Resource name string.
|
1860
|
+
*/
|
1861
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1862
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1863
|
+
project: project,
|
1864
|
+
location: location,
|
1865
|
+
collection: collection,
|
1866
|
+
data_store: dataStore,
|
1867
|
+
sitemap: sitemap,
|
1868
|
+
});
|
1869
|
+
}
|
1870
|
+
/**
|
1871
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1872
|
+
*
|
1873
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1874
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1875
|
+
* @returns {string} A string representing the project.
|
1876
|
+
*/
|
1877
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1878
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1879
|
+
}
|
1880
|
+
/**
|
1881
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1882
|
+
*
|
1883
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1884
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1885
|
+
* @returns {string} A string representing the location.
|
1886
|
+
*/
|
1887
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1888
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1889
|
+
}
|
1890
|
+
/**
|
1891
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1892
|
+
*
|
1893
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1894
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1895
|
+
* @returns {string} A string representing the collection.
|
1896
|
+
*/
|
1897
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1898
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1899
|
+
}
|
1900
|
+
/**
|
1901
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1902
|
+
*
|
1903
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1904
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1905
|
+
* @returns {string} A string representing the data_store.
|
1906
|
+
*/
|
1907
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1908
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1909
|
+
}
|
1910
|
+
/**
|
1911
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1912
|
+
*
|
1913
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1914
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1915
|
+
* @returns {string} A string representing the sitemap.
|
1916
|
+
*/
|
1917
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1918
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1919
|
+
}
|
1923
1920
|
/**
|
1924
1921
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1925
1922
|
*
|
@@ -2127,6 +2124,75 @@ class DataStoreServiceClient {
|
|
2127
2124
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
2128
2125
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
2129
2126
|
}
|
2127
|
+
/**
|
2128
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
2129
|
+
*
|
2130
|
+
* @param {string} project
|
2131
|
+
* @param {string} location
|
2132
|
+
* @param {string} collection
|
2133
|
+
* @param {string} engine
|
2134
|
+
* @param {string} serving_config
|
2135
|
+
* @returns {string} Resource name string.
|
2136
|
+
*/
|
2137
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
2138
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
2139
|
+
project: project,
|
2140
|
+
location: location,
|
2141
|
+
collection: collection,
|
2142
|
+
engine: engine,
|
2143
|
+
serving_config: servingConfig,
|
2144
|
+
});
|
2145
|
+
}
|
2146
|
+
/**
|
2147
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
2148
|
+
*
|
2149
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2150
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2151
|
+
* @returns {string} A string representing the project.
|
2152
|
+
*/
|
2153
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2154
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
2155
|
+
}
|
2156
|
+
/**
|
2157
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
2158
|
+
*
|
2159
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2160
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2161
|
+
* @returns {string} A string representing the location.
|
2162
|
+
*/
|
2163
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2164
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2165
|
+
}
|
2166
|
+
/**
|
2167
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2168
|
+
*
|
2169
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2170
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2171
|
+
* @returns {string} A string representing the collection.
|
2172
|
+
*/
|
2173
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2174
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2175
|
+
}
|
2176
|
+
/**
|
2177
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2178
|
+
*
|
2179
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2180
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2181
|
+
* @returns {string} A string representing the engine.
|
2182
|
+
*/
|
2183
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2184
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2185
|
+
}
|
2186
|
+
/**
|
2187
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2188
|
+
*
|
2189
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2190
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2191
|
+
* @returns {string} A string representing the serving_config.
|
2192
|
+
*/
|
2193
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2194
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2195
|
+
}
|
2130
2196
|
/**
|
2131
2197
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
2132
2198
|
*
|
@@ -2745,6 +2811,63 @@ class DataStoreServiceClient {
|
|
2745
2811
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2746
2812
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2747
2813
|
}
|
2814
|
+
/**
|
2815
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2816
|
+
*
|
2817
|
+
* @param {string} project
|
2818
|
+
* @param {string} location
|
2819
|
+
* @param {string} data_store
|
2820
|
+
* @param {string} serving_config
|
2821
|
+
* @returns {string} Resource name string.
|
2822
|
+
*/
|
2823
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2824
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2825
|
+
project: project,
|
2826
|
+
location: location,
|
2827
|
+
data_store: dataStore,
|
2828
|
+
serving_config: servingConfig,
|
2829
|
+
});
|
2830
|
+
}
|
2831
|
+
/**
|
2832
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2833
|
+
*
|
2834
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2835
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2836
|
+
* @returns {string} A string representing the project.
|
2837
|
+
*/
|
2838
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2839
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2840
|
+
}
|
2841
|
+
/**
|
2842
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2843
|
+
*
|
2844
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2845
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2846
|
+
* @returns {string} A string representing the location.
|
2847
|
+
*/
|
2848
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2849
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2850
|
+
}
|
2851
|
+
/**
|
2852
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2853
|
+
*
|
2854
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2855
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2856
|
+
* @returns {string} A string representing the data_store.
|
2857
|
+
*/
|
2858
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2859
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2860
|
+
}
|
2861
|
+
/**
|
2862
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2863
|
+
*
|
2864
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2865
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2866
|
+
* @returns {string} A string representing the serving_config.
|
2867
|
+
*/
|
2868
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2869
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2870
|
+
}
|
2748
2871
|
/**
|
2749
2872
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2750
2873
|
*
|
@@ -2916,6 +3039,63 @@ class DataStoreServiceClient {
|
|
2916
3039
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2917
3040
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2918
3041
|
}
|
3042
|
+
/**
|
3043
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
3044
|
+
*
|
3045
|
+
* @param {string} project
|
3046
|
+
* @param {string} location
|
3047
|
+
* @param {string} data_store
|
3048
|
+
* @param {string} sitemap
|
3049
|
+
* @returns {string} Resource name string.
|
3050
|
+
*/
|
3051
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
3052
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
3053
|
+
project: project,
|
3054
|
+
location: location,
|
3055
|
+
data_store: dataStore,
|
3056
|
+
sitemap: sitemap,
|
3057
|
+
});
|
3058
|
+
}
|
3059
|
+
/**
|
3060
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3061
|
+
*
|
3062
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3063
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3064
|
+
* @returns {string} A string representing the project.
|
3065
|
+
*/
|
3066
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3067
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
3068
|
+
}
|
3069
|
+
/**
|
3070
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3071
|
+
*
|
3072
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3073
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3074
|
+
* @returns {string} A string representing the location.
|
3075
|
+
*/
|
3076
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3077
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
3078
|
+
}
|
3079
|
+
/**
|
3080
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3081
|
+
*
|
3082
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3083
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3084
|
+
* @returns {string} A string representing the data_store.
|
3085
|
+
*/
|
3086
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3087
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
3088
|
+
}
|
3089
|
+
/**
|
3090
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3091
|
+
*
|
3092
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3093
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3094
|
+
* @returns {string} A string representing the sitemap.
|
3095
|
+
*/
|
3096
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3097
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
3098
|
+
}
|
2919
3099
|
/**
|
2920
3100
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2921
3101
|
*
|
@@ -2985,8 +3165,8 @@ class DataStoreServiceClient {
|
|
2985
3165
|
this._log.info('ending gRPC channel');
|
2986
3166
|
this._terminated = true;
|
2987
3167
|
stub.close();
|
2988
|
-
this.locationsClient.close();
|
2989
|
-
this.operationsClient.close();
|
3168
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3169
|
+
void this.operationsClient.close();
|
2990
3170
|
});
|
2991
3171
|
}
|
2992
3172
|
return Promise.resolve();
|