@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
@@ -98,26 +98,17 @@ class CompletionServiceClient {
|
|
98
98
|
constructor(opts, gaxInstance) {
|
99
99
|
// Ensure that options include all the required fields.
|
100
100
|
const staticMembers = this.constructor;
|
101
|
-
if (opts?.universe_domain &&
|
102
|
-
opts?.universeDomain &&
|
103
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
101
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
104
102
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
105
103
|
}
|
106
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
107
|
-
|
108
|
-
: undefined;
|
109
|
-
this._universeDomain =
|
110
|
-
opts?.universeDomain ??
|
111
|
-
opts?.universe_domain ??
|
112
|
-
universeDomainEnvVar ??
|
113
|
-
'googleapis.com';
|
104
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
105
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
114
106
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
115
107
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
116
108
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
117
109
|
const port = opts?.port || staticMembers.port;
|
118
110
|
const clientConfig = opts?.clientConfig ?? {};
|
119
|
-
const fallback = opts?.fallback ??
|
120
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
111
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
121
112
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
122
113
|
// Request numeric enum values if REST transport is used.
|
123
114
|
opts.numericEnums = true;
|
@@ -147,7 +138,10 @@ class CompletionServiceClient {
|
|
147
138
|
}
|
148
139
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
149
140
|
// Determine the client header string.
|
150
|
-
const clientHeader = [
|
141
|
+
const clientHeader = [
|
142
|
+
`gax/${this._gaxModule.version}`,
|
143
|
+
`gapic/${version}`,
|
144
|
+
];
|
151
145
|
if (typeof process === 'object' && 'versions' in process) {
|
152
146
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
153
147
|
}
|
@@ -179,12 +173,15 @@ class CompletionServiceClient {
|
|
179
173
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
180
174
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
181
175
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
176
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
182
177
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
183
178
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
184
179
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
180
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
185
181
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
186
182
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
187
183
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
184
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
188
185
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
189
186
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
190
187
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -195,9 +192,11 @@ class CompletionServiceClient {
|
|
195
192
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
196
193
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
197
194
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
195
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
198
196
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
199
197
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
200
198
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
199
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
201
200
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
202
201
|
};
|
203
202
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
@@ -206,121 +205,16 @@ class CompletionServiceClient {
|
|
206
205
|
// rather than holding a request open.
|
207
206
|
const lroOptions = {
|
208
207
|
auth: this.auth,
|
209
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
208
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
210
209
|
};
|
211
210
|
if (opts.fallback) {
|
212
211
|
lroOptions.protoJson = protoFilesRoot;
|
213
|
-
lroOptions.httpRules = [
|
214
|
-
{
|
215
|
-
|
216
|
-
|
217
|
-
body: '*',
|
218
|
-
additional_bindings: [
|
219
|
-
{
|
220
|
-
post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
|
221
|
-
body: '*',
|
222
|
-
},
|
223
|
-
{
|
224
|
-
post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
225
|
-
body: '*',
|
226
|
-
},
|
227
|
-
],
|
228
|
-
},
|
229
|
-
{
|
230
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
231
|
-
get: '/v1/{name=projects/*/operations/*}',
|
232
|
-
additional_bindings: [
|
233
|
-
{
|
234
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
235
|
-
},
|
236
|
-
{
|
237
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
238
|
-
},
|
239
|
-
{
|
240
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
241
|
-
},
|
242
|
-
{
|
243
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
244
|
-
},
|
245
|
-
{
|
246
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
247
|
-
},
|
248
|
-
{
|
249
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
250
|
-
},
|
251
|
-
{
|
252
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
253
|
-
},
|
254
|
-
{
|
255
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
256
|
-
},
|
257
|
-
{
|
258
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
|
259
|
-
},
|
260
|
-
{
|
261
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
262
|
-
},
|
263
|
-
{
|
264
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
265
|
-
},
|
266
|
-
{
|
267
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
268
|
-
},
|
269
|
-
{
|
270
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
|
271
|
-
},
|
272
|
-
{ get: '/v1/{name=projects/*/locations/*/operations/*}' },
|
273
|
-
{ get: '/v1/{name=projects/*/operations/*}' },
|
274
|
-
],
|
275
|
-
},
|
276
|
-
{
|
277
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
278
|
-
get: '/v1/{name=projects/*}/operations',
|
279
|
-
additional_bindings: [
|
280
|
-
{
|
281
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
282
|
-
},
|
283
|
-
{
|
284
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
285
|
-
},
|
286
|
-
{
|
287
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
288
|
-
},
|
289
|
-
{
|
290
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
291
|
-
},
|
292
|
-
{
|
293
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
294
|
-
},
|
295
|
-
{
|
296
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
297
|
-
},
|
298
|
-
{
|
299
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
300
|
-
},
|
301
|
-
{
|
302
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
303
|
-
},
|
304
|
-
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
305
|
-
{
|
306
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
307
|
-
},
|
308
|
-
{
|
309
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
310
|
-
},
|
311
|
-
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
312
|
-
{
|
313
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
314
|
-
},
|
315
|
-
{ get: '/v1/{name=projects/*/locations/*}/operations' },
|
316
|
-
{ get: '/v1/{name=projects/*}/operations' },
|
317
|
-
],
|
318
|
-
},
|
319
|
-
];
|
212
|
+
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: '*', }],
|
213
|
+
}, { 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/*}', }],
|
214
|
+
}, { 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', }],
|
215
|
+
}];
|
320
216
|
}
|
321
|
-
this.operationsClient = this._gaxModule
|
322
|
-
.lro(lroOptions)
|
323
|
-
.operationsClient(opts);
|
217
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
324
218
|
const importSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponse');
|
325
219
|
const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesMetadata');
|
326
220
|
const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponse');
|
@@ -333,7 +227,7 @@ class CompletionServiceClient {
|
|
333
227
|
importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
|
334
228
|
purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
|
335
229
|
importCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importCompletionSuggestionsResponse.decode.bind(importCompletionSuggestionsResponse), importCompletionSuggestionsMetadata.decode.bind(importCompletionSuggestionsMetadata)),
|
336
|
-
purgeCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeCompletionSuggestionsResponse.decode.bind(purgeCompletionSuggestionsResponse), purgeCompletionSuggestionsMetadata.decode.bind(purgeCompletionSuggestionsMetadata))
|
230
|
+
purgeCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeCompletionSuggestionsResponse.decode.bind(purgeCompletionSuggestionsResponse), purgeCompletionSuggestionsMetadata.decode.bind(purgeCompletionSuggestionsMetadata))
|
337
231
|
};
|
338
232
|
// Put together the default options sent with requests.
|
339
233
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -362,20 +256,13 @@ class CompletionServiceClient {
|
|
362
256
|
}
|
363
257
|
// Put together the "service stub" for
|
364
258
|
// google.cloud.discoveryengine.v1.CompletionService.
|
365
|
-
this.completionServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
.CompletionService, this._opts, this._providedCustomServicePath);
|
259
|
+
this.completionServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
260
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.CompletionService') :
|
261
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
262
|
+
this._protos.google.cloud.discoveryengine.v1.CompletionService, this._opts, this._providedCustomServicePath);
|
370
263
|
// Iterate over each of the methods that the service provides
|
371
264
|
// and create an API call method for each.
|
372
|
-
const completionServiceStubMethods = [
|
373
|
-
'completeQuery',
|
374
|
-
'importSuggestionDenyListEntries',
|
375
|
-
'purgeSuggestionDenyListEntries',
|
376
|
-
'importCompletionSuggestions',
|
377
|
-
'purgeCompletionSuggestions',
|
378
|
-
];
|
265
|
+
const completionServiceStubMethods = ['completeQuery', 'importSuggestionDenyListEntries', 'purgeSuggestionDenyListEntries', 'importCompletionSuggestions', 'purgeCompletionSuggestions'];
|
379
266
|
for (const methodName of completionServiceStubMethods) {
|
380
267
|
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
381
268
|
if (this._terminated) {
|
@@ -386,7 +273,8 @@ class CompletionServiceClient {
|
|
386
273
|
}, (err) => () => {
|
387
274
|
throw err;
|
388
275
|
});
|
389
|
-
const descriptor = this.descriptors.longrunning[methodName] ||
|
276
|
+
const descriptor = this.descriptors.longrunning[methodName] ||
|
277
|
+
undefined;
|
390
278
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
391
279
|
this.innerApiCalls[methodName] = apiCall;
|
392
280
|
}
|
@@ -398,8 +286,7 @@ class CompletionServiceClient {
|
|
398
286
|
* @returns {string} The DNS address for this service.
|
399
287
|
*/
|
400
288
|
static get servicePath() {
|
401
|
-
if (typeof process === 'object' &&
|
402
|
-
typeof process.emitWarning === 'function') {
|
289
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
403
290
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
404
291
|
}
|
405
292
|
return 'discoveryengine.googleapis.com';
|
@@ -410,8 +297,7 @@ class CompletionServiceClient {
|
|
410
297
|
* @returns {string} The DNS address for this service.
|
411
298
|
*/
|
412
299
|
static get apiEndpoint() {
|
413
|
-
if (typeof process === 'object' &&
|
414
|
-
typeof process.emitWarning === 'function') {
|
300
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
415
301
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
416
302
|
}
|
417
303
|
return 'discoveryengine.googleapis.com';
|
@@ -439,7 +325,9 @@ class CompletionServiceClient {
|
|
439
325
|
* @returns {string[]} List of default scopes.
|
440
326
|
*/
|
441
327
|
static get scopes() {
|
442
|
-
return [
|
328
|
+
return [
|
329
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
330
|
+
];
|
443
331
|
}
|
444
332
|
/**
|
445
333
|
* Return the project ID used by this class.
|
@@ -465,13 +353,10 @@ class CompletionServiceClient {
|
|
465
353
|
options = options || {};
|
466
354
|
options.otherArgs = options.otherArgs || {};
|
467
355
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
468
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
469
|
-
|
470
|
-
data_store: request.dataStore ?? '',
|
471
|
-
});
|
472
|
-
this.initialize().catch(err => {
|
473
|
-
throw err;
|
356
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
357
|
+
'data_store': request.dataStore ?? '',
|
474
358
|
});
|
359
|
+
this.initialize().catch(err => { throw err; });
|
475
360
|
this._log.info('completeQuery request %j', request);
|
476
361
|
const wrappedCallback = callback
|
477
362
|
? (error, response, options, rawResponse) => {
|
@@ -479,8 +364,7 @@ class CompletionServiceClient {
|
|
479
364
|
callback(error, response, options, rawResponse); // We verified callback above.
|
480
365
|
}
|
481
366
|
: undefined;
|
482
|
-
return this.innerApiCalls
|
483
|
-
.completeQuery(request, options, wrappedCallback)
|
367
|
+
return this.innerApiCalls.completeQuery(request, options, wrappedCallback)
|
484
368
|
?.then(([response, options, rawResponse]) => {
|
485
369
|
this._log.info('completeQuery response %j', response);
|
486
370
|
return [response, options, rawResponse];
|
@@ -499,13 +383,10 @@ class CompletionServiceClient {
|
|
499
383
|
options = options || {};
|
500
384
|
options.otherArgs = options.otherArgs || {};
|
501
385
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
502
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
503
|
-
|
504
|
-
parent: request.parent ?? '',
|
505
|
-
});
|
506
|
-
this.initialize().catch(err => {
|
507
|
-
throw err;
|
386
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
387
|
+
'parent': request.parent ?? '',
|
508
388
|
});
|
389
|
+
this.initialize().catch(err => { throw err; });
|
509
390
|
const wrappedCallback = callback
|
510
391
|
? (error, response, rawResponse, _) => {
|
511
392
|
this._log.info('importSuggestionDenyListEntries response %j', rawResponse);
|
@@ -513,8 +394,7 @@ class CompletionServiceClient {
|
|
513
394
|
}
|
514
395
|
: undefined;
|
515
396
|
this._log.info('importSuggestionDenyListEntries request %j', request);
|
516
|
-
return this.innerApiCalls
|
517
|
-
.importSuggestionDenyListEntries(request, options, wrappedCallback)
|
397
|
+
return this.innerApiCalls.importSuggestionDenyListEntries(request, options, wrappedCallback)
|
518
398
|
?.then(([response, rawResponse, _]) => {
|
519
399
|
this._log.info('importSuggestionDenyListEntries response %j', rawResponse);
|
520
400
|
return [response, rawResponse, _];
|
@@ -551,13 +431,10 @@ class CompletionServiceClient {
|
|
551
431
|
options = options || {};
|
552
432
|
options.otherArgs = options.otherArgs || {};
|
553
433
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
554
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
555
|
-
|
556
|
-
parent: request.parent ?? '',
|
557
|
-
});
|
558
|
-
this.initialize().catch(err => {
|
559
|
-
throw err;
|
434
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
435
|
+
'parent': request.parent ?? '',
|
560
436
|
});
|
437
|
+
this.initialize().catch(err => { throw err; });
|
561
438
|
const wrappedCallback = callback
|
562
439
|
? (error, response, rawResponse, _) => {
|
563
440
|
this._log.info('purgeSuggestionDenyListEntries response %j', rawResponse);
|
@@ -565,8 +442,7 @@ class CompletionServiceClient {
|
|
565
442
|
}
|
566
443
|
: undefined;
|
567
444
|
this._log.info('purgeSuggestionDenyListEntries request %j', request);
|
568
|
-
return this.innerApiCalls
|
569
|
-
.purgeSuggestionDenyListEntries(request, options, wrappedCallback)
|
445
|
+
return this.innerApiCalls.purgeSuggestionDenyListEntries(request, options, wrappedCallback)
|
570
446
|
?.then(([response, rawResponse, _]) => {
|
571
447
|
this._log.info('purgeSuggestionDenyListEntries response %j', rawResponse);
|
572
448
|
return [response, rawResponse, _];
|
@@ -603,13 +479,10 @@ class CompletionServiceClient {
|
|
603
479
|
options = options || {};
|
604
480
|
options.otherArgs = options.otherArgs || {};
|
605
481
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
606
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
607
|
-
|
608
|
-
parent: request.parent ?? '',
|
609
|
-
});
|
610
|
-
this.initialize().catch(err => {
|
611
|
-
throw err;
|
482
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
483
|
+
'parent': request.parent ?? '',
|
612
484
|
});
|
485
|
+
this.initialize().catch(err => { throw err; });
|
613
486
|
const wrappedCallback = callback
|
614
487
|
? (error, response, rawResponse, _) => {
|
615
488
|
this._log.info('importCompletionSuggestions response %j', rawResponse);
|
@@ -617,8 +490,7 @@ class CompletionServiceClient {
|
|
617
490
|
}
|
618
491
|
: undefined;
|
619
492
|
this._log.info('importCompletionSuggestions request %j', request);
|
620
|
-
return this.innerApiCalls
|
621
|
-
.importCompletionSuggestions(request, options, wrappedCallback)
|
493
|
+
return this.innerApiCalls.importCompletionSuggestions(request, options, wrappedCallback)
|
622
494
|
?.then(([response, rawResponse, _]) => {
|
623
495
|
this._log.info('importCompletionSuggestions response %j', rawResponse);
|
624
496
|
return [response, rawResponse, _];
|
@@ -655,13 +527,10 @@ class CompletionServiceClient {
|
|
655
527
|
options = options || {};
|
656
528
|
options.otherArgs = options.otherArgs || {};
|
657
529
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
658
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
659
|
-
|
660
|
-
parent: request.parent ?? '',
|
661
|
-
});
|
662
|
-
this.initialize().catch(err => {
|
663
|
-
throw err;
|
530
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
531
|
+
'parent': request.parent ?? '',
|
664
532
|
});
|
533
|
+
this.initialize().catch(err => { throw err; });
|
665
534
|
const wrappedCallback = callback
|
666
535
|
? (error, response, rawResponse, _) => {
|
667
536
|
this._log.info('purgeCompletionSuggestions response %j', rawResponse);
|
@@ -669,8 +538,7 @@ class CompletionServiceClient {
|
|
669
538
|
}
|
670
539
|
: undefined;
|
671
540
|
this._log.info('purgeCompletionSuggestions request %j', request);
|
672
|
-
return this.innerApiCalls
|
673
|
-
.purgeCompletionSuggestions(request, options, wrappedCallback)
|
541
|
+
return this.innerApiCalls.purgeCompletionSuggestions(request, options, wrappedCallback)
|
674
542
|
?.then(([response, rawResponse, _]) => {
|
675
543
|
this._log.info('purgeCompletionSuggestions response %j', rawResponse);
|
676
544
|
return [response, rawResponse, _];
|
@@ -695,90 +563,90 @@ class CompletionServiceClient {
|
|
695
563
|
return decodeOperation;
|
696
564
|
}
|
697
565
|
/**
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
566
|
+
* Gets information about a location.
|
567
|
+
*
|
568
|
+
* @param {Object} request
|
569
|
+
* The request object that will be sent.
|
570
|
+
* @param {string} request.name
|
571
|
+
* Resource name for the location.
|
572
|
+
* @param {object} [options]
|
573
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
574
|
+
* @returns {Promise} - The promise which resolves to an array.
|
575
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
576
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
577
|
+
* for more details and examples.
|
578
|
+
* @example
|
579
|
+
* ```
|
580
|
+
* const [response] = await client.getLocation(request);
|
581
|
+
* ```
|
582
|
+
*/
|
715
583
|
getLocation(request, options, callback) {
|
716
584
|
return this.locationsClient.getLocation(request, options, callback);
|
717
585
|
}
|
718
586
|
/**
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
587
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
588
|
+
*
|
589
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
590
|
+
* @param {Object} request
|
591
|
+
* The request object that will be sent.
|
592
|
+
* @param {string} request.name
|
593
|
+
* The resource that owns the locations collection, if applicable.
|
594
|
+
* @param {string} request.filter
|
595
|
+
* The standard list filter.
|
596
|
+
* @param {number} request.pageSize
|
597
|
+
* The standard list page size.
|
598
|
+
* @param {string} request.pageToken
|
599
|
+
* The standard list page token.
|
600
|
+
* @param {object} [options]
|
601
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
602
|
+
* @returns {Object}
|
603
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
604
|
+
* When you iterate the returned iterable, each element will be an object representing
|
605
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
606
|
+
* so you can stop the iteration when you don't need more results.
|
607
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
608
|
+
* for more details and examples.
|
609
|
+
* @example
|
610
|
+
* ```
|
611
|
+
* const iterable = client.listLocationsAsync(request);
|
612
|
+
* for await (const response of iterable) {
|
613
|
+
* // process response
|
614
|
+
* }
|
615
|
+
* ```
|
616
|
+
*/
|
749
617
|
listLocationsAsync(request, options) {
|
750
618
|
return this.locationsClient.listLocationsAsync(request, options);
|
751
619
|
}
|
752
620
|
/**
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
621
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
622
|
+
* method to poll the operation result at intervals as recommended by the API
|
623
|
+
* service.
|
624
|
+
*
|
625
|
+
* @param {Object} request - The request object that will be sent.
|
626
|
+
* @param {string} request.name - The name of the operation resource.
|
627
|
+
* @param {Object=} options
|
628
|
+
* Optional parameters. You can override the default settings for this call,
|
629
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
630
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
631
|
+
* for the details.
|
632
|
+
* @param {function(?Error, ?Object)=} callback
|
633
|
+
* The function which will be called with the result of the API call.
|
634
|
+
*
|
635
|
+
* The second parameter to the callback is an object representing
|
636
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
637
|
+
* @return {Promise} - The promise which resolves to an array.
|
638
|
+
* The first element of the array is an object representing
|
639
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
640
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
641
|
+
*
|
642
|
+
* @example
|
643
|
+
* ```
|
644
|
+
* const client = longrunning.operationsClient();
|
645
|
+
* const name = '';
|
646
|
+
* const [response] = await client.getOperation({name});
|
647
|
+
* // doThingsWith(response)
|
648
|
+
* ```
|
649
|
+
*/
|
782
650
|
getOperation(request, optionsOrCallback, callback) {
|
783
651
|
let options;
|
784
652
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1574,6 +1442,75 @@ class CompletionServiceClient {
|
|
1574
1442
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1575
1443
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1576
1444
|
}
|
1445
|
+
/**
|
1446
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1447
|
+
*
|
1448
|
+
* @param {string} project
|
1449
|
+
* @param {string} location
|
1450
|
+
* @param {string} collection
|
1451
|
+
* @param {string} data_store
|
1452
|
+
* @param {string} serving_config
|
1453
|
+
* @returns {string} Resource name string.
|
1454
|
+
*/
|
1455
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1456
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1457
|
+
project: project,
|
1458
|
+
location: location,
|
1459
|
+
collection: collection,
|
1460
|
+
data_store: dataStore,
|
1461
|
+
serving_config: servingConfig,
|
1462
|
+
});
|
1463
|
+
}
|
1464
|
+
/**
|
1465
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1466
|
+
*
|
1467
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1468
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1469
|
+
* @returns {string} A string representing the project.
|
1470
|
+
*/
|
1471
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1472
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1473
|
+
}
|
1474
|
+
/**
|
1475
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1476
|
+
*
|
1477
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1478
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1479
|
+
* @returns {string} A string representing the location.
|
1480
|
+
*/
|
1481
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1482
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1483
|
+
}
|
1484
|
+
/**
|
1485
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1486
|
+
*
|
1487
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1488
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1489
|
+
* @returns {string} A string representing the collection.
|
1490
|
+
*/
|
1491
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1492
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1493
|
+
}
|
1494
|
+
/**
|
1495
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1496
|
+
*
|
1497
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1498
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1499
|
+
* @returns {string} A string representing the data_store.
|
1500
|
+
*/
|
1501
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1502
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1503
|
+
}
|
1504
|
+
/**
|
1505
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1506
|
+
*
|
1507
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1508
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1509
|
+
* @returns {string} A string representing the serving_config.
|
1510
|
+
*/
|
1511
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1512
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1513
|
+
}
|
1577
1514
|
/**
|
1578
1515
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1579
1516
|
*
|
@@ -1781,6 +1718,75 @@ class CompletionServiceClient {
|
|
1781
1718
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1782
1719
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1783
1720
|
}
|
1721
|
+
/**
|
1722
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1723
|
+
*
|
1724
|
+
* @param {string} project
|
1725
|
+
* @param {string} location
|
1726
|
+
* @param {string} collection
|
1727
|
+
* @param {string} data_store
|
1728
|
+
* @param {string} sitemap
|
1729
|
+
* @returns {string} Resource name string.
|
1730
|
+
*/
|
1731
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1732
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1733
|
+
project: project,
|
1734
|
+
location: location,
|
1735
|
+
collection: collection,
|
1736
|
+
data_store: dataStore,
|
1737
|
+
sitemap: sitemap,
|
1738
|
+
});
|
1739
|
+
}
|
1740
|
+
/**
|
1741
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1742
|
+
*
|
1743
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1744
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1745
|
+
* @returns {string} A string representing the project.
|
1746
|
+
*/
|
1747
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1748
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1749
|
+
}
|
1750
|
+
/**
|
1751
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1752
|
+
*
|
1753
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1754
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1755
|
+
* @returns {string} A string representing the location.
|
1756
|
+
*/
|
1757
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1758
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1759
|
+
}
|
1760
|
+
/**
|
1761
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1762
|
+
*
|
1763
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1764
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1765
|
+
* @returns {string} A string representing the collection.
|
1766
|
+
*/
|
1767
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1768
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1769
|
+
}
|
1770
|
+
/**
|
1771
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1772
|
+
*
|
1773
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1774
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1775
|
+
* @returns {string} A string representing the data_store.
|
1776
|
+
*/
|
1777
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1778
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1779
|
+
}
|
1780
|
+
/**
|
1781
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1782
|
+
*
|
1783
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1784
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1785
|
+
* @returns {string} A string representing the sitemap.
|
1786
|
+
*/
|
1787
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1788
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1789
|
+
}
|
1784
1790
|
/**
|
1785
1791
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1786
1792
|
*
|
@@ -1988,6 +1994,75 @@ class CompletionServiceClient {
|
|
1988
1994
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1989
1995
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1990
1996
|
}
|
1997
|
+
/**
|
1998
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1999
|
+
*
|
2000
|
+
* @param {string} project
|
2001
|
+
* @param {string} location
|
2002
|
+
* @param {string} collection
|
2003
|
+
* @param {string} engine
|
2004
|
+
* @param {string} serving_config
|
2005
|
+
* @returns {string} Resource name string.
|
2006
|
+
*/
|
2007
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
2008
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
2009
|
+
project: project,
|
2010
|
+
location: location,
|
2011
|
+
collection: collection,
|
2012
|
+
engine: engine,
|
2013
|
+
serving_config: servingConfig,
|
2014
|
+
});
|
2015
|
+
}
|
2016
|
+
/**
|
2017
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
2018
|
+
*
|
2019
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2020
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2021
|
+
* @returns {string} A string representing the project.
|
2022
|
+
*/
|
2023
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2024
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
2025
|
+
}
|
2026
|
+
/**
|
2027
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
2028
|
+
*
|
2029
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2030
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2031
|
+
* @returns {string} A string representing the location.
|
2032
|
+
*/
|
2033
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2034
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2035
|
+
}
|
2036
|
+
/**
|
2037
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2038
|
+
*
|
2039
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2040
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2041
|
+
* @returns {string} A string representing the collection.
|
2042
|
+
*/
|
2043
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2044
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2045
|
+
}
|
2046
|
+
/**
|
2047
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2048
|
+
*
|
2049
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2050
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2051
|
+
* @returns {string} A string representing the engine.
|
2052
|
+
*/
|
2053
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2054
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2055
|
+
}
|
2056
|
+
/**
|
2057
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2058
|
+
*
|
2059
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2060
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2061
|
+
* @returns {string} A string representing the serving_config.
|
2062
|
+
*/
|
2063
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2064
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2065
|
+
}
|
1991
2066
|
/**
|
1992
2067
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1993
2068
|
*
|
@@ -2606,6 +2681,63 @@ class CompletionServiceClient {
|
|
2606
2681
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2607
2682
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2608
2683
|
}
|
2684
|
+
/**
|
2685
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2686
|
+
*
|
2687
|
+
* @param {string} project
|
2688
|
+
* @param {string} location
|
2689
|
+
* @param {string} data_store
|
2690
|
+
* @param {string} serving_config
|
2691
|
+
* @returns {string} Resource name string.
|
2692
|
+
*/
|
2693
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2694
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2695
|
+
project: project,
|
2696
|
+
location: location,
|
2697
|
+
data_store: dataStore,
|
2698
|
+
serving_config: servingConfig,
|
2699
|
+
});
|
2700
|
+
}
|
2701
|
+
/**
|
2702
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2703
|
+
*
|
2704
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2705
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2706
|
+
* @returns {string} A string representing the project.
|
2707
|
+
*/
|
2708
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2709
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2710
|
+
}
|
2711
|
+
/**
|
2712
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2713
|
+
*
|
2714
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2715
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2716
|
+
* @returns {string} A string representing the location.
|
2717
|
+
*/
|
2718
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2719
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2720
|
+
}
|
2721
|
+
/**
|
2722
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2723
|
+
*
|
2724
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2725
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2726
|
+
* @returns {string} A string representing the data_store.
|
2727
|
+
*/
|
2728
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2729
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2730
|
+
}
|
2731
|
+
/**
|
2732
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2733
|
+
*
|
2734
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2735
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2736
|
+
* @returns {string} A string representing the serving_config.
|
2737
|
+
*/
|
2738
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2739
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2740
|
+
}
|
2609
2741
|
/**
|
2610
2742
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2611
2743
|
*
|
@@ -2777,6 +2909,63 @@ class CompletionServiceClient {
|
|
2777
2909
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2778
2910
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2779
2911
|
}
|
2912
|
+
/**
|
2913
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2914
|
+
*
|
2915
|
+
* @param {string} project
|
2916
|
+
* @param {string} location
|
2917
|
+
* @param {string} data_store
|
2918
|
+
* @param {string} sitemap
|
2919
|
+
* @returns {string} Resource name string.
|
2920
|
+
*/
|
2921
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2922
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2923
|
+
project: project,
|
2924
|
+
location: location,
|
2925
|
+
data_store: dataStore,
|
2926
|
+
sitemap: sitemap,
|
2927
|
+
});
|
2928
|
+
}
|
2929
|
+
/**
|
2930
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2931
|
+
*
|
2932
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2933
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2934
|
+
* @returns {string} A string representing the project.
|
2935
|
+
*/
|
2936
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2937
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2938
|
+
}
|
2939
|
+
/**
|
2940
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2941
|
+
*
|
2942
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2943
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2944
|
+
* @returns {string} A string representing the location.
|
2945
|
+
*/
|
2946
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2947
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2948
|
+
}
|
2949
|
+
/**
|
2950
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2951
|
+
*
|
2952
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2953
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2954
|
+
* @returns {string} A string representing the data_store.
|
2955
|
+
*/
|
2956
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2957
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2958
|
+
}
|
2959
|
+
/**
|
2960
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2961
|
+
*
|
2962
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2963
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2964
|
+
* @returns {string} A string representing the sitemap.
|
2965
|
+
*/
|
2966
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2967
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2968
|
+
}
|
2780
2969
|
/**
|
2781
2970
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2782
2971
|
*
|
@@ -2846,8 +3035,8 @@ class CompletionServiceClient {
|
|
2846
3035
|
this._log.info('ending gRPC channel');
|
2847
3036
|
this._terminated = true;
|
2848
3037
|
stub.close();
|
2849
|
-
this.locationsClient.close();
|
2850
|
-
this.operationsClient.close();
|
3038
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3039
|
+
void this.operationsClient.close();
|
2851
3040
|
});
|
2852
3041
|
}
|
2853
3042
|
return Promise.resolve();
|