@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
|
@@ -324,18 +324,14 @@ class DocumentServiceClient {
|
|
|
324
324
|
{
|
|
325
325
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
326
326
|
},
|
|
327
|
-
{
|
|
328
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
329
|
-
},
|
|
327
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
330
328
|
{
|
|
331
329
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
332
330
|
},
|
|
333
331
|
{
|
|
334
332
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
335
333
|
},
|
|
336
|
-
{
|
|
337
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
338
|
-
},
|
|
334
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
339
335
|
{
|
|
340
336
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
341
337
|
},
|
|
@@ -400,7 +396,7 @@ class DocumentServiceClient {
|
|
|
400
396
|
'batchGetDocumentsMetadata',
|
|
401
397
|
];
|
|
402
398
|
for (const methodName of documentServiceStubMethods) {
|
|
403
|
-
const callPromise = this.documentServiceStub.then(
|
|
399
|
+
const callPromise = this.documentServiceStub.then(stub => (...args) => {
|
|
404
400
|
if (this._terminated) {
|
|
405
401
|
return Promise.reject('The client has already been closed.');
|
|
406
402
|
}
|
|
@@ -494,7 +490,7 @@ class DocumentServiceClient {
|
|
|
494
490
|
this._gaxModule.routingHeader.fromParams({
|
|
495
491
|
name: request.name ?? '',
|
|
496
492
|
});
|
|
497
|
-
this.initialize().catch(
|
|
493
|
+
this.initialize().catch(err => {
|
|
498
494
|
throw err;
|
|
499
495
|
});
|
|
500
496
|
this._log.info('getDocument request %j', request);
|
|
@@ -537,7 +533,7 @@ class DocumentServiceClient {
|
|
|
537
533
|
this._gaxModule.routingHeader.fromParams({
|
|
538
534
|
parent: request.parent ?? '',
|
|
539
535
|
});
|
|
540
|
-
this.initialize().catch(
|
|
536
|
+
this.initialize().catch(err => {
|
|
541
537
|
throw err;
|
|
542
538
|
});
|
|
543
539
|
this._log.info('createDocument request %j', request);
|
|
@@ -580,7 +576,7 @@ class DocumentServiceClient {
|
|
|
580
576
|
this._gaxModule.routingHeader.fromParams({
|
|
581
577
|
'document.name': request.document.name ?? '',
|
|
582
578
|
});
|
|
583
|
-
this.initialize().catch(
|
|
579
|
+
this.initialize().catch(err => {
|
|
584
580
|
throw err;
|
|
585
581
|
});
|
|
586
582
|
this._log.info('updateDocument request %j', request);
|
|
@@ -623,7 +619,7 @@ class DocumentServiceClient {
|
|
|
623
619
|
this._gaxModule.routingHeader.fromParams({
|
|
624
620
|
name: request.name ?? '',
|
|
625
621
|
});
|
|
626
|
-
this.initialize().catch(
|
|
622
|
+
this.initialize().catch(err => {
|
|
627
623
|
throw err;
|
|
628
624
|
});
|
|
629
625
|
this._log.info('deleteDocument request %j', request);
|
|
@@ -666,7 +662,7 @@ class DocumentServiceClient {
|
|
|
666
662
|
this._gaxModule.routingHeader.fromParams({
|
|
667
663
|
parent: request.parent ?? '',
|
|
668
664
|
});
|
|
669
|
-
this.initialize().catch(
|
|
665
|
+
this.initialize().catch(err => {
|
|
670
666
|
throw err;
|
|
671
667
|
});
|
|
672
668
|
this._log.info('batchGetDocumentsMetadata request %j', request);
|
|
@@ -709,7 +705,7 @@ class DocumentServiceClient {
|
|
|
709
705
|
this._gaxModule.routingHeader.fromParams({
|
|
710
706
|
parent: request.parent ?? '',
|
|
711
707
|
});
|
|
712
|
-
this.initialize().catch(
|
|
708
|
+
this.initialize().catch(err => {
|
|
713
709
|
throw err;
|
|
714
710
|
});
|
|
715
711
|
const wrappedCallback = callback
|
|
@@ -761,7 +757,7 @@ class DocumentServiceClient {
|
|
|
761
757
|
this._gaxModule.routingHeader.fromParams({
|
|
762
758
|
parent: request.parent ?? '',
|
|
763
759
|
});
|
|
764
|
-
this.initialize().catch(
|
|
760
|
+
this.initialize().catch(err => {
|
|
765
761
|
throw err;
|
|
766
762
|
});
|
|
767
763
|
const wrappedCallback = callback
|
|
@@ -813,7 +809,7 @@ class DocumentServiceClient {
|
|
|
813
809
|
this._gaxModule.routingHeader.fromParams({
|
|
814
810
|
parent: request.parent ?? '',
|
|
815
811
|
});
|
|
816
|
-
this.initialize().catch(
|
|
812
|
+
this.initialize().catch(err => {
|
|
817
813
|
throw err;
|
|
818
814
|
});
|
|
819
815
|
const wrappedCallback = callback
|
|
@@ -883,7 +879,7 @@ class DocumentServiceClient {
|
|
|
883
879
|
});
|
|
884
880
|
const defaultCallSettings = this._defaults['listDocuments'];
|
|
885
881
|
const callSettings = defaultCallSettings.merge(options);
|
|
886
|
-
this.initialize().catch(
|
|
882
|
+
this.initialize().catch(err => {
|
|
887
883
|
throw err;
|
|
888
884
|
});
|
|
889
885
|
this._log.info('listDocuments stream %j', request);
|
|
@@ -945,7 +941,7 @@ class DocumentServiceClient {
|
|
|
945
941
|
});
|
|
946
942
|
const defaultCallSettings = this._defaults['listDocuments'];
|
|
947
943
|
const callSettings = defaultCallSettings.merge(options);
|
|
948
|
-
this.initialize().catch(
|
|
944
|
+
this.initialize().catch(err => {
|
|
949
945
|
throw err;
|
|
950
946
|
});
|
|
951
947
|
this._log.info('listDocuments iterate %j', request);
|
|
@@ -3829,11 +3825,11 @@ class DocumentServiceClient {
|
|
|
3829
3825
|
*/
|
|
3830
3826
|
close() {
|
|
3831
3827
|
if (this.documentServiceStub && !this._terminated) {
|
|
3832
|
-
return this.documentServiceStub.then(
|
|
3828
|
+
return this.documentServiceStub.then(stub => {
|
|
3833
3829
|
this._log.info('ending gRPC channel');
|
|
3834
3830
|
this._terminated = true;
|
|
3835
3831
|
stub.close();
|
|
3836
|
-
this.locationsClient.close().catch(
|
|
3832
|
+
this.locationsClient.close().catch(err => {
|
|
3837
3833
|
throw err;
|
|
3838
3834
|
});
|
|
3839
3835
|
void this.operationsClient.close();
|
|
@@ -323,18 +323,14 @@ class EngineServiceClient {
|
|
|
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
|
},
|
|
@@ -396,7 +392,7 @@ class EngineServiceClient {
|
|
|
396
392
|
'listEngines',
|
|
397
393
|
];
|
|
398
394
|
for (const methodName of engineServiceStubMethods) {
|
|
399
|
-
const callPromise = this.engineServiceStub.then(
|
|
395
|
+
const callPromise = this.engineServiceStub.then(stub => (...args) => {
|
|
400
396
|
if (this._terminated) {
|
|
401
397
|
return Promise.reject('The client has already been closed.');
|
|
402
398
|
}
|
|
@@ -490,7 +486,7 @@ class EngineServiceClient {
|
|
|
490
486
|
this._gaxModule.routingHeader.fromParams({
|
|
491
487
|
'engine.name': request.engine.name ?? '',
|
|
492
488
|
});
|
|
493
|
-
this.initialize().catch(
|
|
489
|
+
this.initialize().catch(err => {
|
|
494
490
|
throw err;
|
|
495
491
|
});
|
|
496
492
|
this._log.info('updateEngine request %j', request);
|
|
@@ -533,7 +529,7 @@ class EngineServiceClient {
|
|
|
533
529
|
this._gaxModule.routingHeader.fromParams({
|
|
534
530
|
name: request.name ?? '',
|
|
535
531
|
});
|
|
536
|
-
this.initialize().catch(
|
|
532
|
+
this.initialize().catch(err => {
|
|
537
533
|
throw err;
|
|
538
534
|
});
|
|
539
535
|
this._log.info('getEngine request %j', request);
|
|
@@ -576,7 +572,7 @@ class EngineServiceClient {
|
|
|
576
572
|
this._gaxModule.routingHeader.fromParams({
|
|
577
573
|
parent: request.parent ?? '',
|
|
578
574
|
});
|
|
579
|
-
this.initialize().catch(
|
|
575
|
+
this.initialize().catch(err => {
|
|
580
576
|
throw err;
|
|
581
577
|
});
|
|
582
578
|
const wrappedCallback = callback
|
|
@@ -628,7 +624,7 @@ class EngineServiceClient {
|
|
|
628
624
|
this._gaxModule.routingHeader.fromParams({
|
|
629
625
|
name: request.name ?? '',
|
|
630
626
|
});
|
|
631
|
-
this.initialize().catch(
|
|
627
|
+
this.initialize().catch(err => {
|
|
632
628
|
throw err;
|
|
633
629
|
});
|
|
634
630
|
const wrappedCallback = callback
|
|
@@ -680,7 +676,7 @@ class EngineServiceClient {
|
|
|
680
676
|
this._gaxModule.routingHeader.fromParams({
|
|
681
677
|
parent: request.parent ?? '',
|
|
682
678
|
});
|
|
683
|
-
this.initialize().catch(
|
|
679
|
+
this.initialize().catch(err => {
|
|
684
680
|
throw err;
|
|
685
681
|
});
|
|
686
682
|
const wrappedCallback = callback
|
|
@@ -733,7 +729,7 @@ class EngineServiceClient {
|
|
|
733
729
|
});
|
|
734
730
|
const defaultCallSettings = this._defaults['listEngines'];
|
|
735
731
|
const callSettings = defaultCallSettings.merge(options);
|
|
736
|
-
this.initialize().catch(
|
|
732
|
+
this.initialize().catch(err => {
|
|
737
733
|
throw err;
|
|
738
734
|
});
|
|
739
735
|
this._log.info('listEngines stream %j', request);
|
|
@@ -778,7 +774,7 @@ class EngineServiceClient {
|
|
|
778
774
|
});
|
|
779
775
|
const defaultCallSettings = this._defaults['listEngines'];
|
|
780
776
|
const callSettings = defaultCallSettings.merge(options);
|
|
781
|
-
this.initialize().catch(
|
|
777
|
+
this.initialize().catch(err => {
|
|
782
778
|
throw err;
|
|
783
779
|
});
|
|
784
780
|
this._log.info('listEngines iterate %j', request);
|
|
@@ -3584,11 +3580,11 @@ class EngineServiceClient {
|
|
|
3584
3580
|
*/
|
|
3585
3581
|
close() {
|
|
3586
3582
|
if (this.engineServiceStub && !this._terminated) {
|
|
3587
|
-
return this.engineServiceStub.then(
|
|
3583
|
+
return this.engineServiceStub.then(stub => {
|
|
3588
3584
|
this._log.info('ending gRPC channel');
|
|
3589
3585
|
this._terminated = true;
|
|
3590
3586
|
stub.close();
|
|
3591
|
-
this.locationsClient.close().catch(
|
|
3587
|
+
this.locationsClient.close().catch(err => {
|
|
3592
3588
|
throw err;
|
|
3593
3589
|
});
|
|
3594
3590
|
void this.operationsClient.close();
|
|
@@ -258,7 +258,7 @@ class GroundedGenerationServiceClient {
|
|
|
258
258
|
'checkGrounding',
|
|
259
259
|
];
|
|
260
260
|
for (const methodName of groundedGenerationServiceStubMethods) {
|
|
261
|
-
const callPromise = this.groundedGenerationServiceStub.then(
|
|
261
|
+
const callPromise = this.groundedGenerationServiceStub.then(stub => (...args) => {
|
|
262
262
|
if (this._terminated) {
|
|
263
263
|
if (methodName in this.descriptors.stream) {
|
|
264
264
|
const stream = new stream_1.PassThrough({ objectMode: true });
|
|
@@ -357,7 +357,7 @@ class GroundedGenerationServiceClient {
|
|
|
357
357
|
this._gaxModule.routingHeader.fromParams({
|
|
358
358
|
location: request.location ?? '',
|
|
359
359
|
});
|
|
360
|
-
this.initialize().catch(
|
|
360
|
+
this.initialize().catch(err => {
|
|
361
361
|
throw err;
|
|
362
362
|
});
|
|
363
363
|
this._log.info('generateGroundedContent request %j', request);
|
|
@@ -400,7 +400,7 @@ class GroundedGenerationServiceClient {
|
|
|
400
400
|
this._gaxModule.routingHeader.fromParams({
|
|
401
401
|
grounding_config: request.groundingConfig ?? '',
|
|
402
402
|
});
|
|
403
|
-
this.initialize().catch(
|
|
403
|
+
this.initialize().catch(err => {
|
|
404
404
|
throw err;
|
|
405
405
|
});
|
|
406
406
|
this._log.info('checkGrounding request %j', request);
|
|
@@ -441,7 +441,7 @@ class GroundedGenerationServiceClient {
|
|
|
441
441
|
* region_tag:discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_async
|
|
442
442
|
*/
|
|
443
443
|
streamGenerateGroundedContent(options) {
|
|
444
|
-
this.initialize().catch(
|
|
444
|
+
this.initialize().catch(err => {
|
|
445
445
|
throw err;
|
|
446
446
|
});
|
|
447
447
|
this._log.info('streamGenerateGroundedContent stream %j', options);
|
|
@@ -3097,11 +3097,11 @@ class GroundedGenerationServiceClient {
|
|
|
3097
3097
|
*/
|
|
3098
3098
|
close() {
|
|
3099
3099
|
if (this.groundedGenerationServiceStub && !this._terminated) {
|
|
3100
|
-
return this.groundedGenerationServiceStub.then(
|
|
3100
|
+
return this.groundedGenerationServiceStub.then(stub => {
|
|
3101
3101
|
this._log.info('ending gRPC channel');
|
|
3102
3102
|
this._terminated = true;
|
|
3103
3103
|
stub.close();
|
|
3104
|
-
this.locationsClient.close().catch(
|
|
3104
|
+
this.locationsClient.close().catch(err => {
|
|
3105
3105
|
throw err;
|
|
3106
3106
|
});
|
|
3107
3107
|
});
|
|
@@ -324,18 +324,14 @@ class IdentityMappingStoreServiceClient {
|
|
|
324
324
|
{
|
|
325
325
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
326
326
|
},
|
|
327
|
-
{
|
|
328
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
329
|
-
},
|
|
327
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
330
328
|
{
|
|
331
329
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
332
330
|
},
|
|
333
331
|
{
|
|
334
332
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
335
333
|
},
|
|
336
|
-
{
|
|
337
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
338
|
-
},
|
|
334
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
339
335
|
{
|
|
340
336
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
341
337
|
},
|
|
@@ -403,7 +399,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
403
399
|
'listIdentityMappingStores',
|
|
404
400
|
];
|
|
405
401
|
for (const methodName of identityMappingStoreServiceStubMethods) {
|
|
406
|
-
const callPromise = this.identityMappingStoreServiceStub.then(
|
|
402
|
+
const callPromise = this.identityMappingStoreServiceStub.then(stub => (...args) => {
|
|
407
403
|
if (this._terminated) {
|
|
408
404
|
return Promise.reject('The client has already been closed.');
|
|
409
405
|
}
|
|
@@ -497,7 +493,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
497
493
|
this._gaxModule.routingHeader.fromParams({
|
|
498
494
|
parent: request.parent ?? '',
|
|
499
495
|
});
|
|
500
|
-
this.initialize().catch(
|
|
496
|
+
this.initialize().catch(err => {
|
|
501
497
|
throw err;
|
|
502
498
|
});
|
|
503
499
|
this._log.info('createIdentityMappingStore request %j', request);
|
|
@@ -540,7 +536,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
540
536
|
this._gaxModule.routingHeader.fromParams({
|
|
541
537
|
name: request.name ?? '',
|
|
542
538
|
});
|
|
543
|
-
this.initialize().catch(
|
|
539
|
+
this.initialize().catch(err => {
|
|
544
540
|
throw err;
|
|
545
541
|
});
|
|
546
542
|
this._log.info('getIdentityMappingStore request %j', request);
|
|
@@ -583,7 +579,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
583
579
|
this._gaxModule.routingHeader.fromParams({
|
|
584
580
|
name: request.name ?? '',
|
|
585
581
|
});
|
|
586
|
-
this.initialize().catch(
|
|
582
|
+
this.initialize().catch(err => {
|
|
587
583
|
throw err;
|
|
588
584
|
});
|
|
589
585
|
const wrappedCallback = callback
|
|
@@ -635,7 +631,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
635
631
|
this._gaxModule.routingHeader.fromParams({
|
|
636
632
|
identity_mapping_store: request.identityMappingStore?.toString() ?? '',
|
|
637
633
|
});
|
|
638
|
-
this.initialize().catch(
|
|
634
|
+
this.initialize().catch(err => {
|
|
639
635
|
throw err;
|
|
640
636
|
});
|
|
641
637
|
const wrappedCallback = callback
|
|
@@ -687,7 +683,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
687
683
|
this._gaxModule.routingHeader.fromParams({
|
|
688
684
|
identity_mapping_store: request.identityMappingStore?.toString() ?? '',
|
|
689
685
|
});
|
|
690
|
-
this.initialize().catch(
|
|
686
|
+
this.initialize().catch(err => {
|
|
691
687
|
throw err;
|
|
692
688
|
});
|
|
693
689
|
const wrappedCallback = callback
|
|
@@ -739,7 +735,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
739
735
|
this._gaxModule.routingHeader.fromParams({
|
|
740
736
|
identity_mapping_store: request.identityMappingStore?.toString() ?? '',
|
|
741
737
|
});
|
|
742
|
-
this.initialize().catch(
|
|
738
|
+
this.initialize().catch(err => {
|
|
743
739
|
throw err;
|
|
744
740
|
});
|
|
745
741
|
const wrappedCallback = callback
|
|
@@ -797,7 +793,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
797
793
|
});
|
|
798
794
|
const defaultCallSettings = this._defaults['listIdentityMappings'];
|
|
799
795
|
const callSettings = defaultCallSettings.merge(options);
|
|
800
|
-
this.initialize().catch(
|
|
796
|
+
this.initialize().catch(err => {
|
|
801
797
|
throw err;
|
|
802
798
|
});
|
|
803
799
|
this._log.info('listIdentityMappings stream %j', request);
|
|
@@ -847,7 +843,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
847
843
|
});
|
|
848
844
|
const defaultCallSettings = this._defaults['listIdentityMappings'];
|
|
849
845
|
const callSettings = defaultCallSettings.merge(options);
|
|
850
|
-
this.initialize().catch(
|
|
846
|
+
this.initialize().catch(err => {
|
|
851
847
|
throw err;
|
|
852
848
|
});
|
|
853
849
|
this._log.info('listIdentityMappings iterate %j', request);
|
|
@@ -870,7 +866,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
870
866
|
this._gaxModule.routingHeader.fromParams({
|
|
871
867
|
parent: request.parent ?? '',
|
|
872
868
|
});
|
|
873
|
-
this.initialize().catch(
|
|
869
|
+
this.initialize().catch(err => {
|
|
874
870
|
throw err;
|
|
875
871
|
});
|
|
876
872
|
const wrappedCallback = callback
|
|
@@ -928,7 +924,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
928
924
|
});
|
|
929
925
|
const defaultCallSettings = this._defaults['listIdentityMappingStores'];
|
|
930
926
|
const callSettings = defaultCallSettings.merge(options);
|
|
931
|
-
this.initialize().catch(
|
|
927
|
+
this.initialize().catch(err => {
|
|
932
928
|
throw err;
|
|
933
929
|
});
|
|
934
930
|
this._log.info('listIdentityMappingStores stream %j', request);
|
|
@@ -978,7 +974,7 @@ class IdentityMappingStoreServiceClient {
|
|
|
978
974
|
});
|
|
979
975
|
const defaultCallSettings = this._defaults['listIdentityMappingStores'];
|
|
980
976
|
const callSettings = defaultCallSettings.merge(options);
|
|
981
|
-
this.initialize().catch(
|
|
977
|
+
this.initialize().catch(err => {
|
|
982
978
|
throw err;
|
|
983
979
|
});
|
|
984
980
|
this._log.info('listIdentityMappingStores iterate %j', request);
|
|
@@ -3769,11 +3765,11 @@ class IdentityMappingStoreServiceClient {
|
|
|
3769
3765
|
*/
|
|
3770
3766
|
close() {
|
|
3771
3767
|
if (this.identityMappingStoreServiceStub && !this._terminated) {
|
|
3772
|
-
return this.identityMappingStoreServiceStub.then(
|
|
3768
|
+
return this.identityMappingStoreServiceStub.then(stub => {
|
|
3773
3769
|
this._log.info('ending gRPC channel');
|
|
3774
3770
|
this._terminated = true;
|
|
3775
3771
|
stub.close();
|
|
3776
|
-
this.locationsClient.close().catch(
|
|
3772
|
+
this.locationsClient.close().catch(err => {
|
|
3777
3773
|
throw err;
|
|
3778
3774
|
});
|
|
3779
3775
|
void this.operationsClient.close();
|
|
@@ -316,18 +316,14 @@ class ProjectServiceClient {
|
|
|
316
316
|
{
|
|
317
317
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
318
318
|
},
|
|
319
|
-
{
|
|
320
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
321
|
-
},
|
|
319
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
322
320
|
{
|
|
323
321
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
324
322
|
},
|
|
325
323
|
{
|
|
326
324
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
327
325
|
},
|
|
328
|
-
{
|
|
329
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
330
|
-
},
|
|
326
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
331
327
|
{
|
|
332
328
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
333
329
|
},
|
|
@@ -380,7 +376,7 @@ class ProjectServiceClient {
|
|
|
380
376
|
// and create an API call method for each.
|
|
381
377
|
const projectServiceStubMethods = ['provisionProject'];
|
|
382
378
|
for (const methodName of projectServiceStubMethods) {
|
|
383
|
-
const callPromise = this.projectServiceStub.then(
|
|
379
|
+
const callPromise = this.projectServiceStub.then(stub => (...args) => {
|
|
384
380
|
if (this._terminated) {
|
|
385
381
|
return Promise.reject('The client has already been closed.');
|
|
386
382
|
}
|
|
@@ -472,7 +468,7 @@ class ProjectServiceClient {
|
|
|
472
468
|
this._gaxModule.routingHeader.fromParams({
|
|
473
469
|
name: request.name ?? '',
|
|
474
470
|
});
|
|
475
|
-
this.initialize().catch(
|
|
471
|
+
this.initialize().catch(err => {
|
|
476
472
|
throw err;
|
|
477
473
|
});
|
|
478
474
|
const wrappedCallback = callback
|
|
@@ -3259,11 +3255,11 @@ class ProjectServiceClient {
|
|
|
3259
3255
|
*/
|
|
3260
3256
|
close() {
|
|
3261
3257
|
if (this.projectServiceStub && !this._terminated) {
|
|
3262
|
-
return this.projectServiceStub.then(
|
|
3258
|
+
return this.projectServiceStub.then(stub => {
|
|
3263
3259
|
this._log.info('ending gRPC channel');
|
|
3264
3260
|
this._terminated = true;
|
|
3265
3261
|
stub.close();
|
|
3266
|
-
this.locationsClient.close().catch(
|
|
3262
|
+
this.locationsClient.close().catch(err => {
|
|
3267
3263
|
throw err;
|
|
3268
3264
|
});
|
|
3269
3265
|
void this.operationsClient.close();
|
|
@@ -245,7 +245,7 @@ class RankServiceClient {
|
|
|
245
245
|
// and create an API call method for each.
|
|
246
246
|
const rankServiceStubMethods = ['rank'];
|
|
247
247
|
for (const methodName of rankServiceStubMethods) {
|
|
248
|
-
const callPromise = this.rankServiceStub.then(
|
|
248
|
+
const callPromise = this.rankServiceStub.then(stub => (...args) => {
|
|
249
249
|
if (this._terminated) {
|
|
250
250
|
return Promise.reject('The client has already been closed.');
|
|
251
251
|
}
|
|
@@ -337,7 +337,7 @@ class RankServiceClient {
|
|
|
337
337
|
this._gaxModule.routingHeader.fromParams({
|
|
338
338
|
ranking_config: request.rankingConfig ?? '',
|
|
339
339
|
});
|
|
340
|
-
this.initialize().catch(
|
|
340
|
+
this.initialize().catch(err => {
|
|
341
341
|
throw err;
|
|
342
342
|
});
|
|
343
343
|
this._log.info('rank request %j', request);
|
|
@@ -2983,11 +2983,11 @@ class RankServiceClient {
|
|
|
2983
2983
|
*/
|
|
2984
2984
|
close() {
|
|
2985
2985
|
if (this.rankServiceStub && !this._terminated) {
|
|
2986
|
-
return this.rankServiceStub.then(
|
|
2986
|
+
return this.rankServiceStub.then(stub => {
|
|
2987
2987
|
this._log.info('ending gRPC channel');
|
|
2988
2988
|
this._terminated = true;
|
|
2989
2989
|
stub.close();
|
|
2990
|
-
this.locationsClient.close().catch(
|
|
2990
|
+
this.locationsClient.close().catch(err => {
|
|
2991
2991
|
throw err;
|
|
2992
2992
|
});
|
|
2993
2993
|
});
|
|
@@ -246,7 +246,7 @@ class RecommendationServiceClient {
|
|
|
246
246
|
// and create an API call method for each.
|
|
247
247
|
const recommendationServiceStubMethods = ['recommend'];
|
|
248
248
|
for (const methodName of recommendationServiceStubMethods) {
|
|
249
|
-
const callPromise = this.recommendationServiceStub.then(
|
|
249
|
+
const callPromise = this.recommendationServiceStub.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 RecommendationServiceClient {
|
|
|
338
338
|
this._gaxModule.routingHeader.fromParams({
|
|
339
339
|
serving_config: request.servingConfig ?? '',
|
|
340
340
|
});
|
|
341
|
-
this.initialize().catch(
|
|
341
|
+
this.initialize().catch(err => {
|
|
342
342
|
throw err;
|
|
343
343
|
});
|
|
344
344
|
this._log.info('recommend request %j', request);
|
|
@@ -2936,11 +2936,11 @@ class RecommendationServiceClient {
|
|
|
2936
2936
|
*/
|
|
2937
2937
|
close() {
|
|
2938
2938
|
if (this.recommendationServiceStub && !this._terminated) {
|
|
2939
|
-
return this.recommendationServiceStub.then(
|
|
2939
|
+
return this.recommendationServiceStub.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
|
});
|
|
@@ -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();
|