@googleapis/discoveryengine 3.0.0 → 4.0.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.
package/build/v1beta.d.ts CHANGED
@@ -192,6 +192,32 @@ export declare namespace discoveryengine_v1beta {
192
192
  */
193
193
  functionName?: string | null;
194
194
  }
195
+ /**
196
+ * Metadata related to the progress of the DataStoreService.CreateDataStore operation. This will be returned by the google.longrunning.Operation.metadata field.
197
+ */
198
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata {
199
+ /**
200
+ * Operation create time.
201
+ */
202
+ createTime?: string | null;
203
+ /**
204
+ * Operation last update time. If the operation is done, this is also the finish time.
205
+ */
206
+ updateTime?: string | null;
207
+ }
208
+ /**
209
+ * Metadata related to the progress of the EngineService.CreateEngine operation. This will be returned by the google.longrunning.Operation.metadata field.
210
+ */
211
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata {
212
+ /**
213
+ * Operation create time.
214
+ */
215
+ createTime?: string | null;
216
+ /**
217
+ * Operation last update time. If the operation is done, this is also the finish time.
218
+ */
219
+ updateTime?: string | null;
220
+ }
195
221
  /**
196
222
  * Metadata for Create Schema LRO.
197
223
  */
@@ -205,6 +231,65 @@ export declare namespace discoveryengine_v1beta {
205
231
  */
206
232
  updateTime?: string | null;
207
233
  }
234
+ /**
235
+ * DataStore captures global settings and configs at the DataStore level.
236
+ */
237
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaDataStore {
238
+ /**
239
+ * Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
240
+ */
241
+ contentConfig?: string | null;
242
+ /**
243
+ * Output only. Timestamp the DataStore was created at.
244
+ */
245
+ createTime?: string | null;
246
+ /**
247
+ * Output only. The id of the default Schema asscociated to this data store.
248
+ */
249
+ defaultSchemaId?: string | null;
250
+ /**
251
+ * Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
252
+ */
253
+ displayName?: string | null;
254
+ /**
255
+ * Immutable. The industry vertical that the data store registers.
256
+ */
257
+ industryVertical?: string | null;
258
+ /**
259
+ * Immutable. The full resource name of the data store. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
260
+ */
261
+ name?: string | null;
262
+ /**
263
+ * The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled.
264
+ */
265
+ solutionTypes?: string[] | null;
266
+ }
267
+ /**
268
+ * Metadata related to the progress of the DataStoreService.DeleteDataStore operation. This will be returned by the google.longrunning.Operation.metadata field.
269
+ */
270
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
271
+ /**
272
+ * Operation create time.
273
+ */
274
+ createTime?: string | null;
275
+ /**
276
+ * Operation last update time. If the operation is done, this is also the finish time.
277
+ */
278
+ updateTime?: string | null;
279
+ }
280
+ /**
281
+ * Metadata related to the progress of the EngineService.DeleteEngine operation. This will be returned by the google.longrunning.Operation.metadata field.
282
+ */
283
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata {
284
+ /**
285
+ * Operation create time.
286
+ */
287
+ createTime?: string | null;
288
+ /**
289
+ * Operation last update time. If the operation is done, this is also the finish time.
290
+ */
291
+ updateTime?: string | null;
292
+ }
208
293
  /**
209
294
  * Metadata for DeleteSchema LRO.
210
295
  */
@@ -218,6 +303,188 @@ export declare namespace discoveryengine_v1beta {
218
303
  */
219
304
  updateTime?: string | null;
220
305
  }
306
+ /**
307
+ * Metadata that describes the training and serving parameters of an Engine.
308
+ */
309
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngine {
310
+ /**
311
+ * Configurations for the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT.
312
+ */
313
+ chatEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig;
314
+ /**
315
+ * Output only. Additional information of the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT.
316
+ */
317
+ chatEngineMetadata?: Schema$GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata;
318
+ /**
319
+ * Common config spec that specifies the metadata of the engine.
320
+ */
321
+ commonConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineCommonConfig;
322
+ /**
323
+ * Output only. Timestamp the Recommendation Engine was created at.
324
+ */
325
+ createTime?: string | null;
326
+ /**
327
+ * The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary intializations.
328
+ */
329
+ dataStoreIds?: string[] | null;
330
+ /**
331
+ * Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.
332
+ */
333
+ displayName?: string | null;
334
+ /**
335
+ * The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: If unspecified, default to `GENERIC`. Vertical on Engine has to match vertical of the DataStore liniked to the engine.
336
+ */
337
+ industryVertical?: string | null;
338
+ /**
339
+ * Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
340
+ */
341
+ mediaRecommendationEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig;
342
+ /**
343
+ * Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/engines/{engine\}` engine should be 1-63 characters, and valid characters are /a-z0-9x/. Otherwise, an INVALID_ARGUMENT error is returned.
344
+ */
345
+ name?: string | null;
346
+ /**
347
+ * Output only. Additional information of a recommendation engine. Only applicable if solution_type is SOLUTION_TYPE_RECOMMENDATION.
348
+ */
349
+ recommendationMetadata?: Schema$GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata;
350
+ /**
351
+ * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
352
+ */
353
+ searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
354
+ /**
355
+ * Additional config specs for a `similar-items` engine.
356
+ */
357
+ similarDocumentsConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig;
358
+ /**
359
+ * Required. The solutions of the engine.
360
+ */
361
+ solutionType?: string | null;
362
+ /**
363
+ * Output only. Timestamp the Recommendation Engine was last updated.
364
+ */
365
+ updateTime?: string | null;
366
+ }
367
+ /**
368
+ * Configurations for a Chat Engine.
369
+ */
370
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig {
371
+ /**
372
+ * The configurationt generate the Dialogflow agent that is associated to this Engine. Note that these configurations are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation.
373
+ */
374
+ agentCreationConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig;
375
+ /**
376
+ * The resource name of an exist Dialogflow agent to link to this Chat Engine. Customers can either provide `agent_creation_config` to create agent or provide an agent name that links the agent with the Chat engine. Format: `projects//locations//agents/`. Note that the `dialogflow_agent_to_link` are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation. Please use chat_engine_metadata.dialogflow_agent for actual agent association after Engine is created.
377
+ */
378
+ dialogflowAgentToLink?: string | null;
379
+ }
380
+ /**
381
+ * Configurations for generating a Dialogflow agent. Note that these configurations are one-time consumed by and passed to Dialogflow service. It means they cannot be retrieved using EngineService.GetEngine or EngineService.ListEngines API after engine creation.
382
+ */
383
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig {
384
+ /**
385
+ * Name of the company, organization or other entity that the agent represents. Used for knowledge connector LLM prompt and for knowledge search.
386
+ */
387
+ business?: string | null;
388
+ /**
389
+ * Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
390
+ */
391
+ defaultLanguageCode?: string | null;
392
+ /**
393
+ * Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
394
+ */
395
+ timeZone?: string | null;
396
+ }
397
+ /**
398
+ * Additional information of a Chat Engine. Fields in this message are output only.
399
+ */
400
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata {
401
+ /**
402
+ * The resource name of a Dialogflow agent, that this Chat Engine refers to. Format: `projects//locations//agents/`.
403
+ */
404
+ dialogflowAgent?: string | null;
405
+ }
406
+ /**
407
+ * Common configurations for an Engine.
408
+ */
409
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineCommonConfig {
410
+ /**
411
+ * The name of the company, business or entity that is associated with the engine. Setting this may help improve LLM related features.
412
+ */
413
+ companyName?: string | null;
414
+ }
415
+ /**
416
+ * Additional config specs for a Media Recommendation engine.
417
+ */
418
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig {
419
+ /**
420
+ * The optimization objective e.g. `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\> `ctr` `others-you-may-like` =\> `ctr`
421
+ */
422
+ optimizationObjective?: string | null;
423
+ /**
424
+ * Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5).
425
+ */
426
+ optimizationObjectiveConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig;
427
+ /**
428
+ * The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before.
429
+ */
430
+ trainingState?: string | null;
431
+ /**
432
+ * Required. The type of engine e.g. `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`.
433
+ */
434
+ type?: string | null;
435
+ }
436
+ /**
437
+ * Custom threshold for `cvr` optimization_objective.
438
+ */
439
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig {
440
+ /**
441
+ * Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`.
442
+ */
443
+ targetField?: string | null;
444
+ /**
445
+ * Required. The threshold to be applied to the target (e.g., 0.5).
446
+ */
447
+ targetFieldValueFloat?: number | null;
448
+ }
449
+ /**
450
+ * Additional information of a recommendation engine.
451
+ */
452
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata {
453
+ /**
454
+ * Output only. The state of data requirements for this engine: `DATA_OK` and `DATA_ERROR`. Engine cannot be trained if the data is in `DATA_ERROR` state. Engine can have `DATA_ERROR` state even if serving state is `ACTIVE`: engines were trained successfully before, but cannot be refreshed because the underlying engine no longer has sufficient data for training.
455
+ */
456
+ dataState?: string | null;
457
+ /**
458
+ * Output only. The timestamp when the latest successful tune finished. Only applicable on Media Recommendation engines.
459
+ */
460
+ lastTuneTime?: string | null;
461
+ /**
462
+ * Output only. The serving state of the engine: `ACTIVE`, `NOT_ACTIVE`.
463
+ */
464
+ servingState?: string | null;
465
+ /**
466
+ * Output only. The latest tune operation id associated with the engine. Only applicable on Media Recommendation engines. If present, this operation id can be used to determine if there is an ongoing tune for this engine. To check the operation status, send the GetOperation request with this operation id in the engine resource format. If no tuning has happened for this engine, the string is empty.
467
+ */
468
+ tuningOperation?: string | null;
469
+ }
470
+ /**
471
+ * Configurations for a Search Engine.
472
+ */
473
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig {
474
+ /**
475
+ * The add-on that this search engine enables.
476
+ */
477
+ searchAddOns?: string[] | null;
478
+ /**
479
+ * The search feature tier of this engine. Different tiers might have different pricing. To learn more, please check the pricing documentation. Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
480
+ */
481
+ searchTier?: string | null;
482
+ }
483
+ /**
484
+ * Additional config specs for a `similar-items` engine.
485
+ */
486
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig {
487
+ }
221
488
  /**
222
489
  * Configurations for fields of a schema. For example, configuring a field is indexable, or searchable.
223
490
  */
@@ -568,6 +835,20 @@ export declare namespace discoveryengine_v1beta {
568
835
  }
569
836
  export interface Schema$GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure {
570
837
  }
838
+ /**
839
+ * Metadata associated with a tune operation.
840
+ */
841
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata {
842
+ /**
843
+ * Required. The resource name of the engine that this tune applies to. Format: `projects/{project_number\}/locations/{location_id\}/collections/{collection_id\}/engines/{engine_id\}`
844
+ */
845
+ engine?: string | null;
846
+ }
847
+ /**
848
+ * Response associated with a tune operation.
849
+ */
850
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaTuneEngineResponse {
851
+ }
571
852
  /**
572
853
  * Metadata for UpdateSchema LRO.
573
854
  */
@@ -1382,6 +1663,10 @@ export declare namespace discoveryengine_v1beta {
1382
1663
  * The branch resource name, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`. Use `default_branch` as the branch ID or leave this field empty, to search documents under the default branch.
1383
1664
  */
1384
1665
  branch?: string | null;
1666
+ /**
1667
+ * The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter.
1668
+ */
1669
+ canonicalFilter?: string | null;
1385
1670
  /**
1386
1671
  * A specification for configuring the behavior of content search.
1387
1672
  */
@@ -1419,7 +1704,7 @@ export declare namespace discoveryengine_v1beta {
1419
1704
  */
1420
1705
  pageToken?: string | null;
1421
1706
  /**
1422
- * Additional search parameters. For public website search only, supported values are: * `user_country_code`: string. Default empty. If set to non-empty, results are restricted or boosted based on the location provided. * `search_type`: double. Default empty. Enables non-webpage searching depending on the value. The only valid non-default value is 1, which enables image searching.
1707
+ * Additional search parameters. For public website search only, supported values are: * `user_country_code`: string. Default empty. If set to non-empty, results are restricted or boosted based on the location provided. Example: user_country_code: "au" For available codes see [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) * `search_type`: double. Default empty. Enables non-webpage searching depending on the value. The only valid non-default value is 1, which enables image searching. Example: search_type: 1
1423
1708
  */
1424
1709
  params?: {
1425
1710
  [key: string]: any;
@@ -2275,11 +2560,73 @@ export declare namespace discoveryengine_v1beta {
2275
2560
  }
2276
2561
  export class Resource$Projects$Locations$Collections {
2277
2562
  context: APIRequestContext;
2563
+ dataConnector: Resource$Projects$Locations$Collections$Dataconnector;
2278
2564
  dataStores: Resource$Projects$Locations$Collections$Datastores;
2279
2565
  engines: Resource$Projects$Locations$Collections$Engines;
2280
2566
  operations: Resource$Projects$Locations$Collections$Operations;
2281
2567
  constructor(context: APIRequestContext);
2282
2568
  }
2569
+ export class Resource$Projects$Locations$Collections$Dataconnector {
2570
+ context: APIRequestContext;
2571
+ operations: Resource$Projects$Locations$Collections$Dataconnector$Operations;
2572
+ constructor(context: APIRequestContext);
2573
+ }
2574
+ export class Resource$Projects$Locations$Collections$Dataconnector$Operations {
2575
+ context: APIRequestContext;
2576
+ constructor(context: APIRequestContext);
2577
+ /**
2578
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
2579
+ *
2580
+ * @param params - Parameters for request
2581
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2582
+ * @param callback - Optional callback that handles the response.
2583
+ * @returns A promise if used with async/await, or void if used with a callback.
2584
+ */
2585
+ get(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2586
+ get(params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningOperation>;
2587
+ get(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2588
+ get(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
2589
+ get(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
2590
+ get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
2591
+ /**
2592
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
2593
+ *
2594
+ * @param params - Parameters for request
2595
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2596
+ * @param callback - Optional callback that handles the response.
2597
+ * @returns A promise if used with async/await, or void if used with a callback.
2598
+ */
2599
+ list(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2600
+ list(params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$List, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningListOperationsResponse>;
2601
+ list(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2602
+ list(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>, callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>): void;
2603
+ list(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$List, callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>): void;
2604
+ list(callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>): void;
2605
+ }
2606
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$Get extends StandardParameters {
2607
+ /**
2608
+ * The name of the operation resource.
2609
+ */
2610
+ name?: string;
2611
+ }
2612
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Operations$List extends StandardParameters {
2613
+ /**
2614
+ * The standard list filter.
2615
+ */
2616
+ filter?: string;
2617
+ /**
2618
+ * The name of the operation's parent resource.
2619
+ */
2620
+ name?: string;
2621
+ /**
2622
+ * The standard list page size.
2623
+ */
2624
+ pageSize?: number;
2625
+ /**
2626
+ * The standard list page token.
2627
+ */
2628
+ pageToken?: string;
2629
+ }
2283
2630
  export class Resource$Projects$Locations$Collections$Datastores {
2284
2631
  context: APIRequestContext;
2285
2632
  branches: Resource$Projects$Locations$Collections$Datastores$Branches;
@@ -3058,7 +3405,7 @@ export declare namespace discoveryengine_v1beta {
3058
3405
  }
3059
3406
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Recommend extends StandardParameters {
3060
3407
  /**
3061
- * Required. Full resource name of the format: `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` Before you can request recommendations from your model, you must create at least one serving config for it.
3408
+ * Required. Full resource name of a ServingConfig: `projects/x/locations/global/collections/x/engines/x/servingConfigs/x`, or `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` One default serving config is created along with your recommendation engine creation. The engine ID will be used as the ID of the default serving config. For example, for Engine `projects/x/locations/global/collections/x/engines/my-engine`, you can use `projects/x/locations/global/collections/x/engines/my-engine/servingConfigs/my-engine` for your Recommend requests.
3062
3409
  */
3063
3410
  servingConfig?: string;
3064
3411
  /**
@@ -3068,7 +3415,7 @@ export declare namespace discoveryengine_v1beta {
3068
3415
  }
3069
3416
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Search extends StandardParameters {
3070
3417
  /**
3071
- * Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
3418
+ * Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
3072
3419
  */
3073
3420
  servingConfig?: string;
3074
3421
  /**
@@ -3379,7 +3726,7 @@ export declare namespace discoveryengine_v1beta {
3379
3726
  }
3380
3727
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend extends StandardParameters {
3381
3728
  /**
3382
- * Required. Full resource name of the format: `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` Before you can request recommendations from your model, you must create at least one serving config for it.
3729
+ * Required. Full resource name of a ServingConfig: `projects/x/locations/global/collections/x/engines/x/servingConfigs/x`, or `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` One default serving config is created along with your recommendation engine creation. The engine ID will be used as the ID of the default serving config. For example, for Engine `projects/x/locations/global/collections/x/engines/my-engine`, you can use `projects/x/locations/global/collections/x/engines/my-engine/servingConfigs/my-engine` for your Recommend requests.
3383
3730
  */
3384
3731
  servingConfig?: string;
3385
3732
  /**
@@ -3389,7 +3736,7 @@ export declare namespace discoveryengine_v1beta {
3389
3736
  }
3390
3737
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Search extends StandardParameters {
3391
3738
  /**
3392
- * Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
3739
+ * Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
3393
3740
  */
3394
3741
  servingConfig?: string;
3395
3742
  /**
@@ -4173,7 +4520,7 @@ export declare namespace discoveryengine_v1beta {
4173
4520
  }
4174
4521
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Recommend extends StandardParameters {
4175
4522
  /**
4176
- * Required. Full resource name of the format: `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` Before you can request recommendations from your model, you must create at least one serving config for it.
4523
+ * Required. Full resource name of a ServingConfig: `projects/x/locations/global/collections/x/engines/x/servingConfigs/x`, or `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` One default serving config is created along with your recommendation engine creation. The engine ID will be used as the ID of the default serving config. For example, for Engine `projects/x/locations/global/collections/x/engines/my-engine`, you can use `projects/x/locations/global/collections/x/engines/my-engine/servingConfigs/my-engine` for your Recommend requests.
4177
4524
  */
4178
4525
  servingConfig?: string;
4179
4526
  /**
@@ -4183,7 +4530,7 @@ export declare namespace discoveryengine_v1beta {
4183
4530
  }
4184
4531
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Search extends StandardParameters {
4185
4532
  /**
4186
- * Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
4533
+ * Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
4187
4534
  */
4188
4535
  servingConfig?: string;
4189
4536
  /**
package/build/v1beta.js CHANGED
@@ -62,12 +62,92 @@ var discoveryengine_v1beta;
62
62
  class Resource$Projects$Locations$Collections {
63
63
  constructor(context) {
64
64
  this.context = context;
65
+ this.dataConnector =
66
+ new Resource$Projects$Locations$Collections$Dataconnector(this.context);
65
67
  this.dataStores = new Resource$Projects$Locations$Collections$Datastores(this.context);
66
68
  this.engines = new Resource$Projects$Locations$Collections$Engines(this.context);
67
69
  this.operations = new Resource$Projects$Locations$Collections$Operations(this.context);
68
70
  }
69
71
  }
70
72
  discoveryengine_v1beta.Resource$Projects$Locations$Collections = Resource$Projects$Locations$Collections;
73
+ class Resource$Projects$Locations$Collections$Dataconnector {
74
+ constructor(context) {
75
+ this.context = context;
76
+ this.operations =
77
+ new Resource$Projects$Locations$Collections$Dataconnector$Operations(this.context);
78
+ }
79
+ }
80
+ discoveryengine_v1beta.Resource$Projects$Locations$Collections$Dataconnector = Resource$Projects$Locations$Collections$Dataconnector;
81
+ class Resource$Projects$Locations$Collections$Dataconnector$Operations {
82
+ constructor(context) {
83
+ this.context = context;
84
+ }
85
+ get(paramsOrCallback, optionsOrCallback, callback) {
86
+ let params = (paramsOrCallback ||
87
+ {});
88
+ let options = (optionsOrCallback || {});
89
+ if (typeof paramsOrCallback === 'function') {
90
+ callback = paramsOrCallback;
91
+ params =
92
+ {};
93
+ options = {};
94
+ }
95
+ if (typeof optionsOrCallback === 'function') {
96
+ callback = optionsOrCallback;
97
+ options = {};
98
+ }
99
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
100
+ const parameters = {
101
+ options: Object.assign({
102
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
103
+ method: 'GET',
104
+ }, options),
105
+ params,
106
+ requiredParams: ['name'],
107
+ pathParams: ['name'],
108
+ context: this.context,
109
+ };
110
+ if (callback) {
111
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
112
+ }
113
+ else {
114
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
115
+ }
116
+ }
117
+ list(paramsOrCallback, optionsOrCallback, callback) {
118
+ let params = (paramsOrCallback ||
119
+ {});
120
+ let options = (optionsOrCallback || {});
121
+ if (typeof paramsOrCallback === 'function') {
122
+ callback = paramsOrCallback;
123
+ params =
124
+ {};
125
+ options = {};
126
+ }
127
+ if (typeof optionsOrCallback === 'function') {
128
+ callback = optionsOrCallback;
129
+ options = {};
130
+ }
131
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
132
+ const parameters = {
133
+ options: Object.assign({
134
+ url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
135
+ method: 'GET',
136
+ }, options),
137
+ params,
138
+ requiredParams: ['name'],
139
+ pathParams: ['name'],
140
+ context: this.context,
141
+ };
142
+ if (callback) {
143
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
144
+ }
145
+ else {
146
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
147
+ }
148
+ }
149
+ }
150
+ discoveryengine_v1beta.Resource$Projects$Locations$Collections$Dataconnector$Operations = Resource$Projects$Locations$Collections$Dataconnector$Operations;
71
151
  class Resource$Projects$Locations$Collections$Datastores {
72
152
  constructor(context) {
73
153
  this.context = context;