@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.
Files changed (79) hide show
  1. package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +19 -0
  2. package/build/protos/google/cloud/discoveryengine/v1beta/assistant_service.proto +19 -0
  3. package/build/protos/protos.d.ts +406 -0
  4. package/build/protos/protos.js +1 -1
  5. package/build/protos/protos.json +64 -0
  6. package/build/src/v1/assistant_service_client.d.ts +2 -0
  7. package/build/src/v1/assistant_service_client.js +6 -4
  8. package/build/src/v1/cmek_config_service_client.js +9 -13
  9. package/build/src/v1/completion_service_client.js +10 -14
  10. package/build/src/v1/control_service_client.js +10 -10
  11. package/build/src/v1/conversational_search_service_client.js +21 -21
  12. package/build/src/v1/data_store_service_client.js +12 -16
  13. package/build/src/v1/document_service_client.js +15 -19
  14. package/build/src/v1/engine_service_client.js +12 -16
  15. package/build/src/v1/grounded_generation_service_client.js +6 -6
  16. package/build/src/v1/identity_mapping_store_service_client.js +16 -20
  17. package/build/src/v1/project_service_client.js +6 -10
  18. package/build/src/v1/rank_service_client.js +4 -4
  19. package/build/src/v1/recommendation_service_client.js +4 -4
  20. package/build/src/v1/schema_service_client.js +12 -16
  21. package/build/src/v1/search_service_client.js +9 -9
  22. package/build/src/v1/search_tuning_service_client.js +7 -11
  23. package/build/src/v1/serving_config_service_client.js +4 -4
  24. package/build/src/v1/session_service_client.js +10 -10
  25. package/build/src/v1/site_search_engine_service_client.js +24 -28
  26. package/build/src/v1/user_event_service_client.js +9 -13
  27. package/build/src/v1/user_license_service_client.js +9 -13
  28. package/build/src/v1alpha/acl_config_service_client.js +5 -5
  29. package/build/src/v1alpha/chunk_service_client.js +7 -7
  30. package/build/src/v1alpha/completion_service_client.js +8 -8
  31. package/build/src/v1alpha/control_service_client.js +10 -10
  32. package/build/src/v1alpha/conversational_search_service_client.js +20 -20
  33. package/build/src/v1alpha/data_store_service_client.js +12 -12
  34. package/build/src/v1alpha/document_service_client.js +14 -14
  35. package/build/src/v1alpha/engine_service_client.js +13 -13
  36. package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
  37. package/build/src/v1alpha/evaluation_service_client.js +11 -11
  38. package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
  39. package/build/src/v1alpha/project_service_client.js +6 -6
  40. package/build/src/v1alpha/rank_service_client.js +4 -4
  41. package/build/src/v1alpha/recommendation_service_client.js +4 -4
  42. package/build/src/v1alpha/sample_query_service_client.js +11 -11
  43. package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
  44. package/build/src/v1alpha/schema_service_client.js +10 -10
  45. package/build/src/v1alpha/search_service_client.js +6 -6
  46. package/build/src/v1alpha/search_tuning_service_client.js +5 -5
  47. package/build/src/v1alpha/serving_config_service_client.js +8 -8
  48. package/build/src/v1alpha/session_service_client.js +13 -13
  49. package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
  50. package/build/src/v1alpha/user_event_service_client.js +7 -7
  51. package/build/src/v1beta/acl_config_service_client.js +5 -5
  52. package/build/src/v1beta/assistant_service_client.d.ts +2 -0
  53. package/build/src/v1beta/assistant_service_client.js +13 -11
  54. package/build/src/v1beta/cmek_config_service_client.js +7 -7
  55. package/build/src/v1beta/completion_service_client.js +10 -10
  56. package/build/src/v1beta/control_service_client.js +10 -10
  57. package/build/src/v1beta/conversational_search_service_client.js +21 -21
  58. package/build/src/v1beta/data_store_service_client.js +10 -10
  59. package/build/src/v1beta/document_service_client.js +13 -13
  60. package/build/src/v1beta/engine_service_client.js +15 -15
  61. package/build/src/v1beta/evaluation_service_client.js +11 -11
  62. package/build/src/v1beta/grounded_generation_service_client.js +6 -6
  63. package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
  64. package/build/src/v1beta/license_config_service_client.js +11 -11
  65. package/build/src/v1beta/project_service_client.js +4 -4
  66. package/build/src/v1beta/rank_service_client.js +4 -4
  67. package/build/src/v1beta/recommendation_service_client.js +4 -4
  68. package/build/src/v1beta/sample_query_service_client.js +11 -11
  69. package/build/src/v1beta/sample_query_set_service_client.js +10 -10
  70. package/build/src/v1beta/schema_service_client.js +10 -10
  71. package/build/src/v1beta/search_service_client.js +9 -9
  72. package/build/src/v1beta/search_tuning_service_client.js +5 -5
  73. package/build/src/v1beta/serving_config_service_client.js +10 -10
  74. package/build/src/v1beta/session_service_client.js +10 -10
  75. package/build/src/v1beta/site_search_engine_service_client.js +22 -22
  76. package/build/src/v1beta/user_event_service_client.js +7 -7
  77. package/build/src/v1beta/user_license_service_client.js +8 -8
  78. package/build/src/v1beta/user_store_service_client.js +5 -5
  79. package/package.json +1 -1
@@ -1064,6 +1064,13 @@
1064
1064
  "(google.api.field_behavior)": "OPTIONAL"
1065
1065
  }
1066
1066
  },
1067
+ "agentsSpec": {
1068
+ "type": "AgentsSpec",
1069
+ "id": 22,
1070
+ "options": {
1071
+ "(google.api.field_behavior)": "OPTIONAL"
1072
+ }
1073
+ },
1067
1074
  "toolsSpec": {
1068
1075
  "type": "ToolsSpec",
1069
1076
  "id": 18,
@@ -1080,6 +1087,31 @@
1080
1087
  }
1081
1088
  },
1082
1089
  "nested": {
1090
+ "AgentsSpec": {
1091
+ "fields": {
1092
+ "agentSpecs": {
1093
+ "rule": "repeated",
1094
+ "type": "AgentSpec",
1095
+ "id": 1,
1096
+ "options": {
1097
+ "(google.api.field_behavior)": "OPTIONAL"
1098
+ }
1099
+ }
1100
+ },
1101
+ "nested": {
1102
+ "AgentSpec": {
1103
+ "fields": {
1104
+ "agentId": {
1105
+ "type": "string",
1106
+ "id": 1,
1107
+ "options": {
1108
+ "(google.api.field_behavior)": "REQUIRED"
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+ }
1114
+ },
1083
1115
  "ToolsSpec": {
1084
1116
  "fields": {
1085
1117
  "vertexAiSearchSpec": {
@@ -27754,6 +27786,13 @@
27754
27786
  "(google.api.field_behavior)": "OPTIONAL"
27755
27787
  }
27756
27788
  },
27789
+ "agentsSpec": {
27790
+ "type": "AgentsSpec",
27791
+ "id": 22,
27792
+ "options": {
27793
+ "(google.api.field_behavior)": "OPTIONAL"
27794
+ }
27795
+ },
27757
27796
  "toolsSpec": {
27758
27797
  "type": "ToolsSpec",
27759
27798
  "id": 18,
@@ -27770,6 +27809,31 @@
27770
27809
  }
27771
27810
  },
27772
27811
  "nested": {
27812
+ "AgentsSpec": {
27813
+ "fields": {
27814
+ "agentSpecs": {
27815
+ "rule": "repeated",
27816
+ "type": "AgentSpec",
27817
+ "id": 1,
27818
+ "options": {
27819
+ "(google.api.field_behavior)": "OPTIONAL"
27820
+ }
27821
+ }
27822
+ },
27823
+ "nested": {
27824
+ "AgentSpec": {
27825
+ "fields": {
27826
+ "agentId": {
27827
+ "type": "string",
27828
+ "id": 1,
27829
+ "options": {
27830
+ "(google.api.field_behavior)": "REQUIRED"
27831
+ }
27832
+ }
27833
+ }
27834
+ }
27835
+ }
27836
+ },
27773
27837
  "ToolsSpec": {
27774
27838
  "fields": {
27775
27839
  "vertexAiSearchSpec": {
@@ -141,6 +141,8 @@ export declare class AssistantServiceClient {
141
141
  * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
142
142
  * @param {google.cloud.discoveryengine.v1.AssistUserMetadata} [request.userMetadata]
143
143
  * Optional. Information about the user initiating the query.
144
+ * @param {google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec} [request.agentsSpec]
145
+ * Optional. Specification of agents that are used to serve the request.
144
146
  * @param {google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec} [request.toolsSpec]
145
147
  * Optional. Specification of tools that are used to serve the request.
146
148
  * @param {google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec} [request.generationSpec]
@@ -251,7 +251,7 @@ class AssistantServiceClient {
251
251
  // and create an API call method for each.
252
252
  const assistantServiceStubMethods = ['streamAssist'];
253
253
  for (const methodName of assistantServiceStubMethods) {
254
- const callPromise = this.assistantServiceStub.then((stub) => (...args) => {
254
+ const callPromise = this.assistantServiceStub.then(stub => (...args) => {
255
255
  if (this._terminated) {
256
256
  if (methodName in this.descriptors.stream) {
257
257
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -362,6 +362,8 @@ class AssistantServiceClient {
362
362
  * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
363
363
  * @param {google.cloud.discoveryengine.v1.AssistUserMetadata} [request.userMetadata]
364
364
  * Optional. Information about the user initiating the query.
365
+ * @param {google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec} [request.agentsSpec]
366
+ * Optional. Specification of agents that are used to serve the request.
365
367
  * @param {google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec} [request.toolsSpec]
366
368
  * Optional. Specification of tools that are used to serve the request.
367
369
  * @param {google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec} [request.generationSpec]
@@ -384,7 +386,7 @@ class AssistantServiceClient {
384
386
  this._gaxModule.routingHeader.fromParams({
385
387
  name: request.name ?? '',
386
388
  });
387
- this.initialize().catch((err) => {
389
+ this.initialize().catch(err => {
388
390
  throw err;
389
391
  });
390
392
  this._log.info('streamAssist stream %j', options);
@@ -2962,11 +2964,11 @@ class AssistantServiceClient {
2962
2964
  */
2963
2965
  close() {
2964
2966
  if (this.assistantServiceStub && !this._terminated) {
2965
- return this.assistantServiceStub.then((stub) => {
2967
+ return this.assistantServiceStub.then(stub => {
2966
2968
  this._log.info('ending gRPC channel');
2967
2969
  this._terminated = true;
2968
2970
  stub.close();
2969
- this.locationsClient.close().catch((err) => {
2971
+ this.locationsClient.close().catch(err => {
2970
2972
  throw err;
2971
2973
  });
2972
2974
  });
@@ -318,18 +318,14 @@ class CmekConfigServiceClient {
318
318
  {
319
319
  get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
320
320
  },
321
- {
322
- get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
323
- },
321
+ { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
324
322
  {
325
323
  get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
326
324
  },
327
325
  {
328
326
  get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
329
327
  },
330
- {
331
- get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
332
- },
328
+ { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
333
329
  {
334
330
  get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
335
331
  },
@@ -391,7 +387,7 @@ class CmekConfigServiceClient {
391
387
  'deleteCmekConfig',
392
388
  ];
393
389
  for (const methodName of cmekConfigServiceStubMethods) {
394
- const callPromise = this.cmekConfigServiceStub.then((stub) => (...args) => {
390
+ const callPromise = this.cmekConfigServiceStub.then(stub => (...args) => {
395
391
  if (this._terminated) {
396
392
  return Promise.reject('The client has already been closed.');
397
393
  }
@@ -483,7 +479,7 @@ class CmekConfigServiceClient {
483
479
  this._gaxModule.routingHeader.fromParams({
484
480
  name: request.name ?? '',
485
481
  });
486
- this.initialize().catch((err) => {
482
+ this.initialize().catch(err => {
487
483
  throw err;
488
484
  });
489
485
  this._log.info('getCmekConfig request %j', request);
@@ -526,7 +522,7 @@ class CmekConfigServiceClient {
526
522
  this._gaxModule.routingHeader.fromParams({
527
523
  parent: request.parent ?? '',
528
524
  });
529
- this.initialize().catch((err) => {
525
+ this.initialize().catch(err => {
530
526
  throw err;
531
527
  });
532
528
  this._log.info('listCmekConfigs request %j', request);
@@ -569,7 +565,7 @@ class CmekConfigServiceClient {
569
565
  this._gaxModule.routingHeader.fromParams({
570
566
  'config.name': request.config.name ?? '',
571
567
  });
572
- this.initialize().catch((err) => {
568
+ this.initialize().catch(err => {
573
569
  throw err;
574
570
  });
575
571
  const wrappedCallback = callback
@@ -621,7 +617,7 @@ class CmekConfigServiceClient {
621
617
  this._gaxModule.routingHeader.fromParams({
622
618
  name: request.name ?? '',
623
619
  });
624
- this.initialize().catch((err) => {
620
+ this.initialize().catch(err => {
625
621
  throw err;
626
622
  });
627
623
  const wrappedCallback = callback
@@ -3571,11 +3567,11 @@ class CmekConfigServiceClient {
3571
3567
  */
3572
3568
  close() {
3573
3569
  if (this.cmekConfigServiceStub && !this._terminated) {
3574
- return this.cmekConfigServiceStub.then((stub) => {
3570
+ return this.cmekConfigServiceStub.then(stub => {
3575
3571
  this._log.info('ending gRPC channel');
3576
3572
  this._terminated = true;
3577
3573
  stub.close();
3578
- this.locationsClient.close().catch((err) => {
3574
+ this.locationsClient.close().catch(err => {
3579
3575
  throw err;
3580
3576
  });
3581
3577
  void this.operationsClient.close();
@@ -315,18 +315,14 @@ class CompletionServiceClient {
315
315
  {
316
316
  get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
317
317
  },
318
- {
319
- get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
320
- },
318
+ { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
321
319
  {
322
320
  get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
323
321
  },
324
322
  {
325
323
  get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
326
324
  },
327
- {
328
- get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
329
- },
325
+ { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
330
326
  {
331
327
  get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
332
328
  },
@@ -395,7 +391,7 @@ class CompletionServiceClient {
395
391
  'purgeCompletionSuggestions',
396
392
  ];
397
393
  for (const methodName of completionServiceStubMethods) {
398
- const callPromise = this.completionServiceStub.then((stub) => (...args) => {
394
+ const callPromise = this.completionServiceStub.then(stub => (...args) => {
399
395
  if (this._terminated) {
400
396
  return Promise.reject('The client has already been closed.');
401
397
  }
@@ -487,7 +483,7 @@ class CompletionServiceClient {
487
483
  this._gaxModule.routingHeader.fromParams({
488
484
  data_store: request.dataStore ?? '',
489
485
  });
490
- this.initialize().catch((err) => {
486
+ this.initialize().catch(err => {
491
487
  throw err;
492
488
  });
493
489
  this._log.info('completeQuery request %j', request);
@@ -530,7 +526,7 @@ class CompletionServiceClient {
530
526
  this._gaxModule.routingHeader.fromParams({
531
527
  parent: request.parent ?? '',
532
528
  });
533
- this.initialize().catch((err) => {
529
+ this.initialize().catch(err => {
534
530
  throw err;
535
531
  });
536
532
  const wrappedCallback = callback
@@ -582,7 +578,7 @@ class CompletionServiceClient {
582
578
  this._gaxModule.routingHeader.fromParams({
583
579
  parent: request.parent ?? '',
584
580
  });
585
- this.initialize().catch((err) => {
581
+ this.initialize().catch(err => {
586
582
  throw err;
587
583
  });
588
584
  const wrappedCallback = callback
@@ -634,7 +630,7 @@ class CompletionServiceClient {
634
630
  this._gaxModule.routingHeader.fromParams({
635
631
  parent: request.parent ?? '',
636
632
  });
637
- this.initialize().catch((err) => {
633
+ this.initialize().catch(err => {
638
634
  throw err;
639
635
  });
640
636
  const wrappedCallback = callback
@@ -686,7 +682,7 @@ class CompletionServiceClient {
686
682
  this._gaxModule.routingHeader.fromParams({
687
683
  parent: request.parent ?? '',
688
684
  });
689
- this.initialize().catch((err) => {
685
+ this.initialize().catch(err => {
690
686
  throw err;
691
687
  });
692
688
  const wrappedCallback = callback
@@ -3473,11 +3469,11 @@ class CompletionServiceClient {
3473
3469
  */
3474
3470
  close() {
3475
3471
  if (this.completionServiceStub && !this._terminated) {
3476
- return this.completionServiceStub.then((stub) => {
3472
+ return this.completionServiceStub.then(stub => {
3477
3473
  this._log.info('ending gRPC channel');
3478
3474
  this._terminated = true;
3479
3475
  stub.close();
3480
- this.locationsClient.close().catch((err) => {
3476
+ this.locationsClient.close().catch(err => {
3481
3477
  throw err;
3482
3478
  });
3483
3479
  void this.operationsClient.close();
@@ -260,7 +260,7 @@ class ControlServiceClient {
260
260
  'listControls',
261
261
  ];
262
262
  for (const methodName of controlServiceStubMethods) {
263
- const callPromise = this.controlServiceStub.then((stub) => (...args) => {
263
+ const callPromise = this.controlServiceStub.then(stub => (...args) => {
264
264
  if (this._terminated) {
265
265
  return Promise.reject('The client has already been closed.');
266
266
  }
@@ -352,7 +352,7 @@ class ControlServiceClient {
352
352
  this._gaxModule.routingHeader.fromParams({
353
353
  parent: request.parent ?? '',
354
354
  });
355
- this.initialize().catch((err) => {
355
+ this.initialize().catch(err => {
356
356
  throw err;
357
357
  });
358
358
  this._log.info('createControl request %j', request);
@@ -395,7 +395,7 @@ class ControlServiceClient {
395
395
  this._gaxModule.routingHeader.fromParams({
396
396
  name: request.name ?? '',
397
397
  });
398
- this.initialize().catch((err) => {
398
+ this.initialize().catch(err => {
399
399
  throw err;
400
400
  });
401
401
  this._log.info('deleteControl request %j', request);
@@ -438,7 +438,7 @@ class ControlServiceClient {
438
438
  this._gaxModule.routingHeader.fromParams({
439
439
  'control.name': request.control.name ?? '',
440
440
  });
441
- this.initialize().catch((err) => {
441
+ this.initialize().catch(err => {
442
442
  throw err;
443
443
  });
444
444
  this._log.info('updateControl request %j', request);
@@ -481,7 +481,7 @@ class ControlServiceClient {
481
481
  this._gaxModule.routingHeader.fromParams({
482
482
  name: request.name ?? '',
483
483
  });
484
- this.initialize().catch((err) => {
484
+ this.initialize().catch(err => {
485
485
  throw err;
486
486
  });
487
487
  this._log.info('getControl request %j', request);
@@ -524,7 +524,7 @@ class ControlServiceClient {
524
524
  this._gaxModule.routingHeader.fromParams({
525
525
  parent: request.parent ?? '',
526
526
  });
527
- this.initialize().catch((err) => {
527
+ this.initialize().catch(err => {
528
528
  throw err;
529
529
  });
530
530
  const wrappedCallback = callback
@@ -584,7 +584,7 @@ class ControlServiceClient {
584
584
  });
585
585
  const defaultCallSettings = this._defaults['listControls'];
586
586
  const callSettings = defaultCallSettings.merge(options);
587
- this.initialize().catch((err) => {
587
+ this.initialize().catch(err => {
588
588
  throw err;
589
589
  });
590
590
  this._log.info('listControls stream %j', request);
@@ -636,7 +636,7 @@ class ControlServiceClient {
636
636
  });
637
637
  const defaultCallSettings = this._defaults['listControls'];
638
638
  const callSettings = defaultCallSettings.merge(options);
639
- this.initialize().catch((err) => {
639
+ this.initialize().catch(err => {
640
640
  throw err;
641
641
  });
642
642
  this._log.info('listControls iterate %j', request);
@@ -3247,11 +3247,11 @@ class ControlServiceClient {
3247
3247
  */
3248
3248
  close() {
3249
3249
  if (this.controlServiceStub && !this._terminated) {
3250
- return this.controlServiceStub.then((stub) => {
3250
+ return this.controlServiceStub.then(stub => {
3251
3251
  this._log.info('ending gRPC channel');
3252
3252
  this._terminated = true;
3253
3253
  stub.close();
3254
- this.locationsClient.close().catch((err) => {
3254
+ this.locationsClient.close().catch(err => {
3255
3255
  throw err;
3256
3256
  });
3257
3257
  });
@@ -274,7 +274,7 @@ class ConversationalSearchServiceClient {
274
274
  'listSessions',
275
275
  ];
276
276
  for (const methodName of conversationalSearchServiceStubMethods) {
277
- const callPromise = this.conversationalSearchServiceStub.then((stub) => (...args) => {
277
+ const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
278
278
  if (this._terminated) {
279
279
  if (methodName in this.descriptors.stream) {
280
280
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -375,7 +375,7 @@ class ConversationalSearchServiceClient {
375
375
  this._gaxModule.routingHeader.fromParams({
376
376
  name: request.name ?? '',
377
377
  });
378
- this.initialize().catch((err) => {
378
+ this.initialize().catch(err => {
379
379
  throw err;
380
380
  });
381
381
  this._log.info('converseConversation request %j', request);
@@ -418,7 +418,7 @@ class ConversationalSearchServiceClient {
418
418
  this._gaxModule.routingHeader.fromParams({
419
419
  parent: request.parent ?? '',
420
420
  });
421
- this.initialize().catch((err) => {
421
+ this.initialize().catch(err => {
422
422
  throw err;
423
423
  });
424
424
  this._log.info('createConversation request %j', request);
@@ -461,7 +461,7 @@ class ConversationalSearchServiceClient {
461
461
  this._gaxModule.routingHeader.fromParams({
462
462
  name: request.name ?? '',
463
463
  });
464
- this.initialize().catch((err) => {
464
+ this.initialize().catch(err => {
465
465
  throw err;
466
466
  });
467
467
  this._log.info('deleteConversation request %j', request);
@@ -504,7 +504,7 @@ class ConversationalSearchServiceClient {
504
504
  this._gaxModule.routingHeader.fromParams({
505
505
  'conversation.name': request.conversation.name ?? '',
506
506
  });
507
- this.initialize().catch((err) => {
507
+ this.initialize().catch(err => {
508
508
  throw err;
509
509
  });
510
510
  this._log.info('updateConversation request %j', request);
@@ -547,7 +547,7 @@ class ConversationalSearchServiceClient {
547
547
  this._gaxModule.routingHeader.fromParams({
548
548
  name: request.name ?? '',
549
549
  });
550
- this.initialize().catch((err) => {
550
+ this.initialize().catch(err => {
551
551
  throw err;
552
552
  });
553
553
  this._log.info('getConversation request %j', request);
@@ -590,7 +590,7 @@ class ConversationalSearchServiceClient {
590
590
  this._gaxModule.routingHeader.fromParams({
591
591
  serving_config: request.servingConfig ?? '',
592
592
  });
593
- this.initialize().catch((err) => {
593
+ this.initialize().catch(err => {
594
594
  throw err;
595
595
  });
596
596
  this._log.info('answerQuery request %j', request);
@@ -633,7 +633,7 @@ class ConversationalSearchServiceClient {
633
633
  this._gaxModule.routingHeader.fromParams({
634
634
  name: request.name ?? '',
635
635
  });
636
- this.initialize().catch((err) => {
636
+ this.initialize().catch(err => {
637
637
  throw err;
638
638
  });
639
639
  this._log.info('getAnswer request %j', request);
@@ -676,7 +676,7 @@ class ConversationalSearchServiceClient {
676
676
  this._gaxModule.routingHeader.fromParams({
677
677
  parent: request.parent ?? '',
678
678
  });
679
- this.initialize().catch((err) => {
679
+ this.initialize().catch(err => {
680
680
  throw err;
681
681
  });
682
682
  this._log.info('createSession request %j', request);
@@ -719,7 +719,7 @@ class ConversationalSearchServiceClient {
719
719
  this._gaxModule.routingHeader.fromParams({
720
720
  name: request.name ?? '',
721
721
  });
722
- this.initialize().catch((err) => {
722
+ this.initialize().catch(err => {
723
723
  throw err;
724
724
  });
725
725
  this._log.info('deleteSession request %j', request);
@@ -762,7 +762,7 @@ class ConversationalSearchServiceClient {
762
762
  this._gaxModule.routingHeader.fromParams({
763
763
  'session.name': request.session.name ?? '',
764
764
  });
765
- this.initialize().catch((err) => {
765
+ this.initialize().catch(err => {
766
766
  throw err;
767
767
  });
768
768
  this._log.info('updateSession request %j', request);
@@ -805,7 +805,7 @@ class ConversationalSearchServiceClient {
805
805
  this._gaxModule.routingHeader.fromParams({
806
806
  name: request.name ?? '',
807
807
  });
808
- this.initialize().catch((err) => {
808
+ this.initialize().catch(err => {
809
809
  throw err;
810
810
  });
811
811
  this._log.info('getSession request %j', request);
@@ -931,7 +931,7 @@ class ConversationalSearchServiceClient {
931
931
  this._gaxModule.routingHeader.fromParams({
932
932
  serving_config: request.servingConfig ?? '',
933
933
  });
934
- this.initialize().catch((err) => {
934
+ this.initialize().catch(err => {
935
935
  throw err;
936
936
  });
937
937
  this._log.info('streamAnswerQuery stream %j', options);
@@ -954,7 +954,7 @@ class ConversationalSearchServiceClient {
954
954
  this._gaxModule.routingHeader.fromParams({
955
955
  parent: request.parent ?? '',
956
956
  });
957
- this.initialize().catch((err) => {
957
+ this.initialize().catch(err => {
958
958
  throw err;
959
959
  });
960
960
  const wrappedCallback = callback
@@ -1023,7 +1023,7 @@ class ConversationalSearchServiceClient {
1023
1023
  });
1024
1024
  const defaultCallSettings = this._defaults['listConversations'];
1025
1025
  const callSettings = defaultCallSettings.merge(options);
1026
- this.initialize().catch((err) => {
1026
+ this.initialize().catch(err => {
1027
1027
  throw err;
1028
1028
  });
1029
1029
  this._log.info('listConversations stream %j', request);
@@ -1084,7 +1084,7 @@ class ConversationalSearchServiceClient {
1084
1084
  });
1085
1085
  const defaultCallSettings = this._defaults['listConversations'];
1086
1086
  const callSettings = defaultCallSettings.merge(options);
1087
- this.initialize().catch((err) => {
1087
+ this.initialize().catch(err => {
1088
1088
  throw err;
1089
1089
  });
1090
1090
  this._log.info('listConversations iterate %j', request);
@@ -1107,7 +1107,7 @@ class ConversationalSearchServiceClient {
1107
1107
  this._gaxModule.routingHeader.fromParams({
1108
1108
  parent: request.parent ?? '',
1109
1109
  });
1110
- this.initialize().catch((err) => {
1110
+ this.initialize().catch(err => {
1111
1111
  throw err;
1112
1112
  });
1113
1113
  const wrappedCallback = callback
@@ -1193,7 +1193,7 @@ class ConversationalSearchServiceClient {
1193
1193
  });
1194
1194
  const defaultCallSettings = this._defaults['listSessions'];
1195
1195
  const callSettings = defaultCallSettings.merge(options);
1196
- this.initialize().catch((err) => {
1196
+ this.initialize().catch(err => {
1197
1197
  throw err;
1198
1198
  });
1199
1199
  this._log.info('listSessions stream %j', request);
@@ -1271,7 +1271,7 @@ class ConversationalSearchServiceClient {
1271
1271
  });
1272
1272
  const defaultCallSettings = this._defaults['listSessions'];
1273
1273
  const callSettings = defaultCallSettings.merge(options);
1274
- this.initialize().catch((err) => {
1274
+ this.initialize().catch(err => {
1275
1275
  throw err;
1276
1276
  });
1277
1277
  this._log.info('listSessions iterate %j', request);
@@ -3849,11 +3849,11 @@ class ConversationalSearchServiceClient {
3849
3849
  */
3850
3850
  close() {
3851
3851
  if (this.conversationalSearchServiceStub && !this._terminated) {
3852
- return this.conversationalSearchServiceStub.then((stub) => {
3852
+ return this.conversationalSearchServiceStub.then(stub => {
3853
3853
  this._log.info('ending gRPC channel');
3854
3854
  this._terminated = true;
3855
3855
  stub.close();
3856
- this.locationsClient.close().catch((err) => {
3856
+ this.locationsClient.close().catch(err => {
3857
3857
  throw err;
3858
3858
  });
3859
3859
  });