@google-cloud/discoveryengine 1.4.0 → 1.5.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 (121) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +15 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +106 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +97 -4
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +102 -0
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +70 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +376 -21
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +115 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +221 -30
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +27 -20
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +148 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +5 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +22 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +9 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +3 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +19 -4
  37. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +4 -3
  39. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +6 -5
  40. package/build/protos/protos.d.ts +18160 -8292
  41. package/build/protos/protos.js +50325 -25400
  42. package/build/protos/protos.json +4864 -2447
  43. package/build/src/v1/completion_service_client.js +10 -7
  44. package/build/src/v1/conversational_search_service_client.js +10 -7
  45. package/build/src/v1/data_store_service_client.js +10 -7
  46. package/build/src/v1/document_service_client.js +10 -7
  47. package/build/src/v1/engine_service_client.js +10 -7
  48. package/build/src/v1/schema_service_client.js +10 -7
  49. package/build/src/v1/search_service_client.js +10 -7
  50. package/build/src/v1/site_search_engine_service_client.js +10 -7
  51. package/build/src/v1/user_event_service_client.js +10 -7
  52. package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
  53. package/build/src/v1alpha/acl_config_service_client.js +1768 -0
  54. package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
  55. package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
  56. package/build/src/v1alpha/chunk_service_client.js +1889 -0
  57. package/build/src/v1alpha/chunk_service_client_config.json +34 -0
  58. package/build/src/v1alpha/completion_service_client.d.ts +588 -3
  59. package/build/src/v1alpha/completion_service_client.js +844 -9
  60. package/build/src/v1alpha/completion_service_client_config.json +10 -0
  61. package/build/src/v1alpha/conversational_search_service_client.d.ts +233 -1
  62. package/build/src/v1alpha/conversational_search_service_client.js +326 -7
  63. package/build/src/v1alpha/data_store_service_client.d.ts +451 -3
  64. package/build/src/v1alpha/data_store_service_client.js +575 -9
  65. package/build/src/v1alpha/data_store_service_client_config.json +8 -0
  66. package/build/src/v1alpha/document_service_client.d.ts +462 -21
  67. package/build/src/v1alpha/document_service_client.js +549 -7
  68. package/build/src/v1alpha/document_service_client_config.json +5 -0
  69. package/build/src/v1alpha/engine_service_client.d.ts +375 -2
  70. package/build/src/v1alpha/engine_service_client.js +527 -7
  71. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
  72. package/build/src/v1alpha/estimate_billing_service_client.js +2034 -0
  73. package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
  74. package/build/src/v1alpha/index.d.ts +5 -0
  75. package/build/src/v1alpha/index.js +11 -1
  76. package/build/src/v1alpha/rank_service_client.d.ts +1254 -0
  77. package/build/src/v1alpha/rank_service_client.js +1796 -0
  78. package/build/src/v1alpha/rank_service_client_config.json +30 -0
  79. package/build/src/v1alpha/recommendation_service_client.d.ts +231 -1
  80. package/build/src/v1alpha/recommendation_service_client.js +326 -7
  81. package/build/src/v1alpha/schema_service_client.d.ts +372 -0
  82. package/build/src/v1alpha/schema_service_client.js +527 -7
  83. package/build/src/v1alpha/search_service_client.d.ts +288 -30
  84. package/build/src/v1alpha/search_service_client.js +366 -27
  85. package/build/src/v1alpha/search_tuning_service_client.d.ts +373 -1
  86. package/build/src/v1alpha/search_tuning_service_client.js +527 -7
  87. package/build/src/v1alpha/serving_config_service_client.d.ts +1370 -0
  88. package/build/src/v1alpha/serving_config_service_client.js +1939 -0
  89. package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
  90. package/build/src/v1alpha/site_search_engine_service_client.d.ts +372 -0
  91. package/build/src/v1alpha/site_search_engine_service_client.js +527 -7
  92. package/build/src/v1alpha/user_event_service_client.d.ts +372 -0
  93. package/build/src/v1alpha/user_event_service_client.js +527 -7
  94. package/build/src/v1beta/completion_service_client.d.ts +75 -0
  95. package/build/src/v1beta/completion_service_client.js +114 -7
  96. package/build/src/v1beta/conversational_search_service_client.d.ts +79 -0
  97. package/build/src/v1beta/conversational_search_service_client.js +114 -7
  98. package/build/src/v1beta/data_store_service_client.d.ts +75 -0
  99. package/build/src/v1beta/data_store_service_client.js +114 -7
  100. package/build/src/v1beta/document_service_client.d.ts +75 -0
  101. package/build/src/v1beta/document_service_client.js +114 -7
  102. package/build/src/v1beta/engine_service_client.d.ts +75 -0
  103. package/build/src/v1beta/engine_service_client.js +114 -7
  104. package/build/src/v1beta/index.d.ts +1 -0
  105. package/build/src/v1beta/index.js +3 -1
  106. package/build/src/v1beta/recommendation_service_client.d.ts +75 -0
  107. package/build/src/v1beta/recommendation_service_client.js +114 -7
  108. package/build/src/v1beta/schema_service_client.d.ts +75 -0
  109. package/build/src/v1beta/schema_service_client.js +114 -7
  110. package/build/src/v1beta/search_service_client.d.ts +81 -0
  111. package/build/src/v1beta/search_service_client.js +118 -7
  112. package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
  113. package/build/src/v1beta/search_tuning_service_client.js +1784 -0
  114. package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
  115. package/build/src/v1beta/serving_config_service_client.d.ts +123 -8
  116. package/build/src/v1beta/serving_config_service_client.js +176 -12
  117. package/build/src/v1beta/site_search_engine_service_client.d.ts +75 -0
  118. package/build/src/v1beta/site_search_engine_service_client.js +114 -7
  119. package/build/src/v1beta/user_event_service_client.d.ts +75 -0
  120. package/build/src/v1beta/user_event_service_client.js +114 -7
  121. package/package.json +3 -3
@@ -72,7 +72,7 @@ class RecommendationServiceClient {
72
72
  * ```
73
73
  */
74
74
  constructor(opts, gaxInstance) {
75
- var _a, _b, _c, _d;
75
+ var _a, _b, _c, _d, _e;
76
76
  this._terminated = false;
77
77
  this.descriptors = {
78
78
  page: {},
@@ -88,14 +88,17 @@ class RecommendationServiceClient {
88
88
  (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
89
89
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
90
90
  }
91
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
92
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
93
+ : undefined;
91
94
  this._universeDomain =
92
- (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
95
+ (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
93
96
  this._servicePath = 'discoveryengine.' + this._universeDomain;
94
97
  const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
95
98
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
96
99
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
97
- const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
98
- const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
100
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
101
+ const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
99
102
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
100
103
  // Request numeric enum values if REST transport is used.
101
104
  opts.numericEnums = true;
@@ -126,7 +129,7 @@ class RecommendationServiceClient {
126
129
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
127
130
  // Determine the client header string.
128
131
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
129
- if (typeof process !== 'undefined' && 'versions' in process) {
132
+ if (typeof process === 'object' && 'versions' in process) {
130
133
  clientHeader.push(`gl-node/${process.versions.node}`);
131
134
  }
132
135
  else {
@@ -147,10 +150,13 @@ class RecommendationServiceClient {
147
150
  // identifiers to uniquely identify resources within the API.
148
151
  // Create useful helper objects for these.
149
152
  this.pathTemplates = {
153
+ aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
150
154
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
151
155
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
152
156
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
157
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
153
158
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
159
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
154
160
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
155
161
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
156
162
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
@@ -159,7 +165,9 @@ class RecommendationServiceClient {
159
165
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
160
166
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
161
167
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
168
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
162
169
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
170
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
163
171
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
164
172
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
165
173
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
@@ -222,7 +230,7 @@ class RecommendationServiceClient {
222
230
  * @returns {string} The DNS address for this service.
223
231
  */
224
232
  static get servicePath() {
225
- if (typeof process !== undefined &&
233
+ if (typeof process === 'object' &&
226
234
  typeof process.emitWarning === 'function') {
227
235
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
228
236
  }
@@ -234,7 +242,7 @@ class RecommendationServiceClient {
234
242
  * @returns {string} The DNS address for this service.
235
243
  */
236
244
  static get apiEndpoint() {
237
- if (typeof process !== undefined &&
245
+ if (typeof process === 'object' &&
238
246
  typeof process.emitWarning === 'function') {
239
247
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
240
248
  }
@@ -355,6 +363,41 @@ class RecommendationServiceClient {
355
363
  // --------------------
356
364
  // -- Path templates --
357
365
  // --------------------
366
+ /**
367
+ * Return a fully-qualified aclConfig resource name string.
368
+ *
369
+ * @param {string} project
370
+ * @param {string} location
371
+ * @returns {string} Resource name string.
372
+ */
373
+ aclConfigPath(project, location) {
374
+ return this.pathTemplates.aclConfigPathTemplate.render({
375
+ project: project,
376
+ location: location,
377
+ });
378
+ }
379
+ /**
380
+ * Parse the project from AclConfig resource.
381
+ *
382
+ * @param {string} aclConfigName
383
+ * A fully-qualified path representing AclConfig resource.
384
+ * @returns {string} A string representing the project.
385
+ */
386
+ matchProjectFromAclConfigName(aclConfigName) {
387
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
388
+ .project;
389
+ }
390
+ /**
391
+ * Parse the location from AclConfig resource.
392
+ *
393
+ * @param {string} aclConfigName
394
+ * A fully-qualified path representing AclConfig resource.
395
+ * @returns {string} A string representing the location.
396
+ */
397
+ matchLocationFromAclConfigName(aclConfigName) {
398
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
399
+ .location;
400
+ }
358
401
  /**
359
402
  * Return a fully-qualified engine resource name string.
360
403
  *
@@ -550,6 +593,99 @@ class RecommendationServiceClient {
550
593
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
551
594
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
552
595
  }
596
+ /**
597
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
598
+ *
599
+ * @param {string} project
600
+ * @param {string} location
601
+ * @param {string} collection
602
+ * @param {string} data_store
603
+ * @param {string} branch
604
+ * @param {string} document
605
+ * @param {string} chunk
606
+ * @returns {string} Resource name string.
607
+ */
608
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
609
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
610
+ project: project,
611
+ location: location,
612
+ collection: collection,
613
+ data_store: dataStore,
614
+ branch: branch,
615
+ document: document,
616
+ chunk: chunk,
617
+ });
618
+ }
619
+ /**
620
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
621
+ *
622
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
623
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
624
+ * @returns {string} A string representing the project.
625
+ */
626
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
627
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
628
+ }
629
+ /**
630
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
631
+ *
632
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
633
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
634
+ * @returns {string} A string representing the location.
635
+ */
636
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
637
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
638
+ }
639
+ /**
640
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
641
+ *
642
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
643
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
644
+ * @returns {string} A string representing the collection.
645
+ */
646
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
647
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
648
+ }
649
+ /**
650
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
651
+ *
652
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
653
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
654
+ * @returns {string} A string representing the data_store.
655
+ */
656
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
657
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
658
+ }
659
+ /**
660
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
661
+ *
662
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
663
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
664
+ * @returns {string} A string representing the branch.
665
+ */
666
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
667
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
668
+ }
669
+ /**
670
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
671
+ *
672
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
673
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
674
+ * @returns {string} A string representing the document.
675
+ */
676
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
677
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
678
+ }
679
+ /**
680
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
681
+ *
682
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
683
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
684
+ * @returns {string} A string representing the chunk.
685
+ */
686
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
687
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
688
+ }
553
689
  /**
554
690
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
555
691
  *
@@ -619,6 +755,63 @@ class RecommendationServiceClient {
619
755
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
620
756
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
621
757
  }
758
+ /**
759
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
760
+ *
761
+ * @param {string} project
762
+ * @param {string} location
763
+ * @param {string} collection
764
+ * @param {string} data_store
765
+ * @returns {string} Resource name string.
766
+ */
767
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
768
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
769
+ project: project,
770
+ location: location,
771
+ collection: collection,
772
+ data_store: dataStore,
773
+ });
774
+ }
775
+ /**
776
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
777
+ *
778
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
779
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
780
+ * @returns {string} A string representing the project.
781
+ */
782
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
783
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
784
+ }
785
+ /**
786
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
787
+ *
788
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
789
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
790
+ * @returns {string} A string representing the location.
791
+ */
792
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
793
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
794
+ }
795
+ /**
796
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
797
+ *
798
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
799
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
800
+ * @returns {string} A string representing the collection.
801
+ */
802
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
803
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
804
+ }
805
+ /**
806
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
807
+ *
808
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
809
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
810
+ * @returns {string} A string representing the data_store.
811
+ */
812
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
813
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
814
+ }
622
815
  /**
623
816
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
624
817
  *
@@ -1135,6 +1328,87 @@ class RecommendationServiceClient {
1135
1328
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1136
1329
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1137
1330
  }
1331
+ /**
1332
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1333
+ *
1334
+ * @param {string} project
1335
+ * @param {string} location
1336
+ * @param {string} data_store
1337
+ * @param {string} branch
1338
+ * @param {string} document
1339
+ * @param {string} chunk
1340
+ * @returns {string} Resource name string.
1341
+ */
1342
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1343
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1344
+ project: project,
1345
+ location: location,
1346
+ data_store: dataStore,
1347
+ branch: branch,
1348
+ document: document,
1349
+ chunk: chunk,
1350
+ });
1351
+ }
1352
+ /**
1353
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1354
+ *
1355
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1356
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1357
+ * @returns {string} A string representing the project.
1358
+ */
1359
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1360
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1361
+ }
1362
+ /**
1363
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1364
+ *
1365
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1366
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1367
+ * @returns {string} A string representing the location.
1368
+ */
1369
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1370
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1371
+ }
1372
+ /**
1373
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1374
+ *
1375
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1376
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1377
+ * @returns {string} A string representing the data_store.
1378
+ */
1379
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1380
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1381
+ }
1382
+ /**
1383
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1384
+ *
1385
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1386
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1387
+ * @returns {string} A string representing the branch.
1388
+ */
1389
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1390
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1391
+ }
1392
+ /**
1393
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1394
+ *
1395
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1396
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1397
+ * @returns {string} A string representing the document.
1398
+ */
1399
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1400
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
1401
+ }
1402
+ /**
1403
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1404
+ *
1405
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1406
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1407
+ * @returns {string} A string representing the chunk.
1408
+ */
1409
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1410
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
1411
+ }
1138
1412
  /**
1139
1413
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1140
1414
  *
@@ -1192,6 +1466,51 @@ class RecommendationServiceClient {
1192
1466
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1193
1467
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1194
1468
  }
1469
+ /**
1470
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1471
+ *
1472
+ * @param {string} project
1473
+ * @param {string} location
1474
+ * @param {string} data_store
1475
+ * @returns {string} Resource name string.
1476
+ */
1477
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1478
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1479
+ project: project,
1480
+ location: location,
1481
+ data_store: dataStore,
1482
+ });
1483
+ }
1484
+ /**
1485
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1486
+ *
1487
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1488
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1489
+ * @returns {string} A string representing the project.
1490
+ */
1491
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1492
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1493
+ }
1494
+ /**
1495
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1496
+ *
1497
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1498
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1499
+ * @returns {string} A string representing the location.
1500
+ */
1501
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1502
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1503
+ }
1504
+ /**
1505
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1506
+ *
1507
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1508
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1509
+ * @returns {string} A string representing the data_store.
1510
+ */
1511
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1512
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1513
+ }
1195
1514
  /**
1196
1515
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1197
1516
  *