@googleapis/discoveryengine 28.1.0 → 28.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.
package/v1alpha.ts CHANGED
@@ -521,11 +521,28 @@ export namespace discoveryengine_v1alpha {
521
521
  * Stored definition of an agent that uses A2A.
522
522
  */
523
523
  export interface Schema$GoogleCloudDiscoveryengineV1alphaA2AAgentDefinition {
524
+ /**
525
+ * Optional. Configuration specific to agents that are deployed from Cloud Marketplace.
526
+ */
527
+ cloudMarketplaceConfig?: Schema$GoogleCloudDiscoveryengineV1alphaA2AAgentDefinitionCloudMarketplaceConfig;
524
528
  /**
525
529
  * Optional. The agent card is a JSON string.
526
530
  */
527
531
  jsonAgentCard?: string | null;
528
532
  }
533
+ /**
534
+ * Configuration specific to agents that are deployed from Cloud Marketplace.
535
+ */
536
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaA2AAgentDefinitionCloudMarketplaceConfig {
537
+ /**
538
+ * Required. The Marketplace Entitlement this agent is associated with. Format: `projects/{project\}/entitlements/{entitlement\}`.
539
+ */
540
+ entitlement?: string | null;
541
+ /**
542
+ * Output only. The Marketplace Order this agent belongs to. Format: `billingAccounts/{billing_account\}/orders/{order\}`
543
+ */
544
+ order?: string | null;
545
+ }
529
546
  /**
530
547
  * Access Control Configuration.
531
548
  */
@@ -8216,12 +8233,16 @@ export namespace discoveryengine_v1alpha {
8216
8233
  * The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided.
8217
8234
  */
8218
8235
  regionCode?: string | null;
8236
+ /**
8237
+ * Optional. The granular relevance filtering specification. If not specified, the global `relevance_threshold` will be used for all sub-searches. If specified, this overrides the global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is currently supported only for custom and site search.
8238
+ */
8239
+ relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec;
8219
8240
  /**
8220
8241
  * Optional. The specification for returning the relevance score.
8221
8242
  */
8222
8243
  relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec;
8223
8244
  /**
8224
- * The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. This feature is not supported for healthcare search.
8245
+ * The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.
8225
8246
  */
8226
8247
  relevanceThreshold?: string | null;
8227
8248
  /**
@@ -8660,6 +8681,32 @@ export namespace discoveryengine_v1alpha {
8660
8681
  */
8661
8682
  pinUnexpandedResults?: boolean | null;
8662
8683
  }
8684
+ /**
8685
+ * Relevance filtering specification.
8686
+ */
8687
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec {
8688
+ /**
8689
+ * Optional. Relevance filtering threshold specification for keyword search.
8690
+ */
8691
+ keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
8692
+ /**
8693
+ * Optional. Relevance filtering threshold specification for semantic search.
8694
+ */
8695
+ semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
8696
+ }
8697
+ /**
8698
+ * Specification for relevance filtering on a specific sub-search.
8699
+ */
8700
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
8701
+ /**
8702
+ * Pre-defined relevance threshold for the sub-search.
8703
+ */
8704
+ relevanceThreshold?: string | null;
8705
+ /**
8706
+ * Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
8707
+ */
8708
+ semanticRelevanceThreshold?: number | null;
8709
+ }
8663
8710
  /**
8664
8711
  * The specification for returning the document relevance score.
8665
8712
  */
@@ -12925,12 +12972,16 @@ export namespace discoveryengine_v1alpha {
12925
12972
  * The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided.
12926
12973
  */
12927
12974
  regionCode?: string | null;
12975
+ /**
12976
+ * Optional. The granular relevance filtering specification. If not specified, the global `relevance_threshold` will be used for all sub-searches. If specified, this overrides the global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is currently supported only for custom and site search.
12977
+ */
12978
+ relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec;
12928
12979
  /**
12929
12980
  * Optional. The specification for returning the relevance score.
12930
12981
  */
12931
12982
  relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec;
12932
12983
  /**
12933
- * The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. This feature is not supported for healthcare search.
12984
+ * The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.
12934
12985
  */
12935
12986
  relevanceThreshold?: string | null;
12936
12987
  /**
@@ -13365,6 +13416,32 @@ export namespace discoveryengine_v1alpha {
13365
13416
  */
13366
13417
  pinUnexpandedResults?: boolean | null;
13367
13418
  }
13419
+ /**
13420
+ * Relevance filtering specification.
13421
+ */
13422
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec {
13423
+ /**
13424
+ * Optional. Relevance filtering threshold specification for keyword search.
13425
+ */
13426
+ keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
13427
+ /**
13428
+ * Optional. Relevance filtering threshold specification for semantic search.
13429
+ */
13430
+ semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
13431
+ }
13432
+ /**
13433
+ * Specification for relevance filtering on a specific sub-search.
13434
+ */
13435
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
13436
+ /**
13437
+ * Pre-defined relevance threshold for the sub-search.
13438
+ */
13439
+ relevanceThreshold?: string | null;
13440
+ /**
13441
+ * Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
13442
+ */
13443
+ semanticRelevanceThreshold?: number | null;
13444
+ }
13368
13445
  /**
13369
13446
  * The specification for returning the document relevance score.
13370
13447
  */
@@ -22638,7 +22715,7 @@ export namespace discoveryengine_v1alpha {
22638
22715
  * await discoveryengine.projects.locations.collections.updateDataConnector({
22639
22716
  * // Output only. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
22640
22717
  * name: 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
22641
- * // Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - action_config.action_params - action_config.service_name - destination_configs - blocking_reasons - sync_mode - incremental_sync_disabled - incremental_refresh_interval Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
22718
+ * // Indicates which fields in the provided DataConnector to update. Supported field paths include: - `refresh_interval` - `params` - `auto_run_disabled` - `action_config` - `action_config.action_params` - `action_config.service_name` - `destination_configs` - `blocking_reasons` - `sync_mode` - `incremental_sync_disabled` - `incremental_refresh_interval` - `data_protection_policy` Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
22642
22719
  * updateMask: 'placeholder-value',
22643
22720
  *
22644
22721
  * // Request body metadata
@@ -22895,7 +22972,7 @@ export namespace discoveryengine_v1alpha {
22895
22972
  */
22896
22973
  name?: string;
22897
22974
  /**
22898
- * Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - action_config.action_params - action_config.service_name - destination_configs - blocking_reasons - sync_mode - incremental_sync_disabled - incremental_refresh_interval Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
22975
+ * Indicates which fields in the provided DataConnector to update. Supported field paths include: - `refresh_interval` - `params` - `auto_run_disabled` - `action_config` - `action_config.action_params` - `action_config.service_name` - `destination_configs` - `blocking_reasons` - `sync_mode` - `incremental_sync_disabled` - `incremental_refresh_interval` - `data_protection_policy` Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
22899
22976
  */
22900
22977
  updateMask?: string;
22901
22978
 
@@ -33694,7 +33771,7 @@ export namespace discoveryengine_v1alpha {
33694
33771
  }
33695
33772
 
33696
33773
  /**
33697
- * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
33774
+ * Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.
33698
33775
  * @example
33699
33776
  * ```js
33700
33777
  * // Before running the sample:
@@ -33727,16 +33804,75 @@ export namespace discoveryengine_v1alpha {
33727
33804
  *
33728
33805
  * // Do the magic
33729
33806
  * const res =
33730
- * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
33807
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.create(
33731
33808
  * {
33732
- * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
33733
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
33809
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
33810
+ * parent:
33811
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
33812
+ * // Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
33813
+ * servingConfigId: 'placeholder-value',
33814
+ *
33815
+ * // Request body metadata
33816
+ * requestBody: {
33817
+ * // request body parameters
33818
+ * // {
33819
+ * // "answerGenerationSpec": {},
33820
+ * // "boostControlIds": [],
33821
+ * // "createTime": "my_createTime",
33822
+ * // "customFineTuningSpec": {},
33823
+ * // "displayName": "my_displayName",
33824
+ * // "dissociateControlIds": [],
33825
+ * // "diversityLevel": "my_diversityLevel",
33826
+ * // "embeddingConfig": {},
33827
+ * // "filterControlIds": [],
33828
+ * // "genericConfig": {},
33829
+ * // "guidedSearchSpec": {},
33830
+ * // "ignoreControlIds": [],
33831
+ * // "mediaConfig": {},
33832
+ * // "modelId": "my_modelId",
33833
+ * // "name": "my_name",
33834
+ * // "onewaySynonymsControlIds": [],
33835
+ * // "personalizationSpec": {},
33836
+ * // "promoteControlIds": [],
33837
+ * // "rankingExpression": "my_rankingExpression",
33838
+ * // "redirectControlIds": [],
33839
+ * // "replacementControlIds": [],
33840
+ * // "solutionType": "my_solutionType",
33841
+ * // "synonymsControlIds": [],
33842
+ * // "updateTime": "my_updateTime"
33843
+ * // }
33844
+ * },
33734
33845
  * },
33735
33846
  * );
33736
33847
  * console.log(res.data);
33737
33848
  *
33738
33849
  * // Example response
33739
- * // {}
33850
+ * // {
33851
+ * // "answerGenerationSpec": {},
33852
+ * // "boostControlIds": [],
33853
+ * // "createTime": "my_createTime",
33854
+ * // "customFineTuningSpec": {},
33855
+ * // "displayName": "my_displayName",
33856
+ * // "dissociateControlIds": [],
33857
+ * // "diversityLevel": "my_diversityLevel",
33858
+ * // "embeddingConfig": {},
33859
+ * // "filterControlIds": [],
33860
+ * // "genericConfig": {},
33861
+ * // "guidedSearchSpec": {},
33862
+ * // "ignoreControlIds": [],
33863
+ * // "mediaConfig": {},
33864
+ * // "modelId": "my_modelId",
33865
+ * // "name": "my_name",
33866
+ * // "onewaySynonymsControlIds": [],
33867
+ * // "personalizationSpec": {},
33868
+ * // "promoteControlIds": [],
33869
+ * // "rankingExpression": "my_rankingExpression",
33870
+ * // "redirectControlIds": [],
33871
+ * // "replacementControlIds": [],
33872
+ * // "solutionType": "my_solutionType",
33873
+ * // "synonymsControlIds": [],
33874
+ * // "updateTime": "my_updateTime"
33875
+ * // }
33740
33876
  * }
33741
33877
  *
33742
33878
  * main().catch(e => {
@@ -33751,54 +33887,62 @@ export namespace discoveryengine_v1alpha {
33751
33887
  * @param callback - Optional callback that handles the response.
33752
33888
  * @returns A promise if used with async/await, or void if used with a callback.
33753
33889
  */
33754
- delete(
33755
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33890
+ create(
33891
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33756
33892
  options: StreamMethodOptions
33757
33893
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
33758
- delete(
33759
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33894
+ create(
33895
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33760
33896
  options?: MethodOptions
33761
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
33762
- delete(
33763
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33897
+ ): Promise<
33898
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33899
+ >;
33900
+ create(
33901
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33764
33902
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
33765
33903
  callback: BodyResponseCallback<Readable>
33766
33904
  ): void;
33767
- delete(
33768
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33769
- options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
33770
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
33905
+ create(
33906
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33907
+ options:
33908
+ | MethodOptions
33909
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
33910
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33771
33911
  ): void;
33772
- delete(
33773
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33774
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
33912
+ create(
33913
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33914
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33775
33915
  ): void;
33776
- delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
33777
- delete(
33916
+ create(
33917
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33918
+ ): void;
33919
+ create(
33778
33920
  paramsOrCallback?:
33779
- | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
33780
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
33921
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create
33922
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33781
33923
  | BodyResponseCallback<Readable>,
33782
33924
  optionsOrCallback?:
33783
33925
  | MethodOptions
33784
33926
  | StreamMethodOptions
33785
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
33927
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33786
33928
  | BodyResponseCallback<Readable>,
33787
33929
  callback?:
33788
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
33930
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33789
33931
  | BodyResponseCallback<Readable>
33790
33932
  ):
33791
33933
  | void
33792
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
33934
+ | Promise<
33935
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33936
+ >
33793
33937
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
33794
33938
  let params = (paramsOrCallback ||
33795
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
33939
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
33796
33940
  let options = (optionsOrCallback || {}) as MethodOptions;
33797
33941
 
33798
33942
  if (typeof paramsOrCallback === 'function') {
33799
33943
  callback = paramsOrCallback;
33800
33944
  params =
33801
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
33945
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
33802
33946
  options = {};
33803
33947
  }
33804
33948
 
@@ -33812,29 +33956,34 @@ export namespace discoveryengine_v1alpha {
33812
33956
  const parameters = {
33813
33957
  options: Object.assign(
33814
33958
  {
33815
- url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
33816
- method: 'DELETE',
33959
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(
33960
+ /([^:]\/)\/+/g,
33961
+ '$1'
33962
+ ),
33963
+ method: 'POST',
33817
33964
  apiVersion: '',
33818
33965
  },
33819
33966
  options
33820
33967
  ),
33821
33968
  params,
33822
- requiredParams: ['name'],
33823
- pathParams: ['name'],
33969
+ requiredParams: ['parent'],
33970
+ pathParams: ['parent'],
33824
33971
  context: this.context,
33825
33972
  };
33826
33973
  if (callback) {
33827
- createAPIRequest<Schema$GoogleProtobufEmpty>(
33974
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
33828
33975
  parameters,
33829
33976
  callback as BodyResponseCallback<unknown>
33830
33977
  );
33831
33978
  } else {
33832
- return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
33979
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
33980
+ parameters
33981
+ );
33833
33982
  }
33834
33983
  }
33835
33984
 
33836
33985
  /**
33837
- * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
33986
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
33838
33987
  * @example
33839
33988
  * ```js
33840
33989
  * // Before running the sample:
@@ -33867,41 +34016,16 @@ export namespace discoveryengine_v1alpha {
33867
34016
  *
33868
34017
  * // Do the magic
33869
34018
  * const res =
33870
- * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.get(
34019
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
33871
34020
  * {
33872
- * // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
34021
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
33873
34022
  * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
33874
34023
  * },
33875
34024
  * );
33876
34025
  * console.log(res.data);
33877
34026
  *
33878
34027
  * // Example response
33879
- * // {
33880
- * // "answerGenerationSpec": {},
33881
- * // "boostControlIds": [],
33882
- * // "createTime": "my_createTime",
33883
- * // "customFineTuningSpec": {},
33884
- * // "displayName": "my_displayName",
33885
- * // "dissociateControlIds": [],
33886
- * // "diversityLevel": "my_diversityLevel",
33887
- * // "embeddingConfig": {},
33888
- * // "filterControlIds": [],
33889
- * // "genericConfig": {},
33890
- * // "guidedSearchSpec": {},
33891
- * // "ignoreControlIds": [],
33892
- * // "mediaConfig": {},
33893
- * // "modelId": "my_modelId",
33894
- * // "name": "my_name",
33895
- * // "onewaySynonymsControlIds": [],
33896
- * // "personalizationSpec": {},
33897
- * // "promoteControlIds": [],
33898
- * // "rankingExpression": "my_rankingExpression",
33899
- * // "redirectControlIds": [],
33900
- * // "replacementControlIds": [],
33901
- * // "solutionType": "my_solutionType",
33902
- * // "synonymsControlIds": [],
33903
- * // "updateTime": "my_updateTime"
33904
- * // }
34028
+ * // {}
33905
34029
  * }
33906
34030
  *
33907
34031
  * main().catch(e => {
@@ -33916,62 +34040,54 @@ export namespace discoveryengine_v1alpha {
33916
34040
  * @param callback - Optional callback that handles the response.
33917
34041
  * @returns A promise if used with async/await, or void if used with a callback.
33918
34042
  */
33919
- get(
33920
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34043
+ delete(
34044
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33921
34045
  options: StreamMethodOptions
33922
34046
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
33923
- get(
33924
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34047
+ delete(
34048
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33925
34049
  options?: MethodOptions
33926
- ): Promise<
33927
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33928
- >;
33929
- get(
33930
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34050
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
34051
+ delete(
34052
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
33931
34053
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
33932
34054
  callback: BodyResponseCallback<Readable>
33933
34055
  ): void;
33934
- get(
33935
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
33936
- options:
33937
- | MethodOptions
33938
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
33939
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33940
- ): void;
33941
- get(
33942
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
33943
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34056
+ delete(
34057
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
34058
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
34059
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
33944
34060
  ): void;
33945
- get(
33946
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34061
+ delete(
34062
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
34063
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
33947
34064
  ): void;
33948
- get(
34065
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
34066
+ delete(
33949
34067
  paramsOrCallback?:
33950
- | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
33951
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34068
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
34069
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
33952
34070
  | BodyResponseCallback<Readable>,
33953
34071
  optionsOrCallback?:
33954
34072
  | MethodOptions
33955
34073
  | StreamMethodOptions
33956
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34074
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
33957
34075
  | BodyResponseCallback<Readable>,
33958
34076
  callback?:
33959
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34077
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
33960
34078
  | BodyResponseCallback<Readable>
33961
34079
  ):
33962
34080
  | void
33963
- | Promise<
33964
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33965
- >
34081
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
33966
34082
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
33967
34083
  let params = (paramsOrCallback ||
33968
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
34084
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
33969
34085
  let options = (optionsOrCallback || {}) as MethodOptions;
33970
34086
 
33971
34087
  if (typeof paramsOrCallback === 'function') {
33972
34088
  callback = paramsOrCallback;
33973
34089
  params =
33974
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
34090
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
33975
34091
  options = {};
33976
34092
  }
33977
34093
 
@@ -33986,7 +34102,7 @@ export namespace discoveryengine_v1alpha {
33986
34102
  options: Object.assign(
33987
34103
  {
33988
34104
  url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
33989
- method: 'GET',
34105
+ method: 'DELETE',
33990
34106
  apiVersion: '',
33991
34107
  },
33992
34108
  options
@@ -33997,19 +34113,192 @@ export namespace discoveryengine_v1alpha {
33997
34113
  context: this.context,
33998
34114
  };
33999
34115
  if (callback) {
34000
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
34116
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
34001
34117
  parameters,
34002
34118
  callback as BodyResponseCallback<unknown>
34003
34119
  );
34004
34120
  } else {
34005
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
34006
- parameters
34007
- );
34121
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
34008
34122
  }
34009
34123
  }
34010
34124
 
34011
34125
  /**
34012
- * Lists all ServingConfigs linked to this dataStore.
34126
+ * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
34127
+ * @example
34128
+ * ```js
34129
+ * // Before running the sample:
34130
+ * // - Enable the API at:
34131
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
34132
+ * // - Login into gcloud by running:
34133
+ * // ```sh
34134
+ * // $ gcloud auth application-default login
34135
+ * // ```
34136
+ * // - Install the npm module by running:
34137
+ * // ```sh
34138
+ * // $ npm install googleapis
34139
+ * // ```
34140
+ *
34141
+ * const {google} = require('googleapis');
34142
+ * const discoveryengine = google.discoveryengine('v1alpha');
34143
+ *
34144
+ * async function main() {
34145
+ * const auth = new google.auth.GoogleAuth({
34146
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
34147
+ * scopes: [
34148
+ * 'https://www.googleapis.com/auth/cloud-platform',
34149
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
34150
+ * ],
34151
+ * });
34152
+ *
34153
+ * // Acquire an auth client, and bind it to all future calls
34154
+ * const authClient = await auth.getClient();
34155
+ * google.options({auth: authClient});
34156
+ *
34157
+ * // Do the magic
34158
+ * const res =
34159
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.get(
34160
+ * {
34161
+ * // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
34162
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
34163
+ * },
34164
+ * );
34165
+ * console.log(res.data);
34166
+ *
34167
+ * // Example response
34168
+ * // {
34169
+ * // "answerGenerationSpec": {},
34170
+ * // "boostControlIds": [],
34171
+ * // "createTime": "my_createTime",
34172
+ * // "customFineTuningSpec": {},
34173
+ * // "displayName": "my_displayName",
34174
+ * // "dissociateControlIds": [],
34175
+ * // "diversityLevel": "my_diversityLevel",
34176
+ * // "embeddingConfig": {},
34177
+ * // "filterControlIds": [],
34178
+ * // "genericConfig": {},
34179
+ * // "guidedSearchSpec": {},
34180
+ * // "ignoreControlIds": [],
34181
+ * // "mediaConfig": {},
34182
+ * // "modelId": "my_modelId",
34183
+ * // "name": "my_name",
34184
+ * // "onewaySynonymsControlIds": [],
34185
+ * // "personalizationSpec": {},
34186
+ * // "promoteControlIds": [],
34187
+ * // "rankingExpression": "my_rankingExpression",
34188
+ * // "redirectControlIds": [],
34189
+ * // "replacementControlIds": [],
34190
+ * // "solutionType": "my_solutionType",
34191
+ * // "synonymsControlIds": [],
34192
+ * // "updateTime": "my_updateTime"
34193
+ * // }
34194
+ * }
34195
+ *
34196
+ * main().catch(e => {
34197
+ * console.error(e);
34198
+ * throw e;
34199
+ * });
34200
+ *
34201
+ * ```
34202
+ *
34203
+ * @param params - Parameters for request
34204
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
34205
+ * @param callback - Optional callback that handles the response.
34206
+ * @returns A promise if used with async/await, or void if used with a callback.
34207
+ */
34208
+ get(
34209
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34210
+ options: StreamMethodOptions
34211
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
34212
+ get(
34213
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34214
+ options?: MethodOptions
34215
+ ): Promise<
34216
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34217
+ >;
34218
+ get(
34219
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34220
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
34221
+ callback: BodyResponseCallback<Readable>
34222
+ ): void;
34223
+ get(
34224
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34225
+ options:
34226
+ | MethodOptions
34227
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
34228
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34229
+ ): void;
34230
+ get(
34231
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
34232
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34233
+ ): void;
34234
+ get(
34235
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34236
+ ): void;
34237
+ get(
34238
+ paramsOrCallback?:
34239
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
34240
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34241
+ | BodyResponseCallback<Readable>,
34242
+ optionsOrCallback?:
34243
+ | MethodOptions
34244
+ | StreamMethodOptions
34245
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34246
+ | BodyResponseCallback<Readable>,
34247
+ callback?:
34248
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34249
+ | BodyResponseCallback<Readable>
34250
+ ):
34251
+ | void
34252
+ | Promise<
34253
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
34254
+ >
34255
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
34256
+ let params = (paramsOrCallback ||
34257
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
34258
+ let options = (optionsOrCallback || {}) as MethodOptions;
34259
+
34260
+ if (typeof paramsOrCallback === 'function') {
34261
+ callback = paramsOrCallback;
34262
+ params =
34263
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
34264
+ options = {};
34265
+ }
34266
+
34267
+ if (typeof optionsOrCallback === 'function') {
34268
+ callback = optionsOrCallback;
34269
+ options = {};
34270
+ }
34271
+
34272
+ const rootUrl =
34273
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
34274
+ const parameters = {
34275
+ options: Object.assign(
34276
+ {
34277
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
34278
+ method: 'GET',
34279
+ apiVersion: '',
34280
+ },
34281
+ options
34282
+ ),
34283
+ params,
34284
+ requiredParams: ['name'],
34285
+ pathParams: ['name'],
34286
+ context: this.context,
34287
+ };
34288
+ if (callback) {
34289
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
34290
+ parameters,
34291
+ callback as BodyResponseCallback<unknown>
34292
+ );
34293
+ } else {
34294
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
34295
+ parameters
34296
+ );
34297
+ }
34298
+ }
34299
+
34300
+ /**
34301
+ * Lists all ServingConfigs linked to this dataStore.
34013
34302
  * @example
34014
34303
  * ```js
34015
34304
  * // Before running the sample:
@@ -34621,6 +34910,7 @@ export namespace discoveryengine_v1alpha {
34621
34910
  * // "rankingExpression": "my_rankingExpression",
34622
34911
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
34623
34912
  * // "regionCode": "my_regionCode",
34913
+ * // "relevanceFilterSpec": {},
34624
34914
  * // "relevanceScoreSpec": {},
34625
34915
  * // "relevanceThreshold": "my_relevanceThreshold",
34626
34916
  * // "safeSearch": false,
@@ -34842,6 +35132,7 @@ export namespace discoveryengine_v1alpha {
34842
35132
  * // "rankingExpression": "my_rankingExpression",
34843
35133
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
34844
35134
  * // "regionCode": "my_regionCode",
35135
+ * // "relevanceFilterSpec": {},
34845
35136
  * // "relevanceScoreSpec": {},
34846
35137
  * // "relevanceThreshold": "my_relevanceThreshold",
34847
35138
  * // "safeSearch": false,
@@ -35181,6 +35472,21 @@ export namespace discoveryengine_v1alpha {
35181
35472
  */
35182
35473
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
35183
35474
  }
35475
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create extends StandardParameters {
35476
+ /**
35477
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
35478
+ */
35479
+ parent?: string;
35480
+ /**
35481
+ * Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
35482
+ */
35483
+ servingConfigId?: string;
35484
+
35485
+ /**
35486
+ * Request body metadata
35487
+ */
35488
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaServingConfig;
35489
+ }
35184
35490
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
35185
35491
  /**
35186
35492
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -50664,6 +50970,218 @@ export namespace discoveryengine_v1alpha {
50664
50970
  }
50665
50971
  }
50666
50972
 
50973
+ /**
50974
+ * Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.
50975
+ * @example
50976
+ * ```js
50977
+ * // Before running the sample:
50978
+ * // - Enable the API at:
50979
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
50980
+ * // - Login into gcloud by running:
50981
+ * // ```sh
50982
+ * // $ gcloud auth application-default login
50983
+ * // ```
50984
+ * // - Install the npm module by running:
50985
+ * // ```sh
50986
+ * // $ npm install googleapis
50987
+ * // ```
50988
+ *
50989
+ * const {google} = require('googleapis');
50990
+ * const discoveryengine = google.discoveryengine('v1alpha');
50991
+ *
50992
+ * async function main() {
50993
+ * const auth = new google.auth.GoogleAuth({
50994
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
50995
+ * scopes: [
50996
+ * 'https://www.googleapis.com/auth/cloud-platform',
50997
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
50998
+ * ],
50999
+ * });
51000
+ *
51001
+ * // Acquire an auth client, and bind it to all future calls
51002
+ * const authClient = await auth.getClient();
51003
+ * google.options({auth: authClient});
51004
+ *
51005
+ * // Do the magic
51006
+ * const res =
51007
+ * await discoveryengine.projects.locations.collections.engines.servingConfigs.create(
51008
+ * {
51009
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
51010
+ * parent:
51011
+ * 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
51012
+ * // Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
51013
+ * servingConfigId: 'placeholder-value',
51014
+ *
51015
+ * // Request body metadata
51016
+ * requestBody: {
51017
+ * // request body parameters
51018
+ * // {
51019
+ * // "answerGenerationSpec": {},
51020
+ * // "boostControlIds": [],
51021
+ * // "createTime": "my_createTime",
51022
+ * // "customFineTuningSpec": {},
51023
+ * // "displayName": "my_displayName",
51024
+ * // "dissociateControlIds": [],
51025
+ * // "diversityLevel": "my_diversityLevel",
51026
+ * // "embeddingConfig": {},
51027
+ * // "filterControlIds": [],
51028
+ * // "genericConfig": {},
51029
+ * // "guidedSearchSpec": {},
51030
+ * // "ignoreControlIds": [],
51031
+ * // "mediaConfig": {},
51032
+ * // "modelId": "my_modelId",
51033
+ * // "name": "my_name",
51034
+ * // "onewaySynonymsControlIds": [],
51035
+ * // "personalizationSpec": {},
51036
+ * // "promoteControlIds": [],
51037
+ * // "rankingExpression": "my_rankingExpression",
51038
+ * // "redirectControlIds": [],
51039
+ * // "replacementControlIds": [],
51040
+ * // "solutionType": "my_solutionType",
51041
+ * // "synonymsControlIds": [],
51042
+ * // "updateTime": "my_updateTime"
51043
+ * // }
51044
+ * },
51045
+ * },
51046
+ * );
51047
+ * console.log(res.data);
51048
+ *
51049
+ * // Example response
51050
+ * // {
51051
+ * // "answerGenerationSpec": {},
51052
+ * // "boostControlIds": [],
51053
+ * // "createTime": "my_createTime",
51054
+ * // "customFineTuningSpec": {},
51055
+ * // "displayName": "my_displayName",
51056
+ * // "dissociateControlIds": [],
51057
+ * // "diversityLevel": "my_diversityLevel",
51058
+ * // "embeddingConfig": {},
51059
+ * // "filterControlIds": [],
51060
+ * // "genericConfig": {},
51061
+ * // "guidedSearchSpec": {},
51062
+ * // "ignoreControlIds": [],
51063
+ * // "mediaConfig": {},
51064
+ * // "modelId": "my_modelId",
51065
+ * // "name": "my_name",
51066
+ * // "onewaySynonymsControlIds": [],
51067
+ * // "personalizationSpec": {},
51068
+ * // "promoteControlIds": [],
51069
+ * // "rankingExpression": "my_rankingExpression",
51070
+ * // "redirectControlIds": [],
51071
+ * // "replacementControlIds": [],
51072
+ * // "solutionType": "my_solutionType",
51073
+ * // "synonymsControlIds": [],
51074
+ * // "updateTime": "my_updateTime"
51075
+ * // }
51076
+ * }
51077
+ *
51078
+ * main().catch(e => {
51079
+ * console.error(e);
51080
+ * throw e;
51081
+ * });
51082
+ *
51083
+ * ```
51084
+ *
51085
+ * @param params - Parameters for request
51086
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
51087
+ * @param callback - Optional callback that handles the response.
51088
+ * @returns A promise if used with async/await, or void if used with a callback.
51089
+ */
51090
+ create(
51091
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51092
+ options: StreamMethodOptions
51093
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
51094
+ create(
51095
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51096
+ options?: MethodOptions
51097
+ ): Promise<
51098
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51099
+ >;
51100
+ create(
51101
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51102
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
51103
+ callback: BodyResponseCallback<Readable>
51104
+ ): void;
51105
+ create(
51106
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51107
+ options:
51108
+ | MethodOptions
51109
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
51110
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51111
+ ): void;
51112
+ create(
51113
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51114
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51115
+ ): void;
51116
+ create(
51117
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51118
+ ): void;
51119
+ create(
51120
+ paramsOrCallback?:
51121
+ | Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create
51122
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51123
+ | BodyResponseCallback<Readable>,
51124
+ optionsOrCallback?:
51125
+ | MethodOptions
51126
+ | StreamMethodOptions
51127
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51128
+ | BodyResponseCallback<Readable>,
51129
+ callback?:
51130
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51131
+ | BodyResponseCallback<Readable>
51132
+ ):
51133
+ | void
51134
+ | Promise<
51135
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51136
+ >
51137
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
51138
+ let params = (paramsOrCallback ||
51139
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
51140
+ let options = (optionsOrCallback || {}) as MethodOptions;
51141
+
51142
+ if (typeof paramsOrCallback === 'function') {
51143
+ callback = paramsOrCallback;
51144
+ params =
51145
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
51146
+ options = {};
51147
+ }
51148
+
51149
+ if (typeof optionsOrCallback === 'function') {
51150
+ callback = optionsOrCallback;
51151
+ options = {};
51152
+ }
51153
+
51154
+ const rootUrl =
51155
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
51156
+ const parameters = {
51157
+ options: Object.assign(
51158
+ {
51159
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(
51160
+ /([^:]\/)\/+/g,
51161
+ '$1'
51162
+ ),
51163
+ method: 'POST',
51164
+ apiVersion: '',
51165
+ },
51166
+ options
51167
+ ),
51168
+ params,
51169
+ requiredParams: ['parent'],
51170
+ pathParams: ['parent'],
51171
+ context: this.context,
51172
+ };
51173
+ if (callback) {
51174
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
51175
+ parameters,
51176
+ callback as BodyResponseCallback<unknown>
51177
+ );
51178
+ } else {
51179
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
51180
+ parameters
51181
+ );
51182
+ }
51183
+ }
51184
+
50667
51185
  /**
50668
51186
  * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
50669
51187
  * @example
@@ -51592,6 +52110,7 @@ export namespace discoveryengine_v1alpha {
51592
52110
  * // "rankingExpression": "my_rankingExpression",
51593
52111
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
51594
52112
  * // "regionCode": "my_regionCode",
52113
+ * // "relevanceFilterSpec": {},
51595
52114
  * // "relevanceScoreSpec": {},
51596
52115
  * // "relevanceThreshold": "my_relevanceThreshold",
51597
52116
  * // "safeSearch": false,
@@ -51813,6 +52332,7 @@ export namespace discoveryengine_v1alpha {
51813
52332
  * // "rankingExpression": "my_rankingExpression",
51814
52333
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
51815
52334
  * // "regionCode": "my_regionCode",
52335
+ * // "relevanceFilterSpec": {},
51816
52336
  * // "relevanceScoreSpec": {},
51817
52337
  * // "relevanceThreshold": "my_relevanceThreshold",
51818
52338
  * // "safeSearch": false,
@@ -52152,6 +52672,21 @@ export namespace discoveryengine_v1alpha {
52152
52672
  */
52153
52673
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
52154
52674
  }
52675
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create extends StandardParameters {
52676
+ /**
52677
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
52678
+ */
52679
+ parent?: string;
52680
+ /**
52681
+ * Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
52682
+ */
52683
+ servingConfigId?: string;
52684
+
52685
+ /**
52686
+ * Request body metadata
52687
+ */
52688
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaServingConfig;
52689
+ }
52155
52690
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
52156
52691
  /**
52157
52692
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -63441,6 +63976,216 @@ export namespace discoveryengine_v1alpha {
63441
63976
  }
63442
63977
  }
63443
63978
 
63979
+ /**
63980
+ * Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.
63981
+ * @example
63982
+ * ```js
63983
+ * // Before running the sample:
63984
+ * // - Enable the API at:
63985
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
63986
+ * // - Login into gcloud by running:
63987
+ * // ```sh
63988
+ * // $ gcloud auth application-default login
63989
+ * // ```
63990
+ * // - Install the npm module by running:
63991
+ * // ```sh
63992
+ * // $ npm install googleapis
63993
+ * // ```
63994
+ *
63995
+ * const {google} = require('googleapis');
63996
+ * const discoveryengine = google.discoveryengine('v1alpha');
63997
+ *
63998
+ * async function main() {
63999
+ * const auth = new google.auth.GoogleAuth({
64000
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
64001
+ * scopes: [
64002
+ * 'https://www.googleapis.com/auth/cloud-platform',
64003
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
64004
+ * ],
64005
+ * });
64006
+ *
64007
+ * // Acquire an auth client, and bind it to all future calls
64008
+ * const authClient = await auth.getClient();
64009
+ * google.options({auth: authClient});
64010
+ *
64011
+ * // Do the magic
64012
+ * const res =
64013
+ * await discoveryengine.projects.locations.dataStores.servingConfigs.create({
64014
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
64015
+ * parent:
64016
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
64017
+ * // Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
64018
+ * servingConfigId: 'placeholder-value',
64019
+ *
64020
+ * // Request body metadata
64021
+ * requestBody: {
64022
+ * // request body parameters
64023
+ * // {
64024
+ * // "answerGenerationSpec": {},
64025
+ * // "boostControlIds": [],
64026
+ * // "createTime": "my_createTime",
64027
+ * // "customFineTuningSpec": {},
64028
+ * // "displayName": "my_displayName",
64029
+ * // "dissociateControlIds": [],
64030
+ * // "diversityLevel": "my_diversityLevel",
64031
+ * // "embeddingConfig": {},
64032
+ * // "filterControlIds": [],
64033
+ * // "genericConfig": {},
64034
+ * // "guidedSearchSpec": {},
64035
+ * // "ignoreControlIds": [],
64036
+ * // "mediaConfig": {},
64037
+ * // "modelId": "my_modelId",
64038
+ * // "name": "my_name",
64039
+ * // "onewaySynonymsControlIds": [],
64040
+ * // "personalizationSpec": {},
64041
+ * // "promoteControlIds": [],
64042
+ * // "rankingExpression": "my_rankingExpression",
64043
+ * // "redirectControlIds": [],
64044
+ * // "replacementControlIds": [],
64045
+ * // "solutionType": "my_solutionType",
64046
+ * // "synonymsControlIds": [],
64047
+ * // "updateTime": "my_updateTime"
64048
+ * // }
64049
+ * },
64050
+ * });
64051
+ * console.log(res.data);
64052
+ *
64053
+ * // Example response
64054
+ * // {
64055
+ * // "answerGenerationSpec": {},
64056
+ * // "boostControlIds": [],
64057
+ * // "createTime": "my_createTime",
64058
+ * // "customFineTuningSpec": {},
64059
+ * // "displayName": "my_displayName",
64060
+ * // "dissociateControlIds": [],
64061
+ * // "diversityLevel": "my_diversityLevel",
64062
+ * // "embeddingConfig": {},
64063
+ * // "filterControlIds": [],
64064
+ * // "genericConfig": {},
64065
+ * // "guidedSearchSpec": {},
64066
+ * // "ignoreControlIds": [],
64067
+ * // "mediaConfig": {},
64068
+ * // "modelId": "my_modelId",
64069
+ * // "name": "my_name",
64070
+ * // "onewaySynonymsControlIds": [],
64071
+ * // "personalizationSpec": {},
64072
+ * // "promoteControlIds": [],
64073
+ * // "rankingExpression": "my_rankingExpression",
64074
+ * // "redirectControlIds": [],
64075
+ * // "replacementControlIds": [],
64076
+ * // "solutionType": "my_solutionType",
64077
+ * // "synonymsControlIds": [],
64078
+ * // "updateTime": "my_updateTime"
64079
+ * // }
64080
+ * }
64081
+ *
64082
+ * main().catch(e => {
64083
+ * console.error(e);
64084
+ * throw e;
64085
+ * });
64086
+ *
64087
+ * ```
64088
+ *
64089
+ * @param params - Parameters for request
64090
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
64091
+ * @param callback - Optional callback that handles the response.
64092
+ * @returns A promise if used with async/await, or void if used with a callback.
64093
+ */
64094
+ create(
64095
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64096
+ options: StreamMethodOptions
64097
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
64098
+ create(
64099
+ params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64100
+ options?: MethodOptions
64101
+ ): Promise<
64102
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64103
+ >;
64104
+ create(
64105
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64106
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
64107
+ callback: BodyResponseCallback<Readable>
64108
+ ): void;
64109
+ create(
64110
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64111
+ options:
64112
+ | MethodOptions
64113
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
64114
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64115
+ ): void;
64116
+ create(
64117
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64118
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64119
+ ): void;
64120
+ create(
64121
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64122
+ ): void;
64123
+ create(
64124
+ paramsOrCallback?:
64125
+ | Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create
64126
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64127
+ | BodyResponseCallback<Readable>,
64128
+ optionsOrCallback?:
64129
+ | MethodOptions
64130
+ | StreamMethodOptions
64131
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64132
+ | BodyResponseCallback<Readable>,
64133
+ callback?:
64134
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64135
+ | BodyResponseCallback<Readable>
64136
+ ):
64137
+ | void
64138
+ | Promise<
64139
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64140
+ >
64141
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
64142
+ let params = (paramsOrCallback ||
64143
+ {}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
64144
+ let options = (optionsOrCallback || {}) as MethodOptions;
64145
+
64146
+ if (typeof paramsOrCallback === 'function') {
64147
+ callback = paramsOrCallback;
64148
+ params =
64149
+ {} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
64150
+ options = {};
64151
+ }
64152
+
64153
+ if (typeof optionsOrCallback === 'function') {
64154
+ callback = optionsOrCallback;
64155
+ options = {};
64156
+ }
64157
+
64158
+ const rootUrl =
64159
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
64160
+ const parameters = {
64161
+ options: Object.assign(
64162
+ {
64163
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(
64164
+ /([^:]\/)\/+/g,
64165
+ '$1'
64166
+ ),
64167
+ method: 'POST',
64168
+ apiVersion: '',
64169
+ },
64170
+ options
64171
+ ),
64172
+ params,
64173
+ requiredParams: ['parent'],
64174
+ pathParams: ['parent'],
64175
+ context: this.context,
64176
+ };
64177
+ if (callback) {
64178
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
64179
+ parameters,
64180
+ callback as BodyResponseCallback<unknown>
64181
+ );
64182
+ } else {
64183
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
64184
+ parameters
64185
+ );
64186
+ }
64187
+ }
64188
+
63444
64189
  /**
63445
64190
  * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
63446
64191
  * @example
@@ -64360,6 +65105,7 @@ export namespace discoveryengine_v1alpha {
64360
65105
  * // "rankingExpression": "my_rankingExpression",
64361
65106
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
64362
65107
  * // "regionCode": "my_regionCode",
65108
+ * // "relevanceFilterSpec": {},
64363
65109
  * // "relevanceScoreSpec": {},
64364
65110
  * // "relevanceThreshold": "my_relevanceThreshold",
64365
65111
  * // "safeSearch": false,
@@ -64580,6 +65326,7 @@ export namespace discoveryengine_v1alpha {
64580
65326
  * // "rankingExpression": "my_rankingExpression",
64581
65327
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
64582
65328
  * // "regionCode": "my_regionCode",
65329
+ * // "relevanceFilterSpec": {},
64583
65330
  * // "relevanceScoreSpec": {},
64584
65331
  * // "relevanceThreshold": "my_relevanceThreshold",
64585
65332
  * // "safeSearch": false,
@@ -64919,6 +65666,21 @@ export namespace discoveryengine_v1alpha {
64919
65666
  */
64920
65667
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
64921
65668
  }
65669
+ export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create extends StandardParameters {
65670
+ /**
65671
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
65672
+ */
65673
+ parent?: string;
65674
+ /**
65675
+ * Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
65676
+ */
65677
+ servingConfigId?: string;
65678
+
65679
+ /**
65680
+ * Request body metadata
65681
+ */
65682
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaServingConfig;
65683
+ }
64922
65684
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
64923
65685
  /**
64924
65686
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`