@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
@@ -99,26 +99,17 @@ class ProjectServiceClient {
99
99
  constructor(opts, gaxInstance) {
100
100
  // Ensure that options include all the required fields.
101
101
  const staticMembers = this.constructor;
102
- if (opts?.universe_domain &&
103
- opts?.universeDomain &&
104
- opts?.universe_domain !== opts?.universeDomain) {
102
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
105
103
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
106
104
  }
107
- const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
108
- ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
109
- : undefined;
110
- this._universeDomain =
111
- opts?.universeDomain ??
112
- opts?.universe_domain ??
113
- universeDomainEnvVar ??
114
- 'googleapis.com';
105
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
106
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
115
107
  this._servicePath = 'discoveryengine.' + this._universeDomain;
116
108
  const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
117
109
  this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
118
110
  const port = opts?.port || staticMembers.port;
119
111
  const clientConfig = opts?.clientConfig ?? {};
120
- const fallback = opts?.fallback ??
121
- (typeof window !== 'undefined' && typeof window?.fetch === 'function');
112
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
122
113
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
123
114
  // Request numeric enum values if REST transport is used.
124
115
  opts.numericEnums = true;
@@ -148,7 +139,10 @@ class ProjectServiceClient {
148
139
  }
149
140
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
150
141
  // Determine the client header string.
151
- const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
142
+ const clientHeader = [
143
+ `gax/${this._gaxModule.version}`,
144
+ `gapic/${version}`,
145
+ ];
152
146
  if (typeof process === 'object' && 'versions' in process) {
153
147
  clientHeader.push(`gl-node/${process.versions.node}`);
154
148
  }
@@ -180,12 +174,15 @@ class ProjectServiceClient {
180
174
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
181
175
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
182
176
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
177
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
183
178
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
184
179
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
185
180
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
181
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
186
182
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
187
183
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
188
184
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
185
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
189
186
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
190
187
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
191
188
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -196,9 +193,11 @@ class ProjectServiceClient {
196
193
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
197
194
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
198
195
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
196
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
199
197
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
200
198
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
201
199
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
200
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
202
201
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
203
202
  };
204
203
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
@@ -207,125 +206,20 @@ class ProjectServiceClient {
207
206
  // rather than holding a request open.
208
207
  const lroOptions = {
209
208
  auth: this.auth,
210
- grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
209
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
211
210
  };
212
211
  if (opts.fallback) {
213
212
  lroOptions.protoJson = protoFilesRoot;
214
- lroOptions.httpRules = [
215
- {
216
- selector: 'google.longrunning.Operations.CancelOperation',
217
- post: '/v1/{name=projects/*/operations/*}:cancel',
218
- body: '*',
219
- additional_bindings: [
220
- {
221
- post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
222
- body: '*',
223
- },
224
- {
225
- post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
226
- body: '*',
227
- },
228
- ],
229
- },
230
- {
231
- selector: 'google.longrunning.Operations.GetOperation',
232
- get: '/v1/{name=projects/*/operations/*}',
233
- additional_bindings: [
234
- {
235
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
236
- },
237
- {
238
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
239
- },
240
- {
241
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
242
- },
243
- {
244
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
245
- },
246
- {
247
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
248
- },
249
- {
250
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
251
- },
252
- {
253
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
254
- },
255
- {
256
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
257
- },
258
- {
259
- get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
260
- },
261
- {
262
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
263
- },
264
- {
265
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
266
- },
267
- {
268
- get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
269
- },
270
- {
271
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
272
- },
273
- { get: '/v1/{name=projects/*/locations/*/operations/*}' },
274
- { get: '/v1/{name=projects/*/operations/*}' },
275
- ],
276
- },
277
- {
278
- selector: 'google.longrunning.Operations.ListOperations',
279
- get: '/v1/{name=projects/*}/operations',
280
- additional_bindings: [
281
- {
282
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
283
- },
284
- {
285
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
286
- },
287
- {
288
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
289
- },
290
- {
291
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
292
- },
293
- {
294
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
295
- },
296
- {
297
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
298
- },
299
- {
300
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
301
- },
302
- {
303
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
304
- },
305
- { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
306
- {
307
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
308
- },
309
- {
310
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
311
- },
312
- { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
313
- {
314
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
315
- },
316
- { get: '/v1/{name=projects/*/locations/*}/operations' },
317
- { get: '/v1/{name=projects/*}/operations' },
318
- ],
319
- },
320
- ];
213
+ 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: '*', }],
214
+ }, { 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/*}', }],
215
+ }, { 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', }],
216
+ }];
321
217
  }
322
- this.operationsClient = this._gaxModule
323
- .lro(lroOptions)
324
- .operationsClient(opts);
218
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
325
219
  const provisionProjectResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Project');
326
220
  const provisionProjectMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ProvisionProjectMetadata');
327
221
  this.descriptors.longrunning = {
328
- provisionProject: new this._gaxModule.LongrunningDescriptor(this.operationsClient, provisionProjectResponse.decode.bind(provisionProjectResponse), provisionProjectMetadata.decode.bind(provisionProjectMetadata)),
222
+ provisionProject: new this._gaxModule.LongrunningDescriptor(this.operationsClient, provisionProjectResponse.decode.bind(provisionProjectResponse), provisionProjectMetadata.decode.bind(provisionProjectMetadata))
329
223
  };
330
224
  // Put together the default options sent with requests.
331
225
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.ProjectService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -354,10 +248,10 @@ class ProjectServiceClient {
354
248
  }
355
249
  // Put together the "service stub" for
356
250
  // google.cloud.discoveryengine.v1.ProjectService.
357
- this.projectServiceStub = this._gaxGrpc.createStub(this._opts.fallback
358
- ? this._protos.lookupService('google.cloud.discoveryengine.v1.ProjectService')
359
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
360
- this._protos.google.cloud.discoveryengine.v1.ProjectService, this._opts, this._providedCustomServicePath);
251
+ this.projectServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
252
+ this._protos.lookupService('google.cloud.discoveryengine.v1.ProjectService') :
253
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
254
+ this._protos.google.cloud.discoveryengine.v1.ProjectService, this._opts, this._providedCustomServicePath);
361
255
  // Iterate over each of the methods that the service provides
362
256
  // and create an API call method for each.
363
257
  const projectServiceStubMethods = ['provisionProject'];
@@ -371,7 +265,8 @@ class ProjectServiceClient {
371
265
  }, (err) => () => {
372
266
  throw err;
373
267
  });
374
- const descriptor = this.descriptors.longrunning[methodName] || undefined;
268
+ const descriptor = this.descriptors.longrunning[methodName] ||
269
+ undefined;
375
270
  const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
376
271
  this.innerApiCalls[methodName] = apiCall;
377
272
  }
@@ -383,8 +278,7 @@ class ProjectServiceClient {
383
278
  * @returns {string} The DNS address for this service.
384
279
  */
385
280
  static get servicePath() {
386
- if (typeof process === 'object' &&
387
- typeof process.emitWarning === 'function') {
281
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
388
282
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
389
283
  }
390
284
  return 'discoveryengine.googleapis.com';
@@ -395,8 +289,7 @@ class ProjectServiceClient {
395
289
  * @returns {string} The DNS address for this service.
396
290
  */
397
291
  static get apiEndpoint() {
398
- if (typeof process === 'object' &&
399
- typeof process.emitWarning === 'function') {
292
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
400
293
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
401
294
  }
402
295
  return 'discoveryengine.googleapis.com';
@@ -424,7 +317,9 @@ class ProjectServiceClient {
424
317
  * @returns {string[]} List of default scopes.
425
318
  */
426
319
  static get scopes() {
427
- return ['https://www.googleapis.com/auth/cloud-platform'];
320
+ return [
321
+ 'https://www.googleapis.com/auth/cloud-platform'
322
+ ];
428
323
  }
429
324
  /**
430
325
  * Return the project ID used by this class.
@@ -450,13 +345,10 @@ class ProjectServiceClient {
450
345
  options = options || {};
451
346
  options.otherArgs = options.otherArgs || {};
452
347
  options.otherArgs.headers = options.otherArgs.headers || {};
453
- options.otherArgs.headers['x-goog-request-params'] =
454
- this._gaxModule.routingHeader.fromParams({
455
- name: request.name ?? '',
456
- });
457
- this.initialize().catch(err => {
458
- throw err;
348
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
349
+ 'name': request.name ?? '',
459
350
  });
351
+ this.initialize().catch(err => { throw err; });
460
352
  const wrappedCallback = callback
461
353
  ? (error, response, rawResponse, _) => {
462
354
  this._log.info('provisionProject response %j', rawResponse);
@@ -464,8 +356,7 @@ class ProjectServiceClient {
464
356
  }
465
357
  : undefined;
466
358
  this._log.info('provisionProject request %j', request);
467
- return this.innerApiCalls
468
- .provisionProject(request, options, wrappedCallback)
359
+ return this.innerApiCalls.provisionProject(request, options, wrappedCallback)
469
360
  ?.then(([response, rawResponse, _]) => {
470
361
  this._log.info('provisionProject response %j', rawResponse);
471
362
  return [response, rawResponse, _];
@@ -490,90 +381,90 @@ class ProjectServiceClient {
490
381
  return decodeOperation;
491
382
  }
492
383
  /**
493
- * Gets information about a location.
494
- *
495
- * @param {Object} request
496
- * The request object that will be sent.
497
- * @param {string} request.name
498
- * Resource name for the location.
499
- * @param {object} [options]
500
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
501
- * @returns {Promise} - The promise which resolves to an array.
502
- * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
503
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
504
- * for more details and examples.
505
- * @example
506
- * ```
507
- * const [response] = await client.getLocation(request);
508
- * ```
509
- */
384
+ * Gets information about a location.
385
+ *
386
+ * @param {Object} request
387
+ * The request object that will be sent.
388
+ * @param {string} request.name
389
+ * Resource name for the location.
390
+ * @param {object} [options]
391
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
392
+ * @returns {Promise} - The promise which resolves to an array.
393
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
394
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
395
+ * for more details and examples.
396
+ * @example
397
+ * ```
398
+ * const [response] = await client.getLocation(request);
399
+ * ```
400
+ */
510
401
  getLocation(request, options, callback) {
511
402
  return this.locationsClient.getLocation(request, options, callback);
512
403
  }
513
404
  /**
514
- * Lists information about the supported locations for this service. Returns an iterable object.
515
- *
516
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
517
- * @param {Object} request
518
- * The request object that will be sent.
519
- * @param {string} request.name
520
- * The resource that owns the locations collection, if applicable.
521
- * @param {string} request.filter
522
- * The standard list filter.
523
- * @param {number} request.pageSize
524
- * The standard list page size.
525
- * @param {string} request.pageToken
526
- * The standard list page token.
527
- * @param {object} [options]
528
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
529
- * @returns {Object}
530
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
531
- * When you iterate the returned iterable, each element will be an object representing
532
- * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
533
- * so you can stop the iteration when you don't need more results.
534
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
535
- * for more details and examples.
536
- * @example
537
- * ```
538
- * const iterable = client.listLocationsAsync(request);
539
- * for await (const response of iterable) {
540
- * // process response
541
- * }
542
- * ```
543
- */
405
+ * Lists information about the supported locations for this service. Returns an iterable object.
406
+ *
407
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
408
+ * @param {Object} request
409
+ * The request object that will be sent.
410
+ * @param {string} request.name
411
+ * The resource that owns the locations collection, if applicable.
412
+ * @param {string} request.filter
413
+ * The standard list filter.
414
+ * @param {number} request.pageSize
415
+ * The standard list page size.
416
+ * @param {string} request.pageToken
417
+ * The standard list page token.
418
+ * @param {object} [options]
419
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
420
+ * @returns {Object}
421
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
422
+ * When you iterate the returned iterable, each element will be an object representing
423
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
424
+ * so you can stop the iteration when you don't need more results.
425
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
426
+ * for more details and examples.
427
+ * @example
428
+ * ```
429
+ * const iterable = client.listLocationsAsync(request);
430
+ * for await (const response of iterable) {
431
+ * // process response
432
+ * }
433
+ * ```
434
+ */
544
435
  listLocationsAsync(request, options) {
545
436
  return this.locationsClient.listLocationsAsync(request, options);
546
437
  }
547
438
  /**
548
- * Gets the latest state of a long-running operation. Clients can use this
549
- * method to poll the operation result at intervals as recommended by the API
550
- * service.
551
- *
552
- * @param {Object} request - The request object that will be sent.
553
- * @param {string} request.name - The name of the operation resource.
554
- * @param {Object=} options
555
- * Optional parameters. You can override the default settings for this call,
556
- * e.g, timeout, retries, paginations, etc. See {@link
557
- * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
558
- * for the details.
559
- * @param {function(?Error, ?Object)=} callback
560
- * The function which will be called with the result of the API call.
561
- *
562
- * The second parameter to the callback is an object representing
563
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
564
- * @return {Promise} - The promise which resolves to an array.
565
- * The first element of the array is an object representing
566
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
567
- * The promise has a method named "cancel" which cancels the ongoing API call.
568
- *
569
- * @example
570
- * ```
571
- * const client = longrunning.operationsClient();
572
- * const name = '';
573
- * const [response] = await client.getOperation({name});
574
- * // doThingsWith(response)
575
- * ```
576
- */
439
+ * Gets the latest state of a long-running operation. Clients can use this
440
+ * method to poll the operation result at intervals as recommended by the API
441
+ * service.
442
+ *
443
+ * @param {Object} request - The request object that will be sent.
444
+ * @param {string} request.name - The name of the operation resource.
445
+ * @param {Object=} options
446
+ * Optional parameters. You can override the default settings for this call,
447
+ * e.g, timeout, retries, paginations, etc. See {@link
448
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
449
+ * for the details.
450
+ * @param {function(?Error, ?Object)=} callback
451
+ * The function which will be called with the result of the API call.
452
+ *
453
+ * The second parameter to the callback is an object representing
454
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
455
+ * @return {Promise} - The promise which resolves to an array.
456
+ * The first element of the array is an object representing
457
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
458
+ * The promise has a method named "cancel" which cancels the ongoing API call.
459
+ *
460
+ * @example
461
+ * ```
462
+ * const client = longrunning.operationsClient();
463
+ * const name = '';
464
+ * const [response] = await client.getOperation({name});
465
+ * // doThingsWith(response)
466
+ * ```
467
+ */
577
468
  getOperation(request, optionsOrCallback, callback) {
578
469
  let options;
579
470
  if (typeof optionsOrCallback === 'function' && callback === undefined) {
@@ -1369,6 +1260,75 @@ class ProjectServiceClient {
1369
1260
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1370
1261
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1371
1262
  }
1263
+ /**
1264
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1265
+ *
1266
+ * @param {string} project
1267
+ * @param {string} location
1268
+ * @param {string} collection
1269
+ * @param {string} data_store
1270
+ * @param {string} serving_config
1271
+ * @returns {string} Resource name string.
1272
+ */
1273
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1274
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1275
+ project: project,
1276
+ location: location,
1277
+ collection: collection,
1278
+ data_store: dataStore,
1279
+ serving_config: servingConfig,
1280
+ });
1281
+ }
1282
+ /**
1283
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1284
+ *
1285
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1286
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1287
+ * @returns {string} A string representing the project.
1288
+ */
1289
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1290
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1291
+ }
1292
+ /**
1293
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1294
+ *
1295
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1296
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1297
+ * @returns {string} A string representing the location.
1298
+ */
1299
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1300
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1301
+ }
1302
+ /**
1303
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1304
+ *
1305
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1306
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1307
+ * @returns {string} A string representing the collection.
1308
+ */
1309
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1310
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1311
+ }
1312
+ /**
1313
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1314
+ *
1315
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1316
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1317
+ * @returns {string} A string representing the data_store.
1318
+ */
1319
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1320
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1321
+ }
1322
+ /**
1323
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1324
+ *
1325
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1326
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1327
+ * @returns {string} A string representing the serving_config.
1328
+ */
1329
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1330
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1331
+ }
1372
1332
  /**
1373
1333
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1374
1334
  *
@@ -1576,6 +1536,75 @@ class ProjectServiceClient {
1576
1536
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1577
1537
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1578
1538
  }
1539
+ /**
1540
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1541
+ *
1542
+ * @param {string} project
1543
+ * @param {string} location
1544
+ * @param {string} collection
1545
+ * @param {string} data_store
1546
+ * @param {string} sitemap
1547
+ * @returns {string} Resource name string.
1548
+ */
1549
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1550
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1551
+ project: project,
1552
+ location: location,
1553
+ collection: collection,
1554
+ data_store: dataStore,
1555
+ sitemap: sitemap,
1556
+ });
1557
+ }
1558
+ /**
1559
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1560
+ *
1561
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1562
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1563
+ * @returns {string} A string representing the project.
1564
+ */
1565
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1566
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1567
+ }
1568
+ /**
1569
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1570
+ *
1571
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1572
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1573
+ * @returns {string} A string representing the location.
1574
+ */
1575
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1576
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1577
+ }
1578
+ /**
1579
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1580
+ *
1581
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1582
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1583
+ * @returns {string} A string representing the collection.
1584
+ */
1585
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1586
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1587
+ }
1588
+ /**
1589
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1590
+ *
1591
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1592
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1593
+ * @returns {string} A string representing the data_store.
1594
+ */
1595
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1596
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
1597
+ }
1598
+ /**
1599
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1600
+ *
1601
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1602
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1603
+ * @returns {string} A string representing the sitemap.
1604
+ */
1605
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1606
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
1607
+ }
1579
1608
  /**
1580
1609
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1581
1610
  *
@@ -1783,6 +1812,75 @@ class ProjectServiceClient {
1783
1812
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1784
1813
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1785
1814
  }
1815
+ /**
1816
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1817
+ *
1818
+ * @param {string} project
1819
+ * @param {string} location
1820
+ * @param {string} collection
1821
+ * @param {string} engine
1822
+ * @param {string} serving_config
1823
+ * @returns {string} Resource name string.
1824
+ */
1825
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1826
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1827
+ project: project,
1828
+ location: location,
1829
+ collection: collection,
1830
+ engine: engine,
1831
+ serving_config: servingConfig,
1832
+ });
1833
+ }
1834
+ /**
1835
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1836
+ *
1837
+ * @param {string} projectLocationCollectionEngineServingConfigName
1838
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1839
+ * @returns {string} A string representing the project.
1840
+ */
1841
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1842
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1843
+ }
1844
+ /**
1845
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1846
+ *
1847
+ * @param {string} projectLocationCollectionEngineServingConfigName
1848
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1849
+ * @returns {string} A string representing the location.
1850
+ */
1851
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1852
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1853
+ }
1854
+ /**
1855
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1856
+ *
1857
+ * @param {string} projectLocationCollectionEngineServingConfigName
1858
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1859
+ * @returns {string} A string representing the collection.
1860
+ */
1861
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1862
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1863
+ }
1864
+ /**
1865
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1866
+ *
1867
+ * @param {string} projectLocationCollectionEngineServingConfigName
1868
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1869
+ * @returns {string} A string representing the engine.
1870
+ */
1871
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1872
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1873
+ }
1874
+ /**
1875
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1876
+ *
1877
+ * @param {string} projectLocationCollectionEngineServingConfigName
1878
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1879
+ * @returns {string} A string representing the serving_config.
1880
+ */
1881
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1882
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1883
+ }
1786
1884
  /**
1787
1885
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1788
1886
  *
@@ -2401,6 +2499,63 @@ class ProjectServiceClient {
2401
2499
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2402
2500
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2403
2501
  }
2502
+ /**
2503
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2504
+ *
2505
+ * @param {string} project
2506
+ * @param {string} location
2507
+ * @param {string} data_store
2508
+ * @param {string} serving_config
2509
+ * @returns {string} Resource name string.
2510
+ */
2511
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2512
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2513
+ project: project,
2514
+ location: location,
2515
+ data_store: dataStore,
2516
+ serving_config: servingConfig,
2517
+ });
2518
+ }
2519
+ /**
2520
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2521
+ *
2522
+ * @param {string} projectLocationDataStoreServingConfigName
2523
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2524
+ * @returns {string} A string representing the project.
2525
+ */
2526
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2527
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2528
+ }
2529
+ /**
2530
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2531
+ *
2532
+ * @param {string} projectLocationDataStoreServingConfigName
2533
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2534
+ * @returns {string} A string representing the location.
2535
+ */
2536
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2537
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2538
+ }
2539
+ /**
2540
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2541
+ *
2542
+ * @param {string} projectLocationDataStoreServingConfigName
2543
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2544
+ * @returns {string} A string representing the data_store.
2545
+ */
2546
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2547
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2548
+ }
2549
+ /**
2550
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2551
+ *
2552
+ * @param {string} projectLocationDataStoreServingConfigName
2553
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2554
+ * @returns {string} A string representing the serving_config.
2555
+ */
2556
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2557
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2558
+ }
2404
2559
  /**
2405
2560
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2406
2561
  *
@@ -2572,6 +2727,63 @@ class ProjectServiceClient {
2572
2727
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2573
2728
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2574
2729
  }
2730
+ /**
2731
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
2732
+ *
2733
+ * @param {string} project
2734
+ * @param {string} location
2735
+ * @param {string} data_store
2736
+ * @param {string} sitemap
2737
+ * @returns {string} Resource name string.
2738
+ */
2739
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
2740
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
2741
+ project: project,
2742
+ location: location,
2743
+ data_store: dataStore,
2744
+ sitemap: sitemap,
2745
+ });
2746
+ }
2747
+ /**
2748
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2749
+ *
2750
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2751
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2752
+ * @returns {string} A string representing the project.
2753
+ */
2754
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2755
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
2756
+ }
2757
+ /**
2758
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2759
+ *
2760
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2761
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2762
+ * @returns {string} A string representing the location.
2763
+ */
2764
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2765
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
2766
+ }
2767
+ /**
2768
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2769
+ *
2770
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2771
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2772
+ * @returns {string} A string representing the data_store.
2773
+ */
2774
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2775
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
2776
+ }
2777
+ /**
2778
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2779
+ *
2780
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2781
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2782
+ * @returns {string} A string representing the sitemap.
2783
+ */
2784
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2785
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
2786
+ }
2575
2787
  /**
2576
2788
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2577
2789
  *
@@ -2641,8 +2853,8 @@ class ProjectServiceClient {
2641
2853
  this._log.info('ending gRPC channel');
2642
2854
  this._terminated = true;
2643
2855
  stub.close();
2644
- this.locationsClient.close();
2645
- this.operationsClient.close();
2856
+ this.locationsClient.close().catch(err => { throw err; });
2857
+ void this.operationsClient.close();
2646
2858
  });
2647
2859
  }
2648
2860
  return Promise.resolve();