@google-cloud/discoveryengine 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/assistant_service.proto +19 -0
- package/build/protos/protos.d.ts +406 -0
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +64 -0
- package/build/src/v1/assistant_service_client.d.ts +2 -0
- package/build/src/v1/assistant_service_client.js +6 -4
- package/build/src/v1/cmek_config_service_client.js +9 -13
- package/build/src/v1/completion_service_client.js +10 -14
- package/build/src/v1/control_service_client.js +10 -10
- package/build/src/v1/conversational_search_service_client.js +21 -21
- package/build/src/v1/data_store_service_client.js +12 -16
- package/build/src/v1/document_service_client.js +15 -19
- package/build/src/v1/engine_service_client.js +12 -16
- package/build/src/v1/grounded_generation_service_client.js +6 -6
- package/build/src/v1/identity_mapping_store_service_client.js +16 -20
- package/build/src/v1/project_service_client.js +6 -10
- package/build/src/v1/rank_service_client.js +4 -4
- package/build/src/v1/recommendation_service_client.js +4 -4
- package/build/src/v1/schema_service_client.js +12 -16
- package/build/src/v1/search_service_client.js +9 -9
- package/build/src/v1/search_tuning_service_client.js +7 -11
- package/build/src/v1/serving_config_service_client.js +4 -4
- package/build/src/v1/session_service_client.js +10 -10
- package/build/src/v1/site_search_engine_service_client.js +24 -28
- package/build/src/v1/user_event_service_client.js +9 -13
- package/build/src/v1/user_license_service_client.js +9 -13
- package/build/src/v1alpha/acl_config_service_client.js +5 -5
- package/build/src/v1alpha/chunk_service_client.js +7 -7
- package/build/src/v1alpha/completion_service_client.js +8 -8
- package/build/src/v1alpha/control_service_client.js +10 -10
- package/build/src/v1alpha/conversational_search_service_client.js +20 -20
- package/build/src/v1alpha/data_store_service_client.js +12 -12
- package/build/src/v1alpha/document_service_client.js +14 -14
- package/build/src/v1alpha/engine_service_client.js +13 -13
- package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
- package/build/src/v1alpha/evaluation_service_client.js +11 -11
- package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
- package/build/src/v1alpha/project_service_client.js +6 -6
- package/build/src/v1alpha/rank_service_client.js +4 -4
- package/build/src/v1alpha/recommendation_service_client.js +4 -4
- package/build/src/v1alpha/sample_query_service_client.js +11 -11
- package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
- package/build/src/v1alpha/schema_service_client.js +10 -10
- package/build/src/v1alpha/search_service_client.js +6 -6
- package/build/src/v1alpha/search_tuning_service_client.js +5 -5
- package/build/src/v1alpha/serving_config_service_client.js +8 -8
- package/build/src/v1alpha/session_service_client.js +13 -13
- package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
- package/build/src/v1alpha/user_event_service_client.js +7 -7
- package/build/src/v1beta/acl_config_service_client.js +5 -5
- package/build/src/v1beta/assistant_service_client.d.ts +2 -0
- package/build/src/v1beta/assistant_service_client.js +13 -11
- package/build/src/v1beta/cmek_config_service_client.js +7 -7
- package/build/src/v1beta/completion_service_client.js +10 -10
- package/build/src/v1beta/control_service_client.js +10 -10
- package/build/src/v1beta/conversational_search_service_client.js +21 -21
- package/build/src/v1beta/data_store_service_client.js +10 -10
- package/build/src/v1beta/document_service_client.js +13 -13
- package/build/src/v1beta/engine_service_client.js +15 -15
- package/build/src/v1beta/evaluation_service_client.js +11 -11
- package/build/src/v1beta/grounded_generation_service_client.js +6 -6
- package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
- package/build/src/v1beta/license_config_service_client.js +11 -11
- package/build/src/v1beta/project_service_client.js +4 -4
- package/build/src/v1beta/rank_service_client.js +4 -4
- package/build/src/v1beta/recommendation_service_client.js +4 -4
- package/build/src/v1beta/sample_query_service_client.js +11 -11
- package/build/src/v1beta/sample_query_set_service_client.js +10 -10
- package/build/src/v1beta/schema_service_client.js +10 -10
- package/build/src/v1beta/search_service_client.js +9 -9
- package/build/src/v1beta/search_tuning_service_client.js +5 -5
- package/build/src/v1beta/serving_config_service_client.js +10 -10
- package/build/src/v1beta/session_service_client.js +10 -10
- package/build/src/v1beta/site_search_engine_service_client.js +22 -22
- package/build/src/v1beta/user_event_service_client.js +7 -7
- package/build/src/v1beta/user_license_service_client.js +8 -8
- package/build/src/v1beta/user_store_service_client.js +5 -5
- package/package.json +1 -1
|
@@ -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
|
});
|
|
@@ -416,7 +416,7 @@ class SiteSearchEngineServiceClient {
|
|
|
416
416
|
'getUriPatternDocumentData',
|
|
417
417
|
];
|
|
418
418
|
for (const methodName of siteSearchEngineServiceStubMethods) {
|
|
419
|
-
const callPromise = this.siteSearchEngineServiceStub.then(
|
|
419
|
+
const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
|
|
420
420
|
if (this._terminated) {
|
|
421
421
|
return Promise.reject('The client has already been closed.');
|
|
422
422
|
}
|
|
@@ -510,7 +510,7 @@ class SiteSearchEngineServiceClient {
|
|
|
510
510
|
this._gaxModule.routingHeader.fromParams({
|
|
511
511
|
name: request.name ?? '',
|
|
512
512
|
});
|
|
513
|
-
this.initialize().catch(
|
|
513
|
+
this.initialize().catch(err => {
|
|
514
514
|
throw err;
|
|
515
515
|
});
|
|
516
516
|
this._log.info('getSiteSearchEngine request %j', request);
|
|
@@ -553,7 +553,7 @@ class SiteSearchEngineServiceClient {
|
|
|
553
553
|
this._gaxModule.routingHeader.fromParams({
|
|
554
554
|
name: request.name ?? '',
|
|
555
555
|
});
|
|
556
|
-
this.initialize().catch(
|
|
556
|
+
this.initialize().catch(err => {
|
|
557
557
|
throw err;
|
|
558
558
|
});
|
|
559
559
|
this._log.info('getTargetSite request %j', request);
|
|
@@ -596,7 +596,7 @@ class SiteSearchEngineServiceClient {
|
|
|
596
596
|
this._gaxModule.routingHeader.fromParams({
|
|
597
597
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
598
598
|
});
|
|
599
|
-
this.initialize().catch(
|
|
599
|
+
this.initialize().catch(err => {
|
|
600
600
|
throw err;
|
|
601
601
|
});
|
|
602
602
|
this._log.info('getUriPatternDocumentData request %j', request);
|
|
@@ -639,7 +639,7 @@ class SiteSearchEngineServiceClient {
|
|
|
639
639
|
this._gaxModule.routingHeader.fromParams({
|
|
640
640
|
parent: request.parent ?? '',
|
|
641
641
|
});
|
|
642
|
-
this.initialize().catch(
|
|
642
|
+
this.initialize().catch(err => {
|
|
643
643
|
throw err;
|
|
644
644
|
});
|
|
645
645
|
const wrappedCallback = callback
|
|
@@ -691,7 +691,7 @@ class SiteSearchEngineServiceClient {
|
|
|
691
691
|
this._gaxModule.routingHeader.fromParams({
|
|
692
692
|
parent: request.parent ?? '',
|
|
693
693
|
});
|
|
694
|
-
this.initialize().catch(
|
|
694
|
+
this.initialize().catch(err => {
|
|
695
695
|
throw err;
|
|
696
696
|
});
|
|
697
697
|
const wrappedCallback = callback
|
|
@@ -743,7 +743,7 @@ class SiteSearchEngineServiceClient {
|
|
|
743
743
|
this._gaxModule.routingHeader.fromParams({
|
|
744
744
|
'target_site.name': request.targetSite.name ?? '',
|
|
745
745
|
});
|
|
746
|
-
this.initialize().catch(
|
|
746
|
+
this.initialize().catch(err => {
|
|
747
747
|
throw err;
|
|
748
748
|
});
|
|
749
749
|
const wrappedCallback = callback
|
|
@@ -795,7 +795,7 @@ class SiteSearchEngineServiceClient {
|
|
|
795
795
|
this._gaxModule.routingHeader.fromParams({
|
|
796
796
|
name: request.name ?? '',
|
|
797
797
|
});
|
|
798
|
-
this.initialize().catch(
|
|
798
|
+
this.initialize().catch(err => {
|
|
799
799
|
throw err;
|
|
800
800
|
});
|
|
801
801
|
const wrappedCallback = callback
|
|
@@ -847,7 +847,7 @@ class SiteSearchEngineServiceClient {
|
|
|
847
847
|
this._gaxModule.routingHeader.fromParams({
|
|
848
848
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
849
849
|
});
|
|
850
|
-
this.initialize().catch(
|
|
850
|
+
this.initialize().catch(err => {
|
|
851
851
|
throw err;
|
|
852
852
|
});
|
|
853
853
|
const wrappedCallback = callback
|
|
@@ -899,7 +899,7 @@ class SiteSearchEngineServiceClient {
|
|
|
899
899
|
this._gaxModule.routingHeader.fromParams({
|
|
900
900
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
901
901
|
});
|
|
902
|
-
this.initialize().catch(
|
|
902
|
+
this.initialize().catch(err => {
|
|
903
903
|
throw err;
|
|
904
904
|
});
|
|
905
905
|
const wrappedCallback = callback
|
|
@@ -951,7 +951,7 @@ class SiteSearchEngineServiceClient {
|
|
|
951
951
|
this._gaxModule.routingHeader.fromParams({
|
|
952
952
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
953
953
|
});
|
|
954
|
-
this.initialize().catch(
|
|
954
|
+
this.initialize().catch(err => {
|
|
955
955
|
throw err;
|
|
956
956
|
});
|
|
957
957
|
const wrappedCallback = callback
|
|
@@ -1003,7 +1003,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1003
1003
|
this._gaxModule.routingHeader.fromParams({
|
|
1004
1004
|
parent: request.parent ?? '',
|
|
1005
1005
|
});
|
|
1006
|
-
this.initialize().catch(
|
|
1006
|
+
this.initialize().catch(err => {
|
|
1007
1007
|
throw err;
|
|
1008
1008
|
});
|
|
1009
1009
|
const wrappedCallback = callback
|
|
@@ -1055,7 +1055,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1055
1055
|
this._gaxModule.routingHeader.fromParams({
|
|
1056
1056
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1057
1057
|
});
|
|
1058
|
-
this.initialize().catch(
|
|
1058
|
+
this.initialize().catch(err => {
|
|
1059
1059
|
throw err;
|
|
1060
1060
|
});
|
|
1061
1061
|
const wrappedCallback = callback
|
|
@@ -1107,7 +1107,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1107
1107
|
this._gaxModule.routingHeader.fromParams({
|
|
1108
1108
|
parent: request.parent ?? '',
|
|
1109
1109
|
});
|
|
1110
|
-
this.initialize().catch(
|
|
1110
|
+
this.initialize().catch(err => {
|
|
1111
1111
|
throw err;
|
|
1112
1112
|
});
|
|
1113
1113
|
const wrappedCallback = callback
|
|
@@ -1170,7 +1170,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1170
1170
|
});
|
|
1171
1171
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1172
1172
|
const callSettings = defaultCallSettings.merge(options);
|
|
1173
|
-
this.initialize().catch(
|
|
1173
|
+
this.initialize().catch(err => {
|
|
1174
1174
|
throw err;
|
|
1175
1175
|
});
|
|
1176
1176
|
this._log.info('listTargetSites stream %j', request);
|
|
@@ -1225,7 +1225,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1225
1225
|
});
|
|
1226
1226
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
|
1227
1227
|
const callSettings = defaultCallSettings.merge(options);
|
|
1228
|
-
this.initialize().catch(
|
|
1228
|
+
this.initialize().catch(err => {
|
|
1229
1229
|
throw err;
|
|
1230
1230
|
});
|
|
1231
1231
|
this._log.info('listTargetSites iterate %j', request);
|
|
@@ -1248,7 +1248,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1248
1248
|
this._gaxModule.routingHeader.fromParams({
|
|
1249
1249
|
site_search_engine: request.siteSearchEngine ?? '',
|
|
1250
1250
|
});
|
|
1251
|
-
this.initialize().catch(
|
|
1251
|
+
this.initialize().catch(err => {
|
|
1252
1252
|
throw err;
|
|
1253
1253
|
});
|
|
1254
1254
|
const wrappedCallback = callback
|
|
@@ -1308,7 +1308,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1308
1308
|
});
|
|
1309
1309
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1310
1310
|
const callSettings = defaultCallSettings.merge(options);
|
|
1311
|
-
this.initialize().catch(
|
|
1311
|
+
this.initialize().catch(err => {
|
|
1312
1312
|
throw err;
|
|
1313
1313
|
});
|
|
1314
1314
|
this._log.info('fetchDomainVerificationStatus stream %j', request);
|
|
@@ -1360,7 +1360,7 @@ class SiteSearchEngineServiceClient {
|
|
|
1360
1360
|
});
|
|
1361
1361
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
|
1362
1362
|
const callSettings = defaultCallSettings.merge(options);
|
|
1363
|
-
this.initialize().catch(
|
|
1363
|
+
this.initialize().catch(err => {
|
|
1364
1364
|
throw err;
|
|
1365
1365
|
});
|
|
1366
1366
|
this._log.info('fetchDomainVerificationStatus iterate %j', request);
|
|
@@ -3898,11 +3898,11 @@ class SiteSearchEngineServiceClient {
|
|
|
3898
3898
|
*/
|
|
3899
3899
|
close() {
|
|
3900
3900
|
if (this.siteSearchEngineServiceStub && !this._terminated) {
|
|
3901
|
-
return this.siteSearchEngineServiceStub.then(
|
|
3901
|
+
return this.siteSearchEngineServiceStub.then(stub => {
|
|
3902
3902
|
this._log.info('ending gRPC channel');
|
|
3903
3903
|
this._terminated = true;
|
|
3904
3904
|
stub.close();
|
|
3905
|
-
this.locationsClient.close().catch(
|
|
3905
|
+
this.locationsClient.close().catch(err => {
|
|
3906
3906
|
throw err;
|
|
3907
3907
|
});
|
|
3908
3908
|
void this.operationsClient.close();
|
|
@@ -377,7 +377,7 @@ class UserEventServiceClient {
|
|
|
377
377
|
'importUserEvents',
|
|
378
378
|
];
|
|
379
379
|
for (const methodName of userEventServiceStubMethods) {
|
|
380
|
-
const callPromise = this.userEventServiceStub.then(
|
|
380
|
+
const callPromise = this.userEventServiceStub.then(stub => (...args) => {
|
|
381
381
|
if (this._terminated) {
|
|
382
382
|
return Promise.reject('The client has already been closed.');
|
|
383
383
|
}
|
|
@@ -469,7 +469,7 @@ class UserEventServiceClient {
|
|
|
469
469
|
this._gaxModule.routingHeader.fromParams({
|
|
470
470
|
parent: request.parent ?? '',
|
|
471
471
|
});
|
|
472
|
-
this.initialize().catch(
|
|
472
|
+
this.initialize().catch(err => {
|
|
473
473
|
throw err;
|
|
474
474
|
});
|
|
475
475
|
this._log.info('writeUserEvent request %j', request);
|
|
@@ -512,7 +512,7 @@ class UserEventServiceClient {
|
|
|
512
512
|
this._gaxModule.routingHeader.fromParams({
|
|
513
513
|
parent: request.parent ?? '',
|
|
514
514
|
});
|
|
515
|
-
this.initialize().catch(
|
|
515
|
+
this.initialize().catch(err => {
|
|
516
516
|
throw err;
|
|
517
517
|
});
|
|
518
518
|
this._log.info('collectUserEvent request %j', request);
|
|
@@ -555,7 +555,7 @@ class UserEventServiceClient {
|
|
|
555
555
|
this._gaxModule.routingHeader.fromParams({
|
|
556
556
|
parent: request.parent ?? '',
|
|
557
557
|
});
|
|
558
|
-
this.initialize().catch(
|
|
558
|
+
this.initialize().catch(err => {
|
|
559
559
|
throw err;
|
|
560
560
|
});
|
|
561
561
|
const wrappedCallback = callback
|
|
@@ -607,7 +607,7 @@ class UserEventServiceClient {
|
|
|
607
607
|
this._gaxModule.routingHeader.fromParams({
|
|
608
608
|
parent: request.parent ?? '',
|
|
609
609
|
});
|
|
610
|
-
this.initialize().catch(
|
|
610
|
+
this.initialize().catch(err => {
|
|
611
611
|
throw err;
|
|
612
612
|
});
|
|
613
613
|
const wrappedCallback = callback
|
|
@@ -3174,11 +3174,11 @@ class UserEventServiceClient {
|
|
|
3174
3174
|
*/
|
|
3175
3175
|
close() {
|
|
3176
3176
|
if (this.userEventServiceStub && !this._terminated) {
|
|
3177
|
-
return this.userEventServiceStub.then(
|
|
3177
|
+
return this.userEventServiceStub.then(stub => {
|
|
3178
3178
|
this._log.info('ending gRPC channel');
|
|
3179
3179
|
this._terminated = true;
|
|
3180
3180
|
stub.close();
|
|
3181
|
-
this.locationsClient.close().catch(
|
|
3181
|
+
this.locationsClient.close().catch(err => {
|
|
3182
3182
|
throw err;
|
|
3183
3183
|
});
|
|
3184
3184
|
void this.operationsClient.close();
|