@google-cloud/discoveryengine 2.0.0 → 2.0.1
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/CHANGELOG.md +7 -0
- package/build/src/v1/completion_service_client.d.ts +1 -1
- package/build/src/v1/completion_service_client.js +15 -5
- package/build/src/v1/control_service_client.js +21 -7
- package/build/src/v1/conversational_search_service_client.js +51 -17
- package/build/src/v1/data_store_service_client.d.ts +1 -1
- package/build/src/v1/data_store_service_client.js +21 -7
- package/build/src/v1/document_service_client.d.ts +1 -1
- package/build/src/v1/document_service_client.js +30 -10
- package/build/src/v1/engine_service_client.d.ts +1 -1
- package/build/src/v1/engine_service_client.js +21 -7
- package/build/src/v1/grounded_generation_service_client.js +9 -3
- package/build/src/v1/project_service_client.d.ts +1 -1
- package/build/src/v1/project_service_client.js +3 -1
- package/build/src/v1/rank_service_client.js +3 -1
- package/build/src/v1/recommendation_service_client.js +3 -1
- package/build/src/v1/schema_service_client.d.ts +1 -1
- package/build/src/v1/schema_service_client.js +21 -7
- package/build/src/v1/search_service_client.js +18 -6
- package/build/src/v1/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1/search_tuning_service_client.js +6 -2
- package/build/src/v1/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1/site_search_engine_service_client.js +48 -16
- package/build/src/v1/user_event_service_client.d.ts +1 -1
- package/build/src/v1/user_event_service_client.js +12 -4
- package/build/src/v1alpha/acl_config_service_client.js +6 -2
- package/build/src/v1alpha/chunk_service_client.js +12 -4
- package/build/src/v1alpha/completion_service_client.d.ts +1 -1
- package/build/src/v1alpha/completion_service_client.js +15 -5
- package/build/src/v1alpha/control_service_client.js +21 -7
- package/build/src/v1alpha/conversational_search_service_client.js +51 -17
- package/build/src/v1alpha/data_store_service_client.d.ts +1 -1
- package/build/src/v1alpha/data_store_service_client.js +27 -9
- package/build/src/v1alpha/document_service_client.d.ts +1 -1
- package/build/src/v1alpha/document_service_client.js +33 -11
- package/build/src/v1alpha/engine_service_client.d.ts +1 -1
- package/build/src/v1alpha/engine_service_client.js +30 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1 -1
- package/build/src/v1alpha/estimate_billing_service_client.js +3 -1
- package/build/src/v1alpha/evaluation_service_client.d.ts +1 -1
- package/build/src/v1alpha/evaluation_service_client.js +24 -8
- package/build/src/v1alpha/grounded_generation_service_client.js +3 -1
- package/build/src/v1alpha/project_service_client.d.ts +1 -1
- package/build/src/v1alpha/project_service_client.js +9 -3
- package/build/src/v1alpha/rank_service_client.js +3 -1
- package/build/src/v1alpha/recommendation_service_client.js +3 -1
- package/build/src/v1alpha/sample_query_service_client.d.ts +1 -1
- package/build/src/v1alpha/sample_query_service_client.js +24 -8
- package/build/src/v1alpha/sample_query_set_service_client.js +21 -7
- package/build/src/v1alpha/schema_service_client.d.ts +1 -1
- package/build/src/v1alpha/schema_service_client.js +21 -7
- package/build/src/v1alpha/search_service_client.js +9 -3
- package/build/src/v1alpha/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1alpha/search_tuning_service_client.js +6 -2
- package/build/src/v1alpha/serving_config_service_client.js +15 -5
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1alpha/site_search_engine_service_client.js +54 -18
- package/build/src/v1alpha/user_event_service_client.d.ts +1 -1
- package/build/src/v1alpha/user_event_service_client.js +12 -4
- package/build/src/v1beta/completion_service_client.d.ts +1 -1
- package/build/src/v1beta/completion_service_client.js +18 -6
- package/build/src/v1beta/control_service_client.js +21 -7
- package/build/src/v1beta/conversational_search_service_client.js +51 -17
- package/build/src/v1beta/data_store_service_client.d.ts +1 -1
- package/build/src/v1beta/data_store_service_client.js +21 -7
- package/build/src/v1beta/document_service_client.d.ts +1 -1
- package/build/src/v1beta/document_service_client.js +30 -10
- package/build/src/v1beta/engine_service_client.d.ts +1 -1
- package/build/src/v1beta/engine_service_client.js +30 -10
- package/build/src/v1beta/evaluation_service_client.d.ts +1 -1
- package/build/src/v1beta/evaluation_service_client.js +24 -8
- package/build/src/v1beta/grounded_generation_service_client.js +9 -3
- package/build/src/v1beta/project_service_client.d.ts +1 -1
- package/build/src/v1beta/project_service_client.js +3 -1
- package/build/src/v1beta/rank_service_client.js +3 -1
- package/build/src/v1beta/recommendation_service_client.js +3 -1
- package/build/src/v1beta/sample_query_service_client.d.ts +1 -1
- package/build/src/v1beta/sample_query_service_client.js +24 -8
- package/build/src/v1beta/sample_query_set_service_client.js +21 -7
- package/build/src/v1beta/schema_service_client.d.ts +1 -1
- package/build/src/v1beta/schema_service_client.js +21 -7
- package/build/src/v1beta/search_service_client.js +18 -6
- package/build/src/v1beta/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1beta/search_tuning_service_client.js +6 -2
- package/build/src/v1beta/serving_config_service_client.js +15 -5
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1beta/site_search_engine_service_client.js +57 -19
- package/build/src/v1beta/user_event_service_client.d.ts +1 -1
- package/build/src/v1beta/user_event_service_client.js +12 -4
- package/package.json +2 -2
@@ -355,7 +355,7 @@ export declare class ProjectServiceClient {
|
|
355
355
|
* // doThingsWith(response)
|
356
356
|
* ```
|
357
357
|
*/
|
358
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
358
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
359
359
|
/**
|
360
360
|
* Starts asynchronous cancellation on a long-running operation. The server
|
361
361
|
* makes a best effort to cancel the operation, but success is not
|
@@ -466,7 +466,9 @@ class ProjectServiceClient {
|
|
466
466
|
this._gaxModule.routingHeader.fromParams({
|
467
467
|
name: request.name ?? '',
|
468
468
|
});
|
469
|
-
this.initialize()
|
469
|
+
this.initialize().catch(err => {
|
470
|
+
throw err;
|
471
|
+
});
|
470
472
|
this._log.info('getProject request %j', request);
|
471
473
|
const wrappedCallback = callback
|
472
474
|
? (error, response, options, rawResponse) => {
|
@@ -498,7 +500,9 @@ class ProjectServiceClient {
|
|
498
500
|
this._gaxModule.routingHeader.fromParams({
|
499
501
|
project: request.project ?? '',
|
500
502
|
});
|
501
|
-
this.initialize()
|
503
|
+
this.initialize().catch(err => {
|
504
|
+
throw err;
|
505
|
+
});
|
502
506
|
this._log.info('reportConsentChange request %j', request);
|
503
507
|
const wrappedCallback = callback
|
504
508
|
? (error, response, options, rawResponse) => {
|
@@ -530,7 +534,9 @@ class ProjectServiceClient {
|
|
530
534
|
this._gaxModule.routingHeader.fromParams({
|
531
535
|
name: request.name ?? '',
|
532
536
|
});
|
533
|
-
this.initialize()
|
537
|
+
this.initialize().catch(err => {
|
538
|
+
throw err;
|
539
|
+
});
|
534
540
|
const wrappedCallback = callback
|
535
541
|
? (error, response, rawResponse, _) => {
|
536
542
|
this._log.info('provisionProject response %j', rawResponse);
|
@@ -335,7 +335,9 @@ class RankServiceClient {
|
|
335
335
|
this._gaxModule.routingHeader.fromParams({
|
336
336
|
ranking_config: request.rankingConfig ?? '',
|
337
337
|
});
|
338
|
-
this.initialize()
|
338
|
+
this.initialize().catch(err => {
|
339
|
+
throw err;
|
340
|
+
});
|
339
341
|
this._log.info('rank request %j', request);
|
340
342
|
const wrappedCallback = callback
|
341
343
|
? (error, response, options, rawResponse) => {
|
@@ -335,7 +335,9 @@ class RecommendationServiceClient {
|
|
335
335
|
this._gaxModule.routingHeader.fromParams({
|
336
336
|
serving_config: request.servingConfig ?? '',
|
337
337
|
});
|
338
|
-
this.initialize()
|
338
|
+
this.initialize().catch(err => {
|
339
|
+
throw err;
|
340
|
+
});
|
339
341
|
this._log.info('recommend request %j', request);
|
340
342
|
const wrappedCallback = callback
|
341
343
|
? (error, response, options, rawResponse) => {
|
@@ -569,7 +569,7 @@ export declare class SampleQueryServiceClient {
|
|
569
569
|
* // doThingsWith(response)
|
570
570
|
* ```
|
571
571
|
*/
|
572
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
572
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
573
573
|
/**
|
574
574
|
* Starts asynchronous cancellation on a long-running operation. The server
|
575
575
|
* makes a best effort to cancel the operation, but success is not
|
@@ -477,7 +477,9 @@ class SampleQueryServiceClient {
|
|
477
477
|
this._gaxModule.routingHeader.fromParams({
|
478
478
|
name: request.name ?? '',
|
479
479
|
});
|
480
|
-
this.initialize()
|
480
|
+
this.initialize().catch(err => {
|
481
|
+
throw err;
|
482
|
+
});
|
481
483
|
this._log.info('getSampleQuery request %j', request);
|
482
484
|
const wrappedCallback = callback
|
483
485
|
? (error, response, options, rawResponse) => {
|
@@ -509,7 +511,9 @@ class SampleQueryServiceClient {
|
|
509
511
|
this._gaxModule.routingHeader.fromParams({
|
510
512
|
parent: request.parent ?? '',
|
511
513
|
});
|
512
|
-
this.initialize()
|
514
|
+
this.initialize().catch(err => {
|
515
|
+
throw err;
|
516
|
+
});
|
513
517
|
this._log.info('createSampleQuery request %j', request);
|
514
518
|
const wrappedCallback = callback
|
515
519
|
? (error, response, options, rawResponse) => {
|
@@ -541,7 +545,9 @@ class SampleQueryServiceClient {
|
|
541
545
|
this._gaxModule.routingHeader.fromParams({
|
542
546
|
'sample_query.name': request.sampleQuery.name ?? '',
|
543
547
|
});
|
544
|
-
this.initialize()
|
548
|
+
this.initialize().catch(err => {
|
549
|
+
throw err;
|
550
|
+
});
|
545
551
|
this._log.info('updateSampleQuery request %j', request);
|
546
552
|
const wrappedCallback = callback
|
547
553
|
? (error, response, options, rawResponse) => {
|
@@ -573,7 +579,9 @@ class SampleQueryServiceClient {
|
|
573
579
|
this._gaxModule.routingHeader.fromParams({
|
574
580
|
name: request.name ?? '',
|
575
581
|
});
|
576
|
-
this.initialize()
|
582
|
+
this.initialize().catch(err => {
|
583
|
+
throw err;
|
584
|
+
});
|
577
585
|
this._log.info('deleteSampleQuery request %j', request);
|
578
586
|
const wrappedCallback = callback
|
579
587
|
? (error, response, options, rawResponse) => {
|
@@ -605,7 +613,9 @@ class SampleQueryServiceClient {
|
|
605
613
|
this._gaxModule.routingHeader.fromParams({
|
606
614
|
parent: request.parent ?? '',
|
607
615
|
});
|
608
|
-
this.initialize()
|
616
|
+
this.initialize().catch(err => {
|
617
|
+
throw err;
|
618
|
+
});
|
609
619
|
const wrappedCallback = callback
|
610
620
|
? (error, response, rawResponse, _) => {
|
611
621
|
this._log.info('importSampleQueries response %j', rawResponse);
|
@@ -655,7 +665,9 @@ class SampleQueryServiceClient {
|
|
655
665
|
this._gaxModule.routingHeader.fromParams({
|
656
666
|
parent: request.parent ?? '',
|
657
667
|
});
|
658
|
-
this.initialize()
|
668
|
+
this.initialize().catch(err => {
|
669
|
+
throw err;
|
670
|
+
});
|
659
671
|
const wrappedCallback = callback
|
660
672
|
? (error, values, nextPageRequest, rawResponse) => {
|
661
673
|
this._log.info('listSampleQueries values %j', values);
|
@@ -722,7 +734,9 @@ class SampleQueryServiceClient {
|
|
722
734
|
});
|
723
735
|
const defaultCallSettings = this._defaults['listSampleQueries'];
|
724
736
|
const callSettings = defaultCallSettings.merge(options);
|
725
|
-
this.initialize()
|
737
|
+
this.initialize().catch(err => {
|
738
|
+
throw err;
|
739
|
+
});
|
726
740
|
this._log.info('listSampleQueries stream %j', request);
|
727
741
|
return this.descriptors.page.listSampleQueries.createStream(this.innerApiCalls.listSampleQueries, request, callSettings);
|
728
742
|
}
|
@@ -781,7 +795,9 @@ class SampleQueryServiceClient {
|
|
781
795
|
});
|
782
796
|
const defaultCallSettings = this._defaults['listSampleQueries'];
|
783
797
|
const callSettings = defaultCallSettings.merge(options);
|
784
|
-
this.initialize()
|
798
|
+
this.initialize().catch(err => {
|
799
|
+
throw err;
|
800
|
+
});
|
785
801
|
this._log.info('listSampleQueries iterate %j', request);
|
786
802
|
return this.descriptors.page.listSampleQueries.asyncIterate(this.innerApiCalls['listSampleQueries'], request, callSettings);
|
787
803
|
}
|
@@ -349,7 +349,9 @@ class SampleQuerySetServiceClient {
|
|
349
349
|
this._gaxModule.routingHeader.fromParams({
|
350
350
|
name: request.name ?? '',
|
351
351
|
});
|
352
|
-
this.initialize()
|
352
|
+
this.initialize().catch(err => {
|
353
|
+
throw err;
|
354
|
+
});
|
353
355
|
this._log.info('getSampleQuerySet request %j', request);
|
354
356
|
const wrappedCallback = callback
|
355
357
|
? (error, response, options, rawResponse) => {
|
@@ -381,7 +383,9 @@ class SampleQuerySetServiceClient {
|
|
381
383
|
this._gaxModule.routingHeader.fromParams({
|
382
384
|
parent: request.parent ?? '',
|
383
385
|
});
|
384
|
-
this.initialize()
|
386
|
+
this.initialize().catch(err => {
|
387
|
+
throw err;
|
388
|
+
});
|
385
389
|
this._log.info('createSampleQuerySet request %j', request);
|
386
390
|
const wrappedCallback = callback
|
387
391
|
? (error, response, options, rawResponse) => {
|
@@ -413,7 +417,9 @@ class SampleQuerySetServiceClient {
|
|
413
417
|
this._gaxModule.routingHeader.fromParams({
|
414
418
|
'sample_query_set.name': request.sampleQuerySet.name ?? '',
|
415
419
|
});
|
416
|
-
this.initialize()
|
420
|
+
this.initialize().catch(err => {
|
421
|
+
throw err;
|
422
|
+
});
|
417
423
|
this._log.info('updateSampleQuerySet request %j', request);
|
418
424
|
const wrappedCallback = callback
|
419
425
|
? (error, response, options, rawResponse) => {
|
@@ -445,7 +451,9 @@ class SampleQuerySetServiceClient {
|
|
445
451
|
this._gaxModule.routingHeader.fromParams({
|
446
452
|
name: request.name ?? '',
|
447
453
|
});
|
448
|
-
this.initialize()
|
454
|
+
this.initialize().catch(err => {
|
455
|
+
throw err;
|
456
|
+
});
|
449
457
|
this._log.info('deleteSampleQuerySet request %j', request);
|
450
458
|
const wrappedCallback = callback
|
451
459
|
? (error, response, options, rawResponse) => {
|
@@ -477,7 +485,9 @@ class SampleQuerySetServiceClient {
|
|
477
485
|
this._gaxModule.routingHeader.fromParams({
|
478
486
|
parent: request.parent ?? '',
|
479
487
|
});
|
480
|
-
this.initialize()
|
488
|
+
this.initialize().catch(err => {
|
489
|
+
throw err;
|
490
|
+
});
|
481
491
|
const wrappedCallback = callback
|
482
492
|
? (error, values, nextPageRequest, rawResponse) => {
|
483
493
|
this._log.info('listSampleQuerySets values %j', values);
|
@@ -544,7 +554,9 @@ class SampleQuerySetServiceClient {
|
|
544
554
|
});
|
545
555
|
const defaultCallSettings = this._defaults['listSampleQuerySets'];
|
546
556
|
const callSettings = defaultCallSettings.merge(options);
|
547
|
-
this.initialize()
|
557
|
+
this.initialize().catch(err => {
|
558
|
+
throw err;
|
559
|
+
});
|
548
560
|
this._log.info('listSampleQuerySets stream %j', request);
|
549
561
|
return this.descriptors.page.listSampleQuerySets.createStream(this.innerApiCalls.listSampleQuerySets, request, callSettings);
|
550
562
|
}
|
@@ -603,7 +615,9 @@ class SampleQuerySetServiceClient {
|
|
603
615
|
});
|
604
616
|
const defaultCallSettings = this._defaults['listSampleQuerySets'];
|
605
617
|
const callSettings = defaultCallSettings.merge(options);
|
606
|
-
this.initialize()
|
618
|
+
this.initialize().catch(err => {
|
619
|
+
throw err;
|
620
|
+
});
|
607
621
|
this._log.info('listSampleQuerySets iterate %j', request);
|
608
622
|
return this.descriptors.page.listSampleQuerySets.asyncIterate(this.innerApiCalls['listSampleQuerySets'], request, callSettings);
|
609
623
|
}
|
@@ -503,7 +503,7 @@ export declare class SchemaServiceClient {
|
|
503
503
|
* // doThingsWith(response)
|
504
504
|
* ```
|
505
505
|
*/
|
506
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
506
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
507
507
|
/**
|
508
508
|
* Starts asynchronous cancellation on a long-running operation. The server
|
509
509
|
* makes a best effort to cancel the operation, but success is not
|
@@ -481,7 +481,9 @@ class SchemaServiceClient {
|
|
481
481
|
this._gaxModule.routingHeader.fromParams({
|
482
482
|
name: request.name ?? '',
|
483
483
|
});
|
484
|
-
this.initialize()
|
484
|
+
this.initialize().catch(err => {
|
485
|
+
throw err;
|
486
|
+
});
|
485
487
|
this._log.info('getSchema request %j', request);
|
486
488
|
const wrappedCallback = callback
|
487
489
|
? (error, response, options, rawResponse) => {
|
@@ -513,7 +515,9 @@ class SchemaServiceClient {
|
|
513
515
|
this._gaxModule.routingHeader.fromParams({
|
514
516
|
parent: request.parent ?? '',
|
515
517
|
});
|
516
|
-
this.initialize()
|
518
|
+
this.initialize().catch(err => {
|
519
|
+
throw err;
|
520
|
+
});
|
517
521
|
const wrappedCallback = callback
|
518
522
|
? (error, response, rawResponse, _) => {
|
519
523
|
this._log.info('createSchema response %j', rawResponse);
|
@@ -563,7 +567,9 @@ class SchemaServiceClient {
|
|
563
567
|
this._gaxModule.routingHeader.fromParams({
|
564
568
|
'schema.name': request.schema.name ?? '',
|
565
569
|
});
|
566
|
-
this.initialize()
|
570
|
+
this.initialize().catch(err => {
|
571
|
+
throw err;
|
572
|
+
});
|
567
573
|
const wrappedCallback = callback
|
568
574
|
? (error, response, rawResponse, _) => {
|
569
575
|
this._log.info('updateSchema response %j', rawResponse);
|
@@ -613,7 +619,9 @@ class SchemaServiceClient {
|
|
613
619
|
this._gaxModule.routingHeader.fromParams({
|
614
620
|
name: request.name ?? '',
|
615
621
|
});
|
616
|
-
this.initialize()
|
622
|
+
this.initialize().catch(err => {
|
623
|
+
throw err;
|
624
|
+
});
|
617
625
|
const wrappedCallback = callback
|
618
626
|
? (error, response, rawResponse, _) => {
|
619
627
|
this._log.info('deleteSchema response %j', rawResponse);
|
@@ -663,7 +671,9 @@ class SchemaServiceClient {
|
|
663
671
|
this._gaxModule.routingHeader.fromParams({
|
664
672
|
parent: request.parent ?? '',
|
665
673
|
});
|
666
|
-
this.initialize()
|
674
|
+
this.initialize().catch(err => {
|
675
|
+
throw err;
|
676
|
+
});
|
667
677
|
const wrappedCallback = callback
|
668
678
|
? (error, values, nextPageRequest, rawResponse) => {
|
669
679
|
this._log.info('listSchemas values %j', values);
|
@@ -724,7 +734,9 @@ class SchemaServiceClient {
|
|
724
734
|
});
|
725
735
|
const defaultCallSettings = this._defaults['listSchemas'];
|
726
736
|
const callSettings = defaultCallSettings.merge(options);
|
727
|
-
this.initialize()
|
737
|
+
this.initialize().catch(err => {
|
738
|
+
throw err;
|
739
|
+
});
|
728
740
|
this._log.info('listSchemas stream %j', request);
|
729
741
|
return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
|
730
742
|
}
|
@@ -777,7 +789,9 @@ class SchemaServiceClient {
|
|
777
789
|
});
|
778
790
|
const defaultCallSettings = this._defaults['listSchemas'];
|
779
791
|
const callSettings = defaultCallSettings.merge(options);
|
780
|
-
this.initialize()
|
792
|
+
this.initialize().catch(err => {
|
793
|
+
throw err;
|
794
|
+
});
|
781
795
|
this._log.info('listSchemas iterate %j', request);
|
782
796
|
return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
|
783
797
|
}
|
@@ -342,7 +342,9 @@ class SearchServiceClient {
|
|
342
342
|
this._gaxModule.routingHeader.fromParams({
|
343
343
|
serving_config: request.servingConfig ?? '',
|
344
344
|
});
|
345
|
-
this.initialize()
|
345
|
+
this.initialize().catch(err => {
|
346
|
+
throw err;
|
347
|
+
});
|
346
348
|
const wrappedCallback = callback
|
347
349
|
? (error, values, nextPageRequest, rawResponse) => {
|
348
350
|
this._log.info('search values %j', values);
|
@@ -647,7 +649,9 @@ class SearchServiceClient {
|
|
647
649
|
});
|
648
650
|
const defaultCallSettings = this._defaults['search'];
|
649
651
|
const callSettings = defaultCallSettings.merge(options);
|
650
|
-
this.initialize()
|
652
|
+
this.initialize().catch(err => {
|
653
|
+
throw err;
|
654
|
+
});
|
651
655
|
this._log.info('search stream %j', request);
|
652
656
|
return this.descriptors.page.search.createStream(this.innerApiCalls.search, request, callSettings);
|
653
657
|
}
|
@@ -944,7 +948,9 @@ class SearchServiceClient {
|
|
944
948
|
});
|
945
949
|
const defaultCallSettings = this._defaults['search'];
|
946
950
|
const callSettings = defaultCallSettings.merge(options);
|
947
|
-
this.initialize()
|
951
|
+
this.initialize().catch(err => {
|
952
|
+
throw err;
|
953
|
+
});
|
948
954
|
this._log.info('search iterate %j', request);
|
949
955
|
return this.descriptors.page.search.asyncIterate(this.innerApiCalls['search'], request, callSettings);
|
950
956
|
}
|
@@ -304,7 +304,7 @@ export declare class SearchTuningServiceClient {
|
|
304
304
|
* // doThingsWith(response)
|
305
305
|
* ```
|
306
306
|
*/
|
307
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
307
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
308
308
|
/**
|
309
309
|
* Starts asynchronous cancellation on a long-running operation. The server
|
310
310
|
* makes a best effort to cancel the operation, but success is not
|
@@ -464,7 +464,9 @@ class SearchTuningServiceClient {
|
|
464
464
|
this._gaxModule.routingHeader.fromParams({
|
465
465
|
data_store: request.dataStore ?? '',
|
466
466
|
});
|
467
|
-
this.initialize()
|
467
|
+
this.initialize().catch(err => {
|
468
|
+
throw err;
|
469
|
+
});
|
468
470
|
this._log.info('listCustomModels request %j', request);
|
469
471
|
const wrappedCallback = callback
|
470
472
|
? (error, response, options, rawResponse) => {
|
@@ -496,7 +498,9 @@ class SearchTuningServiceClient {
|
|
496
498
|
this._gaxModule.routingHeader.fromParams({
|
497
499
|
data_store: request.dataStore ?? '',
|
498
500
|
});
|
499
|
-
this.initialize()
|
501
|
+
this.initialize().catch(err => {
|
502
|
+
throw err;
|
503
|
+
});
|
500
504
|
const wrappedCallback = callback
|
501
505
|
? (error, response, rawResponse, _) => {
|
502
506
|
this._log.info('trainCustomModel response %j', rawResponse);
|
@@ -346,7 +346,9 @@ class ServingConfigServiceClient {
|
|
346
346
|
this._gaxModule.routingHeader.fromParams({
|
347
347
|
'serving_config.name': request.servingConfig.name ?? '',
|
348
348
|
});
|
349
|
-
this.initialize()
|
349
|
+
this.initialize().catch(err => {
|
350
|
+
throw err;
|
351
|
+
});
|
350
352
|
this._log.info('updateServingConfig request %j', request);
|
351
353
|
const wrappedCallback = callback
|
352
354
|
? (error, response, options, rawResponse) => {
|
@@ -378,7 +380,9 @@ class ServingConfigServiceClient {
|
|
378
380
|
this._gaxModule.routingHeader.fromParams({
|
379
381
|
name: request.name ?? '',
|
380
382
|
});
|
381
|
-
this.initialize()
|
383
|
+
this.initialize().catch(err => {
|
384
|
+
throw err;
|
385
|
+
});
|
382
386
|
this._log.info('getServingConfig request %j', request);
|
383
387
|
const wrappedCallback = callback
|
384
388
|
? (error, response, options, rawResponse) => {
|
@@ -410,7 +414,9 @@ class ServingConfigServiceClient {
|
|
410
414
|
this._gaxModule.routingHeader.fromParams({
|
411
415
|
parent: request.parent ?? '',
|
412
416
|
});
|
413
|
-
this.initialize()
|
417
|
+
this.initialize().catch(err => {
|
418
|
+
throw err;
|
419
|
+
});
|
414
420
|
const wrappedCallback = callback
|
415
421
|
? (error, values, nextPageRequest, rawResponse) => {
|
416
422
|
this._log.info('listServingConfigs values %j', values);
|
@@ -461,7 +467,9 @@ class ServingConfigServiceClient {
|
|
461
467
|
});
|
462
468
|
const defaultCallSettings = this._defaults['listServingConfigs'];
|
463
469
|
const callSettings = defaultCallSettings.merge(options);
|
464
|
-
this.initialize()
|
470
|
+
this.initialize().catch(err => {
|
471
|
+
throw err;
|
472
|
+
});
|
465
473
|
this._log.info('listServingConfigs stream %j', request);
|
466
474
|
return this.descriptors.page.listServingConfigs.createStream(this.innerApiCalls.listServingConfigs, request, callSettings);
|
467
475
|
}
|
@@ -504,7 +512,9 @@ class ServingConfigServiceClient {
|
|
504
512
|
});
|
505
513
|
const defaultCallSettings = this._defaults['listServingConfigs'];
|
506
514
|
const callSettings = defaultCallSettings.merge(options);
|
507
|
-
this.initialize()
|
515
|
+
this.initialize().catch(err => {
|
516
|
+
throw err;
|
517
|
+
});
|
508
518
|
this._log.info('listServingConfigs iterate %j', request);
|
509
519
|
return this.descriptors.page.listServingConfigs.asyncIterate(this.innerApiCalls['listServingConfigs'], request, callSettings);
|
510
520
|
}
|
@@ -967,7 +967,7 @@ export declare class SiteSearchEngineServiceClient {
|
|
967
967
|
* // doThingsWith(response)
|
968
968
|
* ```
|
969
969
|
*/
|
970
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
970
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
971
971
|
/**
|
972
972
|
* Starts asynchronous cancellation on a long-running operation. The server
|
973
973
|
* makes a best effort to cancel the operation, but success is not
|
@@ -510,7 +510,9 @@ class SiteSearchEngineServiceClient {
|
|
510
510
|
this._gaxModule.routingHeader.fromParams({
|
511
511
|
name: request.name ?? '',
|
512
512
|
});
|
513
|
-
this.initialize()
|
513
|
+
this.initialize().catch(err => {
|
514
|
+
throw err;
|
515
|
+
});
|
514
516
|
this._log.info('getSiteSearchEngine request %j', request);
|
515
517
|
const wrappedCallback = callback
|
516
518
|
? (error, response, options, rawResponse) => {
|
@@ -542,7 +544,9 @@ class SiteSearchEngineServiceClient {
|
|
542
544
|
this._gaxModule.routingHeader.fromParams({
|
543
545
|
name: request.name ?? '',
|
544
546
|
});
|
545
|
-
this.initialize()
|
547
|
+
this.initialize().catch(err => {
|
548
|
+
throw err;
|
549
|
+
});
|
546
550
|
this._log.info('getTargetSite request %j', request);
|
547
551
|
const wrappedCallback = callback
|
548
552
|
? (error, response, options, rawResponse) => {
|
@@ -574,7 +578,9 @@ class SiteSearchEngineServiceClient {
|
|
574
578
|
this._gaxModule.routingHeader.fromParams({
|
575
579
|
site_search_engine: request.siteSearchEngine ?? '',
|
576
580
|
});
|
577
|
-
this.initialize()
|
581
|
+
this.initialize().catch(err => {
|
582
|
+
throw err;
|
583
|
+
});
|
578
584
|
this._log.info('getUriPatternDocumentData request %j', request);
|
579
585
|
const wrappedCallback = callback
|
580
586
|
? (error, response, options, rawResponse) => {
|
@@ -606,7 +612,9 @@ class SiteSearchEngineServiceClient {
|
|
606
612
|
this._gaxModule.routingHeader.fromParams({
|
607
613
|
parent: request.parent ?? '',
|
608
614
|
});
|
609
|
-
this.initialize()
|
615
|
+
this.initialize().catch(err => {
|
616
|
+
throw err;
|
617
|
+
});
|
610
618
|
const wrappedCallback = callback
|
611
619
|
? (error, response, rawResponse, _) => {
|
612
620
|
this._log.info('createTargetSite response %j', rawResponse);
|
@@ -656,7 +664,9 @@ class SiteSearchEngineServiceClient {
|
|
656
664
|
this._gaxModule.routingHeader.fromParams({
|
657
665
|
parent: request.parent ?? '',
|
658
666
|
});
|
659
|
-
this.initialize()
|
667
|
+
this.initialize().catch(err => {
|
668
|
+
throw err;
|
669
|
+
});
|
660
670
|
const wrappedCallback = callback
|
661
671
|
? (error, response, rawResponse, _) => {
|
662
672
|
this._log.info('batchCreateTargetSites response %j', rawResponse);
|
@@ -706,7 +716,9 @@ class SiteSearchEngineServiceClient {
|
|
706
716
|
this._gaxModule.routingHeader.fromParams({
|
707
717
|
'target_site.name': request.targetSite.name ?? '',
|
708
718
|
});
|
709
|
-
this.initialize()
|
719
|
+
this.initialize().catch(err => {
|
720
|
+
throw err;
|
721
|
+
});
|
710
722
|
const wrappedCallback = callback
|
711
723
|
? (error, response, rawResponse, _) => {
|
712
724
|
this._log.info('updateTargetSite response %j', rawResponse);
|
@@ -756,7 +768,9 @@ class SiteSearchEngineServiceClient {
|
|
756
768
|
this._gaxModule.routingHeader.fromParams({
|
757
769
|
name: request.name ?? '',
|
758
770
|
});
|
759
|
-
this.initialize()
|
771
|
+
this.initialize().catch(err => {
|
772
|
+
throw err;
|
773
|
+
});
|
760
774
|
const wrappedCallback = callback
|
761
775
|
? (error, response, rawResponse, _) => {
|
762
776
|
this._log.info('deleteTargetSite response %j', rawResponse);
|
@@ -806,7 +820,9 @@ class SiteSearchEngineServiceClient {
|
|
806
820
|
this._gaxModule.routingHeader.fromParams({
|
807
821
|
site_search_engine: request.siteSearchEngine ?? '',
|
808
822
|
});
|
809
|
-
this.initialize()
|
823
|
+
this.initialize().catch(err => {
|
824
|
+
throw err;
|
825
|
+
});
|
810
826
|
const wrappedCallback = callback
|
811
827
|
? (error, response, rawResponse, _) => {
|
812
828
|
this._log.info('enableAdvancedSiteSearch response %j', rawResponse);
|
@@ -856,7 +872,9 @@ class SiteSearchEngineServiceClient {
|
|
856
872
|
this._gaxModule.routingHeader.fromParams({
|
857
873
|
site_search_engine: request.siteSearchEngine ?? '',
|
858
874
|
});
|
859
|
-
this.initialize()
|
875
|
+
this.initialize().catch(err => {
|
876
|
+
throw err;
|
877
|
+
});
|
860
878
|
const wrappedCallback = callback
|
861
879
|
? (error, response, rawResponse, _) => {
|
862
880
|
this._log.info('disableAdvancedSiteSearch response %j', rawResponse);
|
@@ -906,7 +924,9 @@ class SiteSearchEngineServiceClient {
|
|
906
924
|
this._gaxModule.routingHeader.fromParams({
|
907
925
|
site_search_engine: request.siteSearchEngine ?? '',
|
908
926
|
});
|
909
|
-
this.initialize()
|
927
|
+
this.initialize().catch(err => {
|
928
|
+
throw err;
|
929
|
+
});
|
910
930
|
const wrappedCallback = callback
|
911
931
|
? (error, response, rawResponse, _) => {
|
912
932
|
this._log.info('recrawlUris response %j', rawResponse);
|
@@ -956,7 +976,9 @@ class SiteSearchEngineServiceClient {
|
|
956
976
|
this._gaxModule.routingHeader.fromParams({
|
957
977
|
parent: request.parent ?? '',
|
958
978
|
});
|
959
|
-
this.initialize()
|
979
|
+
this.initialize().catch(err => {
|
980
|
+
throw err;
|
981
|
+
});
|
960
982
|
const wrappedCallback = callback
|
961
983
|
? (error, response, rawResponse, _) => {
|
962
984
|
this._log.info('batchVerifyTargetSites response %j', rawResponse);
|
@@ -1006,7 +1028,9 @@ class SiteSearchEngineServiceClient {
|
|
1006
1028
|
this._gaxModule.routingHeader.fromParams({
|
1007
1029
|
site_search_engine: request.siteSearchEngine ?? '',
|
1008
1030
|
});
|
1009
|
-
this.initialize()
|
1031
|
+
this.initialize().catch(err => {
|
1032
|
+
throw err;
|
1033
|
+
});
|
1010
1034
|
const wrappedCallback = callback
|
1011
1035
|
? (error, response, rawResponse, _) => {
|
1012
1036
|
this._log.info('setUriPatternDocumentData response %j', rawResponse);
|
@@ -1056,7 +1080,9 @@ class SiteSearchEngineServiceClient {
|
|
1056
1080
|
this._gaxModule.routingHeader.fromParams({
|
1057
1081
|
parent: request.parent ?? '',
|
1058
1082
|
});
|
1059
|
-
this.initialize()
|
1083
|
+
this.initialize().catch(err => {
|
1084
|
+
throw err;
|
1085
|
+
});
|
1060
1086
|
const wrappedCallback = callback
|
1061
1087
|
? (error, values, nextPageRequest, rawResponse) => {
|
1062
1088
|
this._log.info('listTargetSites values %j', values);
|
@@ -1117,7 +1143,9 @@ class SiteSearchEngineServiceClient {
|
|
1117
1143
|
});
|
1118
1144
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
1119
1145
|
const callSettings = defaultCallSettings.merge(options);
|
1120
|
-
this.initialize()
|
1146
|
+
this.initialize().catch(err => {
|
1147
|
+
throw err;
|
1148
|
+
});
|
1121
1149
|
this._log.info('listTargetSites stream %j', request);
|
1122
1150
|
return this.descriptors.page.listTargetSites.createStream(this.innerApiCalls.listTargetSites, request, callSettings);
|
1123
1151
|
}
|
@@ -1170,7 +1198,9 @@ class SiteSearchEngineServiceClient {
|
|
1170
1198
|
});
|
1171
1199
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
1172
1200
|
const callSettings = defaultCallSettings.merge(options);
|
1173
|
-
this.initialize()
|
1201
|
+
this.initialize().catch(err => {
|
1202
|
+
throw err;
|
1203
|
+
});
|
1174
1204
|
this._log.info('listTargetSites iterate %j', request);
|
1175
1205
|
return this.descriptors.page.listTargetSites.asyncIterate(this.innerApiCalls['listTargetSites'], request, callSettings);
|
1176
1206
|
}
|
@@ -1191,7 +1221,9 @@ class SiteSearchEngineServiceClient {
|
|
1191
1221
|
this._gaxModule.routingHeader.fromParams({
|
1192
1222
|
site_search_engine: request.siteSearchEngine ?? '',
|
1193
1223
|
});
|
1194
|
-
this.initialize()
|
1224
|
+
this.initialize().catch(err => {
|
1225
|
+
throw err;
|
1226
|
+
});
|
1195
1227
|
const wrappedCallback = callback
|
1196
1228
|
? (error, values, nextPageRequest, rawResponse) => {
|
1197
1229
|
this._log.info('fetchDomainVerificationStatus values %j', values);
|
@@ -1249,7 +1281,9 @@ class SiteSearchEngineServiceClient {
|
|
1249
1281
|
});
|
1250
1282
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
1251
1283
|
const callSettings = defaultCallSettings.merge(options);
|
1252
|
-
this.initialize()
|
1284
|
+
this.initialize().catch(err => {
|
1285
|
+
throw err;
|
1286
|
+
});
|
1253
1287
|
this._log.info('fetchDomainVerificationStatus stream %j', request);
|
1254
1288
|
return this.descriptors.page.fetchDomainVerificationStatus.createStream(this.innerApiCalls.fetchDomainVerificationStatus, request, callSettings);
|
1255
1289
|
}
|
@@ -1299,7 +1333,9 @@ class SiteSearchEngineServiceClient {
|
|
1299
1333
|
});
|
1300
1334
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
1301
1335
|
const callSettings = defaultCallSettings.merge(options);
|
1302
|
-
this.initialize()
|
1336
|
+
this.initialize().catch(err => {
|
1337
|
+
throw err;
|
1338
|
+
});
|
1303
1339
|
this._log.info('fetchDomainVerificationStatus iterate %j', request);
|
1304
1340
|
return this.descriptors.page.fetchDomainVerificationStatus.asyncIterate(this.innerApiCalls['fetchDomainVerificationStatus'], request, callSettings);
|
1305
1341
|
}
|
@@ -433,7 +433,7 @@ export declare class UserEventServiceClient {
|
|
433
433
|
* // doThingsWith(response)
|
434
434
|
* ```
|
435
435
|
*/
|
436
|
-
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.
|
436
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
437
437
|
/**
|
438
438
|
* Starts asynchronous cancellation on a long-running operation. The server
|
439
439
|
* makes a best effort to cancel the operation, but success is not
|