@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 SearchTuningServiceClient {
|
|
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 SearchTuningServiceClient {
|
|
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 SearchTuningServiceClient {
|
|
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 SearchTuningServiceClient {
|
|
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,125 +205,20 @@ class SearchTuningServiceClient {
|
|
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 trainCustomModelResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.TrainCustomModelResponse');
|
325
219
|
const trainCustomModelMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.TrainCustomModelMetadata');
|
326
220
|
this.descriptors.longrunning = {
|
327
|
-
trainCustomModel: new this._gaxModule.LongrunningDescriptor(this.operationsClient, trainCustomModelResponse.decode.bind(trainCustomModelResponse), trainCustomModelMetadata.decode.bind(trainCustomModelMetadata))
|
221
|
+
trainCustomModel: new this._gaxModule.LongrunningDescriptor(this.operationsClient, trainCustomModelResponse.decode.bind(trainCustomModelResponse), trainCustomModelMetadata.decode.bind(trainCustomModelMetadata))
|
328
222
|
};
|
329
223
|
// Put together the default options sent with requests.
|
330
224
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.SearchTuningService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -353,17 +247,13 @@ class SearchTuningServiceClient {
|
|
353
247
|
}
|
354
248
|
// Put together the "service stub" for
|
355
249
|
// google.cloud.discoveryengine.v1.SearchTuningService.
|
356
|
-
this.searchTuningServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
.SearchTuningService, this._opts, this._providedCustomServicePath);
|
250
|
+
this.searchTuningServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
251
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.SearchTuningService') :
|
252
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
253
|
+
this._protos.google.cloud.discoveryengine.v1.SearchTuningService, this._opts, this._providedCustomServicePath);
|
361
254
|
// Iterate over each of the methods that the service provides
|
362
255
|
// and create an API call method for each.
|
363
|
-
const searchTuningServiceStubMethods = [
|
364
|
-
'trainCustomModel',
|
365
|
-
'listCustomModels',
|
366
|
-
];
|
256
|
+
const searchTuningServiceStubMethods = ['trainCustomModel', 'listCustomModels'];
|
367
257
|
for (const methodName of searchTuningServiceStubMethods) {
|
368
258
|
const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
|
369
259
|
if (this._terminated) {
|
@@ -374,7 +264,8 @@ class SearchTuningServiceClient {
|
|
374
264
|
}, (err) => () => {
|
375
265
|
throw err;
|
376
266
|
});
|
377
|
-
const descriptor = this.descriptors.longrunning[methodName] ||
|
267
|
+
const descriptor = this.descriptors.longrunning[methodName] ||
|
268
|
+
undefined;
|
378
269
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
379
270
|
this.innerApiCalls[methodName] = apiCall;
|
380
271
|
}
|
@@ -386,8 +277,7 @@ class SearchTuningServiceClient {
|
|
386
277
|
* @returns {string} The DNS address for this service.
|
387
278
|
*/
|
388
279
|
static get servicePath() {
|
389
|
-
if (typeof process === 'object' &&
|
390
|
-
typeof process.emitWarning === 'function') {
|
280
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
391
281
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
392
282
|
}
|
393
283
|
return 'discoveryengine.googleapis.com';
|
@@ -398,8 +288,7 @@ class SearchTuningServiceClient {
|
|
398
288
|
* @returns {string} The DNS address for this service.
|
399
289
|
*/
|
400
290
|
static get apiEndpoint() {
|
401
|
-
if (typeof process === 'object' &&
|
402
|
-
typeof process.emitWarning === 'function') {
|
291
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
403
292
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
404
293
|
}
|
405
294
|
return 'discoveryengine.googleapis.com';
|
@@ -427,7 +316,9 @@ class SearchTuningServiceClient {
|
|
427
316
|
* @returns {string[]} List of default scopes.
|
428
317
|
*/
|
429
318
|
static get scopes() {
|
430
|
-
return [
|
319
|
+
return [
|
320
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
321
|
+
];
|
431
322
|
}
|
432
323
|
/**
|
433
324
|
* Return the project ID used by this class.
|
@@ -453,13 +344,10 @@ class SearchTuningServiceClient {
|
|
453
344
|
options = options || {};
|
454
345
|
options.otherArgs = options.otherArgs || {};
|
455
346
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
456
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
457
|
-
|
458
|
-
data_store: request.dataStore ?? '',
|
459
|
-
});
|
460
|
-
this.initialize().catch(err => {
|
461
|
-
throw err;
|
347
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
348
|
+
'data_store': request.dataStore ?? '',
|
462
349
|
});
|
350
|
+
this.initialize().catch(err => { throw err; });
|
463
351
|
this._log.info('listCustomModels request %j', request);
|
464
352
|
const wrappedCallback = callback
|
465
353
|
? (error, response, options, rawResponse) => {
|
@@ -467,8 +355,7 @@ class SearchTuningServiceClient {
|
|
467
355
|
callback(error, response, options, rawResponse); // We verified callback above.
|
468
356
|
}
|
469
357
|
: undefined;
|
470
|
-
return this.innerApiCalls
|
471
|
-
.listCustomModels(request, options, wrappedCallback)
|
358
|
+
return this.innerApiCalls.listCustomModels(request, options, wrappedCallback)
|
472
359
|
?.then(([response, options, rawResponse]) => {
|
473
360
|
this._log.info('listCustomModels response %j', response);
|
474
361
|
return [response, options, rawResponse];
|
@@ -487,13 +374,10 @@ class SearchTuningServiceClient {
|
|
487
374
|
options = options || {};
|
488
375
|
options.otherArgs = options.otherArgs || {};
|
489
376
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
490
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
491
|
-
|
492
|
-
data_store: request.dataStore ?? '',
|
493
|
-
});
|
494
|
-
this.initialize().catch(err => {
|
495
|
-
throw err;
|
377
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
378
|
+
'data_store': request.dataStore ?? '',
|
496
379
|
});
|
380
|
+
this.initialize().catch(err => { throw err; });
|
497
381
|
const wrappedCallback = callback
|
498
382
|
? (error, response, rawResponse, _) => {
|
499
383
|
this._log.info('trainCustomModel response %j', rawResponse);
|
@@ -501,8 +385,7 @@ class SearchTuningServiceClient {
|
|
501
385
|
}
|
502
386
|
: undefined;
|
503
387
|
this._log.info('trainCustomModel request %j', request);
|
504
|
-
return this.innerApiCalls
|
505
|
-
.trainCustomModel(request, options, wrappedCallback)
|
388
|
+
return this.innerApiCalls.trainCustomModel(request, options, wrappedCallback)
|
506
389
|
?.then(([response, rawResponse, _]) => {
|
507
390
|
this._log.info('trainCustomModel response %j', rawResponse);
|
508
391
|
return [response, rawResponse, _];
|
@@ -527,90 +410,90 @@ class SearchTuningServiceClient {
|
|
527
410
|
return decodeOperation;
|
528
411
|
}
|
529
412
|
/**
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
413
|
+
* Gets information about a location.
|
414
|
+
*
|
415
|
+
* @param {Object} request
|
416
|
+
* The request object that will be sent.
|
417
|
+
* @param {string} request.name
|
418
|
+
* Resource name for the location.
|
419
|
+
* @param {object} [options]
|
420
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
421
|
+
* @returns {Promise} - The promise which resolves to an array.
|
422
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
423
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
424
|
+
* for more details and examples.
|
425
|
+
* @example
|
426
|
+
* ```
|
427
|
+
* const [response] = await client.getLocation(request);
|
428
|
+
* ```
|
429
|
+
*/
|
547
430
|
getLocation(request, options, callback) {
|
548
431
|
return this.locationsClient.getLocation(request, options, callback);
|
549
432
|
}
|
550
433
|
/**
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
434
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
435
|
+
*
|
436
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
437
|
+
* @param {Object} request
|
438
|
+
* The request object that will be sent.
|
439
|
+
* @param {string} request.name
|
440
|
+
* The resource that owns the locations collection, if applicable.
|
441
|
+
* @param {string} request.filter
|
442
|
+
* The standard list filter.
|
443
|
+
* @param {number} request.pageSize
|
444
|
+
* The standard list page size.
|
445
|
+
* @param {string} request.pageToken
|
446
|
+
* The standard list page token.
|
447
|
+
* @param {object} [options]
|
448
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
449
|
+
* @returns {Object}
|
450
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
451
|
+
* When you iterate the returned iterable, each element will be an object representing
|
452
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
453
|
+
* so you can stop the iteration when you don't need more results.
|
454
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
455
|
+
* for more details and examples.
|
456
|
+
* @example
|
457
|
+
* ```
|
458
|
+
* const iterable = client.listLocationsAsync(request);
|
459
|
+
* for await (const response of iterable) {
|
460
|
+
* // process response
|
461
|
+
* }
|
462
|
+
* ```
|
463
|
+
*/
|
581
464
|
listLocationsAsync(request, options) {
|
582
465
|
return this.locationsClient.listLocationsAsync(request, options);
|
583
466
|
}
|
584
467
|
/**
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
468
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
469
|
+
* method to poll the operation result at intervals as recommended by the API
|
470
|
+
* service.
|
471
|
+
*
|
472
|
+
* @param {Object} request - The request object that will be sent.
|
473
|
+
* @param {string} request.name - The name of the operation resource.
|
474
|
+
* @param {Object=} options
|
475
|
+
* Optional parameters. You can override the default settings for this call,
|
476
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
477
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
478
|
+
* for the details.
|
479
|
+
* @param {function(?Error, ?Object)=} callback
|
480
|
+
* The function which will be called with the result of the API call.
|
481
|
+
*
|
482
|
+
* The second parameter to the callback is an object representing
|
483
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
484
|
+
* @return {Promise} - The promise which resolves to an array.
|
485
|
+
* The first element of the array is an object representing
|
486
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
487
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
488
|
+
*
|
489
|
+
* @example
|
490
|
+
* ```
|
491
|
+
* const client = longrunning.operationsClient();
|
492
|
+
* const name = '';
|
493
|
+
* const [response] = await client.getOperation({name});
|
494
|
+
* // doThingsWith(response)
|
495
|
+
* ```
|
496
|
+
*/
|
614
497
|
getOperation(request, optionsOrCallback, callback) {
|
615
498
|
let options;
|
616
499
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1406,6 +1289,75 @@ class SearchTuningServiceClient {
|
|
1406
1289
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1407
1290
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1408
1291
|
}
|
1292
|
+
/**
|
1293
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1294
|
+
*
|
1295
|
+
* @param {string} project
|
1296
|
+
* @param {string} location
|
1297
|
+
* @param {string} collection
|
1298
|
+
* @param {string} data_store
|
1299
|
+
* @param {string} serving_config
|
1300
|
+
* @returns {string} Resource name string.
|
1301
|
+
*/
|
1302
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1303
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1304
|
+
project: project,
|
1305
|
+
location: location,
|
1306
|
+
collection: collection,
|
1307
|
+
data_store: dataStore,
|
1308
|
+
serving_config: servingConfig,
|
1309
|
+
});
|
1310
|
+
}
|
1311
|
+
/**
|
1312
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1313
|
+
*
|
1314
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1315
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1316
|
+
* @returns {string} A string representing the project.
|
1317
|
+
*/
|
1318
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1319
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1320
|
+
}
|
1321
|
+
/**
|
1322
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1323
|
+
*
|
1324
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1325
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1326
|
+
* @returns {string} A string representing the location.
|
1327
|
+
*/
|
1328
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1329
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1330
|
+
}
|
1331
|
+
/**
|
1332
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1333
|
+
*
|
1334
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1335
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1336
|
+
* @returns {string} A string representing the collection.
|
1337
|
+
*/
|
1338
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1339
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1340
|
+
}
|
1341
|
+
/**
|
1342
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1343
|
+
*
|
1344
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1345
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1346
|
+
* @returns {string} A string representing the data_store.
|
1347
|
+
*/
|
1348
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1349
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1350
|
+
}
|
1351
|
+
/**
|
1352
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1353
|
+
*
|
1354
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1355
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1356
|
+
* @returns {string} A string representing the serving_config.
|
1357
|
+
*/
|
1358
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1359
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1360
|
+
}
|
1409
1361
|
/**
|
1410
1362
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1411
1363
|
*
|
@@ -1613,6 +1565,75 @@ class SearchTuningServiceClient {
|
|
1613
1565
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1614
1566
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1615
1567
|
}
|
1568
|
+
/**
|
1569
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1570
|
+
*
|
1571
|
+
* @param {string} project
|
1572
|
+
* @param {string} location
|
1573
|
+
* @param {string} collection
|
1574
|
+
* @param {string} data_store
|
1575
|
+
* @param {string} sitemap
|
1576
|
+
* @returns {string} Resource name string.
|
1577
|
+
*/
|
1578
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1579
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1580
|
+
project: project,
|
1581
|
+
location: location,
|
1582
|
+
collection: collection,
|
1583
|
+
data_store: dataStore,
|
1584
|
+
sitemap: sitemap,
|
1585
|
+
});
|
1586
|
+
}
|
1587
|
+
/**
|
1588
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1589
|
+
*
|
1590
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1591
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1592
|
+
* @returns {string} A string representing the project.
|
1593
|
+
*/
|
1594
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1595
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1596
|
+
}
|
1597
|
+
/**
|
1598
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1599
|
+
*
|
1600
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1601
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1602
|
+
* @returns {string} A string representing the location.
|
1603
|
+
*/
|
1604
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1605
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1606
|
+
}
|
1607
|
+
/**
|
1608
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1609
|
+
*
|
1610
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1611
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1612
|
+
* @returns {string} A string representing the collection.
|
1613
|
+
*/
|
1614
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1615
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1616
|
+
}
|
1617
|
+
/**
|
1618
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1619
|
+
*
|
1620
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1621
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1622
|
+
* @returns {string} A string representing the data_store.
|
1623
|
+
*/
|
1624
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1625
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1626
|
+
}
|
1627
|
+
/**
|
1628
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1629
|
+
*
|
1630
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1631
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1632
|
+
* @returns {string} A string representing the sitemap.
|
1633
|
+
*/
|
1634
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1635
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1636
|
+
}
|
1616
1637
|
/**
|
1617
1638
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1618
1639
|
*
|
@@ -1820,6 +1841,75 @@ class SearchTuningServiceClient {
|
|
1820
1841
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1821
1842
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1822
1843
|
}
|
1844
|
+
/**
|
1845
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1846
|
+
*
|
1847
|
+
* @param {string} project
|
1848
|
+
* @param {string} location
|
1849
|
+
* @param {string} collection
|
1850
|
+
* @param {string} engine
|
1851
|
+
* @param {string} serving_config
|
1852
|
+
* @returns {string} Resource name string.
|
1853
|
+
*/
|
1854
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1855
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1856
|
+
project: project,
|
1857
|
+
location: location,
|
1858
|
+
collection: collection,
|
1859
|
+
engine: engine,
|
1860
|
+
serving_config: servingConfig,
|
1861
|
+
});
|
1862
|
+
}
|
1863
|
+
/**
|
1864
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1865
|
+
*
|
1866
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1867
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1868
|
+
* @returns {string} A string representing the project.
|
1869
|
+
*/
|
1870
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1871
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1872
|
+
}
|
1873
|
+
/**
|
1874
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1875
|
+
*
|
1876
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1877
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1878
|
+
* @returns {string} A string representing the location.
|
1879
|
+
*/
|
1880
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1881
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1882
|
+
}
|
1883
|
+
/**
|
1884
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1885
|
+
*
|
1886
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1887
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1888
|
+
* @returns {string} A string representing the collection.
|
1889
|
+
*/
|
1890
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1891
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1892
|
+
}
|
1893
|
+
/**
|
1894
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1895
|
+
*
|
1896
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1897
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1898
|
+
* @returns {string} A string representing the engine.
|
1899
|
+
*/
|
1900
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1901
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1902
|
+
}
|
1903
|
+
/**
|
1904
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1905
|
+
*
|
1906
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1907
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1908
|
+
* @returns {string} A string representing the serving_config.
|
1909
|
+
*/
|
1910
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1911
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1912
|
+
}
|
1823
1913
|
/**
|
1824
1914
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1825
1915
|
*
|
@@ -2438,6 +2528,63 @@ class SearchTuningServiceClient {
|
|
2438
2528
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2439
2529
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2440
2530
|
}
|
2531
|
+
/**
|
2532
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2533
|
+
*
|
2534
|
+
* @param {string} project
|
2535
|
+
* @param {string} location
|
2536
|
+
* @param {string} data_store
|
2537
|
+
* @param {string} serving_config
|
2538
|
+
* @returns {string} Resource name string.
|
2539
|
+
*/
|
2540
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2541
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2542
|
+
project: project,
|
2543
|
+
location: location,
|
2544
|
+
data_store: dataStore,
|
2545
|
+
serving_config: servingConfig,
|
2546
|
+
});
|
2547
|
+
}
|
2548
|
+
/**
|
2549
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2550
|
+
*
|
2551
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2552
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2553
|
+
* @returns {string} A string representing the project.
|
2554
|
+
*/
|
2555
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2556
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2557
|
+
}
|
2558
|
+
/**
|
2559
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2560
|
+
*
|
2561
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2562
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2563
|
+
* @returns {string} A string representing the location.
|
2564
|
+
*/
|
2565
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2566
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2567
|
+
}
|
2568
|
+
/**
|
2569
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2570
|
+
*
|
2571
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2572
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2573
|
+
* @returns {string} A string representing the data_store.
|
2574
|
+
*/
|
2575
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2576
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2577
|
+
}
|
2578
|
+
/**
|
2579
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2580
|
+
*
|
2581
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2582
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2583
|
+
* @returns {string} A string representing the serving_config.
|
2584
|
+
*/
|
2585
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2586
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2587
|
+
}
|
2441
2588
|
/**
|
2442
2589
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2443
2590
|
*
|
@@ -2609,6 +2756,63 @@ class SearchTuningServiceClient {
|
|
2609
2756
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2610
2757
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2611
2758
|
}
|
2759
|
+
/**
|
2760
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2761
|
+
*
|
2762
|
+
* @param {string} project
|
2763
|
+
* @param {string} location
|
2764
|
+
* @param {string} data_store
|
2765
|
+
* @param {string} sitemap
|
2766
|
+
* @returns {string} Resource name string.
|
2767
|
+
*/
|
2768
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2769
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2770
|
+
project: project,
|
2771
|
+
location: location,
|
2772
|
+
data_store: dataStore,
|
2773
|
+
sitemap: sitemap,
|
2774
|
+
});
|
2775
|
+
}
|
2776
|
+
/**
|
2777
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2778
|
+
*
|
2779
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2780
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2781
|
+
* @returns {string} A string representing the project.
|
2782
|
+
*/
|
2783
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2784
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2785
|
+
}
|
2786
|
+
/**
|
2787
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2788
|
+
*
|
2789
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2790
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2791
|
+
* @returns {string} A string representing the location.
|
2792
|
+
*/
|
2793
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2794
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2795
|
+
}
|
2796
|
+
/**
|
2797
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2798
|
+
*
|
2799
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2800
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2801
|
+
* @returns {string} A string representing the data_store.
|
2802
|
+
*/
|
2803
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2804
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2805
|
+
}
|
2806
|
+
/**
|
2807
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2808
|
+
*
|
2809
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2810
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2811
|
+
* @returns {string} A string representing the sitemap.
|
2812
|
+
*/
|
2813
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2814
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2815
|
+
}
|
2612
2816
|
/**
|
2613
2817
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2614
2818
|
*
|
@@ -2678,8 +2882,8 @@ class SearchTuningServiceClient {
|
|
2678
2882
|
this._log.info('ending gRPC channel');
|
2679
2883
|
this._terminated = true;
|
2680
2884
|
stub.close();
|
2681
|
-
this.locationsClient.close();
|
2682
|
-
this.operationsClient.close();
|
2885
|
+
this.locationsClient.close().catch(err => { throw err; });
|
2886
|
+
void this.operationsClient.close();
|
2683
2887
|
});
|
2684
2888
|
}
|
2685
2889
|
return Promise.resolve();
|