@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 DocumentServiceClient {
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 DocumentServiceClient {
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
  }
@@ -181,12 +175,15 @@ class DocumentServiceClient {
181
175
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
182
176
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
183
177
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
178
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
184
179
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
185
180
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
186
181
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
182
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
187
183
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
188
184
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
189
185
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
186
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
190
187
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
191
188
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
192
189
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -198,16 +195,18 @@ class DocumentServiceClient {
198
195
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
199
196
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
200
197
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
198
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
201
199
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
202
200
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
203
201
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
202
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
204
203
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
205
204
  };
206
205
  // Some of the methods on this service return "paged" results,
207
206
  // (e.g. 50 results at a time, with tokens to get subsequent
208
207
  // pages). Denote the keys used for pagination and results.
209
208
  this.descriptors.page = {
210
- listDocuments: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'documents'),
209
+ listDocuments: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'documents')
211
210
  };
212
211
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
213
212
  // This API contains "long-running operations", which return a
@@ -215,128 +214,23 @@ class DocumentServiceClient {
215
214
  // rather than holding a request open.
216
215
  const lroOptions = {
217
216
  auth: this.auth,
218
- grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
217
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
219
218
  };
220
219
  if (opts.fallback) {
221
220
  lroOptions.protoJson = protoFilesRoot;
222
- lroOptions.httpRules = [
223
- {
224
- selector: 'google.longrunning.Operations.CancelOperation',
225
- post: '/v1/{name=projects/*/operations/*}:cancel',
226
- body: '*',
227
- additional_bindings: [
228
- {
229
- post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
230
- body: '*',
231
- },
232
- {
233
- post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
234
- body: '*',
235
- },
236
- ],
237
- },
238
- {
239
- selector: 'google.longrunning.Operations.GetOperation',
240
- get: '/v1/{name=projects/*/operations/*}',
241
- additional_bindings: [
242
- {
243
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
244
- },
245
- {
246
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
247
- },
248
- {
249
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
250
- },
251
- {
252
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
253
- },
254
- {
255
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
256
- },
257
- {
258
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
259
- },
260
- {
261
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
262
- },
263
- {
264
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
265
- },
266
- {
267
- get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
268
- },
269
- {
270
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
271
- },
272
- {
273
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
274
- },
275
- {
276
- get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
277
- },
278
- {
279
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
280
- },
281
- { get: '/v1/{name=projects/*/locations/*/operations/*}' },
282
- { get: '/v1/{name=projects/*/operations/*}' },
283
- ],
284
- },
285
- {
286
- selector: 'google.longrunning.Operations.ListOperations',
287
- get: '/v1/{name=projects/*}/operations',
288
- additional_bindings: [
289
- {
290
- get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
291
- },
292
- {
293
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
294
- },
295
- {
296
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
297
- },
298
- {
299
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
300
- },
301
- {
302
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
303
- },
304
- {
305
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
306
- },
307
- {
308
- get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
309
- },
310
- {
311
- get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
312
- },
313
- { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
314
- {
315
- get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
316
- },
317
- {
318
- get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
319
- },
320
- { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
321
- {
322
- get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
323
- },
324
- { get: '/v1/{name=projects/*/locations/*}/operations' },
325
- { get: '/v1/{name=projects/*}/operations' },
326
- ],
327
- },
328
- ];
221
+ 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: '*', }],
222
+ }, { 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/*}', }],
223
+ }, { 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', }],
224
+ }];
329
225
  }
330
- this.operationsClient = this._gaxModule
331
- .lro(lroOptions)
332
- .operationsClient(opts);
226
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
333
227
  const importDocumentsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportDocumentsResponse');
334
228
  const importDocumentsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportDocumentsMetadata');
335
229
  const purgeDocumentsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.PurgeDocumentsResponse');
336
230
  const purgeDocumentsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata');
337
231
  this.descriptors.longrunning = {
338
232
  importDocuments: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importDocumentsResponse.decode.bind(importDocumentsResponse), importDocumentsMetadata.decode.bind(importDocumentsMetadata)),
339
- purgeDocuments: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeDocumentsResponse.decode.bind(purgeDocumentsResponse), purgeDocumentsMetadata.decode.bind(purgeDocumentsMetadata)),
233
+ purgeDocuments: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeDocumentsResponse.decode.bind(purgeDocumentsResponse), purgeDocumentsMetadata.decode.bind(purgeDocumentsMetadata))
340
234
  };
341
235
  // Put together the default options sent with requests.
342
236
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.DocumentService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -365,22 +259,13 @@ class DocumentServiceClient {
365
259
  }
366
260
  // Put together the "service stub" for
367
261
  // google.cloud.discoveryengine.v1.DocumentService.
368
- this.documentServiceStub = this._gaxGrpc.createStub(this._opts.fallback
369
- ? this._protos.lookupService('google.cloud.discoveryengine.v1.DocumentService')
370
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
371
- this._protos.google.cloud.discoveryengine.v1.DocumentService, this._opts, this._providedCustomServicePath);
262
+ this.documentServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
263
+ this._protos.lookupService('google.cloud.discoveryengine.v1.DocumentService') :
264
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
265
+ this._protos.google.cloud.discoveryengine.v1.DocumentService, this._opts, this._providedCustomServicePath);
372
266
  // Iterate over each of the methods that the service provides
373
267
  // and create an API call method for each.
374
- const documentServiceStubMethods = [
375
- 'getDocument',
376
- 'listDocuments',
377
- 'createDocument',
378
- 'updateDocument',
379
- 'deleteDocument',
380
- 'importDocuments',
381
- 'purgeDocuments',
382
- 'batchGetDocumentsMetadata',
383
- ];
268
+ const documentServiceStubMethods = ['getDocument', 'listDocuments', 'createDocument', 'updateDocument', 'deleteDocument', 'importDocuments', 'purgeDocuments', 'batchGetDocumentsMetadata'];
384
269
  for (const methodName of documentServiceStubMethods) {
385
270
  const callPromise = this.documentServiceStub.then(stub => (...args) => {
386
271
  if (this._terminated) {
@@ -405,8 +290,7 @@ class DocumentServiceClient {
405
290
  * @returns {string} The DNS address for this service.
406
291
  */
407
292
  static get servicePath() {
408
- if (typeof process === 'object' &&
409
- typeof process.emitWarning === 'function') {
293
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
410
294
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
411
295
  }
412
296
  return 'discoveryengine.googleapis.com';
@@ -417,8 +301,7 @@ class DocumentServiceClient {
417
301
  * @returns {string} The DNS address for this service.
418
302
  */
419
303
  static get apiEndpoint() {
420
- if (typeof process === 'object' &&
421
- typeof process.emitWarning === 'function') {
304
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
422
305
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
423
306
  }
424
307
  return 'discoveryengine.googleapis.com';
@@ -446,7 +329,9 @@ class DocumentServiceClient {
446
329
  * @returns {string[]} List of default scopes.
447
330
  */
448
331
  static get scopes() {
449
- return ['https://www.googleapis.com/auth/cloud-platform'];
332
+ return [
333
+ 'https://www.googleapis.com/auth/cloud-platform'
334
+ ];
450
335
  }
451
336
  /**
452
337
  * Return the project ID used by this class.
@@ -472,13 +357,10 @@ class DocumentServiceClient {
472
357
  options = options || {};
473
358
  options.otherArgs = options.otherArgs || {};
474
359
  options.otherArgs.headers = options.otherArgs.headers || {};
475
- options.otherArgs.headers['x-goog-request-params'] =
476
- this._gaxModule.routingHeader.fromParams({
477
- name: request.name ?? '',
478
- });
479
- this.initialize().catch(err => {
480
- throw err;
360
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
361
+ 'name': request.name ?? '',
481
362
  });
363
+ this.initialize().catch(err => { throw err; });
482
364
  this._log.info('getDocument request %j', request);
483
365
  const wrappedCallback = callback
484
366
  ? (error, response, options, rawResponse) => {
@@ -486,8 +368,7 @@ class DocumentServiceClient {
486
368
  callback(error, response, options, rawResponse); // We verified callback above.
487
369
  }
488
370
  : undefined;
489
- return this.innerApiCalls
490
- .getDocument(request, options, wrappedCallback)
371
+ return this.innerApiCalls.getDocument(request, options, wrappedCallback)
491
372
  ?.then(([response, options, rawResponse]) => {
492
373
  this._log.info('getDocument response %j', response);
493
374
  return [response, options, rawResponse];
@@ -506,13 +387,10 @@ class DocumentServiceClient {
506
387
  options = options || {};
507
388
  options.otherArgs = options.otherArgs || {};
508
389
  options.otherArgs.headers = options.otherArgs.headers || {};
509
- options.otherArgs.headers['x-goog-request-params'] =
510
- this._gaxModule.routingHeader.fromParams({
511
- parent: request.parent ?? '',
512
- });
513
- this.initialize().catch(err => {
514
- throw err;
390
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
391
+ 'parent': request.parent ?? '',
515
392
  });
393
+ this.initialize().catch(err => { throw err; });
516
394
  this._log.info('createDocument request %j', request);
517
395
  const wrappedCallback = callback
518
396
  ? (error, response, options, rawResponse) => {
@@ -520,8 +398,7 @@ class DocumentServiceClient {
520
398
  callback(error, response, options, rawResponse); // We verified callback above.
521
399
  }
522
400
  : undefined;
523
- return this.innerApiCalls
524
- .createDocument(request, options, wrappedCallback)
401
+ return this.innerApiCalls.createDocument(request, options, wrappedCallback)
525
402
  ?.then(([response, options, rawResponse]) => {
526
403
  this._log.info('createDocument response %j', response);
527
404
  return [response, options, rawResponse];
@@ -540,13 +417,10 @@ class DocumentServiceClient {
540
417
  options = options || {};
541
418
  options.otherArgs = options.otherArgs || {};
542
419
  options.otherArgs.headers = options.otherArgs.headers || {};
543
- options.otherArgs.headers['x-goog-request-params'] =
544
- this._gaxModule.routingHeader.fromParams({
545
- 'document.name': request.document.name ?? '',
546
- });
547
- this.initialize().catch(err => {
548
- throw err;
420
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
421
+ 'document.name': request.document.name ?? '',
549
422
  });
423
+ this.initialize().catch(err => { throw err; });
550
424
  this._log.info('updateDocument request %j', request);
551
425
  const wrappedCallback = callback
552
426
  ? (error, response, options, rawResponse) => {
@@ -554,8 +428,7 @@ class DocumentServiceClient {
554
428
  callback(error, response, options, rawResponse); // We verified callback above.
555
429
  }
556
430
  : undefined;
557
- return this.innerApiCalls
558
- .updateDocument(request, options, wrappedCallback)
431
+ return this.innerApiCalls.updateDocument(request, options, wrappedCallback)
559
432
  ?.then(([response, options, rawResponse]) => {
560
433
  this._log.info('updateDocument response %j', response);
561
434
  return [response, options, rawResponse];
@@ -574,13 +447,10 @@ class DocumentServiceClient {
574
447
  options = options || {};
575
448
  options.otherArgs = options.otherArgs || {};
576
449
  options.otherArgs.headers = options.otherArgs.headers || {};
577
- options.otherArgs.headers['x-goog-request-params'] =
578
- this._gaxModule.routingHeader.fromParams({
579
- name: request.name ?? '',
580
- });
581
- this.initialize().catch(err => {
582
- throw err;
450
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
451
+ 'name': request.name ?? '',
583
452
  });
453
+ this.initialize().catch(err => { throw err; });
584
454
  this._log.info('deleteDocument request %j', request);
585
455
  const wrappedCallback = callback
586
456
  ? (error, response, options, rawResponse) => {
@@ -588,8 +458,7 @@ class DocumentServiceClient {
588
458
  callback(error, response, options, rawResponse); // We verified callback above.
589
459
  }
590
460
  : undefined;
591
- return this.innerApiCalls
592
- .deleteDocument(request, options, wrappedCallback)
461
+ return this.innerApiCalls.deleteDocument(request, options, wrappedCallback)
593
462
  ?.then(([response, options, rawResponse]) => {
594
463
  this._log.info('deleteDocument response %j', response);
595
464
  return [response, options, rawResponse];
@@ -608,13 +477,10 @@ class DocumentServiceClient {
608
477
  options = options || {};
609
478
  options.otherArgs = options.otherArgs || {};
610
479
  options.otherArgs.headers = options.otherArgs.headers || {};
611
- options.otherArgs.headers['x-goog-request-params'] =
612
- this._gaxModule.routingHeader.fromParams({
613
- parent: request.parent ?? '',
614
- });
615
- this.initialize().catch(err => {
616
- throw err;
480
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
481
+ 'parent': request.parent ?? '',
617
482
  });
483
+ this.initialize().catch(err => { throw err; });
618
484
  this._log.info('batchGetDocumentsMetadata request %j', request);
619
485
  const wrappedCallback = callback
620
486
  ? (error, response, options, rawResponse) => {
@@ -622,8 +488,7 @@ class DocumentServiceClient {
622
488
  callback(error, response, options, rawResponse); // We verified callback above.
623
489
  }
624
490
  : undefined;
625
- return this.innerApiCalls
626
- .batchGetDocumentsMetadata(request, options, wrappedCallback)
491
+ return this.innerApiCalls.batchGetDocumentsMetadata(request, options, wrappedCallback)
627
492
  ?.then(([response, options, rawResponse]) => {
628
493
  this._log.info('batchGetDocumentsMetadata response %j', response);
629
494
  return [response, options, rawResponse];
@@ -642,13 +507,10 @@ class DocumentServiceClient {
642
507
  options = options || {};
643
508
  options.otherArgs = options.otherArgs || {};
644
509
  options.otherArgs.headers = options.otherArgs.headers || {};
645
- options.otherArgs.headers['x-goog-request-params'] =
646
- this._gaxModule.routingHeader.fromParams({
647
- parent: request.parent ?? '',
648
- });
649
- this.initialize().catch(err => {
650
- throw err;
510
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
511
+ 'parent': request.parent ?? '',
651
512
  });
513
+ this.initialize().catch(err => { throw err; });
652
514
  const wrappedCallback = callback
653
515
  ? (error, response, rawResponse, _) => {
654
516
  this._log.info('importDocuments response %j', rawResponse);
@@ -656,8 +518,7 @@ class DocumentServiceClient {
656
518
  }
657
519
  : undefined;
658
520
  this._log.info('importDocuments request %j', request);
659
- return this.innerApiCalls
660
- .importDocuments(request, options, wrappedCallback)
521
+ return this.innerApiCalls.importDocuments(request, options, wrappedCallback)
661
522
  ?.then(([response, rawResponse, _]) => {
662
523
  this._log.info('importDocuments response %j', rawResponse);
663
524
  return [response, rawResponse, _];
@@ -694,13 +555,10 @@ class DocumentServiceClient {
694
555
  options = options || {};
695
556
  options.otherArgs = options.otherArgs || {};
696
557
  options.otherArgs.headers = options.otherArgs.headers || {};
697
- options.otherArgs.headers['x-goog-request-params'] =
698
- this._gaxModule.routingHeader.fromParams({
699
- parent: request.parent ?? '',
700
- });
701
- this.initialize().catch(err => {
702
- throw err;
558
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
559
+ 'parent': request.parent ?? '',
703
560
  });
561
+ this.initialize().catch(err => { throw err; });
704
562
  const wrappedCallback = callback
705
563
  ? (error, response, rawResponse, _) => {
706
564
  this._log.info('purgeDocuments response %j', rawResponse);
@@ -708,8 +566,7 @@ class DocumentServiceClient {
708
566
  }
709
567
  : undefined;
710
568
  this._log.info('purgeDocuments request %j', request);
711
- return this.innerApiCalls
712
- .purgeDocuments(request, options, wrappedCallback)
569
+ return this.innerApiCalls.purgeDocuments(request, options, wrappedCallback)
713
570
  ?.then(([response, rawResponse, _]) => {
714
571
  this._log.info('purgeDocuments response %j', rawResponse);
715
572
  return [response, rawResponse, _];
@@ -746,13 +603,10 @@ class DocumentServiceClient {
746
603
  options = options || {};
747
604
  options.otherArgs = options.otherArgs || {};
748
605
  options.otherArgs.headers = options.otherArgs.headers || {};
749
- options.otherArgs.headers['x-goog-request-params'] =
750
- this._gaxModule.routingHeader.fromParams({
751
- parent: request.parent ?? '',
752
- });
753
- this.initialize().catch(err => {
754
- throw err;
606
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
607
+ 'parent': request.parent ?? '',
755
608
  });
609
+ this.initialize().catch(err => { throw err; });
756
610
  const wrappedCallback = callback
757
611
  ? (error, values, nextPageRequest, rawResponse) => {
758
612
  this._log.info('listDocuments values %j', values);
@@ -814,15 +668,12 @@ class DocumentServiceClient {
814
668
  options = options || {};
815
669
  options.otherArgs = options.otherArgs || {};
816
670
  options.otherArgs.headers = options.otherArgs.headers || {};
817
- options.otherArgs.headers['x-goog-request-params'] =
818
- this._gaxModule.routingHeader.fromParams({
819
- parent: request.parent ?? '',
820
- });
671
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
672
+ 'parent': request.parent ?? '',
673
+ });
821
674
  const defaultCallSettings = this._defaults['listDocuments'];
822
675
  const callSettings = defaultCallSettings.merge(options);
823
- this.initialize().catch(err => {
824
- throw err;
825
- });
676
+ this.initialize().catch(err => { throw err; });
826
677
  this._log.info('listDocuments stream %j', request);
827
678
  return this.descriptors.page.listDocuments.createStream(this.innerApiCalls.listDocuments, request, callSettings);
828
679
  }
@@ -876,103 +727,100 @@ class DocumentServiceClient {
876
727
  options = options || {};
877
728
  options.otherArgs = options.otherArgs || {};
878
729
  options.otherArgs.headers = options.otherArgs.headers || {};
879
- options.otherArgs.headers['x-goog-request-params'] =
880
- this._gaxModule.routingHeader.fromParams({
881
- parent: request.parent ?? '',
882
- });
730
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
731
+ 'parent': request.parent ?? '',
732
+ });
883
733
  const defaultCallSettings = this._defaults['listDocuments'];
884
734
  const callSettings = defaultCallSettings.merge(options);
885
- this.initialize().catch(err => {
886
- throw err;
887
- });
735
+ this.initialize().catch(err => { throw err; });
888
736
  this._log.info('listDocuments iterate %j', request);
889
737
  return this.descriptors.page.listDocuments.asyncIterate(this.innerApiCalls['listDocuments'], request, callSettings);
890
738
  }
891
739
  /**
892
- * Gets information about a location.
893
- *
894
- * @param {Object} request
895
- * The request object that will be sent.
896
- * @param {string} request.name
897
- * Resource name for the location.
898
- * @param {object} [options]
899
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
900
- * @returns {Promise} - The promise which resolves to an array.
901
- * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
902
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
903
- * for more details and examples.
904
- * @example
905
- * ```
906
- * const [response] = await client.getLocation(request);
907
- * ```
908
- */
740
+ * Gets information about a location.
741
+ *
742
+ * @param {Object} request
743
+ * The request object that will be sent.
744
+ * @param {string} request.name
745
+ * Resource name for the location.
746
+ * @param {object} [options]
747
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
748
+ * @returns {Promise} - The promise which resolves to an array.
749
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
750
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
751
+ * for more details and examples.
752
+ * @example
753
+ * ```
754
+ * const [response] = await client.getLocation(request);
755
+ * ```
756
+ */
909
757
  getLocation(request, options, callback) {
910
758
  return this.locationsClient.getLocation(request, options, callback);
911
759
  }
912
760
  /**
913
- * Lists information about the supported locations for this service. Returns an iterable object.
914
- *
915
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
916
- * @param {Object} request
917
- * The request object that will be sent.
918
- * @param {string} request.name
919
- * The resource that owns the locations collection, if applicable.
920
- * @param {string} request.filter
921
- * The standard list filter.
922
- * @param {number} request.pageSize
923
- * The standard list page size.
924
- * @param {string} request.pageToken
925
- * The standard list page token.
926
- * @param {object} [options]
927
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
928
- * @returns {Object}
929
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
930
- * When you iterate the returned iterable, each element will be an object representing
931
- * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
932
- * so you can stop the iteration when you don't need more results.
933
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
934
- * for more details and examples.
935
- * @example
936
- * ```
937
- * const iterable = client.listLocationsAsync(request);
938
- * for await (const response of iterable) {
939
- * // process response
940
- * }
941
- * ```
942
- */
761
+ * Lists information about the supported locations for this service. Returns an iterable object.
762
+ *
763
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
764
+ * @param {Object} request
765
+ * The request object that will be sent.
766
+ * @param {string} request.name
767
+ * The resource that owns the locations collection, if applicable.
768
+ * @param {string} request.filter
769
+ * The standard list filter.
770
+ * @param {number} request.pageSize
771
+ * The standard list page size.
772
+ * @param {string} request.pageToken
773
+ * The standard list page token.
774
+ * @param {object} [options]
775
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
776
+ * @returns {Object}
777
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
778
+ * When you iterate the returned iterable, each element will be an object representing
779
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
780
+ * so you can stop the iteration when you don't need more results.
781
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
782
+ * for more details and examples.
783
+ * @example
784
+ * ```
785
+ * const iterable = client.listLocationsAsync(request);
786
+ * for await (const response of iterable) {
787
+ * // process response
788
+ * }
789
+ * ```
790
+ */
943
791
  listLocationsAsync(request, options) {
944
792
  return this.locationsClient.listLocationsAsync(request, options);
945
793
  }
946
794
  /**
947
- * Gets the latest state of a long-running operation. Clients can use this
948
- * method to poll the operation result at intervals as recommended by the API
949
- * service.
950
- *
951
- * @param {Object} request - The request object that will be sent.
952
- * @param {string} request.name - The name of the operation resource.
953
- * @param {Object=} options
954
- * Optional parameters. You can override the default settings for this call,
955
- * e.g, timeout, retries, paginations, etc. See {@link
956
- * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
957
- * for the details.
958
- * @param {function(?Error, ?Object)=} callback
959
- * The function which will be called with the result of the API call.
960
- *
961
- * The second parameter to the callback is an object representing
962
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
963
- * @return {Promise} - The promise which resolves to an array.
964
- * The first element of the array is an object representing
965
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
966
- * The promise has a method named "cancel" which cancels the ongoing API call.
967
- *
968
- * @example
969
- * ```
970
- * const client = longrunning.operationsClient();
971
- * const name = '';
972
- * const [response] = await client.getOperation({name});
973
- * // doThingsWith(response)
974
- * ```
975
- */
795
+ * Gets the latest state of a long-running operation. Clients can use this
796
+ * method to poll the operation result at intervals as recommended by the API
797
+ * service.
798
+ *
799
+ * @param {Object} request - The request object that will be sent.
800
+ * @param {string} request.name - The name of the operation resource.
801
+ * @param {Object=} options
802
+ * Optional parameters. You can override the default settings for this call,
803
+ * e.g, timeout, retries, paginations, etc. See {@link
804
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
805
+ * for the details.
806
+ * @param {function(?Error, ?Object)=} callback
807
+ * The function which will be called with the result of the API call.
808
+ *
809
+ * The second parameter to the callback is an object representing
810
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
811
+ * @return {Promise} - The promise which resolves to an array.
812
+ * The first element of the array is an object representing
813
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
814
+ * The promise has a method named "cancel" which cancels the ongoing API call.
815
+ *
816
+ * @example
817
+ * ```
818
+ * const client = longrunning.operationsClient();
819
+ * const name = '';
820
+ * const [response] = await client.getOperation({name});
821
+ * // doThingsWith(response)
822
+ * ```
823
+ */
976
824
  getOperation(request, optionsOrCallback, callback) {
977
825
  let options;
978
826
  if (typeof optionsOrCallback === 'function' && callback === undefined) {
@@ -1837,6 +1685,75 @@ class DocumentServiceClient {
1837
1685
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1838
1686
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1839
1687
  }
1688
+ /**
1689
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1690
+ *
1691
+ * @param {string} project
1692
+ * @param {string} location
1693
+ * @param {string} collection
1694
+ * @param {string} data_store
1695
+ * @param {string} serving_config
1696
+ * @returns {string} Resource name string.
1697
+ */
1698
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1699
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1700
+ project: project,
1701
+ location: location,
1702
+ collection: collection,
1703
+ data_store: dataStore,
1704
+ serving_config: servingConfig,
1705
+ });
1706
+ }
1707
+ /**
1708
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1709
+ *
1710
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1711
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1712
+ * @returns {string} A string representing the project.
1713
+ */
1714
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1715
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1716
+ }
1717
+ /**
1718
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1719
+ *
1720
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1721
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1722
+ * @returns {string} A string representing the location.
1723
+ */
1724
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1725
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1726
+ }
1727
+ /**
1728
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1729
+ *
1730
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1731
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1732
+ * @returns {string} A string representing the collection.
1733
+ */
1734
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1735
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1736
+ }
1737
+ /**
1738
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1739
+ *
1740
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1741
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1742
+ * @returns {string} A string representing the data_store.
1743
+ */
1744
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1745
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1746
+ }
1747
+ /**
1748
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1749
+ *
1750
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1751
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1752
+ * @returns {string} A string representing the serving_config.
1753
+ */
1754
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1755
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1756
+ }
1840
1757
  /**
1841
1758
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1842
1759
  *
@@ -2044,6 +1961,75 @@ class DocumentServiceClient {
2044
1961
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
2045
1962
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
2046
1963
  }
1964
+ /**
1965
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1966
+ *
1967
+ * @param {string} project
1968
+ * @param {string} location
1969
+ * @param {string} collection
1970
+ * @param {string} data_store
1971
+ * @param {string} sitemap
1972
+ * @returns {string} Resource name string.
1973
+ */
1974
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1975
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1976
+ project: project,
1977
+ location: location,
1978
+ collection: collection,
1979
+ data_store: dataStore,
1980
+ sitemap: sitemap,
1981
+ });
1982
+ }
1983
+ /**
1984
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1985
+ *
1986
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1987
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1988
+ * @returns {string} A string representing the project.
1989
+ */
1990
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1991
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1992
+ }
1993
+ /**
1994
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1995
+ *
1996
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1997
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1998
+ * @returns {string} A string representing the location.
1999
+ */
2000
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2001
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
2002
+ }
2003
+ /**
2004
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2005
+ *
2006
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2007
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2008
+ * @returns {string} A string representing the collection.
2009
+ */
2010
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2011
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
2012
+ }
2013
+ /**
2014
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2015
+ *
2016
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2017
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2018
+ * @returns {string} A string representing the data_store.
2019
+ */
2020
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2021
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
2022
+ }
2023
+ /**
2024
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2025
+ *
2026
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2027
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2028
+ * @returns {string} A string representing the sitemap.
2029
+ */
2030
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2031
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
2032
+ }
2047
2033
  /**
2048
2034
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
2049
2035
  *
@@ -2251,6 +2237,75 @@ class DocumentServiceClient {
2251
2237
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2252
2238
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
2253
2239
  }
2240
+ /**
2241
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
2242
+ *
2243
+ * @param {string} project
2244
+ * @param {string} location
2245
+ * @param {string} collection
2246
+ * @param {string} engine
2247
+ * @param {string} serving_config
2248
+ * @returns {string} Resource name string.
2249
+ */
2250
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
2251
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
2252
+ project: project,
2253
+ location: location,
2254
+ collection: collection,
2255
+ engine: engine,
2256
+ serving_config: servingConfig,
2257
+ });
2258
+ }
2259
+ /**
2260
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
2261
+ *
2262
+ * @param {string} projectLocationCollectionEngineServingConfigName
2263
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2264
+ * @returns {string} A string representing the project.
2265
+ */
2266
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2267
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
2268
+ }
2269
+ /**
2270
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
2271
+ *
2272
+ * @param {string} projectLocationCollectionEngineServingConfigName
2273
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2274
+ * @returns {string} A string representing the location.
2275
+ */
2276
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2277
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
2278
+ }
2279
+ /**
2280
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
2281
+ *
2282
+ * @param {string} projectLocationCollectionEngineServingConfigName
2283
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2284
+ * @returns {string} A string representing the collection.
2285
+ */
2286
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2287
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
2288
+ }
2289
+ /**
2290
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
2291
+ *
2292
+ * @param {string} projectLocationCollectionEngineServingConfigName
2293
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2294
+ * @returns {string} A string representing the engine.
2295
+ */
2296
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2297
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
2298
+ }
2299
+ /**
2300
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
2301
+ *
2302
+ * @param {string} projectLocationCollectionEngineServingConfigName
2303
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2304
+ * @returns {string} A string representing the serving_config.
2305
+ */
2306
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2307
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2308
+ }
2254
2309
  /**
2255
2310
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2256
2311
  *
@@ -2926,6 +2981,63 @@ class DocumentServiceClient {
2926
2981
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2927
2982
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2928
2983
  }
2984
+ /**
2985
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2986
+ *
2987
+ * @param {string} project
2988
+ * @param {string} location
2989
+ * @param {string} data_store
2990
+ * @param {string} serving_config
2991
+ * @returns {string} Resource name string.
2992
+ */
2993
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2994
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2995
+ project: project,
2996
+ location: location,
2997
+ data_store: dataStore,
2998
+ serving_config: servingConfig,
2999
+ });
3000
+ }
3001
+ /**
3002
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
3003
+ *
3004
+ * @param {string} projectLocationDataStoreServingConfigName
3005
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3006
+ * @returns {string} A string representing the project.
3007
+ */
3008
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3009
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
3010
+ }
3011
+ /**
3012
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
3013
+ *
3014
+ * @param {string} projectLocationDataStoreServingConfigName
3015
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3016
+ * @returns {string} A string representing the location.
3017
+ */
3018
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3019
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
3020
+ }
3021
+ /**
3022
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
3023
+ *
3024
+ * @param {string} projectLocationDataStoreServingConfigName
3025
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3026
+ * @returns {string} A string representing the data_store.
3027
+ */
3028
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3029
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
3030
+ }
3031
+ /**
3032
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
3033
+ *
3034
+ * @param {string} projectLocationDataStoreServingConfigName
3035
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
3036
+ * @returns {string} A string representing the serving_config.
3037
+ */
3038
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3039
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
3040
+ }
2929
3041
  /**
2930
3042
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2931
3043
  *
@@ -3097,6 +3209,63 @@ class DocumentServiceClient {
3097
3209
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3098
3210
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
3099
3211
  }
3212
+ /**
3213
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
3214
+ *
3215
+ * @param {string} project
3216
+ * @param {string} location
3217
+ * @param {string} data_store
3218
+ * @param {string} sitemap
3219
+ * @returns {string} Resource name string.
3220
+ */
3221
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
3222
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
3223
+ project: project,
3224
+ location: location,
3225
+ data_store: dataStore,
3226
+ sitemap: sitemap,
3227
+ });
3228
+ }
3229
+ /**
3230
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3231
+ *
3232
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3233
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3234
+ * @returns {string} A string representing the project.
3235
+ */
3236
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3237
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
3238
+ }
3239
+ /**
3240
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3241
+ *
3242
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3243
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3244
+ * @returns {string} A string representing the location.
3245
+ */
3246
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3247
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
3248
+ }
3249
+ /**
3250
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3251
+ *
3252
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3253
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3254
+ * @returns {string} A string representing the data_store.
3255
+ */
3256
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3257
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
3258
+ }
3259
+ /**
3260
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3261
+ *
3262
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3263
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3264
+ * @returns {string} A string representing the sitemap.
3265
+ */
3266
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3267
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
3268
+ }
3100
3269
  /**
3101
3270
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
3102
3271
  *
@@ -3166,8 +3335,8 @@ class DocumentServiceClient {
3166
3335
  this._log.info('ending gRPC channel');
3167
3336
  this._terminated = true;
3168
3337
  stub.close();
3169
- this.locationsClient.close();
3170
- this.operationsClient.close();
3338
+ this.locationsClient.close().catch(err => { throw err; });
3339
+ void this.operationsClient.close();
3171
3340
  });
3172
3341
  }
3173
3342
  return Promise.resolve();