@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 EngineServiceClient {
|
|
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 EngineServiceClient {
|
|
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 EngineServiceClient {
|
|
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 EngineServiceClient {
|
|
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
|
-
listEngines: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'engines')
|
208
|
+
listEngines: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'engines')
|
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 EngineServiceClient {
|
|
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 createEngineResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Engine');
|
333
227
|
const createEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateEngineMetadata');
|
334
228
|
const deleteEngineResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
|
335
229
|
const deleteEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteEngineMetadata');
|
336
230
|
this.descriptors.longrunning = {
|
337
231
|
createEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createEngineResponse.decode.bind(createEngineResponse), createEngineMetadata.decode.bind(createEngineMetadata)),
|
338
|
-
deleteEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteEngineResponse.decode.bind(deleteEngineResponse), deleteEngineMetadata.decode.bind(deleteEngineMetadata))
|
232
|
+
deleteEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteEngineResponse.decode.bind(deleteEngineResponse), deleteEngineMetadata.decode.bind(deleteEngineMetadata))
|
339
233
|
};
|
340
234
|
// Put together the default options sent with requests.
|
341
235
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.EngineService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -364,19 +258,13 @@ class EngineServiceClient {
|
|
364
258
|
}
|
365
259
|
// Put together the "service stub" for
|
366
260
|
// google.cloud.discoveryengine.v1.EngineService.
|
367
|
-
this.engineServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
368
|
-
|
369
|
-
|
370
|
-
|
261
|
+
this.engineServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
262
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.EngineService') :
|
263
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
264
|
+
this._protos.google.cloud.discoveryengine.v1.EngineService, this._opts, this._providedCustomServicePath);
|
371
265
|
// Iterate over each of the methods that the service provides
|
372
266
|
// and create an API call method for each.
|
373
|
-
const engineServiceStubMethods = [
|
374
|
-
'createEngine',
|
375
|
-
'deleteEngine',
|
376
|
-
'updateEngine',
|
377
|
-
'getEngine',
|
378
|
-
'listEngines',
|
379
|
-
];
|
267
|
+
const engineServiceStubMethods = ['createEngine', 'deleteEngine', 'updateEngine', 'getEngine', 'listEngines'];
|
380
268
|
for (const methodName of engineServiceStubMethods) {
|
381
269
|
const callPromise = this.engineServiceStub.then(stub => (...args) => {
|
382
270
|
if (this._terminated) {
|
@@ -401,8 +289,7 @@ class EngineServiceClient {
|
|
401
289
|
* @returns {string} The DNS address for this service.
|
402
290
|
*/
|
403
291
|
static get servicePath() {
|
404
|
-
if (typeof process === 'object' &&
|
405
|
-
typeof process.emitWarning === 'function') {
|
292
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
406
293
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
407
294
|
}
|
408
295
|
return 'discoveryengine.googleapis.com';
|
@@ -413,8 +300,7 @@ class EngineServiceClient {
|
|
413
300
|
* @returns {string} The DNS address for this service.
|
414
301
|
*/
|
415
302
|
static get apiEndpoint() {
|
416
|
-
if (typeof process === 'object' &&
|
417
|
-
typeof process.emitWarning === 'function') {
|
303
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
418
304
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
419
305
|
}
|
420
306
|
return 'discoveryengine.googleapis.com';
|
@@ -442,7 +328,9 @@ class EngineServiceClient {
|
|
442
328
|
* @returns {string[]} List of default scopes.
|
443
329
|
*/
|
444
330
|
static get scopes() {
|
445
|
-
return [
|
331
|
+
return [
|
332
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
333
|
+
];
|
446
334
|
}
|
447
335
|
/**
|
448
336
|
* Return the project ID used by this class.
|
@@ -468,13 +356,10 @@ class EngineServiceClient {
|
|
468
356
|
options = options || {};
|
469
357
|
options.otherArgs = options.otherArgs || {};
|
470
358
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
471
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
472
|
-
|
473
|
-
'engine.name': request.engine.name ?? '',
|
474
|
-
});
|
475
|
-
this.initialize().catch(err => {
|
476
|
-
throw err;
|
359
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
360
|
+
'engine.name': request.engine.name ?? '',
|
477
361
|
});
|
362
|
+
this.initialize().catch(err => { throw err; });
|
478
363
|
this._log.info('updateEngine request %j', request);
|
479
364
|
const wrappedCallback = callback
|
480
365
|
? (error, response, options, rawResponse) => {
|
@@ -482,8 +367,7 @@ class EngineServiceClient {
|
|
482
367
|
callback(error, response, options, rawResponse); // We verified callback above.
|
483
368
|
}
|
484
369
|
: undefined;
|
485
|
-
return this.innerApiCalls
|
486
|
-
.updateEngine(request, options, wrappedCallback)
|
370
|
+
return this.innerApiCalls.updateEngine(request, options, wrappedCallback)
|
487
371
|
?.then(([response, options, rawResponse]) => {
|
488
372
|
this._log.info('updateEngine response %j', response);
|
489
373
|
return [response, options, rawResponse];
|
@@ -502,13 +386,10 @@ class EngineServiceClient {
|
|
502
386
|
options = options || {};
|
503
387
|
options.otherArgs = options.otherArgs || {};
|
504
388
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
505
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
506
|
-
|
507
|
-
name: request.name ?? '',
|
508
|
-
});
|
509
|
-
this.initialize().catch(err => {
|
510
|
-
throw err;
|
389
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
390
|
+
'name': request.name ?? '',
|
511
391
|
});
|
392
|
+
this.initialize().catch(err => { throw err; });
|
512
393
|
this._log.info('getEngine request %j', request);
|
513
394
|
const wrappedCallback = callback
|
514
395
|
? (error, response, options, rawResponse) => {
|
@@ -516,8 +397,7 @@ class EngineServiceClient {
|
|
516
397
|
callback(error, response, options, rawResponse); // We verified callback above.
|
517
398
|
}
|
518
399
|
: undefined;
|
519
|
-
return this.innerApiCalls
|
520
|
-
.getEngine(request, options, wrappedCallback)
|
400
|
+
return this.innerApiCalls.getEngine(request, options, wrappedCallback)
|
521
401
|
?.then(([response, options, rawResponse]) => {
|
522
402
|
this._log.info('getEngine response %j', response);
|
523
403
|
return [response, options, rawResponse];
|
@@ -536,13 +416,10 @@ class EngineServiceClient {
|
|
536
416
|
options = options || {};
|
537
417
|
options.otherArgs = options.otherArgs || {};
|
538
418
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
539
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
540
|
-
|
541
|
-
parent: request.parent ?? '',
|
542
|
-
});
|
543
|
-
this.initialize().catch(err => {
|
544
|
-
throw err;
|
419
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
420
|
+
'parent': request.parent ?? '',
|
545
421
|
});
|
422
|
+
this.initialize().catch(err => { throw err; });
|
546
423
|
const wrappedCallback = callback
|
547
424
|
? (error, response, rawResponse, _) => {
|
548
425
|
this._log.info('createEngine response %j', rawResponse);
|
@@ -550,8 +427,7 @@ class EngineServiceClient {
|
|
550
427
|
}
|
551
428
|
: undefined;
|
552
429
|
this._log.info('createEngine request %j', request);
|
553
|
-
return this.innerApiCalls
|
554
|
-
.createEngine(request, options, wrappedCallback)
|
430
|
+
return this.innerApiCalls.createEngine(request, options, wrappedCallback)
|
555
431
|
?.then(([response, rawResponse, _]) => {
|
556
432
|
this._log.info('createEngine response %j', rawResponse);
|
557
433
|
return [response, rawResponse, _];
|
@@ -588,13 +464,10 @@ class EngineServiceClient {
|
|
588
464
|
options = options || {};
|
589
465
|
options.otherArgs = options.otherArgs || {};
|
590
466
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
591
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
592
|
-
|
593
|
-
name: request.name ?? '',
|
594
|
-
});
|
595
|
-
this.initialize().catch(err => {
|
596
|
-
throw err;
|
467
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
468
|
+
'name': request.name ?? '',
|
597
469
|
});
|
470
|
+
this.initialize().catch(err => { throw err; });
|
598
471
|
const wrappedCallback = callback
|
599
472
|
? (error, response, rawResponse, _) => {
|
600
473
|
this._log.info('deleteEngine response %j', rawResponse);
|
@@ -602,8 +475,7 @@ class EngineServiceClient {
|
|
602
475
|
}
|
603
476
|
: undefined;
|
604
477
|
this._log.info('deleteEngine request %j', request);
|
605
|
-
return this.innerApiCalls
|
606
|
-
.deleteEngine(request, options, wrappedCallback)
|
478
|
+
return this.innerApiCalls.deleteEngine(request, options, wrappedCallback)
|
607
479
|
?.then(([response, rawResponse, _]) => {
|
608
480
|
this._log.info('deleteEngine response %j', rawResponse);
|
609
481
|
return [response, rawResponse, _];
|
@@ -640,13 +512,10 @@ class EngineServiceClient {
|
|
640
512
|
options = options || {};
|
641
513
|
options.otherArgs = options.otherArgs || {};
|
642
514
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
643
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
644
|
-
|
645
|
-
parent: request.parent ?? '',
|
646
|
-
});
|
647
|
-
this.initialize().catch(err => {
|
648
|
-
throw err;
|
515
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
516
|
+
'parent': request.parent ?? '',
|
649
517
|
});
|
518
|
+
this.initialize().catch(err => { throw err; });
|
650
519
|
const wrappedCallback = callback
|
651
520
|
? (error, values, nextPageRequest, rawResponse) => {
|
652
521
|
this._log.info('listEngines values %j', values);
|
@@ -691,15 +560,12 @@ class EngineServiceClient {
|
|
691
560
|
options = options || {};
|
692
561
|
options.otherArgs = options.otherArgs || {};
|
693
562
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
694
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
695
|
-
|
696
|
-
|
697
|
-
});
|
563
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
564
|
+
'parent': request.parent ?? '',
|
565
|
+
});
|
698
566
|
const defaultCallSettings = this._defaults['listEngines'];
|
699
567
|
const callSettings = defaultCallSettings.merge(options);
|
700
|
-
this.initialize().catch(err => {
|
701
|
-
throw err;
|
702
|
-
});
|
568
|
+
this.initialize().catch(err => { throw err; });
|
703
569
|
this._log.info('listEngines stream %j', request);
|
704
570
|
return this.descriptors.page.listEngines.createStream(this.innerApiCalls.listEngines, request, callSettings);
|
705
571
|
}
|
@@ -736,103 +602,100 @@ class EngineServiceClient {
|
|
736
602
|
options = options || {};
|
737
603
|
options.otherArgs = options.otherArgs || {};
|
738
604
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
739
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
740
|
-
|
741
|
-
|
742
|
-
});
|
605
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
606
|
+
'parent': request.parent ?? '',
|
607
|
+
});
|
743
608
|
const defaultCallSettings = this._defaults['listEngines'];
|
744
609
|
const callSettings = defaultCallSettings.merge(options);
|
745
|
-
this.initialize().catch(err => {
|
746
|
-
throw err;
|
747
|
-
});
|
610
|
+
this.initialize().catch(err => { throw err; });
|
748
611
|
this._log.info('listEngines iterate %j', request);
|
749
612
|
return this.descriptors.page.listEngines.asyncIterate(this.innerApiCalls['listEngines'], request, callSettings);
|
750
613
|
}
|
751
614
|
/**
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
615
|
+
* Gets information about a location.
|
616
|
+
*
|
617
|
+
* @param {Object} request
|
618
|
+
* The request object that will be sent.
|
619
|
+
* @param {string} request.name
|
620
|
+
* Resource name for the location.
|
621
|
+
* @param {object} [options]
|
622
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
623
|
+
* @returns {Promise} - The promise which resolves to an array.
|
624
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
625
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
626
|
+
* for more details and examples.
|
627
|
+
* @example
|
628
|
+
* ```
|
629
|
+
* const [response] = await client.getLocation(request);
|
630
|
+
* ```
|
631
|
+
*/
|
769
632
|
getLocation(request, options, callback) {
|
770
633
|
return this.locationsClient.getLocation(request, options, callback);
|
771
634
|
}
|
772
635
|
/**
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
636
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
637
|
+
*
|
638
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
639
|
+
* @param {Object} request
|
640
|
+
* The request object that will be sent.
|
641
|
+
* @param {string} request.name
|
642
|
+
* The resource that owns the locations collection, if applicable.
|
643
|
+
* @param {string} request.filter
|
644
|
+
* The standard list filter.
|
645
|
+
* @param {number} request.pageSize
|
646
|
+
* The standard list page size.
|
647
|
+
* @param {string} request.pageToken
|
648
|
+
* The standard list page token.
|
649
|
+
* @param {object} [options]
|
650
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
651
|
+
* @returns {Object}
|
652
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
653
|
+
* When you iterate the returned iterable, each element will be an object representing
|
654
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
655
|
+
* so you can stop the iteration when you don't need more results.
|
656
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
657
|
+
* for more details and examples.
|
658
|
+
* @example
|
659
|
+
* ```
|
660
|
+
* const iterable = client.listLocationsAsync(request);
|
661
|
+
* for await (const response of iterable) {
|
662
|
+
* // process response
|
663
|
+
* }
|
664
|
+
* ```
|
665
|
+
*/
|
803
666
|
listLocationsAsync(request, options) {
|
804
667
|
return this.locationsClient.listLocationsAsync(request, options);
|
805
668
|
}
|
806
669
|
/**
|
807
|
-
|
808
|
-
|
809
|
-
|
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
|
-
|
670
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
671
|
+
* method to poll the operation result at intervals as recommended by the API
|
672
|
+
* service.
|
673
|
+
*
|
674
|
+
* @param {Object} request - The request object that will be sent.
|
675
|
+
* @param {string} request.name - The name of the operation resource.
|
676
|
+
* @param {Object=} options
|
677
|
+
* Optional parameters. You can override the default settings for this call,
|
678
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
679
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
680
|
+
* for the details.
|
681
|
+
* @param {function(?Error, ?Object)=} callback
|
682
|
+
* The function which will be called with the result of the API call.
|
683
|
+
*
|
684
|
+
* The second parameter to the callback is an object representing
|
685
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
686
|
+
* @return {Promise} - The promise which resolves to an array.
|
687
|
+
* The first element of the array is an object representing
|
688
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
689
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
690
|
+
*
|
691
|
+
* @example
|
692
|
+
* ```
|
693
|
+
* const client = longrunning.operationsClient();
|
694
|
+
* const name = '';
|
695
|
+
* const [response] = await client.getOperation({name});
|
696
|
+
* // doThingsWith(response)
|
697
|
+
* ```
|
698
|
+
*/
|
836
699
|
getOperation(request, optionsOrCallback, callback) {
|
837
700
|
let options;
|
838
701
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1009,8 +872,7 @@ class EngineServiceClient {
|
|
1009
872
|
* @returns {string} A string representing the project.
|
1010
873
|
*/
|
1011
874
|
matchProjectFromCollectionName(collectionName) {
|
1012
|
-
return this.pathTemplates.collectionPathTemplate.match(collectionName)
|
1013
|
-
.project;
|
875
|
+
return this.pathTemplates.collectionPathTemplate.match(collectionName).project;
|
1014
876
|
}
|
1015
877
|
/**
|
1016
878
|
* Parse the location from Collection resource.
|
@@ -1020,8 +882,7 @@ class EngineServiceClient {
|
|
1020
882
|
* @returns {string} A string representing the location.
|
1021
883
|
*/
|
1022
884
|
matchLocationFromCollectionName(collectionName) {
|
1023
|
-
return this.pathTemplates.collectionPathTemplate.match(collectionName)
|
1024
|
-
.location;
|
885
|
+
return this.pathTemplates.collectionPathTemplate.match(collectionName).location;
|
1025
886
|
}
|
1026
887
|
/**
|
1027
888
|
* Parse the collection from Collection resource.
|
@@ -1031,8 +892,7 @@ class EngineServiceClient {
|
|
1031
892
|
* @returns {string} A string representing the collection.
|
1032
893
|
*/
|
1033
894
|
matchCollectionFromCollectionName(collectionName) {
|
1034
|
-
return this.pathTemplates.collectionPathTemplate.match(collectionName)
|
1035
|
-
.collection;
|
895
|
+
return this.pathTemplates.collectionPathTemplate.match(collectionName).collection;
|
1036
896
|
}
|
1037
897
|
/**
|
1038
898
|
* Return a fully-qualified engine resource name string.
|
@@ -1676,6 +1536,75 @@ class EngineServiceClient {
|
|
1676
1536
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1677
1537
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1678
1538
|
}
|
1539
|
+
/**
|
1540
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1541
|
+
*
|
1542
|
+
* @param {string} project
|
1543
|
+
* @param {string} location
|
1544
|
+
* @param {string} collection
|
1545
|
+
* @param {string} data_store
|
1546
|
+
* @param {string} serving_config
|
1547
|
+
* @returns {string} Resource name string.
|
1548
|
+
*/
|
1549
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1550
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1551
|
+
project: project,
|
1552
|
+
location: location,
|
1553
|
+
collection: collection,
|
1554
|
+
data_store: dataStore,
|
1555
|
+
serving_config: servingConfig,
|
1556
|
+
});
|
1557
|
+
}
|
1558
|
+
/**
|
1559
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1560
|
+
*
|
1561
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1562
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1563
|
+
* @returns {string} A string representing the project.
|
1564
|
+
*/
|
1565
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1566
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1567
|
+
}
|
1568
|
+
/**
|
1569
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1570
|
+
*
|
1571
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1572
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1573
|
+
* @returns {string} A string representing the location.
|
1574
|
+
*/
|
1575
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1576
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1577
|
+
}
|
1578
|
+
/**
|
1579
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1580
|
+
*
|
1581
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1582
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1583
|
+
* @returns {string} A string representing the collection.
|
1584
|
+
*/
|
1585
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1586
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1587
|
+
}
|
1588
|
+
/**
|
1589
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1590
|
+
*
|
1591
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1592
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1593
|
+
* @returns {string} A string representing the data_store.
|
1594
|
+
*/
|
1595
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1596
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1597
|
+
}
|
1598
|
+
/**
|
1599
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1600
|
+
*
|
1601
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1602
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1603
|
+
* @returns {string} A string representing the serving_config.
|
1604
|
+
*/
|
1605
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1606
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1607
|
+
}
|
1679
1608
|
/**
|
1680
1609
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1681
1610
|
*
|
@@ -1883,6 +1812,75 @@ class EngineServiceClient {
|
|
1883
1812
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1884
1813
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1885
1814
|
}
|
1815
|
+
/**
|
1816
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1817
|
+
*
|
1818
|
+
* @param {string} project
|
1819
|
+
* @param {string} location
|
1820
|
+
* @param {string} collection
|
1821
|
+
* @param {string} data_store
|
1822
|
+
* @param {string} sitemap
|
1823
|
+
* @returns {string} Resource name string.
|
1824
|
+
*/
|
1825
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1826
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1827
|
+
project: project,
|
1828
|
+
location: location,
|
1829
|
+
collection: collection,
|
1830
|
+
data_store: dataStore,
|
1831
|
+
sitemap: sitemap,
|
1832
|
+
});
|
1833
|
+
}
|
1834
|
+
/**
|
1835
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1836
|
+
*
|
1837
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1838
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1839
|
+
* @returns {string} A string representing the project.
|
1840
|
+
*/
|
1841
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1842
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1843
|
+
}
|
1844
|
+
/**
|
1845
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1846
|
+
*
|
1847
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1848
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1849
|
+
* @returns {string} A string representing the location.
|
1850
|
+
*/
|
1851
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1852
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1853
|
+
}
|
1854
|
+
/**
|
1855
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1856
|
+
*
|
1857
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1858
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1859
|
+
* @returns {string} A string representing the collection.
|
1860
|
+
*/
|
1861
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1862
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1863
|
+
}
|
1864
|
+
/**
|
1865
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1866
|
+
*
|
1867
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1868
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1869
|
+
* @returns {string} A string representing the data_store.
|
1870
|
+
*/
|
1871
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1872
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1873
|
+
}
|
1874
|
+
/**
|
1875
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1876
|
+
*
|
1877
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1878
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1879
|
+
* @returns {string} A string representing the sitemap.
|
1880
|
+
*/
|
1881
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1882
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1883
|
+
}
|
1886
1884
|
/**
|
1887
1885
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1888
1886
|
*
|
@@ -2090,6 +2088,75 @@ class EngineServiceClient {
|
|
2090
2088
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
2091
2089
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
2092
2090
|
}
|
2091
|
+
/**
|
2092
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
2093
|
+
*
|
2094
|
+
* @param {string} project
|
2095
|
+
* @param {string} location
|
2096
|
+
* @param {string} collection
|
2097
|
+
* @param {string} engine
|
2098
|
+
* @param {string} serving_config
|
2099
|
+
* @returns {string} Resource name string.
|
2100
|
+
*/
|
2101
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
2102
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
2103
|
+
project: project,
|
2104
|
+
location: location,
|
2105
|
+
collection: collection,
|
2106
|
+
engine: engine,
|
2107
|
+
serving_config: servingConfig,
|
2108
|
+
});
|
2109
|
+
}
|
2110
|
+
/**
|
2111
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
2112
|
+
*
|
2113
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2114
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2115
|
+
* @returns {string} A string representing the project.
|
2116
|
+
*/
|
2117
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2118
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
2119
|
+
}
|
2120
|
+
/**
|
2121
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
2122
|
+
*
|
2123
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2124
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2125
|
+
* @returns {string} A string representing the location.
|
2126
|
+
*/
|
2127
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2128
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2129
|
+
}
|
2130
|
+
/**
|
2131
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2132
|
+
*
|
2133
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2134
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2135
|
+
* @returns {string} A string representing the collection.
|
2136
|
+
*/
|
2137
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2138
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2139
|
+
}
|
2140
|
+
/**
|
2141
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2142
|
+
*
|
2143
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2144
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2145
|
+
* @returns {string} A string representing the engine.
|
2146
|
+
*/
|
2147
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2148
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2149
|
+
}
|
2150
|
+
/**
|
2151
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2152
|
+
*
|
2153
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2154
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2155
|
+
* @returns {string} A string representing the serving_config.
|
2156
|
+
*/
|
2157
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2158
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2159
|
+
}
|
2093
2160
|
/**
|
2094
2161
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
2095
2162
|
*
|
@@ -2708,6 +2775,63 @@ class EngineServiceClient {
|
|
2708
2775
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2709
2776
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2710
2777
|
}
|
2778
|
+
/**
|
2779
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2780
|
+
*
|
2781
|
+
* @param {string} project
|
2782
|
+
* @param {string} location
|
2783
|
+
* @param {string} data_store
|
2784
|
+
* @param {string} serving_config
|
2785
|
+
* @returns {string} Resource name string.
|
2786
|
+
*/
|
2787
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2788
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2789
|
+
project: project,
|
2790
|
+
location: location,
|
2791
|
+
data_store: dataStore,
|
2792
|
+
serving_config: servingConfig,
|
2793
|
+
});
|
2794
|
+
}
|
2795
|
+
/**
|
2796
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2797
|
+
*
|
2798
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2799
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2800
|
+
* @returns {string} A string representing the project.
|
2801
|
+
*/
|
2802
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2803
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2804
|
+
}
|
2805
|
+
/**
|
2806
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2807
|
+
*
|
2808
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2809
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2810
|
+
* @returns {string} A string representing the location.
|
2811
|
+
*/
|
2812
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2813
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2814
|
+
}
|
2815
|
+
/**
|
2816
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2817
|
+
*
|
2818
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2819
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2820
|
+
* @returns {string} A string representing the data_store.
|
2821
|
+
*/
|
2822
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2823
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2824
|
+
}
|
2825
|
+
/**
|
2826
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2827
|
+
*
|
2828
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2829
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2830
|
+
* @returns {string} A string representing the serving_config.
|
2831
|
+
*/
|
2832
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2833
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2834
|
+
}
|
2711
2835
|
/**
|
2712
2836
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2713
2837
|
*
|
@@ -2879,6 +3003,63 @@ class EngineServiceClient {
|
|
2879
3003
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2880
3004
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2881
3005
|
}
|
3006
|
+
/**
|
3007
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
3008
|
+
*
|
3009
|
+
* @param {string} project
|
3010
|
+
* @param {string} location
|
3011
|
+
* @param {string} data_store
|
3012
|
+
* @param {string} sitemap
|
3013
|
+
* @returns {string} Resource name string.
|
3014
|
+
*/
|
3015
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
3016
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
3017
|
+
project: project,
|
3018
|
+
location: location,
|
3019
|
+
data_store: dataStore,
|
3020
|
+
sitemap: sitemap,
|
3021
|
+
});
|
3022
|
+
}
|
3023
|
+
/**
|
3024
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3025
|
+
*
|
3026
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3027
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3028
|
+
* @returns {string} A string representing the project.
|
3029
|
+
*/
|
3030
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3031
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
3032
|
+
}
|
3033
|
+
/**
|
3034
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3035
|
+
*
|
3036
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3037
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3038
|
+
* @returns {string} A string representing the location.
|
3039
|
+
*/
|
3040
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3041
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
3042
|
+
}
|
3043
|
+
/**
|
3044
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3045
|
+
*
|
3046
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3047
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3048
|
+
* @returns {string} A string representing the data_store.
|
3049
|
+
*/
|
3050
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3051
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
3052
|
+
}
|
3053
|
+
/**
|
3054
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3055
|
+
*
|
3056
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3057
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3058
|
+
* @returns {string} A string representing the sitemap.
|
3059
|
+
*/
|
3060
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3061
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
3062
|
+
}
|
2882
3063
|
/**
|
2883
3064
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2884
3065
|
*
|
@@ -2948,8 +3129,8 @@ class EngineServiceClient {
|
|
2948
3129
|
this._log.info('ending gRPC channel');
|
2949
3130
|
this._terminated = true;
|
2950
3131
|
stub.close();
|
2951
|
-
this.locationsClient.close();
|
2952
|
-
this.operationsClient.close();
|
3132
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3133
|
+
void this.operationsClient.close();
|
2953
3134
|
});
|
2954
3135
|
}
|
2955
3136
|
return Promise.resolve();
|