@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("./schema_service_client_config.json");
28
28
  const version = require('../../../package.json').version;
29
29
  /**
30
- * Service for managing {@link google.cloud.discoveryengine.v1beta.Schema|Schema}s.
30
+ * Service for managing {@link protos.google.cloud.discoveryengine.v1beta.Schema|Schema}s.
31
31
  * @class
32
32
  * @memberof v1beta
33
33
  */
@@ -60,8 +60,7 @@ class SchemaServiceClient {
60
60
  * API remote host.
61
61
  * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
62
  * Follows the structure of {@link gapicConfig}.
63
- * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
64
- * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
63
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
65
64
  * For more information, please check the
66
65
  * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
67
66
  * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
@@ -69,7 +68,7 @@ class SchemaServiceClient {
69
68
  * HTTP implementation. Load only fallback version and pass it to the constructor:
70
69
  * ```
71
70
  * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
72
- * const client = new SchemaServiceClient({fallback: 'rest'}, gax);
71
+ * const client = new SchemaServiceClient({fallback: true}, gax);
73
72
  * ```
74
73
  */
75
74
  constructor(opts, gaxInstance) {
@@ -115,6 +114,7 @@ class SchemaServiceClient {
115
114
  if (servicePath === staticMembers.servicePath) {
116
115
  this.auth.defaultScopes = staticMembers.scopes;
117
116
  }
117
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
118
118
  // Determine the client header string.
119
119
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
120
120
  if (typeof process !== 'undefined' && 'versions' in process) {
@@ -126,7 +126,7 @@ class SchemaServiceClient {
126
126
  if (!opts.fallback) {
127
127
  clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
128
128
  }
129
- else if (opts.fallback === 'rest') {
129
+ else {
130
130
  clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
131
131
  }
132
132
  if (opts.libName && opts.libVersion) {
@@ -140,9 +140,11 @@ class SchemaServiceClient {
140
140
  this.pathTemplates = {
141
141
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
142
142
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
143
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
143
144
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
144
145
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
145
146
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
147
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
146
148
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
147
149
  };
148
150
  // Some of the methods on this service return "paged" results,
@@ -159,7 +161,7 @@ class SchemaServiceClient {
159
161
  auth: this.auth,
160
162
  grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
161
163
  };
162
- if (opts.fallback === 'rest') {
164
+ if (opts.fallback) {
163
165
  lroOptions.protoJson = protoFilesRoot;
164
166
  lroOptions.httpRules = [
165
167
  {
@@ -175,6 +177,15 @@ class SchemaServiceClient {
175
177
  {
176
178
  get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
177
179
  },
180
+ {
181
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
182
+ },
183
+ {
184
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
185
+ },
186
+ {
187
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
188
+ },
178
189
  {
179
190
  get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
180
191
  },
@@ -201,9 +212,18 @@ class SchemaServiceClient {
201
212
  {
202
213
  get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
203
214
  },
215
+ {
216
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
217
+ },
218
+ {
219
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
220
+ },
204
221
  {
205
222
  get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
206
223
  },
224
+ {
225
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations',
226
+ },
207
227
  {
208
228
  get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
209
229
  },
@@ -384,8 +404,7 @@ class SchemaServiceClient {
384
404
  * The operation name that will be passed.
385
405
  * @returns {Promise} - The promise which resolves to an object.
386
406
  * The decoded operation object has result and metadata field to get information from.
387
- * Please see the
388
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
407
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
389
408
  * for more details and examples.
390
409
  * @example <caption>include:samples/generated/v1beta/schema_service.create_schema.js</caption>
391
410
  * region_tag:discoveryengine_v1beta_generated_SchemaService_CreateSchema_async
@@ -423,8 +442,7 @@ class SchemaServiceClient {
423
442
  * The operation name that will be passed.
424
443
  * @returns {Promise} - The promise which resolves to an object.
425
444
  * The decoded operation object has result and metadata field to get information from.
426
- * Please see the
427
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
445
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
428
446
  * for more details and examples.
429
447
  * @example <caption>include:samples/generated/v1beta/schema_service.update_schema.js</caption>
430
448
  * region_tag:discoveryengine_v1beta_generated_SchemaService_UpdateSchema_async
@@ -462,8 +480,7 @@ class SchemaServiceClient {
462
480
  * The operation name that will be passed.
463
481
  * @returns {Promise} - The promise which resolves to an object.
464
482
  * The decoded operation object has result and metadata field to get information from.
465
- * Please see the
466
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
483
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
467
484
  * for more details and examples.
468
485
  * @example <caption>include:samples/generated/v1beta/schema_service.delete_schema.js</caption>
469
486
  * region_tag:discoveryengine_v1beta_generated_SchemaService_DeleteSchema_async
@@ -503,31 +520,30 @@ class SchemaServiceClient {
503
520
  * Required. The parent data store resource name, in the format of
504
521
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
505
522
  * @param {number} request.pageSize
506
- * The maximum number of {@link google.cloud.discoveryengine.v1beta.Schema|Schema}s
523
+ * The maximum number of {@link protos.google.cloud.discoveryengine.v1beta.Schema|Schema}s
507
524
  * to return. The service may return fewer than this value.
508
525
  *
509
526
  * If unspecified, at most 100
510
- * {@link google.cloud.discoveryengine.v1beta.Schema|Schema}s will be returned.
527
+ * {@link protos.google.cloud.discoveryengine.v1beta.Schema|Schema}s will be returned.
511
528
  *
512
529
  * The maximum value is 1000; values above 1000 will be coerced to 1000.
513
530
  * @param {string} request.pageToken
514
531
  * A page token, received from a previous
515
- * {@link google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
532
+ * {@link protos.google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
516
533
  * call. Provide this to retrieve the subsequent page.
517
534
  *
518
535
  * When paginating, all other parameters provided to
519
- * {@link google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
536
+ * {@link protos.google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
520
537
  * must match the call that provided the page token.
521
538
  * @param {object} [options]
522
539
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
523
540
  * @returns {Stream}
524
- * An object stream which emits an object representing {@link google.cloud.discoveryengine.v1beta.Schema | Schema} on 'data' event.
541
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1beta.Schema|Schema} on 'data' event.
525
542
  * The client library will perform auto-pagination by default: it will call the API as many
526
543
  * times as needed. Note that it can affect your quota.
527
544
  * We recommend using `listSchemasAsync()`
528
545
  * method described below for async iteration which you can stop as needed.
529
- * Please see the
530
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
546
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
531
547
  * for more details and examples.
532
548
  */
533
549
  listSchemasStream(request, options) {
@@ -555,30 +571,29 @@ class SchemaServiceClient {
555
571
  * Required. The parent data store resource name, in the format of
556
572
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
557
573
  * @param {number} request.pageSize
558
- * The maximum number of {@link google.cloud.discoveryengine.v1beta.Schema|Schema}s
574
+ * The maximum number of {@link protos.google.cloud.discoveryengine.v1beta.Schema|Schema}s
559
575
  * to return. The service may return fewer than this value.
560
576
  *
561
577
  * If unspecified, at most 100
562
- * {@link google.cloud.discoveryengine.v1beta.Schema|Schema}s will be returned.
578
+ * {@link protos.google.cloud.discoveryengine.v1beta.Schema|Schema}s will be returned.
563
579
  *
564
580
  * The maximum value is 1000; values above 1000 will be coerced to 1000.
565
581
  * @param {string} request.pageToken
566
582
  * A page token, received from a previous
567
- * {@link google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
583
+ * {@link protos.google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
568
584
  * call. Provide this to retrieve the subsequent page.
569
585
  *
570
586
  * When paginating, all other parameters provided to
571
- * {@link google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
587
+ * {@link protos.google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas|SchemaService.ListSchemas}
572
588
  * must match the call that provided the page token.
573
589
  * @param {object} [options]
574
590
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
575
591
  * @returns {Object}
576
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
592
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
577
593
  * When you iterate the returned iterable, each element will be an object representing
578
- * {@link google.cloud.discoveryengine.v1beta.Schema | Schema}. The API will be called under the hood as needed, once per the page,
594
+ * {@link protos.google.cloud.discoveryengine.v1beta.Schema|Schema}. The API will be called under the hood as needed, once per the page,
579
595
  * so you can stop the iteration when you don't need more results.
580
- * Please see the
581
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
596
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
582
597
  * for more details and examples.
583
598
  * @example <caption>include:samples/generated/v1beta/schema_service.list_schemas.js</caption>
584
599
  * region_tag:discoveryengine_v1beta_generated_SchemaService_ListSchemas_async
@@ -598,6 +613,61 @@ class SchemaServiceClient {
598
613
  this.initialize();
599
614
  return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
600
615
  }
616
+ /**
617
+ * Gets information about a location.
618
+ *
619
+ * @param {Object} request
620
+ * The request object that will be sent.
621
+ * @param {string} request.name
622
+ * Resource name for the location.
623
+ * @param {object} [options]
624
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
625
+ * @returns {Promise} - The promise which resolves to an array.
626
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
627
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
628
+ * for more details and examples.
629
+ * @example
630
+ * ```
631
+ * const [response] = await client.getLocation(request);
632
+ * ```
633
+ */
634
+ getLocation(request, options, callback) {
635
+ return this.locationsClient.getLocation(request, options, callback);
636
+ }
637
+ /**
638
+ * Lists information about the supported locations for this service. Returns an iterable object.
639
+ *
640
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
641
+ * @param {Object} request
642
+ * The request object that will be sent.
643
+ * @param {string} request.name
644
+ * The resource that owns the locations collection, if applicable.
645
+ * @param {string} request.filter
646
+ * The standard list filter.
647
+ * @param {number} request.pageSize
648
+ * The standard list page size.
649
+ * @param {string} request.pageToken
650
+ * The standard list page token.
651
+ * @param {object} [options]
652
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
653
+ * @returns {Object}
654
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
655
+ * When you iterate the returned iterable, each element will be an object representing
656
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
657
+ * so you can stop the iteration when you don't need more results.
658
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
659
+ * for more details and examples.
660
+ * @example
661
+ * ```
662
+ * const iterable = client.listLocationsAsync(request);
663
+ * for await (const response of iterable) {
664
+ * // process response
665
+ * }
666
+ * ```
667
+ */
668
+ listLocationsAsync(request, options) {
669
+ return this.locationsClient.listLocationsAsync(request, options);
670
+ }
601
671
  /**
602
672
  * Gets the latest state of a long-running operation. Clients can use this
603
673
  * method to poll the operation result at intervals as recommended by the API
@@ -867,6 +937,75 @@ class SchemaServiceClient {
867
937
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
868
938
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
869
939
  }
940
+ /**
941
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
942
+ *
943
+ * @param {string} project
944
+ * @param {string} location
945
+ * @param {string} collection
946
+ * @param {string} data_store
947
+ * @param {string} conversation
948
+ * @returns {string} Resource name string.
949
+ */
950
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
951
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
952
+ project: project,
953
+ location: location,
954
+ collection: collection,
955
+ data_store: dataStore,
956
+ conversation: conversation,
957
+ });
958
+ }
959
+ /**
960
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
961
+ *
962
+ * @param {string} projectLocationCollectionDataStoreConversationName
963
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
964
+ * @returns {string} A string representing the project.
965
+ */
966
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
967
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
968
+ }
969
+ /**
970
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
971
+ *
972
+ * @param {string} projectLocationCollectionDataStoreConversationName
973
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
974
+ * @returns {string} A string representing the location.
975
+ */
976
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
977
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
978
+ }
979
+ /**
980
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
981
+ *
982
+ * @param {string} projectLocationCollectionDataStoreConversationName
983
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
984
+ * @returns {string} A string representing the collection.
985
+ */
986
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
987
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
988
+ }
989
+ /**
990
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
991
+ *
992
+ * @param {string} projectLocationCollectionDataStoreConversationName
993
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
994
+ * @returns {string} A string representing the data_store.
995
+ */
996
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
997
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
998
+ }
999
+ /**
1000
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1001
+ *
1002
+ * @param {string} projectLocationCollectionDataStoreConversationName
1003
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1004
+ * @returns {string} A string representing the conversation.
1005
+ */
1006
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1007
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1008
+ }
870
1009
  /**
871
1010
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
872
1011
  *
@@ -1050,6 +1189,63 @@ class SchemaServiceClient {
1050
1189
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1051
1190
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1052
1191
  }
1192
+ /**
1193
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1194
+ *
1195
+ * @param {string} project
1196
+ * @param {string} location
1197
+ * @param {string} data_store
1198
+ * @param {string} conversation
1199
+ * @returns {string} Resource name string.
1200
+ */
1201
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1202
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1203
+ project: project,
1204
+ location: location,
1205
+ data_store: dataStore,
1206
+ conversation: conversation,
1207
+ });
1208
+ }
1209
+ /**
1210
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1211
+ *
1212
+ * @param {string} projectLocationDataStoreConversationName
1213
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1214
+ * @returns {string} A string representing the project.
1215
+ */
1216
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1217
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1218
+ }
1219
+ /**
1220
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1221
+ *
1222
+ * @param {string} projectLocationDataStoreConversationName
1223
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1224
+ * @returns {string} A string representing the location.
1225
+ */
1226
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1227
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1228
+ }
1229
+ /**
1230
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1231
+ *
1232
+ * @param {string} projectLocationDataStoreConversationName
1233
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1234
+ * @returns {string} A string representing the data_store.
1235
+ */
1236
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1237
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1238
+ }
1239
+ /**
1240
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1241
+ *
1242
+ * @param {string} projectLocationDataStoreConversationName
1243
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1244
+ * @returns {string} A string representing the conversation.
1245
+ */
1246
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1247
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1248
+ }
1053
1249
  /**
1054
1250
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1055
1251
  *
@@ -1118,6 +1314,7 @@ class SchemaServiceClient {
1118
1314
  return this.schemaServiceStub.then(stub => {
1119
1315
  this._terminated = true;
1120
1316
  stub.close();
1317
+ this.locationsClient.close();
1121
1318
  this.operationsClient.close();
1122
1319
  });
1123
1320
  }