@google-cloud/discoveryengine 2.0.1 → 2.2.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 (167) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +7 -2
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
  4. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
  6. package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
  9. package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
  10. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
  12. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
  15. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
  16. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
  17. package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
  19. package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
  24. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
  26. package/build/protos/protos.d.ts +4390 -300
  27. package/build/protos/protos.js +13785 -2922
  28. package/build/protos/protos.json +1355 -14
  29. package/build/src/index.d.ts +4 -1
  30. package/build/src/index.js +4 -21
  31. package/build/src/v1/completion_service_client.d.ts +313 -76
  32. package/build/src/v1/completion_service_client.js +451 -262
  33. package/build/src/v1/completion_service_proto_list.json +3 -0
  34. package/build/src/v1/control_service_client.d.ts +318 -81
  35. package/build/src/v1/control_service_client.js +422 -132
  36. package/build/src/v1/control_service_proto_list.json +3 -0
  37. package/build/src/v1/conversational_search_service_client.d.ts +341 -134
  38. package/build/src/v1/conversational_search_service_client.js +395 -223
  39. package/build/src/v1/conversational_search_service_client_config.json +5 -0
  40. package/build/src/v1/conversational_search_service_proto_list.json +3 -0
  41. package/build/src/v1/data_store_service_client.d.ts +359 -122
  42. package/build/src/v1/data_store_service_client.js +460 -280
  43. package/build/src/v1/data_store_service_proto_list.json +3 -0
  44. package/build/src/v1/document_service_client.d.ts +364 -121
  45. package/build/src/v1/document_service_client.js +469 -300
  46. package/build/src/v1/document_service_proto_list.json +3 -0
  47. package/build/src/v1/engine_service_client.d.ts +340 -103
  48. package/build/src/v1/engine_service_client.js +460 -279
  49. package/build/src/v1/engine_service_proto_list.json +3 -0
  50. package/build/src/v1/gapic_metadata.json +59 -0
  51. package/build/src/v1/grounded_generation_service_client.d.ts +286 -51
  52. package/build/src/v1/grounded_generation_service_client.js +405 -100
  53. package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
  54. package/build/src/v1/index.d.ts +1 -0
  55. package/build/src/v1/index.js +3 -1
  56. package/build/src/v1/project_service_client.d.ts +313 -76
  57. package/build/src/v1/project_service_client.js +434 -222
  58. package/build/src/v1/project_service_proto_list.json +3 -0
  59. package/build/src/v1/rank_service_client.d.ts +285 -48
  60. package/build/src/v1/rank_service_client.js +398 -85
  61. package/build/src/v1/rank_service_proto_list.json +3 -0
  62. package/build/src/v1/recommendation_service_client.d.ts +142 -49
  63. package/build/src/v1/recommendation_service_client.js +198 -82
  64. package/build/src/v1/recommendation_service_proto_list.json +3 -0
  65. package/build/src/v1/schema_service_client.d.ts +348 -111
  66. package/build/src/v1/schema_service_client.js +457 -273
  67. package/build/src/v1/schema_service_proto_list.json +3 -0
  68. package/build/src/v1/search_service_client.d.ts +748 -559
  69. package/build/src/v1/search_service_client.js +302 -133
  70. package/build/src/v1/search_service_proto_list.json +3 -0
  71. package/build/src/v1/search_tuning_service_client.d.ts +314 -77
  72. package/build/src/v1/search_tuning_service_client.js +439 -235
  73. package/build/src/v1/search_tuning_service_proto_list.json +3 -0
  74. package/build/src/v1/serving_config_service_client.d.ts +1851 -0
  75. package/build/src/v1/serving_config_service_client.js +2642 -0
  76. package/build/src/v1/serving_config_service_client_config.json +30 -0
  77. package/build/src/v1/serving_config_service_proto_list.json +39 -0
  78. package/build/src/v1/site_search_engine_service_client.d.ts +504 -151
  79. package/build/src/v1/site_search_engine_service_client.js +625 -351
  80. package/build/src/v1/site_search_engine_service_client_config.json +12 -0
  81. package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
  82. package/build/src/v1/user_event_service_client.d.ts +335 -86
  83. package/build/src/v1/user_event_service_client.js +447 -253
  84. package/build/src/v1/user_event_service_proto_list.json +3 -0
  85. package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
  86. package/build/src/v1alpha/acl_config_service_client.js +82 -106
  87. package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
  88. package/build/src/v1alpha/chunk_service_client.js +92 -120
  89. package/build/src/v1alpha/completion_service_client.d.ts +77 -77
  90. package/build/src/v1alpha/completion_service_client.js +134 -280
  91. package/build/src/v1alpha/control_service_client.d.ts +85 -85
  92. package/build/src/v1alpha/control_service_client.js +105 -151
  93. package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
  94. package/build/src/v1alpha/conversational_search_service_client.js +145 -237
  95. package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
  96. package/build/src/v1alpha/data_store_service_client.js +151 -316
  97. package/build/src/v1alpha/document_service_client.d.ts +126 -126
  98. package/build/src/v1alpha/document_service_client.js +156 -328
  99. package/build/src/v1alpha/engine_service_client.d.ts +106 -106
  100. package/build/src/v1alpha/engine_service_client.js +155 -325
  101. package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
  102. package/build/src/v1alpha/estimate_billing_service_client.js +118 -243
  103. package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
  104. package/build/src/v1alpha/evaluation_service_client.js +143 -295
  105. package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
  106. package/build/src/v1alpha/grounded_generation_service_client.js +79 -100
  107. package/build/src/v1alpha/project_service_client.d.ts +78 -78
  108. package/build/src/v1alpha/project_service_client.js +126 -262
  109. package/build/src/v1alpha/rank_service_client.d.ts +47 -47
  110. package/build/src/v1alpha/rank_service_client.js +81 -104
  111. package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
  112. package/build/src/v1alpha/recommendation_service_client.js +79 -100
  113. package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
  114. package/build/src/v1alpha/sample_query_service_client.js +144 -301
  115. package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
  116. package/build/src/v1alpha/sample_query_set_service_client.js +106 -153
  117. package/build/src/v1alpha/schema_service_client.d.ts +112 -112
  118. package/build/src/v1alpha/schema_service_client.js +140 -292
  119. package/build/src/v1alpha/search_service_client.d.ts +327 -327
  120. package/build/src/v1alpha/search_service_client.js +88 -112
  121. package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
  122. package/build/src/v1alpha/search_tuning_service_client.js +122 -253
  123. package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
  124. package/build/src/v1alpha/serving_config_service_client.js +97 -133
  125. package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
  126. package/build/src/v1alpha/site_search_engine_service_client.js +184 -387
  127. package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
  128. package/build/src/v1alpha/user_event_service_client.js +130 -271
  129. package/build/src/v1beta/completion_service_client.d.ts +78 -78
  130. package/build/src/v1beta/completion_service_client.js +136 -279
  131. package/build/src/v1beta/control_service_client.d.ts +84 -84
  132. package/build/src/v1beta/control_service_client.js +103 -147
  133. package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
  134. package/build/src/v1beta/conversational_search_service_client.js +143 -233
  135. package/build/src/v1beta/data_store_service_client.d.ts +124 -124
  136. package/build/src/v1beta/data_store_service_client.js +141 -288
  137. package/build/src/v1beta/document_service_client.d.ts +124 -124
  138. package/build/src/v1beta/document_service_client.js +150 -309
  139. package/build/src/v1beta/engine_service_client.d.ts +106 -106
  140. package/build/src/v1beta/engine_service_client.js +153 -315
  141. package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
  142. package/build/src/v1beta/evaluation_service_client.js +141 -285
  143. package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
  144. package/build/src/v1beta/grounded_generation_service_client.js +86 -114
  145. package/build/src/v1beta/project_service_client.d.ts +76 -76
  146. package/build/src/v1beta/project_service_client.js +115 -231
  147. package/build/src/v1beta/rank_service_client.d.ts +47 -47
  148. package/build/src/v1beta/rank_service_client.js +79 -99
  149. package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
  150. package/build/src/v1beta/recommendation_service_client.js +77 -96
  151. package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
  152. package/build/src/v1beta/sample_query_service_client.js +142 -291
  153. package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
  154. package/build/src/v1beta/sample_query_set_service_client.js +104 -149
  155. package/build/src/v1beta/schema_service_client.d.ts +111 -111
  156. package/build/src/v1beta/schema_service_client.js +138 -282
  157. package/build/src/v1beta/search_service_client.d.ts +665 -665
  158. package/build/src/v1beta/search_service_client.js +97 -128
  159. package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
  160. package/build/src/v1beta/search_tuning_service_client.js +120 -243
  161. package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
  162. package/build/src/v1beta/serving_config_service_client.js +95 -129
  163. package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
  164. package/build/src/v1beta/site_search_engine_service_client.js +186 -386
  165. package/build/src/v1beta/user_event_service_client.d.ts +78 -78
  166. package/build/src/v1beta/user_event_service_client.js +128 -261
  167. package/package.json +4 -4
@@ -98,26 +98,17 @@ class UserEventServiceClient {
98
98
  constructor(opts, gaxInstance) {
99
99
  // Ensure that options include all the required fields.
100
100
  const staticMembers = this.constructor;
101
- if (opts?.universe_domain &&
102
- opts?.universeDomain &&
103
- opts?.universe_domain !== opts?.universeDomain) {
101
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
104
102
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
105
103
  }
106
- const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
107
- ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
108
- : undefined;
109
- this._universeDomain =
110
- opts?.universeDomain ??
111
- opts?.universe_domain ??
112
- universeDomainEnvVar ??
113
- 'googleapis.com';
104
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
105
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
114
106
  this._servicePath = 'discoveryengine.' + this._universeDomain;
115
107
  const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
116
108
  this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
117
109
  const port = opts?.port || staticMembers.port;
118
110
  const clientConfig = opts?.clientConfig ?? {};
119
- const fallback = opts?.fallback ??
120
- (typeof window !== 'undefined' && typeof window?.fetch === 'function');
111
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
121
112
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
122
113
  // Request numeric enum values if REST transport is used.
123
114
  opts.numericEnums = true;
@@ -147,7 +138,10 @@ class UserEventServiceClient {
147
138
  }
148
139
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
149
140
  // Determine the client header string.
150
- const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
141
+ const clientHeader = [
142
+ `gax/${this._gaxModule.version}`,
143
+ `gapic/${version}`,
144
+ ];
151
145
  if (typeof process === 'object' && 'versions' in process) {
152
146
  clientHeader.push(`gl-node/${process.versions.node}`);
153
147
  }
@@ -179,12 +173,15 @@ class UserEventServiceClient {
179
173
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
180
174
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
181
175
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
176
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
182
177
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
183
178
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
184
179
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
180
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
185
181
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
186
182
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
187
183
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
184
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
188
185
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
189
186
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
190
187
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -195,9 +192,11 @@ class UserEventServiceClient {
195
192
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
196
193
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
197
194
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
195
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
198
196
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
199
197
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
200
198
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
199
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
201
200
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
202
201
  };
203
202
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
@@ -206,128 +205,23 @@ class UserEventServiceClient {
206
205
  // rather than holding a request open.
207
206
  const lroOptions = {
208
207
  auth: this.auth,
209
- grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
208
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
210
209
  };
211
210
  if (opts.fallback) {
212
211
  lroOptions.protoJson = protoFilesRoot;
213
- lroOptions.httpRules = [
214
- {
215
- selector: 'google.longrunning.Operations.CancelOperation',
216
- post: '/v1/{name=projects/*/operations/*}:cancel',
217
- body: '*',
218
- additional_bindings: [
219
- {
220
- post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
221
- body: '*',
222
- },
223
- {
224
- post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
225
- body: '*',
226
- },
227
- ],
228
- },
229
- {
230
- selector: 'google.longrunning.Operations.GetOperation',
231
- get: '/v1/{name=projects/*/operations/*}',
232
- additional_bindings: [
233
- {
234
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
235
- },
236
- {
237
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
238
- },
239
- {
240
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
241
- },
242
- {
243
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
244
- },
245
- {
246
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
247
- },
248
- {
249
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
250
- },
251
- {
252
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
253
- },
254
- {
255
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
256
- },
257
- {
258
- get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
259
- },
260
- {
261
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
262
- },
263
- {
264
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
265
- },
266
- {
267
- get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
268
- },
269
- {
270
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
271
- },
272
- { get: '/v1/{name=projects/*/locations/*/operations/*}' },
273
- { get: '/v1/{name=projects/*/operations/*}' },
274
- ],
275
- },
276
- {
277
- selector: 'google.longrunning.Operations.ListOperations',
278
- get: '/v1/{name=projects/*}/operations',
279
- additional_bindings: [
280
- {
281
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
282
- },
283
- {
284
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
285
- },
286
- {
287
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
288
- },
289
- {
290
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
291
- },
292
- {
293
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
294
- },
295
- {
296
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
297
- },
298
- {
299
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
300
- },
301
- {
302
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
303
- },
304
- { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
305
- {
306
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
307
- },
308
- {
309
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
310
- },
311
- { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
312
- {
313
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
314
- },
315
- { get: '/v1/{name=projects/*/locations/*}/operations' },
316
- { get: '/v1/{name=projects/*}/operations' },
317
- ],
318
- },
319
- ];
212
+ lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
213
+ }, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/operations/*}', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/operations/*}', }, { get: '/v1/{name=projects/*/operations/*}', }],
214
+ }, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*}/operations', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*}/operations', }, { get: '/v1/{name=projects/*}/operations', }],
215
+ }];
320
216
  }
321
- this.operationsClient = this._gaxModule
322
- .lro(lroOptions)
323
- .operationsClient(opts);
217
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
324
218
  const purgeUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.PurgeUserEventsResponse');
325
219
  const purgeUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.PurgeUserEventsMetadata');
326
220
  const importUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportUserEventsResponse');
327
221
  const importUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportUserEventsMetadata');
328
222
  this.descriptors.longrunning = {
329
223
  purgeUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeUserEventsResponse.decode.bind(purgeUserEventsResponse), purgeUserEventsMetadata.decode.bind(purgeUserEventsMetadata)),
330
- importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata)),
224
+ importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata))
331
225
  };
332
226
  // Put together the default options sent with requests.
333
227
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.UserEventService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -356,19 +250,13 @@ class UserEventServiceClient {
356
250
  }
357
251
  // Put together the "service stub" for
358
252
  // google.cloud.discoveryengine.v1.UserEventService.
359
- this.userEventServiceStub = this._gaxGrpc.createStub(this._opts.fallback
360
- ? this._protos.lookupService('google.cloud.discoveryengine.v1.UserEventService')
361
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
362
- this._protos.google.cloud.discoveryengine.v1
363
- .UserEventService, this._opts, this._providedCustomServicePath);
253
+ this.userEventServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
254
+ this._protos.lookupService('google.cloud.discoveryengine.v1.UserEventService') :
255
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
256
+ this._protos.google.cloud.discoveryengine.v1.UserEventService, this._opts, this._providedCustomServicePath);
364
257
  // Iterate over each of the methods that the service provides
365
258
  // and create an API call method for each.
366
- const userEventServiceStubMethods = [
367
- 'writeUserEvent',
368
- 'collectUserEvent',
369
- 'purgeUserEvents',
370
- 'importUserEvents',
371
- ];
259
+ const userEventServiceStubMethods = ['writeUserEvent', 'collectUserEvent', 'purgeUserEvents', 'importUserEvents'];
372
260
  for (const methodName of userEventServiceStubMethods) {
373
261
  const callPromise = this.userEventServiceStub.then(stub => (...args) => {
374
262
  if (this._terminated) {
@@ -379,7 +267,8 @@ class UserEventServiceClient {
379
267
  }, (err) => () => {
380
268
  throw err;
381
269
  });
382
- const descriptor = this.descriptors.longrunning[methodName] || undefined;
270
+ const descriptor = this.descriptors.longrunning[methodName] ||
271
+ undefined;
383
272
  const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
384
273
  this.innerApiCalls[methodName] = apiCall;
385
274
  }
@@ -391,8 +280,7 @@ class UserEventServiceClient {
391
280
  * @returns {string} The DNS address for this service.
392
281
  */
393
282
  static get servicePath() {
394
- if (typeof process === 'object' &&
395
- typeof process.emitWarning === 'function') {
283
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
396
284
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
397
285
  }
398
286
  return 'discoveryengine.googleapis.com';
@@ -403,8 +291,7 @@ class UserEventServiceClient {
403
291
  * @returns {string} The DNS address for this service.
404
292
  */
405
293
  static get apiEndpoint() {
406
- if (typeof process === 'object' &&
407
- typeof process.emitWarning === 'function') {
294
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
408
295
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
409
296
  }
410
297
  return 'discoveryengine.googleapis.com';
@@ -432,7 +319,9 @@ class UserEventServiceClient {
432
319
  * @returns {string[]} List of default scopes.
433
320
  */
434
321
  static get scopes() {
435
- return ['https://www.googleapis.com/auth/cloud-platform'];
322
+ return [
323
+ 'https://www.googleapis.com/auth/cloud-platform'
324
+ ];
436
325
  }
437
326
  /**
438
327
  * Return the project ID used by this class.
@@ -458,13 +347,10 @@ class UserEventServiceClient {
458
347
  options = options || {};
459
348
  options.otherArgs = options.otherArgs || {};
460
349
  options.otherArgs.headers = options.otherArgs.headers || {};
461
- options.otherArgs.headers['x-goog-request-params'] =
462
- this._gaxModule.routingHeader.fromParams({
463
- parent: request.parent ?? '',
464
- });
465
- this.initialize().catch(err => {
466
- throw err;
350
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
351
+ 'parent': request.parent ?? '',
467
352
  });
353
+ this.initialize().catch(err => { throw err; });
468
354
  this._log.info('writeUserEvent request %j', request);
469
355
  const wrappedCallback = callback
470
356
  ? (error, response, options, rawResponse) => {
@@ -472,8 +358,7 @@ class UserEventServiceClient {
472
358
  callback(error, response, options, rawResponse); // We verified callback above.
473
359
  }
474
360
  : undefined;
475
- return this.innerApiCalls
476
- .writeUserEvent(request, options, wrappedCallback)
361
+ return this.innerApiCalls.writeUserEvent(request, options, wrappedCallback)
477
362
  ?.then(([response, options, rawResponse]) => {
478
363
  this._log.info('writeUserEvent response %j', response);
479
364
  return [response, options, rawResponse];
@@ -492,13 +377,10 @@ class UserEventServiceClient {
492
377
  options = options || {};
493
378
  options.otherArgs = options.otherArgs || {};
494
379
  options.otherArgs.headers = options.otherArgs.headers || {};
495
- options.otherArgs.headers['x-goog-request-params'] =
496
- this._gaxModule.routingHeader.fromParams({
497
- parent: request.parent ?? '',
498
- });
499
- this.initialize().catch(err => {
500
- throw err;
380
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
381
+ 'parent': request.parent ?? '',
501
382
  });
383
+ this.initialize().catch(err => { throw err; });
502
384
  this._log.info('collectUserEvent request %j', request);
503
385
  const wrappedCallback = callback
504
386
  ? (error, response, options, rawResponse) => {
@@ -506,8 +388,7 @@ class UserEventServiceClient {
506
388
  callback(error, response, options, rawResponse); // We verified callback above.
507
389
  }
508
390
  : undefined;
509
- return this.innerApiCalls
510
- .collectUserEvent(request, options, wrappedCallback)
391
+ return this.innerApiCalls.collectUserEvent(request, options, wrappedCallback)
511
392
  ?.then(([response, options, rawResponse]) => {
512
393
  this._log.info('collectUserEvent response %j', response);
513
394
  return [response, options, rawResponse];
@@ -526,13 +407,10 @@ class UserEventServiceClient {
526
407
  options = options || {};
527
408
  options.otherArgs = options.otherArgs || {};
528
409
  options.otherArgs.headers = options.otherArgs.headers || {};
529
- options.otherArgs.headers['x-goog-request-params'] =
530
- this._gaxModule.routingHeader.fromParams({
531
- parent: request.parent ?? '',
532
- });
533
- this.initialize().catch(err => {
534
- throw err;
410
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
411
+ 'parent': request.parent ?? '',
535
412
  });
413
+ this.initialize().catch(err => { throw err; });
536
414
  const wrappedCallback = callback
537
415
  ? (error, response, rawResponse, _) => {
538
416
  this._log.info('purgeUserEvents response %j', rawResponse);
@@ -540,8 +418,7 @@ class UserEventServiceClient {
540
418
  }
541
419
  : undefined;
542
420
  this._log.info('purgeUserEvents request %j', request);
543
- return this.innerApiCalls
544
- .purgeUserEvents(request, options, wrappedCallback)
421
+ return this.innerApiCalls.purgeUserEvents(request, options, wrappedCallback)
545
422
  ?.then(([response, rawResponse, _]) => {
546
423
  this._log.info('purgeUserEvents response %j', rawResponse);
547
424
  return [response, rawResponse, _];
@@ -578,13 +455,10 @@ class UserEventServiceClient {
578
455
  options = options || {};
579
456
  options.otherArgs = options.otherArgs || {};
580
457
  options.otherArgs.headers = options.otherArgs.headers || {};
581
- options.otherArgs.headers['x-goog-request-params'] =
582
- this._gaxModule.routingHeader.fromParams({
583
- parent: request.parent ?? '',
584
- });
585
- this.initialize().catch(err => {
586
- throw err;
458
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
459
+ 'parent': request.parent ?? '',
587
460
  });
461
+ this.initialize().catch(err => { throw err; });
588
462
  const wrappedCallback = callback
589
463
  ? (error, response, rawResponse, _) => {
590
464
  this._log.info('importUserEvents response %j', rawResponse);
@@ -592,8 +466,7 @@ class UserEventServiceClient {
592
466
  }
593
467
  : undefined;
594
468
  this._log.info('importUserEvents request %j', request);
595
- return this.innerApiCalls
596
- .importUserEvents(request, options, wrappedCallback)
469
+ return this.innerApiCalls.importUserEvents(request, options, wrappedCallback)
597
470
  ?.then(([response, rawResponse, _]) => {
598
471
  this._log.info('importUserEvents response %j', rawResponse);
599
472
  return [response, rawResponse, _];
@@ -618,90 +491,90 @@ class UserEventServiceClient {
618
491
  return decodeOperation;
619
492
  }
620
493
  /**
621
- * Gets information about a location.
622
- *
623
- * @param {Object} request
624
- * The request object that will be sent.
625
- * @param {string} request.name
626
- * Resource name for the location.
627
- * @param {object} [options]
628
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
629
- * @returns {Promise} - The promise which resolves to an array.
630
- * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
631
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
632
- * for more details and examples.
633
- * @example
634
- * ```
635
- * const [response] = await client.getLocation(request);
636
- * ```
637
- */
494
+ * Gets information about a location.
495
+ *
496
+ * @param {Object} request
497
+ * The request object that will be sent.
498
+ * @param {string} request.name
499
+ * Resource name for the location.
500
+ * @param {object} [options]
501
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
502
+ * @returns {Promise} - The promise which resolves to an array.
503
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
504
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
505
+ * for more details and examples.
506
+ * @example
507
+ * ```
508
+ * const [response] = await client.getLocation(request);
509
+ * ```
510
+ */
638
511
  getLocation(request, options, callback) {
639
512
  return this.locationsClient.getLocation(request, options, callback);
640
513
  }
641
514
  /**
642
- * Lists information about the supported locations for this service. Returns an iterable object.
643
- *
644
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
645
- * @param {Object} request
646
- * The request object that will be sent.
647
- * @param {string} request.name
648
- * The resource that owns the locations collection, if applicable.
649
- * @param {string} request.filter
650
- * The standard list filter.
651
- * @param {number} request.pageSize
652
- * The standard list page size.
653
- * @param {string} request.pageToken
654
- * The standard list page token.
655
- * @param {object} [options]
656
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
657
- * @returns {Object}
658
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
659
- * When you iterate the returned iterable, each element will be an object representing
660
- * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
661
- * so you can stop the iteration when you don't need more results.
662
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
663
- * for more details and examples.
664
- * @example
665
- * ```
666
- * const iterable = client.listLocationsAsync(request);
667
- * for await (const response of iterable) {
668
- * // process response
669
- * }
670
- * ```
671
- */
515
+ * Lists information about the supported locations for this service. Returns an iterable object.
516
+ *
517
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
518
+ * @param {Object} request
519
+ * The request object that will be sent.
520
+ * @param {string} request.name
521
+ * The resource that owns the locations collection, if applicable.
522
+ * @param {string} request.filter
523
+ * The standard list filter.
524
+ * @param {number} request.pageSize
525
+ * The standard list page size.
526
+ * @param {string} request.pageToken
527
+ * The standard list page token.
528
+ * @param {object} [options]
529
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
530
+ * @returns {Object}
531
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
532
+ * When you iterate the returned iterable, each element will be an object representing
533
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
534
+ * so you can stop the iteration when you don't need more results.
535
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
536
+ * for more details and examples.
537
+ * @example
538
+ * ```
539
+ * const iterable = client.listLocationsAsync(request);
540
+ * for await (const response of iterable) {
541
+ * // process response
542
+ * }
543
+ * ```
544
+ */
672
545
  listLocationsAsync(request, options) {
673
546
  return this.locationsClient.listLocationsAsync(request, options);
674
547
  }
675
548
  /**
676
- * Gets the latest state of a long-running operation. Clients can use this
677
- * method to poll the operation result at intervals as recommended by the API
678
- * service.
679
- *
680
- * @param {Object} request - The request object that will be sent.
681
- * @param {string} request.name - The name of the operation resource.
682
- * @param {Object=} options
683
- * Optional parameters. You can override the default settings for this call,
684
- * e.g, timeout, retries, paginations, etc. See {@link
685
- * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
686
- * for the details.
687
- * @param {function(?Error, ?Object)=} callback
688
- * The function which will be called with the result of the API call.
689
- *
690
- * The second parameter to the callback is an object representing
691
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
692
- * @return {Promise} - The promise which resolves to an array.
693
- * The first element of the array is an object representing
694
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
695
- * The promise has a method named "cancel" which cancels the ongoing API call.
696
- *
697
- * @example
698
- * ```
699
- * const client = longrunning.operationsClient();
700
- * const name = '';
701
- * const [response] = await client.getOperation({name});
702
- * // doThingsWith(response)
703
- * ```
704
- */
549
+ * Gets the latest state of a long-running operation. Clients can use this
550
+ * method to poll the operation result at intervals as recommended by the API
551
+ * service.
552
+ *
553
+ * @param {Object} request - The request object that will be sent.
554
+ * @param {string} request.name - The name of the operation resource.
555
+ * @param {Object=} options
556
+ * Optional parameters. You can override the default settings for this call,
557
+ * e.g, timeout, retries, paginations, etc. See {@link
558
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
559
+ * for the details.
560
+ * @param {function(?Error, ?Object)=} callback
561
+ * The function which will be called with the result of the API call.
562
+ *
563
+ * The second parameter to the callback is an object representing
564
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
565
+ * @return {Promise} - The promise which resolves to an array.
566
+ * The first element of the array is an object representing
567
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
568
+ * The promise has a method named "cancel" which cancels the ongoing API call.
569
+ *
570
+ * @example
571
+ * ```
572
+ * const client = longrunning.operationsClient();
573
+ * const name = '';
574
+ * const [response] = await client.getOperation({name});
575
+ * // doThingsWith(response)
576
+ * ```
577
+ */
705
578
  getOperation(request, optionsOrCallback, callback) {
706
579
  let options;
707
580
  if (typeof optionsOrCallback === 'function' && callback === undefined) {
@@ -1497,6 +1370,75 @@ class UserEventServiceClient {
1497
1370
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1498
1371
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1499
1372
  }
1373
+ /**
1374
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1375
+ *
1376
+ * @param {string} project
1377
+ * @param {string} location
1378
+ * @param {string} collection
1379
+ * @param {string} data_store
1380
+ * @param {string} serving_config
1381
+ * @returns {string} Resource name string.
1382
+ */
1383
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1384
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1385
+ project: project,
1386
+ location: location,
1387
+ collection: collection,
1388
+ data_store: dataStore,
1389
+ serving_config: servingConfig,
1390
+ });
1391
+ }
1392
+ /**
1393
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1394
+ *
1395
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1396
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1397
+ * @returns {string} A string representing the project.
1398
+ */
1399
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1400
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1401
+ }
1402
+ /**
1403
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1404
+ *
1405
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1406
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1407
+ * @returns {string} A string representing the location.
1408
+ */
1409
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1410
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1411
+ }
1412
+ /**
1413
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1414
+ *
1415
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1416
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1417
+ * @returns {string} A string representing the collection.
1418
+ */
1419
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1420
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1421
+ }
1422
+ /**
1423
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1424
+ *
1425
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1426
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1427
+ * @returns {string} A string representing the data_store.
1428
+ */
1429
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1430
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1431
+ }
1432
+ /**
1433
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1434
+ *
1435
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1436
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1437
+ * @returns {string} A string representing the serving_config.
1438
+ */
1439
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1440
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1441
+ }
1500
1442
  /**
1501
1443
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1502
1444
  *
@@ -1704,6 +1646,75 @@ class UserEventServiceClient {
1704
1646
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1705
1647
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1706
1648
  }
1649
+ /**
1650
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1651
+ *
1652
+ * @param {string} project
1653
+ * @param {string} location
1654
+ * @param {string} collection
1655
+ * @param {string} data_store
1656
+ * @param {string} sitemap
1657
+ * @returns {string} Resource name string.
1658
+ */
1659
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1660
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1661
+ project: project,
1662
+ location: location,
1663
+ collection: collection,
1664
+ data_store: dataStore,
1665
+ sitemap: sitemap,
1666
+ });
1667
+ }
1668
+ /**
1669
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1670
+ *
1671
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1672
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1673
+ * @returns {string} A string representing the project.
1674
+ */
1675
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1676
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1677
+ }
1678
+ /**
1679
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1680
+ *
1681
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1682
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1683
+ * @returns {string} A string representing the location.
1684
+ */
1685
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1686
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1687
+ }
1688
+ /**
1689
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1690
+ *
1691
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1692
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1693
+ * @returns {string} A string representing the collection.
1694
+ */
1695
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1696
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1697
+ }
1698
+ /**
1699
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1700
+ *
1701
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1702
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1703
+ * @returns {string} A string representing the data_store.
1704
+ */
1705
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1706
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
1707
+ }
1708
+ /**
1709
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1710
+ *
1711
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1712
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1713
+ * @returns {string} A string representing the sitemap.
1714
+ */
1715
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1716
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
1717
+ }
1707
1718
  /**
1708
1719
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1709
1720
  *
@@ -1911,6 +1922,75 @@ class UserEventServiceClient {
1911
1922
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1912
1923
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1913
1924
  }
1925
+ /**
1926
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1927
+ *
1928
+ * @param {string} project
1929
+ * @param {string} location
1930
+ * @param {string} collection
1931
+ * @param {string} engine
1932
+ * @param {string} serving_config
1933
+ * @returns {string} Resource name string.
1934
+ */
1935
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1936
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1937
+ project: project,
1938
+ location: location,
1939
+ collection: collection,
1940
+ engine: engine,
1941
+ serving_config: servingConfig,
1942
+ });
1943
+ }
1944
+ /**
1945
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1946
+ *
1947
+ * @param {string} projectLocationCollectionEngineServingConfigName
1948
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1949
+ * @returns {string} A string representing the project.
1950
+ */
1951
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1952
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1953
+ }
1954
+ /**
1955
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1956
+ *
1957
+ * @param {string} projectLocationCollectionEngineServingConfigName
1958
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1959
+ * @returns {string} A string representing the location.
1960
+ */
1961
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1962
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1963
+ }
1964
+ /**
1965
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1966
+ *
1967
+ * @param {string} projectLocationCollectionEngineServingConfigName
1968
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1969
+ * @returns {string} A string representing the collection.
1970
+ */
1971
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1972
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1973
+ }
1974
+ /**
1975
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1976
+ *
1977
+ * @param {string} projectLocationCollectionEngineServingConfigName
1978
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1979
+ * @returns {string} A string representing the engine.
1980
+ */
1981
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1982
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1983
+ }
1984
+ /**
1985
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1986
+ *
1987
+ * @param {string} projectLocationCollectionEngineServingConfigName
1988
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1989
+ * @returns {string} A string representing the serving_config.
1990
+ */
1991
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1992
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1993
+ }
1914
1994
  /**
1915
1995
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1916
1996
  *
@@ -2529,6 +2609,63 @@ class UserEventServiceClient {
2529
2609
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2530
2610
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2531
2611
  }
2612
+ /**
2613
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2614
+ *
2615
+ * @param {string} project
2616
+ * @param {string} location
2617
+ * @param {string} data_store
2618
+ * @param {string} serving_config
2619
+ * @returns {string} Resource name string.
2620
+ */
2621
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2622
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2623
+ project: project,
2624
+ location: location,
2625
+ data_store: dataStore,
2626
+ serving_config: servingConfig,
2627
+ });
2628
+ }
2629
+ /**
2630
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2631
+ *
2632
+ * @param {string} projectLocationDataStoreServingConfigName
2633
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2634
+ * @returns {string} A string representing the project.
2635
+ */
2636
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2637
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2638
+ }
2639
+ /**
2640
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2641
+ *
2642
+ * @param {string} projectLocationDataStoreServingConfigName
2643
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2644
+ * @returns {string} A string representing the location.
2645
+ */
2646
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2647
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2648
+ }
2649
+ /**
2650
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2651
+ *
2652
+ * @param {string} projectLocationDataStoreServingConfigName
2653
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2654
+ * @returns {string} A string representing the data_store.
2655
+ */
2656
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2657
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2658
+ }
2659
+ /**
2660
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2661
+ *
2662
+ * @param {string} projectLocationDataStoreServingConfigName
2663
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2664
+ * @returns {string} A string representing the serving_config.
2665
+ */
2666
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2667
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2668
+ }
2532
2669
  /**
2533
2670
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2534
2671
  *
@@ -2700,6 +2837,63 @@ class UserEventServiceClient {
2700
2837
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2701
2838
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2702
2839
  }
2840
+ /**
2841
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
2842
+ *
2843
+ * @param {string} project
2844
+ * @param {string} location
2845
+ * @param {string} data_store
2846
+ * @param {string} sitemap
2847
+ * @returns {string} Resource name string.
2848
+ */
2849
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
2850
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
2851
+ project: project,
2852
+ location: location,
2853
+ data_store: dataStore,
2854
+ sitemap: sitemap,
2855
+ });
2856
+ }
2857
+ /**
2858
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2859
+ *
2860
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2861
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2862
+ * @returns {string} A string representing the project.
2863
+ */
2864
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2865
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
2866
+ }
2867
+ /**
2868
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2869
+ *
2870
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2871
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2872
+ * @returns {string} A string representing the location.
2873
+ */
2874
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2875
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
2876
+ }
2877
+ /**
2878
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2879
+ *
2880
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2881
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2882
+ * @returns {string} A string representing the data_store.
2883
+ */
2884
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2885
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
2886
+ }
2887
+ /**
2888
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2889
+ *
2890
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2891
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2892
+ * @returns {string} A string representing the sitemap.
2893
+ */
2894
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2895
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
2896
+ }
2703
2897
  /**
2704
2898
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2705
2899
  *
@@ -2769,8 +2963,8 @@ class UserEventServiceClient {
2769
2963
  this._log.info('ending gRPC channel');
2770
2964
  this._terminated = true;
2771
2965
  stub.close();
2772
- this.locationsClient.close();
2773
- this.operationsClient.close();
2966
+ this.locationsClient.close().catch(err => { throw err; });
2967
+ void this.operationsClient.close();
2774
2968
  });
2775
2969
  }
2776
2970
  return Promise.resolve();