@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
@@ -100,26 +100,17 @@ class ControlServiceClient {
100
100
  constructor(opts, gaxInstance) {
101
101
  // Ensure that options include all the required fields.
102
102
  const staticMembers = this.constructor;
103
- if (opts?.universe_domain &&
104
- opts?.universeDomain &&
105
- opts?.universe_domain !== opts?.universeDomain) {
103
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
106
104
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
107
105
  }
108
- const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
109
- ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
110
- : undefined;
111
- this._universeDomain =
112
- opts?.universeDomain ??
113
- opts?.universe_domain ??
114
- universeDomainEnvVar ??
115
- 'googleapis.com';
106
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
107
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
116
108
  this._servicePath = 'discoveryengine.' + this._universeDomain;
117
109
  const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
118
110
  this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
119
111
  const port = opts?.port || staticMembers.port;
120
112
  const clientConfig = opts?.clientConfig ?? {};
121
- const fallback = opts?.fallback ??
122
- (typeof window !== 'undefined' && typeof window?.fetch === 'function');
113
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
123
114
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
124
115
  // Request numeric enum values if REST transport is used.
125
116
  opts.numericEnums = true;
@@ -149,7 +140,10 @@ class ControlServiceClient {
149
140
  }
150
141
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
151
142
  // Determine the client header string.
152
- const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
143
+ const clientHeader = [
144
+ `gax/${this._gaxModule.version}`,
145
+ `gapic/${version}`,
146
+ ];
153
147
  if (typeof process === 'object' && 'versions' in process) {
154
148
  clientHeader.push(`gl-node/${process.versions.node}`);
155
149
  }
@@ -182,12 +176,15 @@ class ControlServiceClient {
182
176
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
183
177
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
184
178
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
179
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
185
180
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
186
181
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
187
182
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
183
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
188
184
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
189
185
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
190
186
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
187
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
191
188
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
192
189
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
193
190
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -198,16 +195,18 @@ class ControlServiceClient {
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
- listControls: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'controls'),
209
+ listControls: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'controls')
211
210
  };
212
211
  // Put together the default options sent with requests.
213
212
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.ControlService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -236,19 +235,13 @@ class ControlServiceClient {
236
235
  }
237
236
  // Put together the "service stub" for
238
237
  // google.cloud.discoveryengine.v1.ControlService.
239
- this.controlServiceStub = this._gaxGrpc.createStub(this._opts.fallback
240
- ? this._protos.lookupService('google.cloud.discoveryengine.v1.ControlService')
241
- : // eslint-disable-next-line @typescript-eslint/no-explicit-any
242
- this._protos.google.cloud.discoveryengine.v1.ControlService, this._opts, this._providedCustomServicePath);
238
+ this.controlServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
239
+ this._protos.lookupService('google.cloud.discoveryengine.v1.ControlService') :
240
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
241
+ this._protos.google.cloud.discoveryengine.v1.ControlService, this._opts, this._providedCustomServicePath);
243
242
  // Iterate over each of the methods that the service provides
244
243
  // and create an API call method for each.
245
- const controlServiceStubMethods = [
246
- 'createControl',
247
- 'deleteControl',
248
- 'updateControl',
249
- 'getControl',
250
- 'listControls',
251
- ];
244
+ const controlServiceStubMethods = ['createControl', 'deleteControl', 'updateControl', 'getControl', 'listControls'];
252
245
  for (const methodName of controlServiceStubMethods) {
253
246
  const callPromise = this.controlServiceStub.then(stub => (...args) => {
254
247
  if (this._terminated) {
@@ -259,7 +252,8 @@ class ControlServiceClient {
259
252
  }, (err) => () => {
260
253
  throw err;
261
254
  });
262
- const descriptor = this.descriptors.page[methodName] || undefined;
255
+ const descriptor = this.descriptors.page[methodName] ||
256
+ undefined;
263
257
  const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
264
258
  this.innerApiCalls[methodName] = apiCall;
265
259
  }
@@ -271,8 +265,7 @@ class ControlServiceClient {
271
265
  * @returns {string} The DNS address for this service.
272
266
  */
273
267
  static get servicePath() {
274
- if (typeof process === 'object' &&
275
- typeof process.emitWarning === 'function') {
268
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
276
269
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
277
270
  }
278
271
  return 'discoveryengine.googleapis.com';
@@ -283,8 +276,7 @@ class ControlServiceClient {
283
276
  * @returns {string} The DNS address for this service.
284
277
  */
285
278
  static get apiEndpoint() {
286
- if (typeof process === 'object' &&
287
- typeof process.emitWarning === 'function') {
279
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
288
280
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
289
281
  }
290
282
  return 'discoveryengine.googleapis.com';
@@ -312,7 +304,9 @@ class ControlServiceClient {
312
304
  * @returns {string[]} List of default scopes.
313
305
  */
314
306
  static get scopes() {
315
- return ['https://www.googleapis.com/auth/cloud-platform'];
307
+ return [
308
+ 'https://www.googleapis.com/auth/cloud-platform'
309
+ ];
316
310
  }
317
311
  /**
318
312
  * Return the project ID used by this class.
@@ -338,13 +332,10 @@ class ControlServiceClient {
338
332
  options = options || {};
339
333
  options.otherArgs = options.otherArgs || {};
340
334
  options.otherArgs.headers = options.otherArgs.headers || {};
341
- options.otherArgs.headers['x-goog-request-params'] =
342
- this._gaxModule.routingHeader.fromParams({
343
- parent: request.parent ?? '',
344
- });
345
- this.initialize().catch(err => {
346
- throw err;
335
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
336
+ 'parent': request.parent ?? '',
347
337
  });
338
+ this.initialize().catch(err => { throw err; });
348
339
  this._log.info('createControl request %j', request);
349
340
  const wrappedCallback = callback
350
341
  ? (error, response, options, rawResponse) => {
@@ -352,8 +343,7 @@ class ControlServiceClient {
352
343
  callback(error, response, options, rawResponse); // We verified callback above.
353
344
  }
354
345
  : undefined;
355
- return this.innerApiCalls
356
- .createControl(request, options, wrappedCallback)
346
+ return this.innerApiCalls.createControl(request, options, wrappedCallback)
357
347
  ?.then(([response, options, rawResponse]) => {
358
348
  this._log.info('createControl response %j', response);
359
349
  return [response, options, rawResponse];
@@ -372,13 +362,10 @@ class ControlServiceClient {
372
362
  options = options || {};
373
363
  options.otherArgs = options.otherArgs || {};
374
364
  options.otherArgs.headers = options.otherArgs.headers || {};
375
- options.otherArgs.headers['x-goog-request-params'] =
376
- this._gaxModule.routingHeader.fromParams({
377
- name: request.name ?? '',
378
- });
379
- this.initialize().catch(err => {
380
- throw err;
365
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
366
+ 'name': request.name ?? '',
381
367
  });
368
+ this.initialize().catch(err => { throw err; });
382
369
  this._log.info('deleteControl request %j', request);
383
370
  const wrappedCallback = callback
384
371
  ? (error, response, options, rawResponse) => {
@@ -386,8 +373,7 @@ class ControlServiceClient {
386
373
  callback(error, response, options, rawResponse); // We verified callback above.
387
374
  }
388
375
  : undefined;
389
- return this.innerApiCalls
390
- .deleteControl(request, options, wrappedCallback)
376
+ return this.innerApiCalls.deleteControl(request, options, wrappedCallback)
391
377
  ?.then(([response, options, rawResponse]) => {
392
378
  this._log.info('deleteControl response %j', response);
393
379
  return [response, options, rawResponse];
@@ -406,13 +392,10 @@ class ControlServiceClient {
406
392
  options = options || {};
407
393
  options.otherArgs = options.otherArgs || {};
408
394
  options.otherArgs.headers = options.otherArgs.headers || {};
409
- options.otherArgs.headers['x-goog-request-params'] =
410
- this._gaxModule.routingHeader.fromParams({
411
- 'control.name': request.control.name ?? '',
412
- });
413
- this.initialize().catch(err => {
414
- throw err;
395
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
396
+ 'control.name': request.control.name ?? '',
415
397
  });
398
+ this.initialize().catch(err => { throw err; });
416
399
  this._log.info('updateControl request %j', request);
417
400
  const wrappedCallback = callback
418
401
  ? (error, response, options, rawResponse) => {
@@ -420,8 +403,7 @@ class ControlServiceClient {
420
403
  callback(error, response, options, rawResponse); // We verified callback above.
421
404
  }
422
405
  : undefined;
423
- return this.innerApiCalls
424
- .updateControl(request, options, wrappedCallback)
406
+ return this.innerApiCalls.updateControl(request, options, wrappedCallback)
425
407
  ?.then(([response, options, rawResponse]) => {
426
408
  this._log.info('updateControl response %j', response);
427
409
  return [response, options, rawResponse];
@@ -440,13 +422,10 @@ class ControlServiceClient {
440
422
  options = options || {};
441
423
  options.otherArgs = options.otherArgs || {};
442
424
  options.otherArgs.headers = options.otherArgs.headers || {};
443
- options.otherArgs.headers['x-goog-request-params'] =
444
- this._gaxModule.routingHeader.fromParams({
445
- name: request.name ?? '',
446
- });
447
- this.initialize().catch(err => {
448
- throw err;
425
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
426
+ 'name': request.name ?? '',
449
427
  });
428
+ this.initialize().catch(err => { throw err; });
450
429
  this._log.info('getControl request %j', request);
451
430
  const wrappedCallback = callback
452
431
  ? (error, response, options, rawResponse) => {
@@ -454,8 +433,7 @@ class ControlServiceClient {
454
433
  callback(error, response, options, rawResponse); // We verified callback above.
455
434
  }
456
435
  : undefined;
457
- return this.innerApiCalls
458
- .getControl(request, options, wrappedCallback)
436
+ return this.innerApiCalls.getControl(request, options, wrappedCallback)
459
437
  ?.then(([response, options, rawResponse]) => {
460
438
  this._log.info('getControl response %j', response);
461
439
  return [response, options, rawResponse];
@@ -474,13 +452,10 @@ class ControlServiceClient {
474
452
  options = options || {};
475
453
  options.otherArgs = options.otherArgs || {};
476
454
  options.otherArgs.headers = options.otherArgs.headers || {};
477
- options.otherArgs.headers['x-goog-request-params'] =
478
- this._gaxModule.routingHeader.fromParams({
479
- parent: request.parent ?? '',
480
- });
481
- this.initialize().catch(err => {
482
- throw err;
455
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
456
+ 'parent': request.parent ?? '',
483
457
  });
458
+ this.initialize().catch(err => { throw err; });
484
459
  const wrappedCallback = callback
485
460
  ? (error, values, nextPageRequest, rawResponse) => {
486
461
  this._log.info('listControls values %j', values);
@@ -532,15 +507,12 @@ class ControlServiceClient {
532
507
  options = options || {};
533
508
  options.otherArgs = options.otherArgs || {};
534
509
  options.otherArgs.headers = options.otherArgs.headers || {};
535
- options.otherArgs.headers['x-goog-request-params'] =
536
- this._gaxModule.routingHeader.fromParams({
537
- parent: request.parent ?? '',
538
- });
510
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
511
+ 'parent': request.parent ?? '',
512
+ });
539
513
  const defaultCallSettings = this._defaults['listControls'];
540
514
  const callSettings = defaultCallSettings.merge(options);
541
- this.initialize().catch(err => {
542
- throw err;
543
- });
515
+ this.initialize().catch(err => { throw err; });
544
516
  this._log.info('listControls stream %j', request);
545
517
  return this.descriptors.page.listControls.createStream(this.innerApiCalls.listControls, request, callSettings);
546
518
  }
@@ -584,70 +556,67 @@ class ControlServiceClient {
584
556
  options = options || {};
585
557
  options.otherArgs = options.otherArgs || {};
586
558
  options.otherArgs.headers = options.otherArgs.headers || {};
587
- options.otherArgs.headers['x-goog-request-params'] =
588
- this._gaxModule.routingHeader.fromParams({
589
- parent: request.parent ?? '',
590
- });
559
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
560
+ 'parent': request.parent ?? '',
561
+ });
591
562
  const defaultCallSettings = this._defaults['listControls'];
592
563
  const callSettings = defaultCallSettings.merge(options);
593
- this.initialize().catch(err => {
594
- throw err;
595
- });
564
+ this.initialize().catch(err => { throw err; });
596
565
  this._log.info('listControls iterate %j', request);
597
566
  return this.descriptors.page.listControls.asyncIterate(this.innerApiCalls['listControls'], request, callSettings);
598
567
  }
599
568
  /**
600
- * Gets information about a location.
601
- *
602
- * @param {Object} request
603
- * The request object that will be sent.
604
- * @param {string} request.name
605
- * Resource name for the location.
606
- * @param {object} [options]
607
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
608
- * @returns {Promise} - The promise which resolves to an array.
609
- * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
610
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
611
- * for more details and examples.
612
- * @example
613
- * ```
614
- * const [response] = await client.getLocation(request);
615
- * ```
616
- */
569
+ * Gets information about a location.
570
+ *
571
+ * @param {Object} request
572
+ * The request object that will be sent.
573
+ * @param {string} request.name
574
+ * Resource name for the location.
575
+ * @param {object} [options]
576
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
577
+ * @returns {Promise} - The promise which resolves to an array.
578
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
579
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
580
+ * for more details and examples.
581
+ * @example
582
+ * ```
583
+ * const [response] = await client.getLocation(request);
584
+ * ```
585
+ */
617
586
  getLocation(request, options, callback) {
618
587
  return this.locationsClient.getLocation(request, options, callback);
619
588
  }
620
589
  /**
621
- * Lists information about the supported locations for this service. Returns an iterable object.
622
- *
623
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
624
- * @param {Object} request
625
- * The request object that will be sent.
626
- * @param {string} request.name
627
- * The resource that owns the locations collection, if applicable.
628
- * @param {string} request.filter
629
- * The standard list filter.
630
- * @param {number} request.pageSize
631
- * The standard list page size.
632
- * @param {string} request.pageToken
633
- * The standard list page token.
634
- * @param {object} [options]
635
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
636
- * @returns {Object}
637
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
638
- * When you iterate the returned iterable, each element will be an object representing
639
- * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
640
- * so you can stop the iteration when you don't need more results.
641
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
642
- * for more details and examples.
643
- * @example
644
- * ```
645
- * const iterable = client.listLocationsAsync(request);
646
- * for await (const response of iterable) {
647
- * // process response
648
- * }
649
- * ```
650
- */
590
+ * Lists information about the supported locations for this service. Returns an iterable object.
591
+ *
592
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
593
+ * @param {Object} request
594
+ * The request object that will be sent.
595
+ * @param {string} request.name
596
+ * The resource that owns the locations collection, if applicable.
597
+ * @param {string} request.filter
598
+ * The standard list filter.
599
+ * @param {number} request.pageSize
600
+ * The standard list page size.
601
+ * @param {string} request.pageToken
602
+ * The standard list page token.
603
+ * @param {object} [options]
604
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
605
+ * @returns {Object}
606
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
607
+ * When you iterate the returned iterable, each element will be an object representing
608
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
609
+ * so you can stop the iteration when you don't need more results.
610
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
611
+ * for more details and examples.
612
+ * @example
613
+ * ```
614
+ * const iterable = client.listLocationsAsync(request);
615
+ * for await (const response of iterable) {
616
+ * // process response
617
+ * }
618
+ * ```
619
+ */
651
620
  listLocationsAsync(request, options) {
652
621
  return this.locationsClient.listLocationsAsync(request, options);
653
622
  }
@@ -1329,6 +1298,75 @@ class ControlServiceClient {
1329
1298
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1330
1299
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1331
1300
  }
1301
+ /**
1302
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1303
+ *
1304
+ * @param {string} project
1305
+ * @param {string} location
1306
+ * @param {string} collection
1307
+ * @param {string} data_store
1308
+ * @param {string} serving_config
1309
+ * @returns {string} Resource name string.
1310
+ */
1311
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1312
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1313
+ project: project,
1314
+ location: location,
1315
+ collection: collection,
1316
+ data_store: dataStore,
1317
+ serving_config: servingConfig,
1318
+ });
1319
+ }
1320
+ /**
1321
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1322
+ *
1323
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1324
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1325
+ * @returns {string} A string representing the project.
1326
+ */
1327
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1328
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1329
+ }
1330
+ /**
1331
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1332
+ *
1333
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1334
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1335
+ * @returns {string} A string representing the location.
1336
+ */
1337
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1338
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1339
+ }
1340
+ /**
1341
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1342
+ *
1343
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1344
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1345
+ * @returns {string} A string representing the collection.
1346
+ */
1347
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1348
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1349
+ }
1350
+ /**
1351
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1352
+ *
1353
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1354
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1355
+ * @returns {string} A string representing the data_store.
1356
+ */
1357
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1358
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1359
+ }
1360
+ /**
1361
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1362
+ *
1363
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1364
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1365
+ * @returns {string} A string representing the serving_config.
1366
+ */
1367
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1368
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1369
+ }
1332
1370
  /**
1333
1371
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1334
1372
  *
@@ -1536,6 +1574,75 @@ class ControlServiceClient {
1536
1574
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1537
1575
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1538
1576
  }
1577
+ /**
1578
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1579
+ *
1580
+ * @param {string} project
1581
+ * @param {string} location
1582
+ * @param {string} collection
1583
+ * @param {string} data_store
1584
+ * @param {string} sitemap
1585
+ * @returns {string} Resource name string.
1586
+ */
1587
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1588
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1589
+ project: project,
1590
+ location: location,
1591
+ collection: collection,
1592
+ data_store: dataStore,
1593
+ sitemap: sitemap,
1594
+ });
1595
+ }
1596
+ /**
1597
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1598
+ *
1599
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1600
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1601
+ * @returns {string} A string representing the project.
1602
+ */
1603
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1604
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1605
+ }
1606
+ /**
1607
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1608
+ *
1609
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1610
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1611
+ * @returns {string} A string representing the location.
1612
+ */
1613
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1614
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1615
+ }
1616
+ /**
1617
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1618
+ *
1619
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1620
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1621
+ * @returns {string} A string representing the collection.
1622
+ */
1623
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1624
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1625
+ }
1626
+ /**
1627
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1628
+ *
1629
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1630
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1631
+ * @returns {string} A string representing the data_store.
1632
+ */
1633
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1634
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
1635
+ }
1636
+ /**
1637
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1638
+ *
1639
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1640
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1641
+ * @returns {string} A string representing the sitemap.
1642
+ */
1643
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1644
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
1645
+ }
1539
1646
  /**
1540
1647
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1541
1648
  *
@@ -1743,6 +1850,75 @@ class ControlServiceClient {
1743
1850
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1744
1851
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1745
1852
  }
1853
+ /**
1854
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1855
+ *
1856
+ * @param {string} project
1857
+ * @param {string} location
1858
+ * @param {string} collection
1859
+ * @param {string} engine
1860
+ * @param {string} serving_config
1861
+ * @returns {string} Resource name string.
1862
+ */
1863
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1864
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1865
+ project: project,
1866
+ location: location,
1867
+ collection: collection,
1868
+ engine: engine,
1869
+ serving_config: servingConfig,
1870
+ });
1871
+ }
1872
+ /**
1873
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1874
+ *
1875
+ * @param {string} projectLocationCollectionEngineServingConfigName
1876
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1877
+ * @returns {string} A string representing the project.
1878
+ */
1879
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1880
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1881
+ }
1882
+ /**
1883
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1884
+ *
1885
+ * @param {string} projectLocationCollectionEngineServingConfigName
1886
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1887
+ * @returns {string} A string representing the location.
1888
+ */
1889
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1890
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1891
+ }
1892
+ /**
1893
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1894
+ *
1895
+ * @param {string} projectLocationCollectionEngineServingConfigName
1896
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1897
+ * @returns {string} A string representing the collection.
1898
+ */
1899
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1900
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1901
+ }
1902
+ /**
1903
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1904
+ *
1905
+ * @param {string} projectLocationCollectionEngineServingConfigName
1906
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1907
+ * @returns {string} A string representing the engine.
1908
+ */
1909
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1910
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1911
+ }
1912
+ /**
1913
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1914
+ *
1915
+ * @param {string} projectLocationCollectionEngineServingConfigName
1916
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1917
+ * @returns {string} A string representing the serving_config.
1918
+ */
1919
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1920
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1921
+ }
1746
1922
  /**
1747
1923
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1748
1924
  *
@@ -2361,6 +2537,63 @@ class ControlServiceClient {
2361
2537
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2362
2538
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2363
2539
  }
2540
+ /**
2541
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2542
+ *
2543
+ * @param {string} project
2544
+ * @param {string} location
2545
+ * @param {string} data_store
2546
+ * @param {string} serving_config
2547
+ * @returns {string} Resource name string.
2548
+ */
2549
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2550
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2551
+ project: project,
2552
+ location: location,
2553
+ data_store: dataStore,
2554
+ serving_config: servingConfig,
2555
+ });
2556
+ }
2557
+ /**
2558
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2559
+ *
2560
+ * @param {string} projectLocationDataStoreServingConfigName
2561
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2562
+ * @returns {string} A string representing the project.
2563
+ */
2564
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2565
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2566
+ }
2567
+ /**
2568
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2569
+ *
2570
+ * @param {string} projectLocationDataStoreServingConfigName
2571
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2572
+ * @returns {string} A string representing the location.
2573
+ */
2574
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2575
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2576
+ }
2577
+ /**
2578
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2579
+ *
2580
+ * @param {string} projectLocationDataStoreServingConfigName
2581
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2582
+ * @returns {string} A string representing the data_store.
2583
+ */
2584
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2585
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2586
+ }
2587
+ /**
2588
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2589
+ *
2590
+ * @param {string} projectLocationDataStoreServingConfigName
2591
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2592
+ * @returns {string} A string representing the serving_config.
2593
+ */
2594
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2595
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2596
+ }
2364
2597
  /**
2365
2598
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2366
2599
  *
@@ -2532,6 +2765,63 @@ class ControlServiceClient {
2532
2765
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2533
2766
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2534
2767
  }
2768
+ /**
2769
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
2770
+ *
2771
+ * @param {string} project
2772
+ * @param {string} location
2773
+ * @param {string} data_store
2774
+ * @param {string} sitemap
2775
+ * @returns {string} Resource name string.
2776
+ */
2777
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
2778
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
2779
+ project: project,
2780
+ location: location,
2781
+ data_store: dataStore,
2782
+ sitemap: sitemap,
2783
+ });
2784
+ }
2785
+ /**
2786
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2787
+ *
2788
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2789
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2790
+ * @returns {string} A string representing the project.
2791
+ */
2792
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2793
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
2794
+ }
2795
+ /**
2796
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2797
+ *
2798
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2799
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2800
+ * @returns {string} A string representing the location.
2801
+ */
2802
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2803
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
2804
+ }
2805
+ /**
2806
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2807
+ *
2808
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2809
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2810
+ * @returns {string} A string representing the data_store.
2811
+ */
2812
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2813
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
2814
+ }
2815
+ /**
2816
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2817
+ *
2818
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2819
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2820
+ * @returns {string} A string representing the sitemap.
2821
+ */
2822
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2823
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
2824
+ }
2535
2825
  /**
2536
2826
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2537
2827
  *
@@ -2601,7 +2891,7 @@ class ControlServiceClient {
2601
2891
  this._log.info('ending gRPC channel');
2602
2892
  this._terminated = true;
2603
2893
  stub.close();
2604
- this.locationsClient.close();
2894
+ this.locationsClient.close().catch(err => { throw err; });
2605
2895
  });
2606
2896
  }
2607
2897
  return Promise.resolve();