@google-cloud/discoveryengine 0.3.0 → 0.4.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.
@@ -112,7 +112,7 @@ export declare class RecommendationServiceClient {
112
112
  * The request object that will be sent.
113
113
  * @param {string} request.servingConfig
114
114
  * Required. Full resource name of the format:
115
- * projects/* /locations/global/dataStores/* /servingConfigs/*
115
+ * projects/* /locations/global/collections/* /dataStores/* /servingConfigs/*
116
116
  *
117
117
  * Before you can request recommendations from your model, you must create at
118
118
  * least one serving config for it.
@@ -202,13 +202,13 @@ export declare class RecommendationServiceClient {
202
202
  * key with multiple resources.
203
203
  * * Keys must start with a lowercase letter or international character.
204
204
  *
205
- * See [Google Cloud
206
- * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
205
+ * See [Requirements for
206
+ * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
207
207
  * for more details.
208
208
  * @param {object} [options]
209
209
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
210
210
  * @returns {Promise} - The promise which resolves to an array.
211
- * The first element of the array is an object representing [RecommendResponse]{@link google.cloud.discoveryengine.v1beta.RecommendResponse}.
211
+ * The first element of the array is an object representing {@link google.cloud.discoveryengine.v1beta.RecommendResponse | RecommendResponse}.
212
212
  * Please see the
213
213
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
214
214
  * for more details and examples.
@@ -223,58 +223,169 @@ export declare class RecommendationServiceClient {
223
223
  recommend(request: protos.google.cloud.discoveryengine.v1beta.IRecommendRequest, options: CallOptions, callback: Callback<protos.google.cloud.discoveryengine.v1beta.IRecommendResponse, protos.google.cloud.discoveryengine.v1beta.IRecommendRequest | null | undefined, {} | null | undefined>): void;
224
224
  recommend(request: protos.google.cloud.discoveryengine.v1beta.IRecommendRequest, callback: Callback<protos.google.cloud.discoveryengine.v1beta.IRecommendResponse, protos.google.cloud.discoveryengine.v1beta.IRecommendRequest | null | undefined, {} | null | undefined>): void;
225
225
  /**
226
- * Return a fully-qualified document resource name string.
226
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
227
227
  *
228
228
  * @param {string} project
229
229
  * @param {string} location
230
+ * @param {string} collection
230
231
  * @param {string} data_store
231
232
  * @param {string} branch
232
233
  * @param {string} document
233
234
  * @returns {string} Resource name string.
234
235
  */
235
- documentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
236
+ projectLocationCollectionDataStoreBranchDocumentPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string): string;
236
237
  /**
237
- * Parse the project from Document resource.
238
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
238
239
  *
239
- * @param {string} documentName
240
- * A fully-qualified path representing Document resource.
240
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
241
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
241
242
  * @returns {string} A string representing the project.
242
243
  */
243
- matchProjectFromDocumentName(documentName: string): string | number;
244
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
244
245
  /**
245
- * Parse the location from Document resource.
246
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
246
247
  *
247
- * @param {string} documentName
248
- * A fully-qualified path representing Document resource.
248
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
249
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
249
250
  * @returns {string} A string representing the location.
250
251
  */
251
- matchLocationFromDocumentName(documentName: string): string | number;
252
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
252
253
  /**
253
- * Parse the data_store from Document resource.
254
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
254
255
  *
255
- * @param {string} documentName
256
- * A fully-qualified path representing Document resource.
256
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
257
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
258
+ * @returns {string} A string representing the collection.
259
+ */
260
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
261
+ /**
262
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
263
+ *
264
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
265
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
266
+ * @returns {string} A string representing the data_store.
267
+ */
268
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
269
+ /**
270
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
271
+ *
272
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
273
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
274
+ * @returns {string} A string representing the branch.
275
+ */
276
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
277
+ /**
278
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
279
+ *
280
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
281
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
282
+ * @returns {string} A string representing the document.
283
+ */
284
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
285
+ /**
286
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
287
+ *
288
+ * @param {string} project
289
+ * @param {string} location
290
+ * @param {string} collection
291
+ * @param {string} data_store
292
+ * @param {string} serving_config
293
+ * @returns {string} Resource name string.
294
+ */
295
+ projectLocationCollectionDataStoreServingConfigPath(project: string, location: string, collection: string, dataStore: string, servingConfig: string): string;
296
+ /**
297
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
298
+ *
299
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
300
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
301
+ * @returns {string} A string representing the project.
302
+ */
303
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
304
+ /**
305
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
306
+ *
307
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
308
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
309
+ * @returns {string} A string representing the location.
310
+ */
311
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
312
+ /**
313
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
314
+ *
315
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
316
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
317
+ * @returns {string} A string representing the collection.
318
+ */
319
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
320
+ /**
321
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
322
+ *
323
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
324
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
325
+ * @returns {string} A string representing the data_store.
326
+ */
327
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
328
+ /**
329
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
330
+ *
331
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
332
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
333
+ * @returns {string} A string representing the serving_config.
334
+ */
335
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
336
+ /**
337
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
338
+ *
339
+ * @param {string} project
340
+ * @param {string} location
341
+ * @param {string} data_store
342
+ * @param {string} branch
343
+ * @param {string} document
344
+ * @returns {string} Resource name string.
345
+ */
346
+ projectLocationDataStoreBranchDocumentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
347
+ /**
348
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
349
+ *
350
+ * @param {string} projectLocationDataStoreBranchDocumentName
351
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
352
+ * @returns {string} A string representing the project.
353
+ */
354
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
355
+ /**
356
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
357
+ *
358
+ * @param {string} projectLocationDataStoreBranchDocumentName
359
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
360
+ * @returns {string} A string representing the location.
361
+ */
362
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
363
+ /**
364
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
365
+ *
366
+ * @param {string} projectLocationDataStoreBranchDocumentName
367
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
257
368
  * @returns {string} A string representing the data_store.
258
369
  */
259
- matchDataStoreFromDocumentName(documentName: string): string | number;
370
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
260
371
  /**
261
- * Parse the branch from Document resource.
372
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
262
373
  *
263
- * @param {string} documentName
264
- * A fully-qualified path representing Document resource.
374
+ * @param {string} projectLocationDataStoreBranchDocumentName
375
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
265
376
  * @returns {string} A string representing the branch.
266
377
  */
267
- matchBranchFromDocumentName(documentName: string): string | number;
378
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
268
379
  /**
269
- * Parse the document from Document resource.
380
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
270
381
  *
271
- * @param {string} documentName
272
- * A fully-qualified path representing Document resource.
382
+ * @param {string} projectLocationDataStoreBranchDocumentName
383
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
273
384
  * @returns {string} A string representing the document.
274
385
  */
275
- matchDocumentFromDocumentName(documentName: string): string | number;
386
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
276
387
  /**
277
- * Return a fully-qualified servingConfig resource name string.
388
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
278
389
  *
279
390
  * @param {string} project
280
391
  * @param {string} location
@@ -282,39 +393,39 @@ export declare class RecommendationServiceClient {
282
393
  * @param {string} serving_config
283
394
  * @returns {string} Resource name string.
284
395
  */
285
- servingConfigPath(project: string, location: string, dataStore: string, servingConfig: string): string;
396
+ projectLocationDataStoreServingConfigPath(project: string, location: string, dataStore: string, servingConfig: string): string;
286
397
  /**
287
- * Parse the project from ServingConfig resource.
398
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
288
399
  *
289
- * @param {string} servingConfigName
290
- * A fully-qualified path representing ServingConfig resource.
400
+ * @param {string} projectLocationDataStoreServingConfigName
401
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
291
402
  * @returns {string} A string representing the project.
292
403
  */
293
- matchProjectFromServingConfigName(servingConfigName: string): string | number;
404
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
294
405
  /**
295
- * Parse the location from ServingConfig resource.
406
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
296
407
  *
297
- * @param {string} servingConfigName
298
- * A fully-qualified path representing ServingConfig resource.
408
+ * @param {string} projectLocationDataStoreServingConfigName
409
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
299
410
  * @returns {string} A string representing the location.
300
411
  */
301
- matchLocationFromServingConfigName(servingConfigName: string): string | number;
412
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
302
413
  /**
303
- * Parse the data_store from ServingConfig resource.
414
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
304
415
  *
305
- * @param {string} servingConfigName
306
- * A fully-qualified path representing ServingConfig resource.
416
+ * @param {string} projectLocationDataStoreServingConfigName
417
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
307
418
  * @returns {string} A string representing the data_store.
308
419
  */
309
- matchDataStoreFromServingConfigName(servingConfigName: string): string | number;
420
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
310
421
  /**
311
- * Parse the serving_config from ServingConfig resource.
422
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
312
423
  *
313
- * @param {string} servingConfigName
314
- * A fully-qualified path representing ServingConfig resource.
424
+ * @param {string} projectLocationDataStoreServingConfigName
425
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
315
426
  * @returns {string} A string representing the serving_config.
316
427
  */
317
- matchServingConfigFromServingConfigName(servingConfigName: string): string | number;
428
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
318
429
  /**
319
430
  * Terminate the gRPC channel and close the client.
320
431
  *
@@ -139,8 +139,10 @@ class RecommendationServiceClient {
139
139
  // identifiers to uniquely identify resources within the API.
140
140
  // Create useful helper objects for these.
141
141
  this.pathTemplates = {
142
- documentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
143
- servingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
142
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
143
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
144
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
145
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
144
146
  };
145
147
  // Put together the default options sent with requests.
146
148
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.RecommendationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -259,77 +261,226 @@ class RecommendationServiceClient {
259
261
  // -- Path templates --
260
262
  // --------------------
261
263
  /**
262
- * Return a fully-qualified document resource name string.
264
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
263
265
  *
264
266
  * @param {string} project
265
267
  * @param {string} location
268
+ * @param {string} collection
266
269
  * @param {string} data_store
267
270
  * @param {string} branch
268
271
  * @param {string} document
269
272
  * @returns {string} Resource name string.
270
273
  */
271
- documentPath(project, location, dataStore, branch, document) {
272
- return this.pathTemplates.documentPathTemplate.render({
274
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
275
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
273
276
  project: project,
274
277
  location: location,
278
+ collection: collection,
275
279
  data_store: dataStore,
276
280
  branch: branch,
277
281
  document: document,
278
282
  });
279
283
  }
280
284
  /**
281
- * Parse the project from Document resource.
285
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
282
286
  *
283
- * @param {string} documentName
284
- * A fully-qualified path representing Document resource.
287
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
288
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
285
289
  * @returns {string} A string representing the project.
286
290
  */
287
- matchProjectFromDocumentName(documentName) {
288
- return this.pathTemplates.documentPathTemplate.match(documentName).project;
291
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
292
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
289
293
  }
290
294
  /**
291
- * Parse the location from Document resource.
295
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
292
296
  *
293
- * @param {string} documentName
294
- * A fully-qualified path representing Document resource.
297
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
298
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
295
299
  * @returns {string} A string representing the location.
296
300
  */
297
- matchLocationFromDocumentName(documentName) {
298
- return this.pathTemplates.documentPathTemplate.match(documentName).location;
301
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
302
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
299
303
  }
300
304
  /**
301
- * Parse the data_store from Document resource.
305
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
302
306
  *
303
- * @param {string} documentName
304
- * A fully-qualified path representing Document resource.
307
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
308
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
309
+ * @returns {string} A string representing the collection.
310
+ */
311
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
312
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
313
+ }
314
+ /**
315
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
316
+ *
317
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
318
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
319
+ * @returns {string} A string representing the data_store.
320
+ */
321
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
322
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
323
+ }
324
+ /**
325
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
326
+ *
327
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
328
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
329
+ * @returns {string} A string representing the branch.
330
+ */
331
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
332
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
333
+ }
334
+ /**
335
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
336
+ *
337
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
338
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
339
+ * @returns {string} A string representing the document.
340
+ */
341
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
342
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
343
+ }
344
+ /**
345
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
346
+ *
347
+ * @param {string} project
348
+ * @param {string} location
349
+ * @param {string} collection
350
+ * @param {string} data_store
351
+ * @param {string} serving_config
352
+ * @returns {string} Resource name string.
353
+ */
354
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
355
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
356
+ project: project,
357
+ location: location,
358
+ collection: collection,
359
+ data_store: dataStore,
360
+ serving_config: servingConfig,
361
+ });
362
+ }
363
+ /**
364
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
365
+ *
366
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
367
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
368
+ * @returns {string} A string representing the project.
369
+ */
370
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
371
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
372
+ }
373
+ /**
374
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
375
+ *
376
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
377
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
378
+ * @returns {string} A string representing the location.
379
+ */
380
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
381
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
382
+ }
383
+ /**
384
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
385
+ *
386
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
387
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
388
+ * @returns {string} A string representing the collection.
389
+ */
390
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
391
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
392
+ }
393
+ /**
394
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
395
+ *
396
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
397
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
398
+ * @returns {string} A string representing the data_store.
399
+ */
400
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
401
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
402
+ }
403
+ /**
404
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
405
+ *
406
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
407
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
408
+ * @returns {string} A string representing the serving_config.
409
+ */
410
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
411
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
412
+ }
413
+ /**
414
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
415
+ *
416
+ * @param {string} project
417
+ * @param {string} location
418
+ * @param {string} data_store
419
+ * @param {string} branch
420
+ * @param {string} document
421
+ * @returns {string} Resource name string.
422
+ */
423
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
424
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
425
+ project: project,
426
+ location: location,
427
+ data_store: dataStore,
428
+ branch: branch,
429
+ document: document,
430
+ });
431
+ }
432
+ /**
433
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
434
+ *
435
+ * @param {string} projectLocationDataStoreBranchDocumentName
436
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
437
+ * @returns {string} A string representing the project.
438
+ */
439
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
440
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
441
+ }
442
+ /**
443
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
444
+ *
445
+ * @param {string} projectLocationDataStoreBranchDocumentName
446
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
447
+ * @returns {string} A string representing the location.
448
+ */
449
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
450
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
451
+ }
452
+ /**
453
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
454
+ *
455
+ * @param {string} projectLocationDataStoreBranchDocumentName
456
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
305
457
  * @returns {string} A string representing the data_store.
306
458
  */
307
- matchDataStoreFromDocumentName(documentName) {
308
- return this.pathTemplates.documentPathTemplate.match(documentName)
309
- .data_store;
459
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
460
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
310
461
  }
311
462
  /**
312
- * Parse the branch from Document resource.
463
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
313
464
  *
314
- * @param {string} documentName
315
- * A fully-qualified path representing Document resource.
465
+ * @param {string} projectLocationDataStoreBranchDocumentName
466
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
316
467
  * @returns {string} A string representing the branch.
317
468
  */
318
- matchBranchFromDocumentName(documentName) {
319
- return this.pathTemplates.documentPathTemplate.match(documentName).branch;
469
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
470
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
320
471
  }
321
472
  /**
322
- * Parse the document from Document resource.
473
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
323
474
  *
324
- * @param {string} documentName
325
- * A fully-qualified path representing Document resource.
475
+ * @param {string} projectLocationDataStoreBranchDocumentName
476
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
326
477
  * @returns {string} A string representing the document.
327
478
  */
328
- matchDocumentFromDocumentName(documentName) {
329
- return this.pathTemplates.documentPathTemplate.match(documentName).document;
479
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
480
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
330
481
  }
331
482
  /**
332
- * Return a fully-qualified servingConfig resource name string.
483
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
333
484
  *
334
485
  * @param {string} project
335
486
  * @param {string} location
@@ -337,8 +488,8 @@ class RecommendationServiceClient {
337
488
  * @param {string} serving_config
338
489
  * @returns {string} Resource name string.
339
490
  */
340
- servingConfigPath(project, location, dataStore, servingConfig) {
341
- return this.pathTemplates.servingConfigPathTemplate.render({
491
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
492
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
342
493
  project: project,
343
494
  location: location,
344
495
  data_store: dataStore,
@@ -346,48 +497,44 @@ class RecommendationServiceClient {
346
497
  });
347
498
  }
348
499
  /**
349
- * Parse the project from ServingConfig resource.
500
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
350
501
  *
351
- * @param {string} servingConfigName
352
- * A fully-qualified path representing ServingConfig resource.
502
+ * @param {string} projectLocationDataStoreServingConfigName
503
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
353
504
  * @returns {string} A string representing the project.
354
505
  */
355
- matchProjectFromServingConfigName(servingConfigName) {
356
- return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
357
- .project;
506
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
507
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
358
508
  }
359
509
  /**
360
- * Parse the location from ServingConfig resource.
510
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
361
511
  *
362
- * @param {string} servingConfigName
363
- * A fully-qualified path representing ServingConfig resource.
512
+ * @param {string} projectLocationDataStoreServingConfigName
513
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
364
514
  * @returns {string} A string representing the location.
365
515
  */
366
- matchLocationFromServingConfigName(servingConfigName) {
367
- return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
368
- .location;
516
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
517
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
369
518
  }
370
519
  /**
371
- * Parse the data_store from ServingConfig resource.
520
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
372
521
  *
373
- * @param {string} servingConfigName
374
- * A fully-qualified path representing ServingConfig resource.
522
+ * @param {string} projectLocationDataStoreServingConfigName
523
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
375
524
  * @returns {string} A string representing the data_store.
376
525
  */
377
- matchDataStoreFromServingConfigName(servingConfigName) {
378
- return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
379
- .data_store;
526
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
527
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
380
528
  }
381
529
  /**
382
- * Parse the serving_config from ServingConfig resource.
530
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
383
531
  *
384
- * @param {string} servingConfigName
385
- * A fully-qualified path representing ServingConfig resource.
532
+ * @param {string} projectLocationDataStoreServingConfigName
533
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
386
534
  * @returns {string} A string representing the serving_config.
387
535
  */
388
- matchServingConfigFromServingConfigName(servingConfigName) {
389
- return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
390
- .serving_config;
536
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
537
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
391
538
  }
392
539
  /**
393
540
  * Terminate the gRPC channel and close the client.