@google-cloud/discoveryengine 3.0.0 → 3.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/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/assistant_service.proto +19 -0
- package/build/protos/protos.d.ts +406 -0
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +64 -0
- package/build/src/v1/assistant_service_client.d.ts +2 -0
- package/build/src/v1/assistant_service_client.js +6 -4
- package/build/src/v1/cmek_config_service_client.js +9 -13
- package/build/src/v1/completion_service_client.js +10 -14
- package/build/src/v1/control_service_client.js +10 -10
- package/build/src/v1/conversational_search_service_client.js +21 -21
- package/build/src/v1/data_store_service_client.js +12 -16
- package/build/src/v1/document_service_client.js +15 -19
- package/build/src/v1/engine_service_client.js +12 -16
- package/build/src/v1/grounded_generation_service_client.js +6 -6
- package/build/src/v1/identity_mapping_store_service_client.js +16 -20
- package/build/src/v1/project_service_client.js +6 -10
- package/build/src/v1/rank_service_client.js +4 -4
- package/build/src/v1/recommendation_service_client.js +4 -4
- package/build/src/v1/schema_service_client.js +12 -16
- package/build/src/v1/search_service_client.js +9 -9
- package/build/src/v1/search_tuning_service_client.js +7 -11
- package/build/src/v1/serving_config_service_client.js +4 -4
- package/build/src/v1/session_service_client.js +10 -10
- package/build/src/v1/site_search_engine_service_client.js +24 -28
- package/build/src/v1/user_event_service_client.js +9 -13
- package/build/src/v1/user_license_service_client.js +9 -13
- package/build/src/v1alpha/acl_config_service_client.js +5 -5
- package/build/src/v1alpha/chunk_service_client.js +7 -7
- package/build/src/v1alpha/completion_service_client.js +8 -8
- package/build/src/v1alpha/control_service_client.js +10 -10
- package/build/src/v1alpha/conversational_search_service_client.js +20 -20
- package/build/src/v1alpha/data_store_service_client.js +12 -12
- package/build/src/v1alpha/document_service_client.js +14 -14
- package/build/src/v1alpha/engine_service_client.js +13 -13
- package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
- package/build/src/v1alpha/evaluation_service_client.js +11 -11
- package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
- package/build/src/v1alpha/project_service_client.js +6 -6
- package/build/src/v1alpha/rank_service_client.js +4 -4
- package/build/src/v1alpha/recommendation_service_client.js +4 -4
- package/build/src/v1alpha/sample_query_service_client.js +11 -11
- package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
- package/build/src/v1alpha/schema_service_client.js +10 -10
- package/build/src/v1alpha/search_service_client.js +6 -6
- package/build/src/v1alpha/search_tuning_service_client.js +5 -5
- package/build/src/v1alpha/serving_config_service_client.js +8 -8
- package/build/src/v1alpha/session_service_client.js +13 -13
- package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
- package/build/src/v1alpha/user_event_service_client.js +7 -7
- package/build/src/v1beta/acl_config_service_client.js +5 -5
- package/build/src/v1beta/assistant_service_client.d.ts +2 -0
- package/build/src/v1beta/assistant_service_client.js +13 -11
- package/build/src/v1beta/cmek_config_service_client.js +7 -7
- package/build/src/v1beta/completion_service_client.js +10 -10
- package/build/src/v1beta/control_service_client.js +10 -10
- package/build/src/v1beta/conversational_search_service_client.js +21 -21
- package/build/src/v1beta/data_store_service_client.js +10 -10
- package/build/src/v1beta/document_service_client.js +13 -13
- package/build/src/v1beta/engine_service_client.js +15 -15
- package/build/src/v1beta/evaluation_service_client.js +11 -11
- package/build/src/v1beta/grounded_generation_service_client.js +6 -6
- package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
- package/build/src/v1beta/license_config_service_client.js +11 -11
- package/build/src/v1beta/project_service_client.js +4 -4
- package/build/src/v1beta/rank_service_client.js +4 -4
- package/build/src/v1beta/recommendation_service_client.js +4 -4
- package/build/src/v1beta/sample_query_service_client.js +11 -11
- package/build/src/v1beta/sample_query_set_service_client.js +10 -10
- package/build/src/v1beta/schema_service_client.js +10 -10
- package/build/src/v1beta/search_service_client.js +9 -9
- package/build/src/v1beta/search_tuning_service_client.js +5 -5
- package/build/src/v1beta/serving_config_service_client.js +10 -10
- package/build/src/v1beta/session_service_client.js +10 -10
- package/build/src/v1beta/site_search_engine_service_client.js +22 -22
- package/build/src/v1beta/user_event_service_client.js +7 -7
- package/build/src/v1beta/user_license_service_client.js +8 -8
- package/build/src/v1beta/user_store_service_client.js +5 -5
- package/package.json +1 -1
|
@@ -321,18 +321,14 @@ class SchemaServiceClient {
|
|
|
321
321
|
{
|
|
322
322
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
323
323
|
},
|
|
324
|
-
{
|
|
325
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
326
|
-
},
|
|
324
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
327
325
|
{
|
|
328
326
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
329
327
|
},
|
|
330
328
|
{
|
|
331
329
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
332
330
|
},
|
|
333
|
-
{
|
|
334
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
335
|
-
},
|
|
331
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
336
332
|
{
|
|
337
333
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
338
334
|
},
|
|
@@ -397,7 +393,7 @@ class SchemaServiceClient {
|
|
|
397
393
|
'deleteSchema',
|
|
398
394
|
];
|
|
399
395
|
for (const methodName of schemaServiceStubMethods) {
|
|
400
|
-
const callPromise = this.schemaServiceStub.then(
|
|
396
|
+
const callPromise = this.schemaServiceStub.then(stub => (...args) => {
|
|
401
397
|
if (this._terminated) {
|
|
402
398
|
return Promise.reject('The client has already been closed.');
|
|
403
399
|
}
|
|
@@ -491,7 +487,7 @@ class SchemaServiceClient {
|
|
|
491
487
|
this._gaxModule.routingHeader.fromParams({
|
|
492
488
|
name: request.name ?? '',
|
|
493
489
|
});
|
|
494
|
-
this.initialize().catch(
|
|
490
|
+
this.initialize().catch(err => {
|
|
495
491
|
throw err;
|
|
496
492
|
});
|
|
497
493
|
this._log.info('getSchema request %j', request);
|
|
@@ -534,7 +530,7 @@ class SchemaServiceClient {
|
|
|
534
530
|
this._gaxModule.routingHeader.fromParams({
|
|
535
531
|
parent: request.parent ?? '',
|
|
536
532
|
});
|
|
537
|
-
this.initialize().catch(
|
|
533
|
+
this.initialize().catch(err => {
|
|
538
534
|
throw err;
|
|
539
535
|
});
|
|
540
536
|
const wrappedCallback = callback
|
|
@@ -586,7 +582,7 @@ class SchemaServiceClient {
|
|
|
586
582
|
this._gaxModule.routingHeader.fromParams({
|
|
587
583
|
'schema.name': request.schema.name ?? '',
|
|
588
584
|
});
|
|
589
|
-
this.initialize().catch(
|
|
585
|
+
this.initialize().catch(err => {
|
|
590
586
|
throw err;
|
|
591
587
|
});
|
|
592
588
|
const wrappedCallback = callback
|
|
@@ -638,7 +634,7 @@ class SchemaServiceClient {
|
|
|
638
634
|
this._gaxModule.routingHeader.fromParams({
|
|
639
635
|
name: request.name ?? '',
|
|
640
636
|
});
|
|
641
|
-
this.initialize().catch(
|
|
637
|
+
this.initialize().catch(err => {
|
|
642
638
|
throw err;
|
|
643
639
|
});
|
|
644
640
|
const wrappedCallback = callback
|
|
@@ -690,7 +686,7 @@ class SchemaServiceClient {
|
|
|
690
686
|
this._gaxModule.routingHeader.fromParams({
|
|
691
687
|
parent: request.parent ?? '',
|
|
692
688
|
});
|
|
693
|
-
this.initialize().catch(
|
|
689
|
+
this.initialize().catch(err => {
|
|
694
690
|
throw err;
|
|
695
691
|
});
|
|
696
692
|
const wrappedCallback = callback
|
|
@@ -752,7 +748,7 @@ class SchemaServiceClient {
|
|
|
752
748
|
});
|
|
753
749
|
const defaultCallSettings = this._defaults['listSchemas'];
|
|
754
750
|
const callSettings = defaultCallSettings.merge(options);
|
|
755
|
-
this.initialize().catch(
|
|
751
|
+
this.initialize().catch(err => {
|
|
756
752
|
throw err;
|
|
757
753
|
});
|
|
758
754
|
this._log.info('listSchemas stream %j', request);
|
|
@@ -806,7 +802,7 @@ class SchemaServiceClient {
|
|
|
806
802
|
});
|
|
807
803
|
const defaultCallSettings = this._defaults['listSchemas'];
|
|
808
804
|
const callSettings = defaultCallSettings.merge(options);
|
|
809
|
-
this.initialize().catch(
|
|
805
|
+
this.initialize().catch(err => {
|
|
810
806
|
throw err;
|
|
811
807
|
});
|
|
812
808
|
this._log.info('listSchemas iterate %j', request);
|
|
@@ -3564,11 +3560,11 @@ class SchemaServiceClient {
|
|
|
3564
3560
|
*/
|
|
3565
3561
|
close() {
|
|
3566
3562
|
if (this.schemaServiceStub && !this._terminated) {
|
|
3567
|
-
return this.schemaServiceStub.then(
|
|
3563
|
+
return this.schemaServiceStub.then(stub => {
|
|
3568
3564
|
this._log.info('ending gRPC channel');
|
|
3569
3565
|
this._terminated = true;
|
|
3570
3566
|
stub.close();
|
|
3571
|
-
this.locationsClient.close().catch(
|
|
3567
|
+
this.locationsClient.close().catch(err => {
|
|
3572
3568
|
throw err;
|
|
3573
3569
|
});
|
|
3574
3570
|
void this.operationsClient.close();
|
|
@@ -253,7 +253,7 @@ class SearchServiceClient {
|
|
|
253
253
|
// and create an API call method for each.
|
|
254
254
|
const searchServiceStubMethods = ['search', 'searchLite'];
|
|
255
255
|
for (const methodName of searchServiceStubMethods) {
|
|
256
|
-
const callPromise = this.searchServiceStub.then(
|
|
256
|
+
const callPromise = this.searchServiceStub.then(stub => (...args) => {
|
|
257
257
|
if (this._terminated) {
|
|
258
258
|
return Promise.reject('The client has already been closed.');
|
|
259
259
|
}
|
|
@@ -345,7 +345,7 @@ class SearchServiceClient {
|
|
|
345
345
|
this._gaxModule.routingHeader.fromParams({
|
|
346
346
|
serving_config: request.servingConfig ?? '',
|
|
347
347
|
});
|
|
348
|
-
this.initialize().catch(
|
|
348
|
+
this.initialize().catch(err => {
|
|
349
349
|
throw err;
|
|
350
350
|
});
|
|
351
351
|
const wrappedCallback = callback
|
|
@@ -750,7 +750,7 @@ class SearchServiceClient {
|
|
|
750
750
|
});
|
|
751
751
|
const defaultCallSettings = this._defaults['search'];
|
|
752
752
|
const callSettings = defaultCallSettings.merge(options);
|
|
753
|
-
this.initialize().catch(
|
|
753
|
+
this.initialize().catch(err => {
|
|
754
754
|
throw err;
|
|
755
755
|
});
|
|
756
756
|
this._log.info('search stream %j', request);
|
|
@@ -1147,7 +1147,7 @@ class SearchServiceClient {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
const defaultCallSettings = this._defaults['search'];
|
|
1149
1149
|
const callSettings = defaultCallSettings.merge(options);
|
|
1150
|
-
this.initialize().catch(
|
|
1150
|
+
this.initialize().catch(err => {
|
|
1151
1151
|
throw err;
|
|
1152
1152
|
});
|
|
1153
1153
|
this._log.info('search iterate %j', request);
|
|
@@ -1170,7 +1170,7 @@ class SearchServiceClient {
|
|
|
1170
1170
|
this._gaxModule.routingHeader.fromParams({
|
|
1171
1171
|
serving_config: request.servingConfig ?? '',
|
|
1172
1172
|
});
|
|
1173
|
-
this.initialize().catch(
|
|
1173
|
+
this.initialize().catch(err => {
|
|
1174
1174
|
throw err;
|
|
1175
1175
|
});
|
|
1176
1176
|
const wrappedCallback = callback
|
|
@@ -1575,7 +1575,7 @@ class SearchServiceClient {
|
|
|
1575
1575
|
});
|
|
1576
1576
|
const defaultCallSettings = this._defaults['searchLite'];
|
|
1577
1577
|
const callSettings = defaultCallSettings.merge(options);
|
|
1578
|
-
this.initialize().catch(
|
|
1578
|
+
this.initialize().catch(err => {
|
|
1579
1579
|
throw err;
|
|
1580
1580
|
});
|
|
1581
1581
|
this._log.info('searchLite stream %j', request);
|
|
@@ -1972,7 +1972,7 @@ class SearchServiceClient {
|
|
|
1972
1972
|
});
|
|
1973
1973
|
const defaultCallSettings = this._defaults['searchLite'];
|
|
1974
1974
|
const callSettings = defaultCallSettings.merge(options);
|
|
1975
|
-
this.initialize().catch(
|
|
1975
|
+
this.initialize().catch(err => {
|
|
1976
1976
|
throw err;
|
|
1977
1977
|
});
|
|
1978
1978
|
this._log.info('searchLite iterate %j', request);
|
|
@@ -4676,11 +4676,11 @@ class SearchServiceClient {
|
|
|
4676
4676
|
*/
|
|
4677
4677
|
close() {
|
|
4678
4678
|
if (this.searchServiceStub && !this._terminated) {
|
|
4679
|
-
return this.searchServiceStub.then(
|
|
4679
|
+
return this.searchServiceStub.then(stub => {
|
|
4680
4680
|
this._log.info('ending gRPC channel');
|
|
4681
4681
|
this._terminated = true;
|
|
4682
4682
|
stub.close();
|
|
4683
|
-
this.locationsClient.close().catch(
|
|
4683
|
+
this.locationsClient.close().catch(err => {
|
|
4684
4684
|
throw err;
|
|
4685
4685
|
});
|
|
4686
4686
|
});
|
|
@@ -315,18 +315,14 @@ class SearchTuningServiceClient {
|
|
|
315
315
|
{
|
|
316
316
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
317
317
|
},
|
|
318
|
-
{
|
|
319
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
320
|
-
},
|
|
318
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
321
319
|
{
|
|
322
320
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
323
321
|
},
|
|
324
322
|
{
|
|
325
323
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
326
324
|
},
|
|
327
|
-
{
|
|
328
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
329
|
-
},
|
|
325
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
330
326
|
{
|
|
331
327
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
332
328
|
},
|
|
@@ -383,7 +379,7 @@ class SearchTuningServiceClient {
|
|
|
383
379
|
'listCustomModels',
|
|
384
380
|
];
|
|
385
381
|
for (const methodName of searchTuningServiceStubMethods) {
|
|
386
|
-
const callPromise = this.searchTuningServiceStub.then(
|
|
382
|
+
const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
|
|
387
383
|
if (this._terminated) {
|
|
388
384
|
return Promise.reject('The client has already been closed.');
|
|
389
385
|
}
|
|
@@ -475,7 +471,7 @@ class SearchTuningServiceClient {
|
|
|
475
471
|
this._gaxModule.routingHeader.fromParams({
|
|
476
472
|
data_store: request.dataStore ?? '',
|
|
477
473
|
});
|
|
478
|
-
this.initialize().catch(
|
|
474
|
+
this.initialize().catch(err => {
|
|
479
475
|
throw err;
|
|
480
476
|
});
|
|
481
477
|
this._log.info('listCustomModels request %j', request);
|
|
@@ -518,7 +514,7 @@ class SearchTuningServiceClient {
|
|
|
518
514
|
this._gaxModule.routingHeader.fromParams({
|
|
519
515
|
data_store: request.dataStore ?? '',
|
|
520
516
|
});
|
|
521
|
-
this.initialize().catch(
|
|
517
|
+
this.initialize().catch(err => {
|
|
522
518
|
throw err;
|
|
523
519
|
});
|
|
524
520
|
const wrappedCallback = callback
|
|
@@ -3305,11 +3301,11 @@ class SearchTuningServiceClient {
|
|
|
3305
3301
|
*/
|
|
3306
3302
|
close() {
|
|
3307
3303
|
if (this.searchTuningServiceStub && !this._terminated) {
|
|
3308
|
-
return this.searchTuningServiceStub.then(
|
|
3304
|
+
return this.searchTuningServiceStub.then(stub => {
|
|
3309
3305
|
this._log.info('ending gRPC channel');
|
|
3310
3306
|
this._terminated = true;
|
|
3311
3307
|
stub.close();
|
|
3312
|
-
this.locationsClient.close().catch(
|
|
3308
|
+
this.locationsClient.close().catch(err => {
|
|
3313
3309
|
throw err;
|
|
3314
3310
|
});
|
|
3315
3311
|
void this.operationsClient.close();
|
|
@@ -246,7 +246,7 @@ class ServingConfigServiceClient {
|
|
|
246
246
|
// and create an API call method for each.
|
|
247
247
|
const servingConfigServiceStubMethods = ['updateServingConfig'];
|
|
248
248
|
for (const methodName of servingConfigServiceStubMethods) {
|
|
249
|
-
const callPromise = this.servingConfigServiceStub.then(
|
|
249
|
+
const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
|
|
250
250
|
if (this._terminated) {
|
|
251
251
|
return Promise.reject('The client has already been closed.');
|
|
252
252
|
}
|
|
@@ -338,7 +338,7 @@ class ServingConfigServiceClient {
|
|
|
338
338
|
this._gaxModule.routingHeader.fromParams({
|
|
339
339
|
'serving_config.name': request.servingConfig.name ?? '',
|
|
340
340
|
});
|
|
341
|
-
this.initialize().catch(
|
|
341
|
+
this.initialize().catch(err => {
|
|
342
342
|
throw err;
|
|
343
343
|
});
|
|
344
344
|
this._log.info('updateServingConfig request %j', request);
|
|
@@ -2936,11 +2936,11 @@ class ServingConfigServiceClient {
|
|
|
2936
2936
|
*/
|
|
2937
2937
|
close() {
|
|
2938
2938
|
if (this.servingConfigServiceStub && !this._terminated) {
|
|
2939
|
-
return this.servingConfigServiceStub.then(
|
|
2939
|
+
return this.servingConfigServiceStub.then(stub => {
|
|
2940
2940
|
this._log.info('ending gRPC channel');
|
|
2941
2941
|
this._terminated = true;
|
|
2942
2942
|
stub.close();
|
|
2943
|
-
this.locationsClient.close().catch(
|
|
2943
|
+
this.locationsClient.close().catch(err => {
|
|
2944
2944
|
throw err;
|
|
2945
2945
|
});
|
|
2946
2946
|
});
|
|
@@ -256,7 +256,7 @@ class SessionServiceClient {
|
|
|
256
256
|
'listSessions',
|
|
257
257
|
];
|
|
258
258
|
for (const methodName of sessionServiceStubMethods) {
|
|
259
|
-
const callPromise = this.sessionServiceStub.then(
|
|
259
|
+
const callPromise = this.sessionServiceStub.then(stub => (...args) => {
|
|
260
260
|
if (this._terminated) {
|
|
261
261
|
return Promise.reject('The client has already been closed.');
|
|
262
262
|
}
|
|
@@ -348,7 +348,7 @@ class SessionServiceClient {
|
|
|
348
348
|
this._gaxModule.routingHeader.fromParams({
|
|
349
349
|
parent: request.parent ?? '',
|
|
350
350
|
});
|
|
351
|
-
this.initialize().catch(
|
|
351
|
+
this.initialize().catch(err => {
|
|
352
352
|
throw err;
|
|
353
353
|
});
|
|
354
354
|
this._log.info('createSession request %j', request);
|
|
@@ -391,7 +391,7 @@ class SessionServiceClient {
|
|
|
391
391
|
this._gaxModule.routingHeader.fromParams({
|
|
392
392
|
name: request.name ?? '',
|
|
393
393
|
});
|
|
394
|
-
this.initialize().catch(
|
|
394
|
+
this.initialize().catch(err => {
|
|
395
395
|
throw err;
|
|
396
396
|
});
|
|
397
397
|
this._log.info('deleteSession request %j', request);
|
|
@@ -434,7 +434,7 @@ class SessionServiceClient {
|
|
|
434
434
|
this._gaxModule.routingHeader.fromParams({
|
|
435
435
|
'session.name': request.session.name ?? '',
|
|
436
436
|
});
|
|
437
|
-
this.initialize().catch(
|
|
437
|
+
this.initialize().catch(err => {
|
|
438
438
|
throw err;
|
|
439
439
|
});
|
|
440
440
|
this._log.info('updateSession request %j', request);
|
|
@@ -477,7 +477,7 @@ class SessionServiceClient {
|
|
|
477
477
|
this._gaxModule.routingHeader.fromParams({
|
|
478
478
|
name: request.name ?? '',
|
|
479
479
|
});
|
|
480
|
-
this.initialize().catch(
|
|
480
|
+
this.initialize().catch(err => {
|
|
481
481
|
throw err;
|
|
482
482
|
});
|
|
483
483
|
this._log.info('getSession request %j', request);
|
|
@@ -520,7 +520,7 @@ class SessionServiceClient {
|
|
|
520
520
|
this._gaxModule.routingHeader.fromParams({
|
|
521
521
|
parent: request.parent ?? '',
|
|
522
522
|
});
|
|
523
|
-
this.initialize().catch(
|
|
523
|
+
this.initialize().catch(err => {
|
|
524
524
|
throw err;
|
|
525
525
|
});
|
|
526
526
|
const wrappedCallback = callback
|
|
@@ -606,7 +606,7 @@ class SessionServiceClient {
|
|
|
606
606
|
});
|
|
607
607
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
608
608
|
const callSettings = defaultCallSettings.merge(options);
|
|
609
|
-
this.initialize().catch(
|
|
609
|
+
this.initialize().catch(err => {
|
|
610
610
|
throw err;
|
|
611
611
|
});
|
|
612
612
|
this._log.info('listSessions stream %j', request);
|
|
@@ -684,7 +684,7 @@ class SessionServiceClient {
|
|
|
684
684
|
});
|
|
685
685
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
686
686
|
const callSettings = defaultCallSettings.merge(options);
|
|
687
|
-
this.initialize().catch(
|
|
687
|
+
this.initialize().catch(err => {
|
|
688
688
|
throw err;
|
|
689
689
|
});
|
|
690
690
|
this._log.info('listSessions iterate %j', request);
|
|
@@ -3262,11 +3262,11 @@ class SessionServiceClient {
|
|
|
3262
3262
|
*/
|
|
3263
3263
|
close() {
|
|
3264
3264
|
if (this.sessionServiceStub && !this._terminated) {
|
|
3265
|
-
return this.sessionServiceStub.then(
|
|
3265
|
+
return this.sessionServiceStub.then(stub => {
|
|
3266
3266
|
this._log.info('ending gRPC channel');
|
|
3267
3267
|
this._terminated = true;
|
|
3268
3268
|
stub.close();
|
|
3269
|
-
this.locationsClient.close().catch(
|
|
3269
|
+
this.locationsClient.close().catch(err => {
|
|
3270
3270
|
throw err;
|
|
3271
3271
|
});
|
|
3272
3272
|
});
|
|
@@ -323,18 +323,14 @@ class SiteSearchEngineServiceClient {
|
|
|
323
323
|
{
|
|
324
324
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
325
325
|
},
|
|
326
|
-
{
|
|
327
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
328
|
-
},
|
|
326
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
329
327
|
{
|
|
330
328
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
331
329
|
},
|
|
332
330
|
{
|
|
333
331
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
334
332
|
},
|
|
335
|
-
{
|
|
336
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
337
|
-
},
|
|
333
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
338
334
|
{
|
|
339
335
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
340
336
|
},
|
|
@@ -431,7 +427,7 @@ class SiteSearchEngineServiceClient {
|
|
|
431
427
|
'fetchDomainVerificationStatus',
|
|
432
428
|
];
|
|
433
429
|
for (const methodName of siteSearchEngineServiceStubMethods) {
|
|
434
|
-
const callPromise = this.siteSearchEngineServiceStub.then(
|
|
430
|
+
const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
|
|
435
431
|
if (this._terminated) {
|
|
436
432
|
return Promise.reject('The client has already been closed.');
|
|
437
433
|
}
|
|
@@ -525,7 +521,7 @@ class SiteSearchEngineServiceClient {
|
|
|
525
521
|
this._gaxModule.routingHeader.fromParams({
|
|
526
522
|
name: request.name ?? '',
|
|
527
523
|
});
|
|
528
|
-
this.initialize().catch(
|
|
524
|
+
this.initialize().catch(err => {
|
|
529
525
|
throw err;
|
|
530
526
|
});
|
|
531
527
|
this._log.info('getSiteSearchEngine request %j', request);
|
|
@@ -568,7 +564,7 @@ class SiteSearchEngineServiceClient {
|
|
|
568
564
|
this._gaxModule.routingHeader.fromParams({
|
|
569
565
|
name: request.name ?? '',
|
|
570
566
|
});
|
|
571
|
-
this.initialize().catch(
|
|
567
|
+
this.initialize().catch(err => {
|
|
572
568
|
throw err;
|
|
573
569
|
});
|
|
574
570
|
this._log.info('getTargetSite request %j', request);
|
|
@@ -611,7 +607,7 @@ class SiteSearchEngineServiceClient {
|
|
|
611
607
|
this._gaxModule.routingHeader.fromParams({
|
|
612
608
|
parent: request.parent ?? '',
|
|
613
609
|
});
|
|
614
|
-
this.initialize().catch(
|
|
610
|
+
this.initialize().catch(err => {
|
|
615
611
|
throw err;
|
|
616
612
|
});
|
|
617
613
|
this._log.info('fetchSitemaps request %j', request);
|
|
@@ -654,7 +650,7 @@ class SiteSearchEngineServiceClient {
|
|
|
654
650
|
this._gaxModule.routingHeader.fromParams({
|
|
655
651
|
parent: request.parent ?? '',
|
|
656
652
|
});
|
|
657
|
-
this.initialize().catch(
|
|
653
|
+
this.initialize().catch(err => {
|
|
658
654
|
throw err;
|
|
659
655
|
});
|
|
660
656
|
const wrappedCallback = callback
|
|
@@ -706,7 +702,7 @@ class SiteSearchEngineServiceClient {
|
|
|
706
702
|
this._gaxModule.routingHeader.fromParams({
|
|
707
703
|
parent: request.parent ?? '',
|
|
708
704
|
});
|
|
709
|
-
this.initialize().catch(
|
|
705
|
+
this.initialize().catch(err => {
|
|
710
706
|
throw err;
|
|
711
707
|
});
|
|
712
708
|
const wrappedCallback = callback
|
|
@@ -758,7 +754,7 @@ class SiteSearchEngineServiceClient {
|
|
|
758
754
|
this._gaxModule.routingHeader.fromParams({
|
|
759
755
|
'target_site.name': request.targetSite.name ?? '',
|
|
760
756
|
});
|
|
761
|
-
this.initialize().catch(
|
|
757
|
+
this.initialize().catch(err => {
|
|
762
758
|
throw err;
|
|
763
759
|
});
|
|
764
760
|
const wrappedCallback = callback
|
|
@@ -810,7 +806,7 @@ class SiteSearchEngineServiceClient {
|
|
|
810
806
|
this._gaxModule.routingHeader.fromParams({
|
|
811
807
|
name: request.name ?? '',
|
|
812
808
|
});
|
|
813
|
-
this.initialize().catch(
|
|
809
|
+
this.initialize().catch(err => {
|
|
814
810
|
throw err;
|
|
815
811
|
});
|
|
816
812
|
const wrappedCallback = callback
|
|
@@ -862,7 +858,7 @@ class SiteSearchEngineServiceClient {
|
|
|
862
858
|
this._gaxModule.routingHeader.fromParams({
|
|
863
859
|
parent: request.parent ?? '',
|
|
864
860
|
});
|
|
865
|
-
this.initialize().catch(
|
|
861
|
+
this.initialize().catch(err => {
|
|
866
862
|
throw err;
|
|
867
863
|
});
|
|
868
864
|
const wrappedCallback = callback
|
|
@@ -914,7 +910,7 @@ class SiteSearchEngineServiceClient {
|
|
|
914
910
|
this._gaxModule.routingHeader.fromParams({
|
|
915
911
|
name: request.name ?? '',
|
|
916
912
|
});
|
|
917
|
-
this.initialize().catch(
|
|
913
|
+
this.initialize().catch(err => {
|
|
918
914
|
throw err;
|
|
919
915
|
});
|
|
920
916
|
const wrappedCallback = callback
|
|
@@ -966,7 +962,7 @@ class SiteSearchEngineServiceClient {
|
|
|
966
962
|
this._gaxModule.routingHeader.fromParams({
|
|
967
963
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
968
964
|
});
|
|
969
|
-
this.initialize().catch(
|
|
965
|
+
this.initialize().catch(err => {
|
|
970
966
|
throw err;
|
|
971
967
|
});
|
|
972
968
|
const wrappedCallback = callback
|
|
@@ -1018,7 +1014,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1018
1014
|
this._gaxModule.routingHeader.fromParams({
|
|
1019
1015
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1020
1016
|
});
|
|
1021
|
-
this.initialize().catch(
|
|
1017
|
+
this.initialize().catch(err => {
|
|
1022
1018
|
throw err;
|
|
1023
1019
|
});
|
|
1024
1020
|
const wrappedCallback = callback
|
|
@@ -1070,7 +1066,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1070
1066
|
this._gaxModule.routingHeader.fromParams({
|
|
1071
1067
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1072
1068
|
});
|
|
1073
|
-
this.initialize().catch(
|
|
1069
|
+
this.initialize().catch(err => {
|
|
1074
1070
|
throw err;
|
|
1075
1071
|
});
|
|
1076
1072
|
const wrappedCallback = callback
|
|
@@ -1122,7 +1118,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1122
1118
|
this._gaxModule.routingHeader.fromParams({
|
|
1123
1119
|
parent: request.parent ?? '',
|
|
1124
1120
|
});
|
|
1125
|
-
this.initialize().catch(
|
|
1121
|
+
this.initialize().catch(err => {
|
|
1126
1122
|
throw err;
|
|
1127
1123
|
});
|
|
1128
1124
|
const wrappedCallback = callback
|
|
@@ -1174,7 +1170,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1174
1170
|
this._gaxModule.routingHeader.fromParams({
|
|
1175
1171
|
parent: request.parent ?? '',
|
|
1176
1172
|
});
|
|
1177
|
-
this.initialize().catch(
|
|
1173
|
+
this.initialize().catch(err => {
|
|
1178
1174
|
throw err;
|
|
1179
1175
|
});
|
|
1180
1176
|
const wrappedCallback = callback
|
|
@@ -1237,7 +1233,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1237
1233
|
});
|
|
1238
1234
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1239
1235
|
const callSettings = defaultCallSettings.merge(options);
|
|
1240
|
-
this.initialize().catch(
|
|
1236
|
+
this.initialize().catch(err => {
|
|
1241
1237
|
throw err;
|
|
1242
1238
|
});
|
|
1243
1239
|
this._log.info('listTargetSites stream %j', request);
|
|
@@ -1292,7 +1288,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1292
1288
|
});
|
|
1293
1289
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1294
1290
|
const callSettings = defaultCallSettings.merge(options);
|
|
1295
|
-
this.initialize().catch(
|
|
1291
|
+
this.initialize().catch(err => {
|
|
1296
1292
|
throw err;
|
|
1297
1293
|
});
|
|
1298
1294
|
this._log.info('listTargetSites iterate %j', request);
|
|
@@ -1315,7 +1311,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1315
1311
|
this._gaxModule.routingHeader.fromParams({
|
|
1316
1312
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1317
1313
|
});
|
|
1318
|
-
this.initialize().catch(
|
|
1314
|
+
this.initialize().catch(err => {
|
|
1319
1315
|
throw err;
|
|
1320
1316
|
});
|
|
1321
1317
|
const wrappedCallback = callback
|
|
@@ -1375,7 +1371,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1375
1371
|
});
|
|
1376
1372
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1377
1373
|
const callSettings = defaultCallSettings.merge(options);
|
|
1378
|
-
this.initialize().catch(
|
|
1374
|
+
this.initialize().catch(err => {
|
|
1379
1375
|
throw err;
|
|
1380
1376
|
});
|
|
1381
1377
|
this._log.info('fetchDomainVerificationStatus stream %j', request);
|
|
@@ -1427,7 +1423,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1427
1423
|
});
|
|
1428
1424
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1429
1425
|
const callSettings = defaultCallSettings.merge(options);
|
|
1430
|
-
this.initialize().catch(
|
|
1426
|
+
this.initialize().catch(err => {
|
|
1431
1427
|
throw err;
|
|
1432
1428
|
});
|
|
1433
1429
|
this._log.info('fetchDomainVerificationStatus iterate %j', request);
|
|
@@ -4185,11 +4181,11 @@ class SiteSearchEngineServiceClient {
|
|
|
4185
4181
|
*/
|
|
4186
4182
|
close() {
|
|
4187
4183
|
if (this.siteSearchEngineServiceStub && !this._terminated) {
|
|
4188
|
-
return this.siteSearchEngineServiceStub.then(
|
|
4184
|
+
return this.siteSearchEngineServiceStub.then(stub => {
|
|
4189
4185
|
this._log.info('ending gRPC channel');
|
|
4190
4186
|
this._terminated = true;
|
|
4191
4187
|
stub.close();
|
|
4192
|
-
this.locationsClient.close().catch(
|
|
4188
|
+
this.locationsClient.close().catch(err => {
|
|
4193
4189
|
throw err;
|
|
4194
4190
|
});
|
|
4195
4191
|
void this.operationsClient.close();
|
|
@@ -315,18 +315,14 @@ class UserEventServiceClient {
|
|
|
315
315
|
{
|
|
316
316
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
317
317
|
},
|
|
318
|
-
{
|
|
319
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
320
|
-
},
|
|
318
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
321
319
|
{
|
|
322
320
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
323
321
|
},
|
|
324
322
|
{
|
|
325
323
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
326
324
|
},
|
|
327
|
-
{
|
|
328
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
329
|
-
},
|
|
325
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
330
326
|
{
|
|
331
327
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
332
328
|
},
|
|
@@ -388,7 +384,7 @@ class UserEventServiceClient {
|
|
|
388
384
|
'importUserEvents',
|
|
389
385
|
];
|
|
390
386
|
for (const methodName of userEventServiceStubMethods) {
|
|
391
|
-
const callPromise = this.userEventServiceStub.then(
|
|
387
|
+
const callPromise = this.userEventServiceStub.then(stub => (...args) => {
|
|
392
388
|
if (this._terminated) {
|
|
393
389
|
return Promise.reject('The client has already been closed.');
|
|
394
390
|
}
|
|
@@ -480,7 +476,7 @@ class UserEventServiceClient {
|
|
|
480
476
|
this._gaxModule.routingHeader.fromParams({
|
|
481
477
|
parent: request.parent ?? '',
|
|
482
478
|
});
|
|
483
|
-
this.initialize().catch(
|
|
479
|
+
this.initialize().catch(err => {
|
|
484
480
|
throw err;
|
|
485
481
|
});
|
|
486
482
|
this._log.info('writeUserEvent request %j', request);
|
|
@@ -523,7 +519,7 @@ class UserEventServiceClient {
|
|
|
523
519
|
this._gaxModule.routingHeader.fromParams({
|
|
524
520
|
parent: request.parent ?? '',
|
|
525
521
|
});
|
|
526
|
-
this.initialize().catch(
|
|
522
|
+
this.initialize().catch(err => {
|
|
527
523
|
throw err;
|
|
528
524
|
});
|
|
529
525
|
this._log.info('collectUserEvent request %j', request);
|
|
@@ -566,7 +562,7 @@ class UserEventServiceClient {
|
|
|
566
562
|
this._gaxModule.routingHeader.fromParams({
|
|
567
563
|
parent: request.parent ?? '',
|
|
568
564
|
});
|
|
569
|
-
this.initialize().catch(
|
|
565
|
+
this.initialize().catch(err => {
|
|
570
566
|
throw err;
|
|
571
567
|
});
|
|
572
568
|
const wrappedCallback = callback
|
|
@@ -618,7 +614,7 @@ class UserEventServiceClient {
|
|
|
618
614
|
this._gaxModule.routingHeader.fromParams({
|
|
619
615
|
parent: request.parent ?? '',
|
|
620
616
|
});
|
|
621
|
-
this.initialize().catch(
|
|
617
|
+
this.initialize().catch(err => {
|
|
622
618
|
throw err;
|
|
623
619
|
});
|
|
624
620
|
const wrappedCallback = callback
|
|
@@ -3405,11 +3401,11 @@ class UserEventServiceClient {
|
|
|
3405
3401
|
*/
|
|
3406
3402
|
close() {
|
|
3407
3403
|
if (this.userEventServiceStub && !this._terminated) {
|
|
3408
|
-
return this.userEventServiceStub.then(
|
|
3404
|
+
return this.userEventServiceStub.then(stub => {
|
|
3409
3405
|
this._log.info('ending gRPC channel');
|
|
3410
3406
|
this._terminated = true;
|
|
3411
3407
|
stub.close();
|
|
3412
|
-
this.locationsClient.close().catch(
|
|
3408
|
+
this.locationsClient.close().catch(err => {
|
|
3413
3409
|
throw err;
|
|
3414
3410
|
});
|
|
3415
3411
|
void this.operationsClient.close();
|