@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 ConversationalSearchServiceClient {
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 ConversationalSearchServiceClient {
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 ConversationalSearchServiceClient {
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 ConversationalSearchServiceClient {
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 ConversationalSearchServiceClient {
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'),
@@ -235,7 +243,7 @@ class ConversationalSearchServiceClient {
235
243
  * @returns {string} The DNS address for this service.
236
244
  */
237
245
  static get servicePath() {
238
- if (typeof process !== undefined &&
246
+ if (typeof process === 'object' &&
239
247
  typeof process.emitWarning === 'function') {
240
248
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
241
249
  }
@@ -247,7 +255,7 @@ class ConversationalSearchServiceClient {
247
255
  * @returns {string} The DNS address for this service.
248
256
  */
249
257
  static get apiEndpoint() {
250
- if (typeof process !== undefined &&
258
+ if (typeof process === 'object' &&
251
259
  typeof process.emitWarning === 'function') {
252
260
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
253
261
  }
@@ -588,6 +596,41 @@ class ConversationalSearchServiceClient {
588
596
  // --------------------
589
597
  // -- Path templates --
590
598
  // --------------------
599
+ /**
600
+ * Return a fully-qualified aclConfig resource name string.
601
+ *
602
+ * @param {string} project
603
+ * @param {string} location
604
+ * @returns {string} Resource name string.
605
+ */
606
+ aclConfigPath(project, location) {
607
+ return this.pathTemplates.aclConfigPathTemplate.render({
608
+ project: project,
609
+ location: location,
610
+ });
611
+ }
612
+ /**
613
+ * Parse the project from AclConfig resource.
614
+ *
615
+ * @param {string} aclConfigName
616
+ * A fully-qualified path representing AclConfig resource.
617
+ * @returns {string} A string representing the project.
618
+ */
619
+ matchProjectFromAclConfigName(aclConfigName) {
620
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
621
+ .project;
622
+ }
623
+ /**
624
+ * Parse the location from AclConfig resource.
625
+ *
626
+ * @param {string} aclConfigName
627
+ * A fully-qualified path representing AclConfig resource.
628
+ * @returns {string} A string representing the location.
629
+ */
630
+ matchLocationFromAclConfigName(aclConfigName) {
631
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
632
+ .location;
633
+ }
591
634
  /**
592
635
  * Return a fully-qualified engine resource name string.
593
636
  *
@@ -783,6 +826,99 @@ class ConversationalSearchServiceClient {
783
826
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
784
827
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
785
828
  }
829
+ /**
830
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
831
+ *
832
+ * @param {string} project
833
+ * @param {string} location
834
+ * @param {string} collection
835
+ * @param {string} data_store
836
+ * @param {string} branch
837
+ * @param {string} document
838
+ * @param {string} chunk
839
+ * @returns {string} Resource name string.
840
+ */
841
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
842
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
843
+ project: project,
844
+ location: location,
845
+ collection: collection,
846
+ data_store: dataStore,
847
+ branch: branch,
848
+ document: document,
849
+ chunk: chunk,
850
+ });
851
+ }
852
+ /**
853
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
854
+ *
855
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
856
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
857
+ * @returns {string} A string representing the project.
858
+ */
859
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
860
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
861
+ }
862
+ /**
863
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
864
+ *
865
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
866
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
867
+ * @returns {string} A string representing the location.
868
+ */
869
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
870
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
871
+ }
872
+ /**
873
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
874
+ *
875
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
876
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
877
+ * @returns {string} A string representing the collection.
878
+ */
879
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
880
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
881
+ }
882
+ /**
883
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
884
+ *
885
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
886
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
887
+ * @returns {string} A string representing the data_store.
888
+ */
889
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
890
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
891
+ }
892
+ /**
893
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
894
+ *
895
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
896
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
897
+ * @returns {string} A string representing the branch.
898
+ */
899
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
900
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
901
+ }
902
+ /**
903
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
904
+ *
905
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
906
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
907
+ * @returns {string} A string representing the document.
908
+ */
909
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
910
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
911
+ }
912
+ /**
913
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
914
+ *
915
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
916
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
917
+ * @returns {string} A string representing the chunk.
918
+ */
919
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
920
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
921
+ }
786
922
  /**
787
923
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
788
924
  *
@@ -852,6 +988,63 @@ class ConversationalSearchServiceClient {
852
988
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
853
989
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
854
990
  }
991
+ /**
992
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
993
+ *
994
+ * @param {string} project
995
+ * @param {string} location
996
+ * @param {string} collection
997
+ * @param {string} data_store
998
+ * @returns {string} Resource name string.
999
+ */
1000
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1001
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1002
+ project: project,
1003
+ location: location,
1004
+ collection: collection,
1005
+ data_store: dataStore,
1006
+ });
1007
+ }
1008
+ /**
1009
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1010
+ *
1011
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1012
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1013
+ * @returns {string} A string representing the project.
1014
+ */
1015
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1016
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1017
+ }
1018
+ /**
1019
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1020
+ *
1021
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1022
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1023
+ * @returns {string} A string representing the location.
1024
+ */
1025
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1026
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1027
+ }
1028
+ /**
1029
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1030
+ *
1031
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1032
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1033
+ * @returns {string} A string representing the collection.
1034
+ */
1035
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1036
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1037
+ }
1038
+ /**
1039
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1040
+ *
1041
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1042
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1043
+ * @returns {string} A string representing the data_store.
1044
+ */
1045
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1046
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1047
+ }
855
1048
  /**
856
1049
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
857
1050
  *
@@ -1368,6 +1561,87 @@ class ConversationalSearchServiceClient {
1368
1561
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1369
1562
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1370
1563
  }
1564
+ /**
1565
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1566
+ *
1567
+ * @param {string} project
1568
+ * @param {string} location
1569
+ * @param {string} data_store
1570
+ * @param {string} branch
1571
+ * @param {string} document
1572
+ * @param {string} chunk
1573
+ * @returns {string} Resource name string.
1574
+ */
1575
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1576
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1577
+ project: project,
1578
+ location: location,
1579
+ data_store: dataStore,
1580
+ branch: branch,
1581
+ document: document,
1582
+ chunk: chunk,
1583
+ });
1584
+ }
1585
+ /**
1586
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1587
+ *
1588
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1589
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1590
+ * @returns {string} A string representing the project.
1591
+ */
1592
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1593
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1594
+ }
1595
+ /**
1596
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1597
+ *
1598
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1599
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1600
+ * @returns {string} A string representing the location.
1601
+ */
1602
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1603
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1604
+ }
1605
+ /**
1606
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1607
+ *
1608
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1609
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1610
+ * @returns {string} A string representing the data_store.
1611
+ */
1612
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1613
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1614
+ }
1615
+ /**
1616
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1617
+ *
1618
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1619
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1620
+ * @returns {string} A string representing the branch.
1621
+ */
1622
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1623
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1624
+ }
1625
+ /**
1626
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1627
+ *
1628
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1629
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1630
+ * @returns {string} A string representing the document.
1631
+ */
1632
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1633
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
1634
+ }
1635
+ /**
1636
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1637
+ *
1638
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1639
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1640
+ * @returns {string} A string representing the chunk.
1641
+ */
1642
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1643
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
1644
+ }
1371
1645
  /**
1372
1646
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1373
1647
  *
@@ -1425,6 +1699,51 @@ class ConversationalSearchServiceClient {
1425
1699
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1426
1700
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1427
1701
  }
1702
+ /**
1703
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1704
+ *
1705
+ * @param {string} project
1706
+ * @param {string} location
1707
+ * @param {string} data_store
1708
+ * @returns {string} Resource name string.
1709
+ */
1710
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1711
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1712
+ project: project,
1713
+ location: location,
1714
+ data_store: dataStore,
1715
+ });
1716
+ }
1717
+ /**
1718
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1719
+ *
1720
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1721
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1722
+ * @returns {string} A string representing the project.
1723
+ */
1724
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1725
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1726
+ }
1727
+ /**
1728
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1729
+ *
1730
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1731
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1732
+ * @returns {string} A string representing the location.
1733
+ */
1734
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1735
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1736
+ }
1737
+ /**
1738
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1739
+ *
1740
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1741
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1742
+ * @returns {string} A string representing the data_store.
1743
+ */
1744
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1745
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1746
+ }
1428
1747
  /**
1429
1748
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1430
1749
  *