@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 SiteSearchEngineServiceClient {
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 SiteSearchEngineServiceClient {
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 SiteSearchEngineServiceClient {
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 {
@@ -151,6 +154,7 @@ class SiteSearchEngineServiceClient {
151
154
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
152
155
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
153
156
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
157
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
154
158
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
155
159
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
156
160
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
@@ -160,6 +164,7 @@ class SiteSearchEngineServiceClient {
160
164
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
161
165
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
162
166
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
167
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
163
168
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
164
169
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
165
170
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
@@ -368,7 +373,7 @@ class SiteSearchEngineServiceClient {
368
373
  * @returns {string} The DNS address for this service.
369
374
  */
370
375
  static get servicePath() {
371
- if (typeof process !== undefined &&
376
+ if (typeof process === 'object' &&
372
377
  typeof process.emitWarning === 'function') {
373
378
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
374
379
  }
@@ -380,7 +385,7 @@ class SiteSearchEngineServiceClient {
380
385
  * @returns {string} The DNS address for this service.
381
386
  */
382
387
  static get apiEndpoint() {
383
- if (typeof process !== undefined &&
388
+ if (typeof process === 'object' &&
384
389
  typeof process.emitWarning === 'function') {
385
390
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
386
391
  }
@@ -1460,6 +1465,63 @@ class SiteSearchEngineServiceClient {
1460
1465
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1461
1466
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1462
1467
  }
1468
+ /**
1469
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1470
+ *
1471
+ * @param {string} project
1472
+ * @param {string} location
1473
+ * @param {string} collection
1474
+ * @param {string} data_store
1475
+ * @returns {string} Resource name string.
1476
+ */
1477
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1478
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1479
+ project: project,
1480
+ location: location,
1481
+ collection: collection,
1482
+ data_store: dataStore,
1483
+ });
1484
+ }
1485
+ /**
1486
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1487
+ *
1488
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1489
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1490
+ * @returns {string} A string representing the project.
1491
+ */
1492
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1493
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1494
+ }
1495
+ /**
1496
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1497
+ *
1498
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1499
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1500
+ * @returns {string} A string representing the location.
1501
+ */
1502
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1503
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1504
+ }
1505
+ /**
1506
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1507
+ *
1508
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1509
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1510
+ * @returns {string} A string representing the collection.
1511
+ */
1512
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1513
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1514
+ }
1515
+ /**
1516
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1517
+ *
1518
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1519
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1520
+ * @returns {string} A string representing the data_store.
1521
+ */
1522
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1523
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1524
+ }
1463
1525
  /**
1464
1526
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1465
1527
  *
@@ -2033,6 +2095,51 @@ class SiteSearchEngineServiceClient {
2033
2095
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2034
2096
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
2035
2097
  }
2098
+ /**
2099
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2100
+ *
2101
+ * @param {string} project
2102
+ * @param {string} location
2103
+ * @param {string} data_store
2104
+ * @returns {string} Resource name string.
2105
+ */
2106
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
2107
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
2108
+ project: project,
2109
+ location: location,
2110
+ data_store: dataStore,
2111
+ });
2112
+ }
2113
+ /**
2114
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
2115
+ *
2116
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2117
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2118
+ * @returns {string} A string representing the project.
2119
+ */
2120
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2121
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
2122
+ }
2123
+ /**
2124
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
2125
+ *
2126
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2127
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2128
+ * @returns {string} A string representing the location.
2129
+ */
2130
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2131
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
2132
+ }
2133
+ /**
2134
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
2135
+ *
2136
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2137
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2138
+ * @returns {string} A string representing the data_store.
2139
+ */
2140
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2141
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
2142
+ }
2036
2143
  /**
2037
2144
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
2038
2145
  *
@@ -600,6 +600,48 @@ export declare class UserEventServiceClient {
600
600
  * @returns {string} A string representing the conversation.
601
601
  */
602
602
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName: string): string | number;
603
+ /**
604
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
605
+ *
606
+ * @param {string} project
607
+ * @param {string} location
608
+ * @param {string} collection
609
+ * @param {string} data_store
610
+ * @returns {string} Resource name string.
611
+ */
612
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project: string, location: string, collection: string, dataStore: string): string;
613
+ /**
614
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
615
+ *
616
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
617
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
618
+ * @returns {string} A string representing the project.
619
+ */
620
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName: string): string | number;
621
+ /**
622
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
623
+ *
624
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
625
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
626
+ * @returns {string} A string representing the location.
627
+ */
628
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName: string): string | number;
629
+ /**
630
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
631
+ *
632
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
633
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
634
+ * @returns {string} A string representing the collection.
635
+ */
636
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName: string): string | number;
637
+ /**
638
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
639
+ *
640
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
641
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
642
+ * @returns {string} A string representing the data_store.
643
+ */
644
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName: string): string | number;
603
645
  /**
604
646
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
605
647
  *
@@ -1023,6 +1065,39 @@ export declare class UserEventServiceClient {
1023
1065
  * @returns {string} A string representing the conversation.
1024
1066
  */
1025
1067
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName: string): string | number;
1068
+ /**
1069
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1070
+ *
1071
+ * @param {string} project
1072
+ * @param {string} location
1073
+ * @param {string} data_store
1074
+ * @returns {string} Resource name string.
1075
+ */
1076
+ projectLocationDataStoreDocumentProcessingConfigPath(project: string, location: string, dataStore: string): string;
1077
+ /**
1078
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1079
+ *
1080
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1081
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1082
+ * @returns {string} A string representing the project.
1083
+ */
1084
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName: string): string | number;
1085
+ /**
1086
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1087
+ *
1088
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1089
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1090
+ * @returns {string} A string representing the location.
1091
+ */
1092
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName: string): string | number;
1093
+ /**
1094
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1095
+ *
1096
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1097
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1098
+ * @returns {string} A string representing the data_store.
1099
+ */
1100
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName: string): string | number;
1026
1101
  /**
1027
1102
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1028
1103
  *
@@ -72,7 +72,7 @@ class UserEventServiceClient {
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: {},
@@ -87,14 +87,17 @@ class UserEventServiceClient {
87
87
  (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
88
88
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
89
89
  }
90
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
91
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
92
+ : undefined;
90
93
  this._universeDomain =
91
- (_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';
94
+ (_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';
92
95
  this._servicePath = 'discoveryengine.' + this._universeDomain;
93
96
  const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
94
97
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
95
98
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
96
- const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
97
- 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');
99
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
100
+ 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');
98
101
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
99
102
  // Request numeric enum values if REST transport is used.
100
103
  opts.numericEnums = true;
@@ -125,7 +128,7 @@ class UserEventServiceClient {
125
128
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
126
129
  // Determine the client header string.
127
130
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
128
- if (typeof process !== 'undefined' && 'versions' in process) {
131
+ if (typeof process === 'object' && 'versions' in process) {
129
132
  clientHeader.push(`gl-node/${process.versions.node}`);
130
133
  }
131
134
  else {
@@ -150,6 +153,7 @@ class UserEventServiceClient {
150
153
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
151
154
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
152
155
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
156
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
153
157
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
154
158
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
155
159
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
@@ -159,6 +163,7 @@ class UserEventServiceClient {
159
163
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
160
164
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
161
165
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
166
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
162
167
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
163
168
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
164
169
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
@@ -328,7 +333,7 @@ class UserEventServiceClient {
328
333
  * @returns {string} The DNS address for this service.
329
334
  */
330
335
  static get servicePath() {
331
- if (typeof process !== undefined &&
336
+ if (typeof process === 'object' &&
332
337
  typeof process.emitWarning === 'function') {
333
338
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
334
339
  }
@@ -340,7 +345,7 @@ class UserEventServiceClient {
340
345
  * @returns {string} The DNS address for this service.
341
346
  */
342
347
  static get apiEndpoint() {
343
- if (typeof process !== undefined &&
348
+ if (typeof process === 'object' &&
344
349
  typeof process.emitWarning === 'function') {
345
350
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
346
351
  }
@@ -912,6 +917,63 @@ class UserEventServiceClient {
912
917
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
913
918
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
914
919
  }
920
+ /**
921
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
922
+ *
923
+ * @param {string} project
924
+ * @param {string} location
925
+ * @param {string} collection
926
+ * @param {string} data_store
927
+ * @returns {string} Resource name string.
928
+ */
929
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
930
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
931
+ project: project,
932
+ location: location,
933
+ collection: collection,
934
+ data_store: dataStore,
935
+ });
936
+ }
937
+ /**
938
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
939
+ *
940
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
941
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
942
+ * @returns {string} A string representing the project.
943
+ */
944
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
945
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
946
+ }
947
+ /**
948
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
949
+ *
950
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
951
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
952
+ * @returns {string} A string representing the location.
953
+ */
954
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
955
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
956
+ }
957
+ /**
958
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
959
+ *
960
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
961
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
962
+ * @returns {string} A string representing the collection.
963
+ */
964
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
965
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
966
+ }
967
+ /**
968
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
969
+ *
970
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
971
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
972
+ * @returns {string} A string representing the data_store.
973
+ */
974
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
975
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
976
+ }
915
977
  /**
916
978
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
917
979
  *
@@ -1485,6 +1547,51 @@ class UserEventServiceClient {
1485
1547
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1486
1548
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1487
1549
  }
1550
+ /**
1551
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1552
+ *
1553
+ * @param {string} project
1554
+ * @param {string} location
1555
+ * @param {string} data_store
1556
+ * @returns {string} Resource name string.
1557
+ */
1558
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1559
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1560
+ project: project,
1561
+ location: location,
1562
+ data_store: dataStore,
1563
+ });
1564
+ }
1565
+ /**
1566
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1567
+ *
1568
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1569
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1570
+ * @returns {string} A string representing the project.
1571
+ */
1572
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1573
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1574
+ }
1575
+ /**
1576
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1577
+ *
1578
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1579
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1580
+ * @returns {string} A string representing the location.
1581
+ */
1582
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1583
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1584
+ }
1585
+ /**
1586
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1587
+ *
1588
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1589
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1590
+ * @returns {string} A string representing the data_store.
1591
+ */
1592
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1593
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1594
+ }
1488
1595
  /**
1489
1596
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1490
1597
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/discoveryengine",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Discovery Engine API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,8 +52,8 @@
52
52
  "@types/mocha": "^9.0.0",
53
53
  "@types/node": "^20.4.5",
54
54
  "@types/sinon": "^17.0.0",
55
- "c8": "^8.0.1",
56
- "gapic-tools": "^0.3.0",
55
+ "c8": "^9.0.0",
56
+ "gapic-tools": "^0.4.0",
57
57
  "gts": "^5.0.0",
58
58
  "jsdoc": "^4.0.0",
59
59
  "jsdoc-fresh": "^3.0.0",