@google-cloud/discoveryengine 3.1.0 → 3.3.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/search_service.proto +147 -19
- package/build/protos/protos.d.ts +608 -126
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +185 -12
- 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.d.ts +162 -24
- package/build/src/v1/search_service_client.js +123 -26
- 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
|
@@ -374,7 +374,7 @@ class ProjectServiceClient {
|
|
|
374
374
|
'reportConsentChange',
|
|
375
375
|
];
|
|
376
376
|
for (const methodName of projectServiceStubMethods) {
|
|
377
|
-
const callPromise = this.projectServiceStub.then(
|
|
377
|
+
const callPromise = this.projectServiceStub.then(stub => (...args) => {
|
|
378
378
|
if (this._terminated) {
|
|
379
379
|
return Promise.reject('The client has already been closed.');
|
|
380
380
|
}
|
|
@@ -466,7 +466,7 @@ class ProjectServiceClient {
|
|
|
466
466
|
this._gaxModule.routingHeader.fromParams({
|
|
467
467
|
name: request.name ?? '',
|
|
468
468
|
});
|
|
469
|
-
this.initialize().catch(
|
|
469
|
+
this.initialize().catch(err => {
|
|
470
470
|
throw err;
|
|
471
471
|
});
|
|
472
472
|
this._log.info('getProject request %j', request);
|
|
@@ -509,7 +509,7 @@ class ProjectServiceClient {
|
|
|
509
509
|
this._gaxModule.routingHeader.fromParams({
|
|
510
510
|
project: request.project ?? '',
|
|
511
511
|
});
|
|
512
|
-
this.initialize().catch(
|
|
512
|
+
this.initialize().catch(err => {
|
|
513
513
|
throw err;
|
|
514
514
|
});
|
|
515
515
|
this._log.info('reportConsentChange request %j', request);
|
|
@@ -552,7 +552,7 @@ class ProjectServiceClient {
|
|
|
552
552
|
this._gaxModule.routingHeader.fromParams({
|
|
553
553
|
name: request.name ?? '',
|
|
554
554
|
});
|
|
555
|
-
this.initialize().catch(
|
|
555
|
+
this.initialize().catch(err => {
|
|
556
556
|
throw err;
|
|
557
557
|
});
|
|
558
558
|
const wrappedCallback = callback
|
|
@@ -3119,11 +3119,11 @@ class ProjectServiceClient {
|
|
|
3119
3119
|
*/
|
|
3120
3120
|
close() {
|
|
3121
3121
|
if (this.projectServiceStub && !this._terminated) {
|
|
3122
|
-
return this.projectServiceStub.then(
|
|
3122
|
+
return this.projectServiceStub.then(stub => {
|
|
3123
3123
|
this._log.info('ending gRPC channel');
|
|
3124
3124
|
this._terminated = true;
|
|
3125
3125
|
stub.close();
|
|
3126
|
-
this.locationsClient.close().catch(
|
|
3126
|
+
this.locationsClient.close().catch(err => {
|
|
3127
3127
|
throw err;
|
|
3128
3128
|
});
|
|
3129
3129
|
void this.operationsClient.close();
|
|
@@ -243,7 +243,7 @@ class RankServiceClient {
|
|
|
243
243
|
// and create an API call method for each.
|
|
244
244
|
const rankServiceStubMethods = ['rank'];
|
|
245
245
|
for (const methodName of rankServiceStubMethods) {
|
|
246
|
-
const callPromise = this.rankServiceStub.then(
|
|
246
|
+
const callPromise = this.rankServiceStub.then(stub => (...args) => {
|
|
247
247
|
if (this._terminated) {
|
|
248
248
|
return Promise.reject('The client has already been closed.');
|
|
249
249
|
}
|
|
@@ -335,7 +335,7 @@ class RankServiceClient {
|
|
|
335
335
|
this._gaxModule.routingHeader.fromParams({
|
|
336
336
|
ranking_config: request.rankingConfig ?? '',
|
|
337
337
|
});
|
|
338
|
-
this.initialize().catch(
|
|
338
|
+
this.initialize().catch(err => {
|
|
339
339
|
throw err;
|
|
340
340
|
});
|
|
341
341
|
this._log.info('rank request %j', request);
|
|
@@ -2761,11 +2761,11 @@ class RankServiceClient {
|
|
|
2761
2761
|
*/
|
|
2762
2762
|
close() {
|
|
2763
2763
|
if (this.rankServiceStub && !this._terminated) {
|
|
2764
|
-
return this.rankServiceStub.then(
|
|
2764
|
+
return this.rankServiceStub.then(stub => {
|
|
2765
2765
|
this._log.info('ending gRPC channel');
|
|
2766
2766
|
this._terminated = true;
|
|
2767
2767
|
stub.close();
|
|
2768
|
-
this.locationsClient.close().catch(
|
|
2768
|
+
this.locationsClient.close().catch(err => {
|
|
2769
2769
|
throw err;
|
|
2770
2770
|
});
|
|
2771
2771
|
});
|
|
@@ -243,7 +243,7 @@ class RecommendationServiceClient {
|
|
|
243
243
|
// and create an API call method for each.
|
|
244
244
|
const recommendationServiceStubMethods = ['recommend'];
|
|
245
245
|
for (const methodName of recommendationServiceStubMethods) {
|
|
246
|
-
const callPromise = this.recommendationServiceStub.then(
|
|
246
|
+
const callPromise = this.recommendationServiceStub.then(stub => (...args) => {
|
|
247
247
|
if (this._terminated) {
|
|
248
248
|
return Promise.reject('The client has already been closed.');
|
|
249
249
|
}
|
|
@@ -335,7 +335,7 @@ class RecommendationServiceClient {
|
|
|
335
335
|
this._gaxModule.routingHeader.fromParams({
|
|
336
336
|
serving_config: request.servingConfig ?? '',
|
|
337
337
|
});
|
|
338
|
-
this.initialize().catch(
|
|
338
|
+
this.initialize().catch(err => {
|
|
339
339
|
throw err;
|
|
340
340
|
});
|
|
341
341
|
this._log.info('recommend request %j', request);
|
|
@@ -2713,11 +2713,11 @@ class RecommendationServiceClient {
|
|
|
2713
2713
|
*/
|
|
2714
2714
|
close() {
|
|
2715
2715
|
if (this.recommendationServiceStub && !this._terminated) {
|
|
2716
|
-
return this.recommendationServiceStub.then(
|
|
2716
|
+
return this.recommendationServiceStub.then(stub => {
|
|
2717
2717
|
this._log.info('ending gRPC channel');
|
|
2718
2718
|
this._terminated = true;
|
|
2719
2719
|
stub.close();
|
|
2720
|
-
this.locationsClient.close().catch(
|
|
2720
|
+
this.locationsClient.close().catch(err => {
|
|
2721
2721
|
throw err;
|
|
2722
2722
|
});
|
|
2723
2723
|
});
|
|
@@ -383,7 +383,7 @@ class SampleQueryServiceClient {
|
|
|
383
383
|
'importSampleQueries',
|
|
384
384
|
];
|
|
385
385
|
for (const methodName of sampleQueryServiceStubMethods) {
|
|
386
|
-
const callPromise = this.sampleQueryServiceStub.then(
|
|
386
|
+
const callPromise = this.sampleQueryServiceStub.then(stub => (...args) => {
|
|
387
387
|
if (this._terminated) {
|
|
388
388
|
return Promise.reject('The client has already been closed.');
|
|
389
389
|
}
|
|
@@ -477,7 +477,7 @@ class SampleQueryServiceClient {
|
|
|
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('getSampleQuery request %j', request);
|
|
@@ -520,7 +520,7 @@ class SampleQueryServiceClient {
|
|
|
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
|
this._log.info('createSampleQuery request %j', request);
|
|
@@ -563,7 +563,7 @@ class SampleQueryServiceClient {
|
|
|
563
563
|
this._gaxModule.routingHeader.fromParams({
|
|
564
564
|
'sample_query.name': request.sampleQuery.name ?? '',
|
|
565
565
|
});
|
|
566
|
-
this.initialize().catch(
|
|
566
|
+
this.initialize().catch(err => {
|
|
567
567
|
throw err;
|
|
568
568
|
});
|
|
569
569
|
this._log.info('updateSampleQuery request %j', request);
|
|
@@ -606,7 +606,7 @@ class SampleQueryServiceClient {
|
|
|
606
606
|
this._gaxModule.routingHeader.fromParams({
|
|
607
607
|
name: request.name ?? '',
|
|
608
608
|
});
|
|
609
|
-
this.initialize().catch(
|
|
609
|
+
this.initialize().catch(err => {
|
|
610
610
|
throw err;
|
|
611
611
|
});
|
|
612
612
|
this._log.info('deleteSampleQuery request %j', request);
|
|
@@ -649,7 +649,7 @@ class SampleQueryServiceClient {
|
|
|
649
649
|
this._gaxModule.routingHeader.fromParams({
|
|
650
650
|
parent: request.parent ?? '',
|
|
651
651
|
});
|
|
652
|
-
this.initialize().catch(
|
|
652
|
+
this.initialize().catch(err => {
|
|
653
653
|
throw err;
|
|
654
654
|
});
|
|
655
655
|
const wrappedCallback = callback
|
|
@@ -701,7 +701,7 @@ class SampleQueryServiceClient {
|
|
|
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
|
const wrappedCallback = callback
|
|
@@ -770,7 +770,7 @@ class SampleQueryServiceClient {
|
|
|
770
770
|
});
|
|
771
771
|
const defaultCallSettings = this._defaults['listSampleQueries'];
|
|
772
772
|
const callSettings = defaultCallSettings.merge(options);
|
|
773
|
-
this.initialize().catch(
|
|
773
|
+
this.initialize().catch(err => {
|
|
774
774
|
throw err;
|
|
775
775
|
});
|
|
776
776
|
this._log.info('listSampleQueries stream %j', request);
|
|
@@ -831,7 +831,7 @@ class SampleQueryServiceClient {
|
|
|
831
831
|
});
|
|
832
832
|
const defaultCallSettings = this._defaults['listSampleQueries'];
|
|
833
833
|
const callSettings = defaultCallSettings.merge(options);
|
|
834
|
-
this.initialize().catch(
|
|
834
|
+
this.initialize().catch(err => {
|
|
835
835
|
throw err;
|
|
836
836
|
});
|
|
837
837
|
this._log.info('listSampleQueries iterate %j', request);
|
|
@@ -3369,11 +3369,11 @@ class SampleQueryServiceClient {
|
|
|
3369
3369
|
*/
|
|
3370
3370
|
close() {
|
|
3371
3371
|
if (this.sampleQueryServiceStub && !this._terminated) {
|
|
3372
|
-
return this.sampleQueryServiceStub.then(
|
|
3372
|
+
return this.sampleQueryServiceStub.then(stub => {
|
|
3373
3373
|
this._log.info('ending gRPC channel');
|
|
3374
3374
|
this._terminated = true;
|
|
3375
3375
|
stub.close();
|
|
3376
|
-
this.locationsClient.close().catch(
|
|
3376
|
+
this.locationsClient.close().catch(err => {
|
|
3377
3377
|
throw err;
|
|
3378
3378
|
});
|
|
3379
3379
|
void this.operationsClient.close();
|
|
@@ -257,7 +257,7 @@ class SampleQuerySetServiceClient {
|
|
|
257
257
|
'deleteSampleQuerySet',
|
|
258
258
|
];
|
|
259
259
|
for (const methodName of sampleQuerySetServiceStubMethods) {
|
|
260
|
-
const callPromise = this.sampleQuerySetServiceStub.then(
|
|
260
|
+
const callPromise = this.sampleQuerySetServiceStub.then(stub => (...args) => {
|
|
261
261
|
if (this._terminated) {
|
|
262
262
|
return Promise.reject('The client has already been closed.');
|
|
263
263
|
}
|
|
@@ -349,7 +349,7 @@ class SampleQuerySetServiceClient {
|
|
|
349
349
|
this._gaxModule.routingHeader.fromParams({
|
|
350
350
|
name: request.name ?? '',
|
|
351
351
|
});
|
|
352
|
-
this.initialize().catch(
|
|
352
|
+
this.initialize().catch(err => {
|
|
353
353
|
throw err;
|
|
354
354
|
});
|
|
355
355
|
this._log.info('getSampleQuerySet request %j', request);
|
|
@@ -392,7 +392,7 @@ class SampleQuerySetServiceClient {
|
|
|
392
392
|
this._gaxModule.routingHeader.fromParams({
|
|
393
393
|
parent: request.parent ?? '',
|
|
394
394
|
});
|
|
395
|
-
this.initialize().catch(
|
|
395
|
+
this.initialize().catch(err => {
|
|
396
396
|
throw err;
|
|
397
397
|
});
|
|
398
398
|
this._log.info('createSampleQuerySet request %j', request);
|
|
@@ -435,7 +435,7 @@ class SampleQuerySetServiceClient {
|
|
|
435
435
|
this._gaxModule.routingHeader.fromParams({
|
|
436
436
|
'sample_query_set.name': request.sampleQuerySet.name ?? '',
|
|
437
437
|
});
|
|
438
|
-
this.initialize().catch(
|
|
438
|
+
this.initialize().catch(err => {
|
|
439
439
|
throw err;
|
|
440
440
|
});
|
|
441
441
|
this._log.info('updateSampleQuerySet request %j', request);
|
|
@@ -478,7 +478,7 @@ class SampleQuerySetServiceClient {
|
|
|
478
478
|
this._gaxModule.routingHeader.fromParams({
|
|
479
479
|
name: request.name ?? '',
|
|
480
480
|
});
|
|
481
|
-
this.initialize().catch(
|
|
481
|
+
this.initialize().catch(err => {
|
|
482
482
|
throw err;
|
|
483
483
|
});
|
|
484
484
|
this._log.info('deleteSampleQuerySet request %j', request);
|
|
@@ -521,7 +521,7 @@ class SampleQuerySetServiceClient {
|
|
|
521
521
|
this._gaxModule.routingHeader.fromParams({
|
|
522
522
|
parent: request.parent ?? '',
|
|
523
523
|
});
|
|
524
|
-
this.initialize().catch(
|
|
524
|
+
this.initialize().catch(err => {
|
|
525
525
|
throw err;
|
|
526
526
|
});
|
|
527
527
|
const wrappedCallback = callback
|
|
@@ -590,7 +590,7 @@ class SampleQuerySetServiceClient {
|
|
|
590
590
|
});
|
|
591
591
|
const defaultCallSettings = this._defaults['listSampleQuerySets'];
|
|
592
592
|
const callSettings = defaultCallSettings.merge(options);
|
|
593
|
-
this.initialize().catch(
|
|
593
|
+
this.initialize().catch(err => {
|
|
594
594
|
throw err;
|
|
595
595
|
});
|
|
596
596
|
this._log.info('listSampleQuerySets stream %j', request);
|
|
@@ -651,7 +651,7 @@ class SampleQuerySetServiceClient {
|
|
|
651
651
|
});
|
|
652
652
|
const defaultCallSettings = this._defaults['listSampleQuerySets'];
|
|
653
653
|
const callSettings = defaultCallSettings.merge(options);
|
|
654
|
-
this.initialize().catch(
|
|
654
|
+
this.initialize().catch(err => {
|
|
655
655
|
throw err;
|
|
656
656
|
});
|
|
657
657
|
this._log.info('listSampleQuerySets iterate %j', request);
|
|
@@ -3042,11 +3042,11 @@ class SampleQuerySetServiceClient {
|
|
|
3042
3042
|
*/
|
|
3043
3043
|
close() {
|
|
3044
3044
|
if (this.sampleQuerySetServiceStub && !this._terminated) {
|
|
3045
|
-
return this.sampleQuerySetServiceStub.then(
|
|
3045
|
+
return this.sampleQuerySetServiceStub.then(stub => {
|
|
3046
3046
|
this._log.info('ending gRPC channel');
|
|
3047
3047
|
this._terminated = true;
|
|
3048
3048
|
stub.close();
|
|
3049
|
-
this.locationsClient.close().catch(
|
|
3049
|
+
this.locationsClient.close().catch(err => {
|
|
3050
3050
|
throw err;
|
|
3051
3051
|
});
|
|
3052
3052
|
});
|
|
@@ -387,7 +387,7 @@ class SchemaServiceClient {
|
|
|
387
387
|
'deleteSchema',
|
|
388
388
|
];
|
|
389
389
|
for (const methodName of schemaServiceStubMethods) {
|
|
390
|
-
const callPromise = this.schemaServiceStub.then(
|
|
390
|
+
const callPromise = this.schemaServiceStub.then(stub => (...args) => {
|
|
391
391
|
if (this._terminated) {
|
|
392
392
|
return Promise.reject('The client has already been closed.');
|
|
393
393
|
}
|
|
@@ -481,7 +481,7 @@ class SchemaServiceClient {
|
|
|
481
481
|
this._gaxModule.routingHeader.fromParams({
|
|
482
482
|
name: request.name ?? '',
|
|
483
483
|
});
|
|
484
|
-
this.initialize().catch(
|
|
484
|
+
this.initialize().catch(err => {
|
|
485
485
|
throw err;
|
|
486
486
|
});
|
|
487
487
|
this._log.info('getSchema request %j', request);
|
|
@@ -524,7 +524,7 @@ class SchemaServiceClient {
|
|
|
524
524
|
this._gaxModule.routingHeader.fromParams({
|
|
525
525
|
parent: request.parent ?? '',
|
|
526
526
|
});
|
|
527
|
-
this.initialize().catch(
|
|
527
|
+
this.initialize().catch(err => {
|
|
528
528
|
throw err;
|
|
529
529
|
});
|
|
530
530
|
const wrappedCallback = callback
|
|
@@ -576,7 +576,7 @@ class SchemaServiceClient {
|
|
|
576
576
|
this._gaxModule.routingHeader.fromParams({
|
|
577
577
|
'schema.name': request.schema.name ?? '',
|
|
578
578
|
});
|
|
579
|
-
this.initialize().catch(
|
|
579
|
+
this.initialize().catch(err => {
|
|
580
580
|
throw err;
|
|
581
581
|
});
|
|
582
582
|
const wrappedCallback = callback
|
|
@@ -628,7 +628,7 @@ class SchemaServiceClient {
|
|
|
628
628
|
this._gaxModule.routingHeader.fromParams({
|
|
629
629
|
name: request.name ?? '',
|
|
630
630
|
});
|
|
631
|
-
this.initialize().catch(
|
|
631
|
+
this.initialize().catch(err => {
|
|
632
632
|
throw err;
|
|
633
633
|
});
|
|
634
634
|
const wrappedCallback = callback
|
|
@@ -680,7 +680,7 @@ class SchemaServiceClient {
|
|
|
680
680
|
this._gaxModule.routingHeader.fromParams({
|
|
681
681
|
parent: request.parent ?? '',
|
|
682
682
|
});
|
|
683
|
-
this.initialize().catch(
|
|
683
|
+
this.initialize().catch(err => {
|
|
684
684
|
throw err;
|
|
685
685
|
});
|
|
686
686
|
const wrappedCallback = callback
|
|
@@ -743,7 +743,7 @@ class SchemaServiceClient {
|
|
|
743
743
|
});
|
|
744
744
|
const defaultCallSettings = this._defaults['listSchemas'];
|
|
745
745
|
const callSettings = defaultCallSettings.merge(options);
|
|
746
|
-
this.initialize().catch(
|
|
746
|
+
this.initialize().catch(err => {
|
|
747
747
|
throw err;
|
|
748
748
|
});
|
|
749
749
|
this._log.info('listSchemas stream %j', request);
|
|
@@ -798,7 +798,7 @@ class SchemaServiceClient {
|
|
|
798
798
|
});
|
|
799
799
|
const defaultCallSettings = this._defaults['listSchemas'];
|
|
800
800
|
const callSettings = defaultCallSettings.merge(options);
|
|
801
|
-
this.initialize().catch(
|
|
801
|
+
this.initialize().catch(err => {
|
|
802
802
|
throw err;
|
|
803
803
|
});
|
|
804
804
|
this._log.info('listSchemas iterate %j', request);
|
|
@@ -3336,11 +3336,11 @@ class SchemaServiceClient {
|
|
|
3336
3336
|
*/
|
|
3337
3337
|
close() {
|
|
3338
3338
|
if (this.schemaServiceStub && !this._terminated) {
|
|
3339
|
-
return this.schemaServiceStub.then(
|
|
3339
|
+
return this.schemaServiceStub.then(stub => {
|
|
3340
3340
|
this._log.info('ending gRPC channel');
|
|
3341
3341
|
this._terminated = true;
|
|
3342
3342
|
stub.close();
|
|
3343
|
-
this.locationsClient.close().catch(
|
|
3343
|
+
this.locationsClient.close().catch(err => {
|
|
3344
3344
|
throw err;
|
|
3345
3345
|
});
|
|
3346
3346
|
void this.operationsClient.close();
|
|
@@ -250,7 +250,7 @@ class SearchServiceClient {
|
|
|
250
250
|
// and create an API call method for each.
|
|
251
251
|
const searchServiceStubMethods = ['search'];
|
|
252
252
|
for (const methodName of searchServiceStubMethods) {
|
|
253
|
-
const callPromise = this.searchServiceStub.then(
|
|
253
|
+
const callPromise = this.searchServiceStub.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 SearchServiceClient {
|
|
|
342
342
|
this._gaxModule.routingHeader.fromParams({
|
|
343
343
|
serving_config: request.servingConfig ?? '',
|
|
344
344
|
});
|
|
345
|
-
this.initialize().catch(
|
|
345
|
+
this.initialize().catch(err => {
|
|
346
346
|
throw err;
|
|
347
347
|
});
|
|
348
348
|
const wrappedCallback = callback
|
|
@@ -709,7 +709,7 @@ class SearchServiceClient {
|
|
|
709
709
|
});
|
|
710
710
|
const defaultCallSettings = this._defaults['search'];
|
|
711
711
|
const callSettings = defaultCallSettings.merge(options);
|
|
712
|
-
this.initialize().catch(
|
|
712
|
+
this.initialize().catch(err => {
|
|
713
713
|
throw err;
|
|
714
714
|
});
|
|
715
715
|
this._log.info('search stream %j', request);
|
|
@@ -1068,7 +1068,7 @@ class SearchServiceClient {
|
|
|
1068
1068
|
});
|
|
1069
1069
|
const defaultCallSettings = this._defaults['search'];
|
|
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('search iterate %j', request);
|
|
@@ -3552,11 +3552,11 @@ class SearchServiceClient {
|
|
|
3552
3552
|
*/
|
|
3553
3553
|
close() {
|
|
3554
3554
|
if (this.searchServiceStub && !this._terminated) {
|
|
3555
|
-
return this.searchServiceStub.then(
|
|
3555
|
+
return this.searchServiceStub.then(stub => {
|
|
3556
3556
|
this._log.info('ending gRPC channel');
|
|
3557
3557
|
this._terminated = true;
|
|
3558
3558
|
stub.close();
|
|
3559
|
-
this.locationsClient.close().catch(
|
|
3559
|
+
this.locationsClient.close().catch(err => {
|
|
3560
3560
|
throw err;
|
|
3561
3561
|
});
|
|
3562
3562
|
});
|
|
@@ -372,7 +372,7 @@ class SearchTuningServiceClient {
|
|
|
372
372
|
'listCustomModels',
|
|
373
373
|
];
|
|
374
374
|
for (const methodName of searchTuningServiceStubMethods) {
|
|
375
|
-
const callPromise = this.searchTuningServiceStub.then(
|
|
375
|
+
const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
|
|
376
376
|
if (this._terminated) {
|
|
377
377
|
return Promise.reject('The client has already been closed.');
|
|
378
378
|
}
|
|
@@ -464,7 +464,7 @@ class SearchTuningServiceClient {
|
|
|
464
464
|
this._gaxModule.routingHeader.fromParams({
|
|
465
465
|
data_store: request.dataStore ?? '',
|
|
466
466
|
});
|
|
467
|
-
this.initialize().catch(
|
|
467
|
+
this.initialize().catch(err => {
|
|
468
468
|
throw err;
|
|
469
469
|
});
|
|
470
470
|
this._log.info('listCustomModels request %j', request);
|
|
@@ -507,7 +507,7 @@ class SearchTuningServiceClient {
|
|
|
507
507
|
this._gaxModule.routingHeader.fromParams({
|
|
508
508
|
data_store: request.dataStore ?? '',
|
|
509
509
|
});
|
|
510
|
-
this.initialize().catch(
|
|
510
|
+
this.initialize().catch(err => {
|
|
511
511
|
throw err;
|
|
512
512
|
});
|
|
513
513
|
const wrappedCallback = callback
|
|
@@ -3074,11 +3074,11 @@ class SearchTuningServiceClient {
|
|
|
3074
3074
|
*/
|
|
3075
3075
|
close() {
|
|
3076
3076
|
if (this.searchTuningServiceStub && !this._terminated) {
|
|
3077
|
-
return this.searchTuningServiceStub.then(
|
|
3077
|
+
return this.searchTuningServiceStub.then(stub => {
|
|
3078
3078
|
this._log.info('ending gRPC channel');
|
|
3079
3079
|
this._terminated = true;
|
|
3080
3080
|
stub.close();
|
|
3081
|
-
this.locationsClient.close().catch(
|
|
3081
|
+
this.locationsClient.close().catch(err => {
|
|
3082
3082
|
throw err;
|
|
3083
3083
|
});
|
|
3084
3084
|
void this.operationsClient.close();
|
|
@@ -254,7 +254,7 @@ class ServingConfigServiceClient {
|
|
|
254
254
|
'listServingConfigs',
|
|
255
255
|
];
|
|
256
256
|
for (const methodName of servingConfigServiceStubMethods) {
|
|
257
|
-
const callPromise = this.servingConfigServiceStub.then(
|
|
257
|
+
const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
|
|
258
258
|
if (this._terminated) {
|
|
259
259
|
return Promise.reject('The client has already been closed.');
|
|
260
260
|
}
|
|
@@ -346,7 +346,7 @@ class ServingConfigServiceClient {
|
|
|
346
346
|
this._gaxModule.routingHeader.fromParams({
|
|
347
347
|
'serving_config.name': request.servingConfig.name ?? '',
|
|
348
348
|
});
|
|
349
|
-
this.initialize().catch(
|
|
349
|
+
this.initialize().catch(err => {
|
|
350
350
|
throw err;
|
|
351
351
|
});
|
|
352
352
|
this._log.info('updateServingConfig request %j', request);
|
|
@@ -389,7 +389,7 @@ class ServingConfigServiceClient {
|
|
|
389
389
|
this._gaxModule.routingHeader.fromParams({
|
|
390
390
|
name: request.name ?? '',
|
|
391
391
|
});
|
|
392
|
-
this.initialize().catch(
|
|
392
|
+
this.initialize().catch(err => {
|
|
393
393
|
throw err;
|
|
394
394
|
});
|
|
395
395
|
this._log.info('getServingConfig request %j', request);
|
|
@@ -432,7 +432,7 @@ class ServingConfigServiceClient {
|
|
|
432
432
|
this._gaxModule.routingHeader.fromParams({
|
|
433
433
|
parent: request.parent ?? '',
|
|
434
434
|
});
|
|
435
|
-
this.initialize().catch(
|
|
435
|
+
this.initialize().catch(err => {
|
|
436
436
|
throw err;
|
|
437
437
|
});
|
|
438
438
|
const wrappedCallback = callback
|
|
@@ -485,7 +485,7 @@ class ServingConfigServiceClient {
|
|
|
485
485
|
});
|
|
486
486
|
const defaultCallSettings = this._defaults['listServingConfigs'];
|
|
487
487
|
const callSettings = defaultCallSettings.merge(options);
|
|
488
|
-
this.initialize().catch(
|
|
488
|
+
this.initialize().catch(err => {
|
|
489
489
|
throw err;
|
|
490
490
|
});
|
|
491
491
|
this._log.info('listServingConfigs stream %j', request);
|
|
@@ -530,7 +530,7 @@ class ServingConfigServiceClient {
|
|
|
530
530
|
});
|
|
531
531
|
const defaultCallSettings = this._defaults['listServingConfigs'];
|
|
532
532
|
const callSettings = defaultCallSettings.merge(options);
|
|
533
|
-
this.initialize().catch(
|
|
533
|
+
this.initialize().catch(err => {
|
|
534
534
|
throw err;
|
|
535
535
|
});
|
|
536
536
|
this._log.info('listServingConfigs iterate %j', request);
|
|
@@ -2921,11 +2921,11 @@ class ServingConfigServiceClient {
|
|
|
2921
2921
|
*/
|
|
2922
2922
|
close() {
|
|
2923
2923
|
if (this.servingConfigServiceStub && !this._terminated) {
|
|
2924
|
-
return this.servingConfigServiceStub.then(
|
|
2924
|
+
return this.servingConfigServiceStub.then(stub => {
|
|
2925
2925
|
this._log.info('ending gRPC channel');
|
|
2926
2926
|
this._terminated = true;
|
|
2927
2927
|
stub.close();
|
|
2928
|
-
this.locationsClient.close().catch(
|
|
2928
|
+
this.locationsClient.close().catch(err => {
|
|
2929
2929
|
throw err;
|
|
2930
2930
|
});
|
|
2931
2931
|
});
|
|
@@ -256,7 +256,7 @@ class SessionServiceClient {
|
|
|
256
256
|
'listFiles',
|
|
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);
|
|
@@ -707,7 +707,7 @@ class SessionServiceClient {
|
|
|
707
707
|
this._gaxModule.routingHeader.fromParams({
|
|
708
708
|
parent: request.parent ?? '',
|
|
709
709
|
});
|
|
710
|
-
this.initialize().catch(
|
|
710
|
+
this.initialize().catch(err => {
|
|
711
711
|
throw err;
|
|
712
712
|
});
|
|
713
713
|
const wrappedCallback = callback
|
|
@@ -786,7 +786,7 @@ class SessionServiceClient {
|
|
|
786
786
|
});
|
|
787
787
|
const defaultCallSettings = this._defaults['listFiles'];
|
|
788
788
|
const callSettings = defaultCallSettings.merge(options);
|
|
789
|
-
this.initialize().catch(
|
|
789
|
+
this.initialize().catch(err => {
|
|
790
790
|
throw err;
|
|
791
791
|
});
|
|
792
792
|
this._log.info('listFiles stream %j', request);
|
|
@@ -857,7 +857,7 @@ class SessionServiceClient {
|
|
|
857
857
|
});
|
|
858
858
|
const defaultCallSettings = this._defaults['listFiles'];
|
|
859
859
|
const callSettings = defaultCallSettings.merge(options);
|
|
860
|
-
this.initialize().catch(
|
|
860
|
+
this.initialize().catch(err => {
|
|
861
861
|
throw err;
|
|
862
862
|
});
|
|
863
863
|
this._log.info('listFiles iterate %j', request);
|
|
@@ -3215,11 +3215,11 @@ class SessionServiceClient {
|
|
|
3215
3215
|
*/
|
|
3216
3216
|
close() {
|
|
3217
3217
|
if (this.sessionServiceStub && !this._terminated) {
|
|
3218
|
-
return this.sessionServiceStub.then(
|
|
3218
|
+
return this.sessionServiceStub.then(stub => {
|
|
3219
3219
|
this._log.info('ending gRPC channel');
|
|
3220
3220
|
this._terminated = true;
|
|
3221
3221
|
stub.close();
|
|
3222
|
-
this.locationsClient.close().catch(
|
|
3222
|
+
this.locationsClient.close().catch(err => {
|
|
3223
3223
|
throw err;
|
|
3224
3224
|
});
|
|
3225
3225
|
});
|