@google-cloud/discoveryengine 0.8.0 → 1.1.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 (62) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +13 -1
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +30 -2
  4. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +15 -2
  5. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +114 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +303 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/document.proto +8 -5
  8. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +4 -3
  9. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +27 -23
  10. package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +428 -20
  12. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +48 -39
  13. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +2 -2
  14. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +7 -2
  15. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +13 -2
  16. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +138 -0
  17. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +306 -0
  18. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +2 -4
  19. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +2 -1
  20. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +17 -17
  21. package/build/protos/google/cloud/discoveryengine/v1beta/schema.proto +1 -1
  22. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +276 -64
  23. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +45 -36
  24. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +2 -2
  25. package/build/protos/protos.d.ts +13913 -8367
  26. package/build/protos/protos.js +36766 -22883
  27. package/build/protos/protos.json +3956 -2571
  28. package/build/src/index.d.ts +4 -1
  29. package/build/src/index.js +4 -1
  30. package/build/src/v1/completion_service_client.d.ts +161 -12
  31. package/build/src/v1/completion_service_client.js +188 -4
  32. package/build/src/v1/conversational_search_service_client.d.ts +947 -0
  33. package/build/src/v1/conversational_search_service_client.js +1205 -0
  34. package/build/src/v1/conversational_search_service_client_config.json +68 -0
  35. package/build/src/v1/document_service_client.d.ts +245 -109
  36. package/build/src/v1/document_service_client.js +231 -31
  37. package/build/src/v1/index.d.ts +1 -0
  38. package/build/src/v1/index.js +3 -1
  39. package/build/src/v1/schema_service_client.d.ts +187 -53
  40. package/build/src/v1/schema_service_client.js +224 -27
  41. package/build/src/v1/search_service_client.d.ts +266 -59
  42. package/build/src/v1/search_service_client.js +267 -41
  43. package/build/src/v1/user_event_service_client.d.ts +159 -19
  44. package/build/src/v1/user_event_service_client.js +208 -7
  45. package/build/src/v1beta/completion_service_client.d.ts +159 -12
  46. package/build/src/v1beta/completion_service_client.js +188 -4
  47. package/build/src/v1beta/conversational_search_service_client.d.ts +947 -0
  48. package/build/src/v1beta/conversational_search_service_client.js +1205 -0
  49. package/build/src/v1beta/conversational_search_service_client_config.json +68 -0
  50. package/build/src/v1beta/document_service_client.d.ts +237 -101
  51. package/build/src/v1beta/document_service_client.js +227 -27
  52. package/build/src/v1beta/index.d.ts +1 -0
  53. package/build/src/v1beta/index.js +3 -1
  54. package/build/src/v1beta/recommendation_service_client.d.ts +158 -15
  55. package/build/src/v1beta/recommendation_service_client.js +188 -4
  56. package/build/src/v1beta/schema_service_client.d.ts +187 -53
  57. package/build/src/v1beta/schema_service_client.js +224 -27
  58. package/build/src/v1beta/search_service_client.d.ts +305 -71
  59. package/build/src/v1beta/search_service_client.js +293 -49
  60. package/build/src/v1beta/user_event_service_client.d.ts +156 -16
  61. package/build/src/v1beta/user_event_service_client.js +208 -7
  62. package/package.json +10 -13
@@ -27,7 +27,7 @@ const jsonProtos = require("../../protos/protos.json");
27
27
  const gapicConfig = require("./document_service_client_config.json");
28
28
  const version = require('../../../package.json').version;
29
29
  /**
30
- * Service for ingesting {@link google.cloud.discoveryengine.v1.Document|Document}
30
+ * Service for ingesting {@link protos.google.cloud.discoveryengine.v1.Document|Document}
31
31
  * information of the customer's website.
32
32
  * @class
33
33
  * @memberof v1
@@ -61,8 +61,7 @@ class DocumentServiceClient {
61
61
  * API remote host.
62
62
  * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
63
63
  * Follows the structure of {@link gapicConfig}.
64
- * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
65
- * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
64
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
66
65
  * For more information, please check the
67
66
  * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
68
67
  * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
@@ -70,7 +69,7 @@ class DocumentServiceClient {
70
69
  * HTTP implementation. Load only fallback version and pass it to the constructor:
71
70
  * ```
72
71
  * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
73
- * const client = new DocumentServiceClient({fallback: 'rest'}, gax);
72
+ * const client = new DocumentServiceClient({fallback: true}, gax);
74
73
  * ```
75
74
  */
76
75
  constructor(opts, gaxInstance) {
@@ -116,6 +115,7 @@ class DocumentServiceClient {
116
115
  if (servicePath === staticMembers.servicePath) {
117
116
  this.auth.defaultScopes = staticMembers.scopes;
118
117
  }
118
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
119
119
  // Determine the client header string.
120
120
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
121
121
  if (typeof process !== 'undefined' && 'versions' in process) {
@@ -127,7 +127,7 @@ class DocumentServiceClient {
127
127
  if (!opts.fallback) {
128
128
  clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
129
129
  }
130
- else if (opts.fallback === 'rest') {
130
+ else {
131
131
  clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
132
132
  }
133
133
  if (opts.libName && opts.libVersion) {
@@ -141,9 +141,11 @@ class DocumentServiceClient {
141
141
  this.pathTemplates = {
142
142
  projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
143
143
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
144
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
144
145
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
145
146
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
146
147
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
148
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
147
149
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
148
150
  };
149
151
  // Some of the methods on this service return "paged" results,
@@ -160,7 +162,7 @@ class DocumentServiceClient {
160
162
  auth: this.auth,
161
163
  grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
162
164
  };
163
- if (opts.fallback === 'rest') {
165
+ if (opts.fallback) {
164
166
  lroOptions.protoJson = protoFilesRoot;
165
167
  lroOptions.httpRules = [
166
168
  {
@@ -179,6 +181,15 @@ class DocumentServiceClient {
179
181
  {
180
182
  get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
181
183
  },
184
+ {
185
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
186
+ },
187
+ {
188
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
189
+ },
190
+ {
191
+ get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
192
+ },
182
193
  {
183
194
  get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
184
195
  },
@@ -208,9 +219,18 @@ class DocumentServiceClient {
208
219
  {
209
220
  get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
210
221
  },
222
+ {
223
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
224
+ },
225
+ {
226
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
227
+ },
211
228
  {
212
229
  get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
213
230
  },
231
+ {
232
+ get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
233
+ },
214
234
  { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
215
235
  {
216
236
  get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
@@ -448,8 +468,7 @@ class DocumentServiceClient {
448
468
  * The operation name that will be passed.
449
469
  * @returns {Promise} - The promise which resolves to an object.
450
470
  * The decoded operation object has result and metadata field to get information from.
451
- * Please see the
452
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
471
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
453
472
  * for more details and examples.
454
473
  * @example <caption>include:samples/generated/v1/document_service.import_documents.js</caption>
455
474
  * region_tag:discoveryengine_v1_generated_DocumentService_ImportDocuments_async
@@ -487,8 +506,7 @@ class DocumentServiceClient {
487
506
  * The operation name that will be passed.
488
507
  * @returns {Promise} - The promise which resolves to an object.
489
508
  * The decoded operation object has result and metadata field to get information from.
490
- * Please see the
491
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
509
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
492
510
  * for more details and examples.
493
511
  * @example <caption>include:samples/generated/v1/document_service.purge_documents.js</caption>
494
512
  * region_tag:discoveryengine_v1_generated_DocumentService_PurgeDocuments_async
@@ -530,36 +548,36 @@ class DocumentServiceClient {
530
548
  * Use `default_branch` as the branch ID, to list documents under the default
531
549
  * branch.
532
550
  *
533
- * If the caller does not have permission to list {@link |Documents}s under this
534
- * branch, regardless of whether or not this branch exists, a
535
- * `PERMISSION_DENIED` error is returned.
551
+ * If the caller does not have permission to list
552
+ * {@link protos.google.cloud.discoveryengine.v1.Document|Document}s under this branch,
553
+ * regardless of whether or not this branch exists, a `PERMISSION_DENIED`
554
+ * error is returned.
536
555
  * @param {number} request.pageSize
537
- * Maximum number of {@link google.cloud.discoveryengine.v1.Document|Document}s to
556
+ * Maximum number of {@link protos.google.cloud.discoveryengine.v1.Document|Document}s to
538
557
  * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
539
558
  * Values above 1000 will be coerced to 1000.
540
559
  *
541
560
  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
542
561
  * @param {string} request.pageToken
543
562
  * A page token
544
- * {@link google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
563
+ * {@link protos.google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
545
564
  * received from a previous
546
- * {@link google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
565
+ * {@link protos.google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
547
566
  * call. Provide this to retrieve the subsequent page.
548
567
  *
549
568
  * When paginating, all other parameters provided to
550
- * {@link google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
569
+ * {@link protos.google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
551
570
  * must match the call that provided the page token. Otherwise, an
552
571
  * `INVALID_ARGUMENT` error is returned.
553
572
  * @param {object} [options]
554
573
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
555
574
  * @returns {Stream}
556
- * An object stream which emits an object representing {@link google.cloud.discoveryengine.v1.Document | Document} on 'data' event.
575
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1.Document|Document} on 'data' event.
557
576
  * The client library will perform auto-pagination by default: it will call the API as many
558
577
  * times as needed. Note that it can affect your quota.
559
578
  * We recommend using `listDocumentsAsync()`
560
579
  * method described below for async iteration which you can stop as needed.
561
- * Please see the
562
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
580
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
563
581
  * for more details and examples.
564
582
  */
565
583
  listDocumentsStream(request, options) {
@@ -589,35 +607,35 @@ class DocumentServiceClient {
589
607
  * Use `default_branch` as the branch ID, to list documents under the default
590
608
  * branch.
591
609
  *
592
- * If the caller does not have permission to list {@link |Documents}s under this
593
- * branch, regardless of whether or not this branch exists, a
594
- * `PERMISSION_DENIED` error is returned.
610
+ * If the caller does not have permission to list
611
+ * {@link protos.google.cloud.discoveryengine.v1.Document|Document}s under this branch,
612
+ * regardless of whether or not this branch exists, a `PERMISSION_DENIED`
613
+ * error is returned.
595
614
  * @param {number} request.pageSize
596
- * Maximum number of {@link google.cloud.discoveryengine.v1.Document|Document}s to
615
+ * Maximum number of {@link protos.google.cloud.discoveryengine.v1.Document|Document}s to
597
616
  * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
598
617
  * Values above 1000 will be coerced to 1000.
599
618
  *
600
619
  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
601
620
  * @param {string} request.pageToken
602
621
  * A page token
603
- * {@link google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
622
+ * {@link protos.google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
604
623
  * received from a previous
605
- * {@link google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
624
+ * {@link protos.google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
606
625
  * call. Provide this to retrieve the subsequent page.
607
626
  *
608
627
  * When paginating, all other parameters provided to
609
- * {@link google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
628
+ * {@link protos.google.cloud.discoveryengine.v1.DocumentService.ListDocuments|DocumentService.ListDocuments}
610
629
  * must match the call that provided the page token. Otherwise, an
611
630
  * `INVALID_ARGUMENT` error is returned.
612
631
  * @param {object} [options]
613
632
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
614
633
  * @returns {Object}
615
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
634
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
616
635
  * When you iterate the returned iterable, each element will be an object representing
617
- * {@link google.cloud.discoveryengine.v1.Document | Document}. The API will be called under the hood as needed, once per the page,
636
+ * {@link protos.google.cloud.discoveryengine.v1.Document|Document}. The API will be called under the hood as needed, once per the page,
618
637
  * so you can stop the iteration when you don't need more results.
619
- * Please see the
620
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
638
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
621
639
  * for more details and examples.
622
640
  * @example <caption>include:samples/generated/v1/document_service.list_documents.js</caption>
623
641
  * region_tag:discoveryengine_v1_generated_DocumentService_ListDocuments_async
@@ -637,6 +655,61 @@ class DocumentServiceClient {
637
655
  this.initialize();
638
656
  return this.descriptors.page.listDocuments.asyncIterate(this.innerApiCalls['listDocuments'], request, callSettings);
639
657
  }
658
+ /**
659
+ * Gets information about a location.
660
+ *
661
+ * @param {Object} request
662
+ * The request object that will be sent.
663
+ * @param {string} request.name
664
+ * Resource name for the location.
665
+ * @param {object} [options]
666
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
667
+ * @returns {Promise} - The promise which resolves to an array.
668
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
669
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
670
+ * for more details and examples.
671
+ * @example
672
+ * ```
673
+ * const [response] = await client.getLocation(request);
674
+ * ```
675
+ */
676
+ getLocation(request, options, callback) {
677
+ return this.locationsClient.getLocation(request, options, callback);
678
+ }
679
+ /**
680
+ * Lists information about the supported locations for this service. Returns an iterable object.
681
+ *
682
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
683
+ * @param {Object} request
684
+ * The request object that will be sent.
685
+ * @param {string} request.name
686
+ * The resource that owns the locations collection, if applicable.
687
+ * @param {string} request.filter
688
+ * The standard list filter.
689
+ * @param {number} request.pageSize
690
+ * The standard list page size.
691
+ * @param {string} request.pageToken
692
+ * The standard list page token.
693
+ * @param {object} [options]
694
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
695
+ * @returns {Object}
696
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
697
+ * When you iterate the returned iterable, each element will be an object representing
698
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
699
+ * so you can stop the iteration when you don't need more results.
700
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
701
+ * for more details and examples.
702
+ * @example
703
+ * ```
704
+ * const iterable = client.listLocationsAsync(request);
705
+ * for await (const response of iterable) {
706
+ * // process response
707
+ * }
708
+ * ```
709
+ */
710
+ listLocationsAsync(request, options) {
711
+ return this.locationsClient.listLocationsAsync(request, options);
712
+ }
640
713
  /**
641
714
  * Gets the latest state of a long-running operation. Clients can use this
642
715
  * method to poll the operation result at intervals as recommended by the API
@@ -918,6 +991,75 @@ class DocumentServiceClient {
918
991
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
919
992
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
920
993
  }
994
+ /**
995
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
996
+ *
997
+ * @param {string} project
998
+ * @param {string} location
999
+ * @param {string} collection
1000
+ * @param {string} data_store
1001
+ * @param {string} conversation
1002
+ * @returns {string} Resource name string.
1003
+ */
1004
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1005
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1006
+ project: project,
1007
+ location: location,
1008
+ collection: collection,
1009
+ data_store: dataStore,
1010
+ conversation: conversation,
1011
+ });
1012
+ }
1013
+ /**
1014
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1015
+ *
1016
+ * @param {string} projectLocationCollectionDataStoreConversationName
1017
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1018
+ * @returns {string} A string representing the project.
1019
+ */
1020
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1021
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1022
+ }
1023
+ /**
1024
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1025
+ *
1026
+ * @param {string} projectLocationCollectionDataStoreConversationName
1027
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1028
+ * @returns {string} A string representing the location.
1029
+ */
1030
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1031
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1032
+ }
1033
+ /**
1034
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1035
+ *
1036
+ * @param {string} projectLocationCollectionDataStoreConversationName
1037
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1038
+ * @returns {string} A string representing the collection.
1039
+ */
1040
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1041
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1042
+ }
1043
+ /**
1044
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1045
+ *
1046
+ * @param {string} projectLocationCollectionDataStoreConversationName
1047
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1048
+ * @returns {string} A string representing the data_store.
1049
+ */
1050
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1051
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1052
+ }
1053
+ /**
1054
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1055
+ *
1056
+ * @param {string} projectLocationCollectionDataStoreConversationName
1057
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1058
+ * @returns {string} A string representing the conversation.
1059
+ */
1060
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1061
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1062
+ }
921
1063
  /**
922
1064
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
923
1065
  *
@@ -1113,6 +1255,63 @@ class DocumentServiceClient {
1113
1255
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1114
1256
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1115
1257
  }
1258
+ /**
1259
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1260
+ *
1261
+ * @param {string} project
1262
+ * @param {string} location
1263
+ * @param {string} data_store
1264
+ * @param {string} conversation
1265
+ * @returns {string} Resource name string.
1266
+ */
1267
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1268
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1269
+ project: project,
1270
+ location: location,
1271
+ data_store: dataStore,
1272
+ conversation: conversation,
1273
+ });
1274
+ }
1275
+ /**
1276
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1277
+ *
1278
+ * @param {string} projectLocationDataStoreConversationName
1279
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1280
+ * @returns {string} A string representing the project.
1281
+ */
1282
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1283
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1284
+ }
1285
+ /**
1286
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1287
+ *
1288
+ * @param {string} projectLocationDataStoreConversationName
1289
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1290
+ * @returns {string} A string representing the location.
1291
+ */
1292
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1293
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1294
+ }
1295
+ /**
1296
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1297
+ *
1298
+ * @param {string} projectLocationDataStoreConversationName
1299
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1300
+ * @returns {string} A string representing the data_store.
1301
+ */
1302
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1303
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1304
+ }
1305
+ /**
1306
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1307
+ *
1308
+ * @param {string} projectLocationDataStoreConversationName
1309
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1310
+ * @returns {string} A string representing the conversation.
1311
+ */
1312
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1313
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1314
+ }
1116
1315
  /**
1117
1316
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1118
1317
  *
@@ -1181,6 +1380,7 @@ class DocumentServiceClient {
1181
1380
  return this.documentServiceStub.then(stub => {
1182
1381
  this._terminated = true;
1183
1382
  stub.close();
1383
+ this.locationsClient.close();
1184
1384
  this.operationsClient.close();
1185
1385
  });
1186
1386
  }
@@ -1,4 +1,5 @@
1
1
  export { CompletionServiceClient } from './completion_service_client';
2
+ export { ConversationalSearchServiceClient } from './conversational_search_service_client';
2
3
  export { DocumentServiceClient } from './document_service_client';
3
4
  export { SchemaServiceClient } from './schema_service_client';
4
5
  export { SearchServiceClient } from './search_service_client';
@@ -17,9 +17,11 @@
17
17
  // ** https://github.com/googleapis/gapic-generator-typescript **
18
18
  // ** All changes to this file may be overwritten. **
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.UserEventServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.DocumentServiceClient = exports.CompletionServiceClient = void 0;
20
+ exports.UserEventServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.DocumentServiceClient = exports.ConversationalSearchServiceClient = exports.CompletionServiceClient = void 0;
21
21
  var completion_service_client_1 = require("./completion_service_client");
22
22
  Object.defineProperty(exports, "CompletionServiceClient", { enumerable: true, get: function () { return completion_service_client_1.CompletionServiceClient; } });
23
+ var conversational_search_service_client_1 = require("./conversational_search_service_client");
24
+ Object.defineProperty(exports, "ConversationalSearchServiceClient", { enumerable: true, get: function () { return conversational_search_service_client_1.ConversationalSearchServiceClient; } });
23
25
  var document_service_client_1 = require("./document_service_client");
24
26
  Object.defineProperty(exports, "DocumentServiceClient", { enumerable: true, get: function () { return document_service_client_1.DocumentServiceClient; } });
25
27
  var schema_service_client_1 = require("./schema_service_client");