@google-cloud/discoveryengine 3.1.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/src/v1/assistant_service_client.js +4 -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.js +11 -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
|
@@ -250,7 +250,7 @@ class ChunkServiceClient {
|
|
|
250
250
|
// and create an API call method for each.
|
|
251
251
|
const chunkServiceStubMethods = ['getChunk', 'listChunks'];
|
|
252
252
|
for (const methodName of chunkServiceStubMethods) {
|
|
253
|
-
const callPromise = this.chunkServiceStub.then(
|
|
253
|
+
const callPromise = this.chunkServiceStub.then(stub => (...args) => {
|
|
254
254
|
if (this._terminated) {
|
|
255
255
|
return Promise.reject('The client has already been closed.');
|
|
256
256
|
}
|
|
@@ -342,7 +342,7 @@ class ChunkServiceClient {
|
|
|
342
342
|
this._gaxModule.routingHeader.fromParams({
|
|
343
343
|
name: request.name ?? '',
|
|
344
344
|
});
|
|
345
|
-
this.initialize().catch(
|
|
345
|
+
this.initialize().catch(err => {
|
|
346
346
|
throw err;
|
|
347
347
|
});
|
|
348
348
|
this._log.info('getChunk request %j', request);
|
|
@@ -385,7 +385,7 @@ class ChunkServiceClient {
|
|
|
385
385
|
this._gaxModule.routingHeader.fromParams({
|
|
386
386
|
parent: request.parent ?? '',
|
|
387
387
|
});
|
|
388
|
-
this.initialize().catch(
|
|
388
|
+
this.initialize().catch(err => {
|
|
389
389
|
throw err;
|
|
390
390
|
});
|
|
391
391
|
const wrappedCallback = callback
|
|
@@ -453,7 +453,7 @@ class ChunkServiceClient {
|
|
|
453
453
|
});
|
|
454
454
|
const defaultCallSettings = this._defaults['listChunks'];
|
|
455
455
|
const callSettings = defaultCallSettings.merge(options);
|
|
456
|
-
this.initialize().catch(
|
|
456
|
+
this.initialize().catch(err => {
|
|
457
457
|
throw err;
|
|
458
458
|
});
|
|
459
459
|
this._log.info('listChunks stream %j', request);
|
|
@@ -513,7 +513,7 @@ class ChunkServiceClient {
|
|
|
513
513
|
});
|
|
514
514
|
const defaultCallSettings = this._defaults['listChunks'];
|
|
515
515
|
const callSettings = defaultCallSettings.merge(options);
|
|
516
|
-
this.initialize().catch(
|
|
516
|
+
this.initialize().catch(err => {
|
|
517
517
|
throw err;
|
|
518
518
|
});
|
|
519
519
|
this._log.info('listChunks iterate %j', request);
|
|
@@ -2871,11 +2871,11 @@ class ChunkServiceClient {
|
|
|
2871
2871
|
*/
|
|
2872
2872
|
close() {
|
|
2873
2873
|
if (this.chunkServiceStub && !this._terminated) {
|
|
2874
|
-
return this.chunkServiceStub.then(
|
|
2874
|
+
return this.chunkServiceStub.then(stub => {
|
|
2875
2875
|
this._log.info('ending gRPC channel');
|
|
2876
2876
|
this._terminated = true;
|
|
2877
2877
|
stub.close();
|
|
2878
|
-
this.locationsClient.close().catch(
|
|
2878
|
+
this.locationsClient.close().catch(err => {
|
|
2879
2879
|
throw err;
|
|
2880
2880
|
});
|
|
2881
2881
|
});
|
|
@@ -384,7 +384,7 @@ class CompletionServiceClient {
|
|
|
384
384
|
'purgeCompletionSuggestions',
|
|
385
385
|
];
|
|
386
386
|
for (const methodName of completionServiceStubMethods) {
|
|
387
|
-
const callPromise = this.completionServiceStub.then(
|
|
387
|
+
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
|
388
388
|
if (this._terminated) {
|
|
389
389
|
return Promise.reject('The client has already been closed.');
|
|
390
390
|
}
|
|
@@ -476,7 +476,7 @@ class CompletionServiceClient {
|
|
|
476
476
|
this._gaxModule.routingHeader.fromParams({
|
|
477
477
|
data_store: request.dataStore ?? '',
|
|
478
478
|
});
|
|
479
|
-
this.initialize().catch(
|
|
479
|
+
this.initialize().catch(err => {
|
|
480
480
|
throw err;
|
|
481
481
|
});
|
|
482
482
|
this._log.info('completeQuery request %j', request);
|
|
@@ -519,7 +519,7 @@ class CompletionServiceClient {
|
|
|
519
519
|
this._gaxModule.routingHeader.fromParams({
|
|
520
520
|
parent: request.parent ?? '',
|
|
521
521
|
});
|
|
522
|
-
this.initialize().catch(
|
|
522
|
+
this.initialize().catch(err => {
|
|
523
523
|
throw err;
|
|
524
524
|
});
|
|
525
525
|
const wrappedCallback = callback
|
|
@@ -571,7 +571,7 @@ class CompletionServiceClient {
|
|
|
571
571
|
this._gaxModule.routingHeader.fromParams({
|
|
572
572
|
parent: request.parent ?? '',
|
|
573
573
|
});
|
|
574
|
-
this.initialize().catch(
|
|
574
|
+
this.initialize().catch(err => {
|
|
575
575
|
throw err;
|
|
576
576
|
});
|
|
577
577
|
const wrappedCallback = callback
|
|
@@ -623,7 +623,7 @@ class CompletionServiceClient {
|
|
|
623
623
|
this._gaxModule.routingHeader.fromParams({
|
|
624
624
|
parent: request.parent ?? '',
|
|
625
625
|
});
|
|
626
|
-
this.initialize().catch(
|
|
626
|
+
this.initialize().catch(err => {
|
|
627
627
|
throw err;
|
|
628
628
|
});
|
|
629
629
|
const wrappedCallback = callback
|
|
@@ -675,7 +675,7 @@ class CompletionServiceClient {
|
|
|
675
675
|
this._gaxModule.routingHeader.fromParams({
|
|
676
676
|
parent: request.parent ?? '',
|
|
677
677
|
});
|
|
678
|
-
this.initialize().catch(
|
|
678
|
+
this.initialize().catch(err => {
|
|
679
679
|
throw err;
|
|
680
680
|
});
|
|
681
681
|
const wrappedCallback = callback
|
|
@@ -3242,11 +3242,11 @@ class CompletionServiceClient {
|
|
|
3242
3242
|
*/
|
|
3243
3243
|
close() {
|
|
3244
3244
|
if (this.completionServiceStub && !this._terminated) {
|
|
3245
|
-
return this.completionServiceStub.then(
|
|
3245
|
+
return this.completionServiceStub.then(stub => {
|
|
3246
3246
|
this._log.info('ending gRPC channel');
|
|
3247
3247
|
this._terminated = true;
|
|
3248
3248
|
stub.close();
|
|
3249
|
-
this.locationsClient.close().catch(
|
|
3249
|
+
this.locationsClient.close().catch(err => {
|
|
3250
3250
|
throw err;
|
|
3251
3251
|
});
|
|
3252
3252
|
void this.operationsClient.close();
|
|
@@ -258,7 +258,7 @@ class ControlServiceClient {
|
|
|
258
258
|
'listControls',
|
|
259
259
|
];
|
|
260
260
|
for (const methodName of controlServiceStubMethods) {
|
|
261
|
-
const callPromise = this.controlServiceStub.then(
|
|
261
|
+
const callPromise = this.controlServiceStub.then(stub => (...args) => {
|
|
262
262
|
if (this._terminated) {
|
|
263
263
|
return Promise.reject('The client has already been closed.');
|
|
264
264
|
}
|
|
@@ -350,7 +350,7 @@ class ControlServiceClient {
|
|
|
350
350
|
this._gaxModule.routingHeader.fromParams({
|
|
351
351
|
parent: request.parent ?? '',
|
|
352
352
|
});
|
|
353
|
-
this.initialize().catch(
|
|
353
|
+
this.initialize().catch(err => {
|
|
354
354
|
throw err;
|
|
355
355
|
});
|
|
356
356
|
this._log.info('createControl request %j', request);
|
|
@@ -393,7 +393,7 @@ class ControlServiceClient {
|
|
|
393
393
|
this._gaxModule.routingHeader.fromParams({
|
|
394
394
|
name: request.name ?? '',
|
|
395
395
|
});
|
|
396
|
-
this.initialize().catch(
|
|
396
|
+
this.initialize().catch(err => {
|
|
397
397
|
throw err;
|
|
398
398
|
});
|
|
399
399
|
this._log.info('deleteControl request %j', request);
|
|
@@ -436,7 +436,7 @@ class ControlServiceClient {
|
|
|
436
436
|
this._gaxModule.routingHeader.fromParams({
|
|
437
437
|
'control.name': request.control.name ?? '',
|
|
438
438
|
});
|
|
439
|
-
this.initialize().catch(
|
|
439
|
+
this.initialize().catch(err => {
|
|
440
440
|
throw err;
|
|
441
441
|
});
|
|
442
442
|
this._log.info('updateControl request %j', request);
|
|
@@ -479,7 +479,7 @@ class ControlServiceClient {
|
|
|
479
479
|
this._gaxModule.routingHeader.fromParams({
|
|
480
480
|
name: request.name ?? '',
|
|
481
481
|
});
|
|
482
|
-
this.initialize().catch(
|
|
482
|
+
this.initialize().catch(err => {
|
|
483
483
|
throw err;
|
|
484
484
|
});
|
|
485
485
|
this._log.info('getControl request %j', request);
|
|
@@ -522,7 +522,7 @@ class ControlServiceClient {
|
|
|
522
522
|
this._gaxModule.routingHeader.fromParams({
|
|
523
523
|
parent: request.parent ?? '',
|
|
524
524
|
});
|
|
525
|
-
this.initialize().catch(
|
|
525
|
+
this.initialize().catch(err => {
|
|
526
526
|
throw err;
|
|
527
527
|
});
|
|
528
528
|
const wrappedCallback = callback
|
|
@@ -582,7 +582,7 @@ class ControlServiceClient {
|
|
|
582
582
|
});
|
|
583
583
|
const defaultCallSettings = this._defaults['listControls'];
|
|
584
584
|
const callSettings = defaultCallSettings.merge(options);
|
|
585
|
-
this.initialize().catch(
|
|
585
|
+
this.initialize().catch(err => {
|
|
586
586
|
throw err;
|
|
587
587
|
});
|
|
588
588
|
this._log.info('listControls stream %j', request);
|
|
@@ -634,7 +634,7 @@ class ControlServiceClient {
|
|
|
634
634
|
});
|
|
635
635
|
const defaultCallSettings = this._defaults['listControls'];
|
|
636
636
|
const callSettings = defaultCallSettings.merge(options);
|
|
637
|
-
this.initialize().catch(
|
|
637
|
+
this.initialize().catch(err => {
|
|
638
638
|
throw err;
|
|
639
639
|
});
|
|
640
640
|
this._log.info('listControls iterate %j', request);
|
|
@@ -3025,11 +3025,11 @@ class ControlServiceClient {
|
|
|
3025
3025
|
*/
|
|
3026
3026
|
close() {
|
|
3027
3027
|
if (this.controlServiceStub && !this._terminated) {
|
|
3028
|
-
return this.controlServiceStub.then(
|
|
3028
|
+
return this.controlServiceStub.then(stub => {
|
|
3029
3029
|
this._log.info('ending gRPC channel');
|
|
3030
3030
|
this._terminated = true;
|
|
3031
3031
|
stub.close();
|
|
3032
|
-
this.locationsClient.close().catch(
|
|
3032
|
+
this.locationsClient.close().catch(err => {
|
|
3033
3033
|
throw err;
|
|
3034
3034
|
});
|
|
3035
3035
|
});
|
|
@@ -264,7 +264,7 @@ class ConversationalSearchServiceClient {
|
|
|
264
264
|
'listSessions',
|
|
265
265
|
];
|
|
266
266
|
for (const methodName of conversationalSearchServiceStubMethods) {
|
|
267
|
-
const callPromise = this.conversationalSearchServiceStub.then(
|
|
267
|
+
const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
|
|
268
268
|
if (this._terminated) {
|
|
269
269
|
return Promise.reject('The client has already been closed.');
|
|
270
270
|
}
|
|
@@ -356,7 +356,7 @@ class ConversationalSearchServiceClient {
|
|
|
356
356
|
this._gaxModule.routingHeader.fromParams({
|
|
357
357
|
name: request.name ?? '',
|
|
358
358
|
});
|
|
359
|
-
this.initialize().catch(
|
|
359
|
+
this.initialize().catch(err => {
|
|
360
360
|
throw err;
|
|
361
361
|
});
|
|
362
362
|
this._log.info('converseConversation request %j', request);
|
|
@@ -399,7 +399,7 @@ class ConversationalSearchServiceClient {
|
|
|
399
399
|
this._gaxModule.routingHeader.fromParams({
|
|
400
400
|
parent: request.parent ?? '',
|
|
401
401
|
});
|
|
402
|
-
this.initialize().catch(
|
|
402
|
+
this.initialize().catch(err => {
|
|
403
403
|
throw err;
|
|
404
404
|
});
|
|
405
405
|
this._log.info('createConversation request %j', request);
|
|
@@ -442,7 +442,7 @@ class ConversationalSearchServiceClient {
|
|
|
442
442
|
this._gaxModule.routingHeader.fromParams({
|
|
443
443
|
name: request.name ?? '',
|
|
444
444
|
});
|
|
445
|
-
this.initialize().catch(
|
|
445
|
+
this.initialize().catch(err => {
|
|
446
446
|
throw err;
|
|
447
447
|
});
|
|
448
448
|
this._log.info('deleteConversation request %j', request);
|
|
@@ -485,7 +485,7 @@ class ConversationalSearchServiceClient {
|
|
|
485
485
|
this._gaxModule.routingHeader.fromParams({
|
|
486
486
|
'conversation.name': request.conversation.name ?? '',
|
|
487
487
|
});
|
|
488
|
-
this.initialize().catch(
|
|
488
|
+
this.initialize().catch(err => {
|
|
489
489
|
throw err;
|
|
490
490
|
});
|
|
491
491
|
this._log.info('updateConversation request %j', request);
|
|
@@ -528,7 +528,7 @@ class ConversationalSearchServiceClient {
|
|
|
528
528
|
this._gaxModule.routingHeader.fromParams({
|
|
529
529
|
name: request.name ?? '',
|
|
530
530
|
});
|
|
531
|
-
this.initialize().catch(
|
|
531
|
+
this.initialize().catch(err => {
|
|
532
532
|
throw err;
|
|
533
533
|
});
|
|
534
534
|
this._log.info('getConversation request %j', request);
|
|
@@ -571,7 +571,7 @@ class ConversationalSearchServiceClient {
|
|
|
571
571
|
this._gaxModule.routingHeader.fromParams({
|
|
572
572
|
serving_config: request.servingConfig ?? '',
|
|
573
573
|
});
|
|
574
|
-
this.initialize().catch(
|
|
574
|
+
this.initialize().catch(err => {
|
|
575
575
|
throw err;
|
|
576
576
|
});
|
|
577
577
|
this._log.info('answerQuery request %j', request);
|
|
@@ -614,7 +614,7 @@ class ConversationalSearchServiceClient {
|
|
|
614
614
|
this._gaxModule.routingHeader.fromParams({
|
|
615
615
|
name: request.name ?? '',
|
|
616
616
|
});
|
|
617
|
-
this.initialize().catch(
|
|
617
|
+
this.initialize().catch(err => {
|
|
618
618
|
throw err;
|
|
619
619
|
});
|
|
620
620
|
this._log.info('getAnswer request %j', request);
|
|
@@ -657,7 +657,7 @@ class ConversationalSearchServiceClient {
|
|
|
657
657
|
this._gaxModule.routingHeader.fromParams({
|
|
658
658
|
parent: request.parent ?? '',
|
|
659
659
|
});
|
|
660
|
-
this.initialize().catch(
|
|
660
|
+
this.initialize().catch(err => {
|
|
661
661
|
throw err;
|
|
662
662
|
});
|
|
663
663
|
this._log.info('createSession request %j', request);
|
|
@@ -700,7 +700,7 @@ class ConversationalSearchServiceClient {
|
|
|
700
700
|
this._gaxModule.routingHeader.fromParams({
|
|
701
701
|
name: request.name ?? '',
|
|
702
702
|
});
|
|
703
|
-
this.initialize().catch(
|
|
703
|
+
this.initialize().catch(err => {
|
|
704
704
|
throw err;
|
|
705
705
|
});
|
|
706
706
|
this._log.info('deleteSession request %j', request);
|
|
@@ -743,7 +743,7 @@ class ConversationalSearchServiceClient {
|
|
|
743
743
|
this._gaxModule.routingHeader.fromParams({
|
|
744
744
|
'session.name': request.session.name ?? '',
|
|
745
745
|
});
|
|
746
|
-
this.initialize().catch(
|
|
746
|
+
this.initialize().catch(err => {
|
|
747
747
|
throw err;
|
|
748
748
|
});
|
|
749
749
|
this._log.info('updateSession request %j', request);
|
|
@@ -786,7 +786,7 @@ class ConversationalSearchServiceClient {
|
|
|
786
786
|
this._gaxModule.routingHeader.fromParams({
|
|
787
787
|
name: request.name ?? '',
|
|
788
788
|
});
|
|
789
|
-
this.initialize().catch(
|
|
789
|
+
this.initialize().catch(err => {
|
|
790
790
|
throw err;
|
|
791
791
|
});
|
|
792
792
|
this._log.info('getSession request %j', request);
|
|
@@ -829,7 +829,7 @@ class ConversationalSearchServiceClient {
|
|
|
829
829
|
this._gaxModule.routingHeader.fromParams({
|
|
830
830
|
parent: request.parent ?? '',
|
|
831
831
|
});
|
|
832
|
-
this.initialize().catch(
|
|
832
|
+
this.initialize().catch(err => {
|
|
833
833
|
throw err;
|
|
834
834
|
});
|
|
835
835
|
const wrappedCallback = callback
|
|
@@ -898,7 +898,7 @@ class ConversationalSearchServiceClient {
|
|
|
898
898
|
});
|
|
899
899
|
const defaultCallSettings = this._defaults['listConversations'];
|
|
900
900
|
const callSettings = defaultCallSettings.merge(options);
|
|
901
|
-
this.initialize().catch(
|
|
901
|
+
this.initialize().catch(err => {
|
|
902
902
|
throw err;
|
|
903
903
|
});
|
|
904
904
|
this._log.info('listConversations stream %j', request);
|
|
@@ -959,7 +959,7 @@ class ConversationalSearchServiceClient {
|
|
|
959
959
|
});
|
|
960
960
|
const defaultCallSettings = this._defaults['listConversations'];
|
|
961
961
|
const callSettings = defaultCallSettings.merge(options);
|
|
962
|
-
this.initialize().catch(
|
|
962
|
+
this.initialize().catch(err => {
|
|
963
963
|
throw err;
|
|
964
964
|
});
|
|
965
965
|
this._log.info('listConversations iterate %j', request);
|
|
@@ -982,7 +982,7 @@ class ConversationalSearchServiceClient {
|
|
|
982
982
|
this._gaxModule.routingHeader.fromParams({
|
|
983
983
|
parent: request.parent ?? '',
|
|
984
984
|
});
|
|
985
|
-
this.initialize().catch(
|
|
985
|
+
this.initialize().catch(err => {
|
|
986
986
|
throw err;
|
|
987
987
|
});
|
|
988
988
|
const wrappedCallback = callback
|
|
@@ -1068,7 +1068,7 @@ class ConversationalSearchServiceClient {
|
|
|
1068
1068
|
});
|
|
1069
1069
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
1070
1070
|
const callSettings = defaultCallSettings.merge(options);
|
|
1071
|
-
this.initialize().catch(
|
|
1071
|
+
this.initialize().catch(err => {
|
|
1072
1072
|
throw err;
|
|
1073
1073
|
});
|
|
1074
1074
|
this._log.info('listSessions stream %j', request);
|
|
@@ -1146,7 +1146,7 @@ class ConversationalSearchServiceClient {
|
|
|
1146
1146
|
});
|
|
1147
1147
|
const defaultCallSettings = this._defaults['listSessions'];
|
|
1148
1148
|
const callSettings = defaultCallSettings.merge(options);
|
|
1149
|
-
this.initialize().catch(
|
|
1149
|
+
this.initialize().catch(err => {
|
|
1150
1150
|
throw err;
|
|
1151
1151
|
});
|
|
1152
1152
|
this._log.info('listSessions iterate %j', request);
|
|
@@ -3504,11 +3504,11 @@ class ConversationalSearchServiceClient {
|
|
|
3504
3504
|
*/
|
|
3505
3505
|
close() {
|
|
3506
3506
|
if (this.conversationalSearchServiceStub && !this._terminated) {
|
|
3507
|
-
return this.conversationalSearchServiceStub.then(
|
|
3507
|
+
return this.conversationalSearchServiceStub.then(stub => {
|
|
3508
3508
|
this._log.info('ending gRPC channel');
|
|
3509
3509
|
this._terminated = true;
|
|
3510
3510
|
stub.close();
|
|
3511
|
-
this.locationsClient.close().catch(
|
|
3511
|
+
this.locationsClient.close().catch(err => {
|
|
3512
3512
|
throw err;
|
|
3513
3513
|
});
|
|
3514
3514
|
});
|
|
@@ -388,7 +388,7 @@ class DataStoreServiceClient {
|
|
|
388
388
|
'updateDocumentProcessingConfig',
|
|
389
389
|
];
|
|
390
390
|
for (const methodName of dataStoreServiceStubMethods) {
|
|
391
|
-
const callPromise = this.dataStoreServiceStub.then(
|
|
391
|
+
const callPromise = this.dataStoreServiceStub.then(stub => (...args) => {
|
|
392
392
|
if (this._terminated) {
|
|
393
393
|
return Promise.reject('The client has already been closed.');
|
|
394
394
|
}
|
|
@@ -482,7 +482,7 @@ class DataStoreServiceClient {
|
|
|
482
482
|
this._gaxModule.routingHeader.fromParams({
|
|
483
483
|
name: request.name ?? '',
|
|
484
484
|
});
|
|
485
|
-
this.initialize().catch(
|
|
485
|
+
this.initialize().catch(err => {
|
|
486
486
|
throw err;
|
|
487
487
|
});
|
|
488
488
|
this._log.info('getDataStore request %j', request);
|
|
@@ -525,7 +525,7 @@ class DataStoreServiceClient {
|
|
|
525
525
|
this._gaxModule.routingHeader.fromParams({
|
|
526
526
|
'data_store.name': request.dataStore.name ?? '',
|
|
527
527
|
});
|
|
528
|
-
this.initialize().catch(
|
|
528
|
+
this.initialize().catch(err => {
|
|
529
529
|
throw err;
|
|
530
530
|
});
|
|
531
531
|
this._log.info('updateDataStore request %j', request);
|
|
@@ -568,7 +568,7 @@ class DataStoreServiceClient {
|
|
|
568
568
|
this._gaxModule.routingHeader.fromParams({
|
|
569
569
|
name: request.name ?? '',
|
|
570
570
|
});
|
|
571
|
-
this.initialize().catch(
|
|
571
|
+
this.initialize().catch(err => {
|
|
572
572
|
throw err;
|
|
573
573
|
});
|
|
574
574
|
this._log.info('getDocumentProcessingConfig request %j', request);
|
|
@@ -611,7 +611,7 @@ class DataStoreServiceClient {
|
|
|
611
611
|
this._gaxModule.routingHeader.fromParams({
|
|
612
612
|
'document_processing_config.name': request.documentProcessingConfig.name ?? '',
|
|
613
613
|
});
|
|
614
|
-
this.initialize().catch(
|
|
614
|
+
this.initialize().catch(err => {
|
|
615
615
|
throw err;
|
|
616
616
|
});
|
|
617
617
|
this._log.info('updateDocumentProcessingConfig request %j', request);
|
|
@@ -654,7 +654,7 @@ class DataStoreServiceClient {
|
|
|
654
654
|
this._gaxModule.routingHeader.fromParams({
|
|
655
655
|
parent: request.parent ?? '',
|
|
656
656
|
});
|
|
657
|
-
this.initialize().catch(
|
|
657
|
+
this.initialize().catch(err => {
|
|
658
658
|
throw err;
|
|
659
659
|
});
|
|
660
660
|
const wrappedCallback = callback
|
|
@@ -706,7 +706,7 @@ class DataStoreServiceClient {
|
|
|
706
706
|
this._gaxModule.routingHeader.fromParams({
|
|
707
707
|
name: request.name ?? '',
|
|
708
708
|
});
|
|
709
|
-
this.initialize().catch(
|
|
709
|
+
this.initialize().catch(err => {
|
|
710
710
|
throw err;
|
|
711
711
|
});
|
|
712
712
|
const wrappedCallback = callback
|
|
@@ -758,7 +758,7 @@ class DataStoreServiceClient {
|
|
|
758
758
|
this._gaxModule.routingHeader.fromParams({
|
|
759
759
|
parent: request.parent ?? '',
|
|
760
760
|
});
|
|
761
|
-
this.initialize().catch(
|
|
761
|
+
this.initialize().catch(err => {
|
|
762
762
|
throw err;
|
|
763
763
|
});
|
|
764
764
|
const wrappedCallback = callback
|
|
@@ -830,7 +830,7 @@ class DataStoreServiceClient {
|
|
|
830
830
|
});
|
|
831
831
|
const defaultCallSettings = this._defaults['listDataStores'];
|
|
832
832
|
const callSettings = defaultCallSettings.merge(options);
|
|
833
|
-
this.initialize().catch(
|
|
833
|
+
this.initialize().catch(err => {
|
|
834
834
|
throw err;
|
|
835
835
|
});
|
|
836
836
|
this._log.info('listDataStores stream %j', request);
|
|
@@ -894,7 +894,7 @@ class DataStoreServiceClient {
|
|
|
894
894
|
});
|
|
895
895
|
const defaultCallSettings = this._defaults['listDataStores'];
|
|
896
896
|
const callSettings = defaultCallSettings.merge(options);
|
|
897
|
-
this.initialize().catch(
|
|
897
|
+
this.initialize().catch(err => {
|
|
898
898
|
throw err;
|
|
899
899
|
});
|
|
900
900
|
this._log.info('listDataStores iterate %j', request);
|
|
@@ -3480,11 +3480,11 @@ class DataStoreServiceClient {
|
|
|
3480
3480
|
*/
|
|
3481
3481
|
close() {
|
|
3482
3482
|
if (this.dataStoreServiceStub && !this._terminated) {
|
|
3483
|
-
return this.dataStoreServiceStub.then(
|
|
3483
|
+
return this.dataStoreServiceStub.then(stub => {
|
|
3484
3484
|
this._log.info('ending gRPC channel');
|
|
3485
3485
|
this._terminated = true;
|
|
3486
3486
|
stub.close();
|
|
3487
|
-
this.locationsClient.close().catch(
|
|
3487
|
+
this.locationsClient.close().catch(err => {
|
|
3488
3488
|
throw err;
|
|
3489
3489
|
});
|
|
3490
3490
|
void this.operationsClient.close();
|
|
@@ -392,7 +392,7 @@ class DocumentServiceClient {
|
|
|
392
392
|
'batchGetDocumentsMetadata',
|
|
393
393
|
];
|
|
394
394
|
for (const methodName of documentServiceStubMethods) {
|
|
395
|
-
const callPromise = this.documentServiceStub.then(
|
|
395
|
+
const callPromise = this.documentServiceStub.then(stub => (...args) => {
|
|
396
396
|
if (this._terminated) {
|
|
397
397
|
return Promise.reject('The client has already been closed.');
|
|
398
398
|
}
|
|
@@ -486,7 +486,7 @@ class DocumentServiceClient {
|
|
|
486
486
|
this._gaxModule.routingHeader.fromParams({
|
|
487
487
|
name: request.name ?? '',
|
|
488
488
|
});
|
|
489
|
-
this.initialize().catch(
|
|
489
|
+
this.initialize().catch(err => {
|
|
490
490
|
throw err;
|
|
491
491
|
});
|
|
492
492
|
this._log.info('getDocument request %j', request);
|
|
@@ -529,7 +529,7 @@ class DocumentServiceClient {
|
|
|
529
529
|
this._gaxModule.routingHeader.fromParams({
|
|
530
530
|
parent: request.parent ?? '',
|
|
531
531
|
});
|
|
532
|
-
this.initialize().catch(
|
|
532
|
+
this.initialize().catch(err => {
|
|
533
533
|
throw err;
|
|
534
534
|
});
|
|
535
535
|
this._log.info('createDocument request %j', request);
|
|
@@ -572,7 +572,7 @@ class DocumentServiceClient {
|
|
|
572
572
|
this._gaxModule.routingHeader.fromParams({
|
|
573
573
|
'document.name': request.document.name ?? '',
|
|
574
574
|
});
|
|
575
|
-
this.initialize().catch(
|
|
575
|
+
this.initialize().catch(err => {
|
|
576
576
|
throw err;
|
|
577
577
|
});
|
|
578
578
|
this._log.info('updateDocument request %j', request);
|
|
@@ -615,7 +615,7 @@ class DocumentServiceClient {
|
|
|
615
615
|
this._gaxModule.routingHeader.fromParams({
|
|
616
616
|
name: request.name ?? '',
|
|
617
617
|
});
|
|
618
|
-
this.initialize().catch(
|
|
618
|
+
this.initialize().catch(err => {
|
|
619
619
|
throw err;
|
|
620
620
|
});
|
|
621
621
|
this._log.info('deleteDocument request %j', request);
|
|
@@ -658,7 +658,7 @@ class DocumentServiceClient {
|
|
|
658
658
|
this._gaxModule.routingHeader.fromParams({
|
|
659
659
|
name: request.name ?? '',
|
|
660
660
|
});
|
|
661
|
-
this.initialize().catch(
|
|
661
|
+
this.initialize().catch(err => {
|
|
662
662
|
throw err;
|
|
663
663
|
});
|
|
664
664
|
this._log.info('getProcessedDocument request %j', request);
|
|
@@ -701,7 +701,7 @@ class DocumentServiceClient {
|
|
|
701
701
|
this._gaxModule.routingHeader.fromParams({
|
|
702
702
|
parent: request.parent ?? '',
|
|
703
703
|
});
|
|
704
|
-
this.initialize().catch(
|
|
704
|
+
this.initialize().catch(err => {
|
|
705
705
|
throw err;
|
|
706
706
|
});
|
|
707
707
|
this._log.info('batchGetDocumentsMetadata request %j', request);
|
|
@@ -744,7 +744,7 @@ class DocumentServiceClient {
|
|
|
744
744
|
this._gaxModule.routingHeader.fromParams({
|
|
745
745
|
parent: request.parent ?? '',
|
|
746
746
|
});
|
|
747
|
-
this.initialize().catch(
|
|
747
|
+
this.initialize().catch(err => {
|
|
748
748
|
throw err;
|
|
749
749
|
});
|
|
750
750
|
const wrappedCallback = callback
|
|
@@ -796,7 +796,7 @@ class DocumentServiceClient {
|
|
|
796
796
|
this._gaxModule.routingHeader.fromParams({
|
|
797
797
|
parent: request.parent ?? '',
|
|
798
798
|
});
|
|
799
|
-
this.initialize().catch(
|
|
799
|
+
this.initialize().catch(err => {
|
|
800
800
|
throw err;
|
|
801
801
|
});
|
|
802
802
|
const wrappedCallback = callback
|
|
@@ -848,7 +848,7 @@ class DocumentServiceClient {
|
|
|
848
848
|
this._gaxModule.routingHeader.fromParams({
|
|
849
849
|
parent: request.parent ?? '',
|
|
850
850
|
});
|
|
851
|
-
this.initialize().catch(
|
|
851
|
+
this.initialize().catch(err => {
|
|
852
852
|
throw err;
|
|
853
853
|
});
|
|
854
854
|
const wrappedCallback = callback
|
|
@@ -919,7 +919,7 @@ class DocumentServiceClient {
|
|
|
919
919
|
});
|
|
920
920
|
const defaultCallSettings = this._defaults['listDocuments'];
|
|
921
921
|
const callSettings = defaultCallSettings.merge(options);
|
|
922
|
-
this.initialize().catch(
|
|
922
|
+
this.initialize().catch(err => {
|
|
923
923
|
throw err;
|
|
924
924
|
});
|
|
925
925
|
this._log.info('listDocuments stream %j', request);
|
|
@@ -982,7 +982,7 @@ class DocumentServiceClient {
|
|
|
982
982
|
});
|
|
983
983
|
const defaultCallSettings = this._defaults['listDocuments'];
|
|
984
984
|
const callSettings = defaultCallSettings.merge(options);
|
|
985
|
-
this.initialize().catch(
|
|
985
|
+
this.initialize().catch(err => {
|
|
986
986
|
throw err;
|
|
987
987
|
});
|
|
988
988
|
this._log.info('listDocuments iterate %j', request);
|
|
@@ -3646,11 +3646,11 @@ class DocumentServiceClient {
|
|
|
3646
3646
|
*/
|
|
3647
3647
|
close() {
|
|
3648
3648
|
if (this.documentServiceStub && !this._terminated) {
|
|
3649
|
-
return this.documentServiceStub.then(
|
|
3649
|
+
return this.documentServiceStub.then(stub => {
|
|
3650
3650
|
this._log.info('ending gRPC channel');
|
|
3651
3651
|
this._terminated = true;
|
|
3652
3652
|
stub.close();
|
|
3653
|
-
this.locationsClient.close().catch(
|
|
3653
|
+
this.locationsClient.close().catch(err => {
|
|
3654
3654
|
throw err;
|
|
3655
3655
|
});
|
|
3656
3656
|
void this.operationsClient.close();
|