@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.
- package/CHANGELOG.md +30 -0
- package/README.md +13 -1
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +30 -2
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +15 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +114 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +303 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +8 -5
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +27 -23
- package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +428 -20
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +48 -39
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +7 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +13 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +138 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +2 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +17 -17
- package/build/protos/google/cloud/discoveryengine/v1beta/schema.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +276 -64
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +45 -36
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +2 -2
- package/build/protos/protos.d.ts +13913 -8367
- package/build/protos/protos.js +36766 -22883
- package/build/protos/protos.json +3956 -2571
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -1
- package/build/src/v1/completion_service_client.d.ts +161 -12
- package/build/src/v1/completion_service_client.js +188 -4
- package/build/src/v1/conversational_search_service_client.d.ts +947 -0
- package/build/src/v1/conversational_search_service_client.js +1205 -0
- package/build/src/v1/conversational_search_service_client_config.json +68 -0
- package/build/src/v1/document_service_client.d.ts +245 -109
- package/build/src/v1/document_service_client.js +231 -31
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/schema_service_client.d.ts +187 -53
- package/build/src/v1/schema_service_client.js +224 -27
- package/build/src/v1/search_service_client.d.ts +266 -59
- package/build/src/v1/search_service_client.js +267 -41
- package/build/src/v1/user_event_service_client.d.ts +159 -19
- package/build/src/v1/user_event_service_client.js +208 -7
- package/build/src/v1beta/completion_service_client.d.ts +159 -12
- package/build/src/v1beta/completion_service_client.js +188 -4
- package/build/src/v1beta/conversational_search_service_client.d.ts +947 -0
- package/build/src/v1beta/conversational_search_service_client.js +1205 -0
- package/build/src/v1beta/conversational_search_service_client_config.json +68 -0
- package/build/src/v1beta/document_service_client.d.ts +237 -101
- package/build/src/v1beta/document_service_client.js +227 -27
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +158 -15
- package/build/src/v1beta/recommendation_service_client.js +188 -4
- package/build/src/v1beta/schema_service_client.d.ts +187 -53
- package/build/src/v1beta/schema_service_client.js +224 -27
- package/build/src/v1beta/search_service_client.d.ts +305 -71
- package/build/src/v1beta/search_service_client.js +293 -49
- package/build/src/v1beta/user_event_service_client.d.ts +156 -16
- package/build/src/v1beta/user_event_service_client.js +208 -7
- package/package.json +10 -13
@@ -28,7 +28,7 @@ const gapicConfig = require("./document_service_client_config.json");
|
|
28
28
|
const version = require('../../../package.json').version;
|
29
29
|
/**
|
30
30
|
* Service for ingesting
|
31
|
-
* {@link google.cloud.discoveryengine.v1beta.Document|Document} information of the
|
31
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.Document|Document} information of the
|
32
32
|
* customer's website.
|
33
33
|
* @class
|
34
34
|
* @memberof v1beta
|
@@ -62,8 +62,7 @@ class DocumentServiceClient {
|
|
62
62
|
* API remote host.
|
63
63
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
64
64
|
* Follows the structure of {@link gapicConfig}.
|
65
|
-
* @param {boolean
|
66
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
65
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
67
66
|
* For more information, please check the
|
68
67
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
69
68
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
@@ -71,7 +70,7 @@ class DocumentServiceClient {
|
|
71
70
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
72
71
|
* ```
|
73
72
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
74
|
-
* const client = new DocumentServiceClient({fallback:
|
73
|
+
* const client = new DocumentServiceClient({fallback: true}, gax);
|
75
74
|
* ```
|
76
75
|
*/
|
77
76
|
constructor(opts, gaxInstance) {
|
@@ -117,6 +116,7 @@ class DocumentServiceClient {
|
|
117
116
|
if (servicePath === staticMembers.servicePath) {
|
118
117
|
this.auth.defaultScopes = staticMembers.scopes;
|
119
118
|
}
|
119
|
+
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
120
120
|
// Determine the client header string.
|
121
121
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
122
122
|
if (typeof process !== 'undefined' && 'versions' in process) {
|
@@ -128,7 +128,7 @@ class DocumentServiceClient {
|
|
128
128
|
if (!opts.fallback) {
|
129
129
|
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
130
130
|
}
|
131
|
-
else
|
131
|
+
else {
|
132
132
|
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
133
133
|
}
|
134
134
|
if (opts.libName && opts.libVersion) {
|
@@ -142,9 +142,11 @@ class DocumentServiceClient {
|
|
142
142
|
this.pathTemplates = {
|
143
143
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
144
144
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
145
|
+
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
145
146
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
146
147
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
147
148
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
149
|
+
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
148
150
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
149
151
|
};
|
150
152
|
// Some of the methods on this service return "paged" results,
|
@@ -161,7 +163,7 @@ class DocumentServiceClient {
|
|
161
163
|
auth: this.auth,
|
162
164
|
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
163
165
|
};
|
164
|
-
if (opts.fallback
|
166
|
+
if (opts.fallback) {
|
165
167
|
lroOptions.protoJson = protoFilesRoot;
|
166
168
|
lroOptions.httpRules = [
|
167
169
|
{
|
@@ -177,6 +179,15 @@ class DocumentServiceClient {
|
|
177
179
|
{
|
178
180
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
179
181
|
},
|
182
|
+
{
|
183
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
184
|
+
},
|
185
|
+
{
|
186
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
187
|
+
},
|
188
|
+
{
|
189
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
190
|
+
},
|
180
191
|
{
|
181
192
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
|
182
193
|
},
|
@@ -203,9 +214,18 @@ class DocumentServiceClient {
|
|
203
214
|
{
|
204
215
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
205
216
|
},
|
217
|
+
{
|
218
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
219
|
+
},
|
220
|
+
{
|
221
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
222
|
+
},
|
206
223
|
{
|
207
224
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
208
225
|
},
|
226
|
+
{
|
227
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
228
|
+
},
|
209
229
|
{
|
210
230
|
get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
|
211
231
|
},
|
@@ -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/v1beta/document_service.import_documents.js</caption>
|
455
474
|
* region_tag:discoveryengine_v1beta_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/v1beta/document_service.purge_documents.js</caption>
|
494
512
|
* region_tag:discoveryengine_v1beta_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
|
551
|
+
* If the caller does not have permission to list
|
552
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}s under this
|
534
553
|
* branch, regardless of whether or not this branch exists, a
|
535
554
|
* `PERMISSION_DENIED` error is returned.
|
536
555
|
* @param {number} request.pageSize
|
537
|
-
* Maximum number of {@link google.cloud.discoveryengine.v1beta.Document|Document}s
|
556
|
+
* Maximum number of {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}s
|
538
557
|
* to return. If unspecified, defaults to 100. The maximum allowed value is
|
539
558
|
* 1000. 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.v1beta.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
|
563
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
|
545
564
|
* received from a previous
|
546
|
-
* {@link google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments|DocumentService.ListDocuments}
|
565
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.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.v1beta.DocumentService.ListDocuments|DocumentService.ListDocuments}
|
569
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.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.v1beta.Document
|
575
|
+
* An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1beta.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
|
610
|
+
* If the caller does not have permission to list
|
611
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}s under this
|
593
612
|
* branch, regardless of whether or not this branch exists, a
|
594
613
|
* `PERMISSION_DENIED` error is returned.
|
595
614
|
* @param {number} request.pageSize
|
596
|
-
* Maximum number of {@link google.cloud.discoveryengine.v1beta.Document|Document}s
|
615
|
+
* Maximum number of {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}s
|
597
616
|
* to return. If unspecified, defaults to 100. The maximum allowed value is
|
598
617
|
* 1000. 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.v1beta.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
|
622
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token|ListDocumentsResponse.next_page_token},
|
604
623
|
* received from a previous
|
605
|
-
* {@link google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments|DocumentService.ListDocuments}
|
624
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.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.v1beta.DocumentService.ListDocuments|DocumentService.ListDocuments}
|
628
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.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
|
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.v1beta.Document
|
636
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.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/v1beta/document_service.list_documents.js</caption>
|
623
641
|
* region_tag:discoveryengine_v1beta_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 { RecommendationServiceClient } from './recommendation_service_client';
|
4
5
|
export { SchemaServiceClient } from './schema_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.RecommendationServiceClient = exports.DocumentServiceClient = exports.CompletionServiceClient = void 0;
|
20
|
+
exports.UserEventServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = 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 recommendation_service_client_1 = require("./recommendation_service_client");
|