@googleapis/discoveryengine 28.1.0 → 28.3.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
  */
@@ -2140,6 +2157,10 @@ export namespace discoveryengine_v1alpha {
2140
2157
  * Optional. Customer policy for the assistant.
2141
2158
  */
2142
2159
  customerPolicy?: Schema$GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicy;
2160
+ /**
2161
+ * Optional. This field controls the default web grounding toggle for end users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web grounding enabled by default on UI. If true, grounding toggle will be disabled by default on UI. End users can still enable web grounding in the UI if web grounding is enabled.
2162
+ */
2163
+ defaultWebGroundingToggleOff?: boolean | null;
2143
2164
  /**
2144
2165
  * Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
2145
2166
  */
@@ -2507,6 +2528,10 @@ export namespace discoveryengine_v1alpha {
2507
2528
  * Required. The OAuth2 client secret. Encrypted at rest.
2508
2529
  */
2509
2530
  clientSecret?: string | null;
2531
+ /**
2532
+ * Optional. Whether to enable PKCE verification. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/
2533
+ */
2534
+ pkceVerificationEnabled?: boolean | null;
2510
2535
  /**
2511
2536
  * Required. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events`
2512
2537
  */
@@ -8216,12 +8241,16 @@ export namespace discoveryengine_v1alpha {
8216
8241
  * 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
8242
  */
8218
8243
  regionCode?: string | null;
8244
+ /**
8245
+ * 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.
8246
+ */
8247
+ relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec;
8219
8248
  /**
8220
8249
  * Optional. The specification for returning the relevance score.
8221
8250
  */
8222
8251
  relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec;
8223
8252
  /**
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.
8253
+ * 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
8254
  */
8226
8255
  relevanceThreshold?: string | null;
8227
8256
  /**
@@ -8660,6 +8689,32 @@ export namespace discoveryengine_v1alpha {
8660
8689
  */
8661
8690
  pinUnexpandedResults?: boolean | null;
8662
8691
  }
8692
+ /**
8693
+ * Relevance filtering specification.
8694
+ */
8695
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec {
8696
+ /**
8697
+ * Optional. Relevance filtering threshold specification for keyword search.
8698
+ */
8699
+ keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
8700
+ /**
8701
+ * Optional. Relevance filtering threshold specification for semantic search.
8702
+ */
8703
+ semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
8704
+ }
8705
+ /**
8706
+ * Specification for relevance filtering on a specific sub-search.
8707
+ */
8708
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
8709
+ /**
8710
+ * Pre-defined relevance threshold for the sub-search.
8711
+ */
8712
+ relevanceThreshold?: string | null;
8713
+ /**
8714
+ * Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
8715
+ */
8716
+ semanticRelevanceThreshold?: number | null;
8717
+ }
8663
8718
  /**
8664
8719
  * The specification for returning the document relevance score.
8665
8720
  */
@@ -10890,6 +10945,10 @@ export namespace discoveryengine_v1alpha {
10890
10945
  * Optional. Customer policy for the assistant.
10891
10946
  */
10892
10947
  customerPolicy?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicy;
10948
+ /**
10949
+ * Optional. This field controls the default web grounding toggle for end users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web grounding enabled by default on UI. If true, grounding toggle will be disabled by default on UI. End users can still enable web grounding in the UI if web grounding is enabled.
10950
+ */
10951
+ defaultWebGroundingToggleOff?: boolean | null;
10893
10952
  /**
10894
10953
  * Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
10895
10954
  */
@@ -12925,12 +12984,16 @@ export namespace discoveryengine_v1alpha {
12925
12984
  * 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
12985
  */
12927
12986
  regionCode?: string | null;
12987
+ /**
12988
+ * 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.
12989
+ */
12990
+ relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec;
12928
12991
  /**
12929
12992
  * Optional. The specification for returning the relevance score.
12930
12993
  */
12931
12994
  relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec;
12932
12995
  /**
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.
12996
+ * 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
12997
  */
12935
12998
  relevanceThreshold?: string | null;
12936
12999
  /**
@@ -13365,6 +13428,32 @@ export namespace discoveryengine_v1alpha {
13365
13428
  */
13366
13429
  pinUnexpandedResults?: boolean | null;
13367
13430
  }
13431
+ /**
13432
+ * Relevance filtering specification.
13433
+ */
13434
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec {
13435
+ /**
13436
+ * Optional. Relevance filtering threshold specification for keyword search.
13437
+ */
13438
+ keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
13439
+ /**
13440
+ * Optional. Relevance filtering threshold specification for semantic search.
13441
+ */
13442
+ semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
13443
+ }
13444
+ /**
13445
+ * Specification for relevance filtering on a specific sub-search.
13446
+ */
13447
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
13448
+ /**
13449
+ * Pre-defined relevance threshold for the sub-search.
13450
+ */
13451
+ relevanceThreshold?: string | null;
13452
+ /**
13453
+ * Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
13454
+ */
13455
+ semanticRelevanceThreshold?: number | null;
13456
+ }
13368
13457
  /**
13369
13458
  * The specification for returning the document relevance score.
13370
13459
  */
@@ -22638,7 +22727,7 @@ export namespace discoveryengine_v1alpha {
22638
22727
  * await discoveryengine.projects.locations.collections.updateDataConnector({
22639
22728
  * // Output only. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
22640
22729
  * 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.
22730
+ * // 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
22731
  * updateMask: 'placeholder-value',
22643
22732
  *
22644
22733
  * // Request body metadata
@@ -22895,7 +22984,7 @@ export namespace discoveryengine_v1alpha {
22895
22984
  */
22896
22985
  name?: string;
22897
22986
  /**
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.
22987
+ * 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
22988
  */
22900
22989
  updateMask?: string;
22901
22990
 
@@ -33693,6 +33782,218 @@ export namespace discoveryengine_v1alpha {
33693
33782
  }
33694
33783
  }
33695
33784
 
33785
+ /**
33786
+ * 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.
33787
+ * @example
33788
+ * ```js
33789
+ * // Before running the sample:
33790
+ * // - Enable the API at:
33791
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
33792
+ * // - Login into gcloud by running:
33793
+ * // ```sh
33794
+ * // $ gcloud auth application-default login
33795
+ * // ```
33796
+ * // - Install the npm module by running:
33797
+ * // ```sh
33798
+ * // $ npm install googleapis
33799
+ * // ```
33800
+ *
33801
+ * const {google} = require('googleapis');
33802
+ * const discoveryengine = google.discoveryengine('v1alpha');
33803
+ *
33804
+ * async function main() {
33805
+ * const auth = new google.auth.GoogleAuth({
33806
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
33807
+ * scopes: [
33808
+ * 'https://www.googleapis.com/auth/cloud-platform',
33809
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
33810
+ * ],
33811
+ * });
33812
+ *
33813
+ * // Acquire an auth client, and bind it to all future calls
33814
+ * const authClient = await auth.getClient();
33815
+ * google.options({auth: authClient});
33816
+ *
33817
+ * // Do the magic
33818
+ * const res =
33819
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.create(
33820
+ * {
33821
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
33822
+ * parent:
33823
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
33824
+ * // 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+/.
33825
+ * servingConfigId: 'placeholder-value',
33826
+ *
33827
+ * // Request body metadata
33828
+ * requestBody: {
33829
+ * // request body parameters
33830
+ * // {
33831
+ * // "answerGenerationSpec": {},
33832
+ * // "boostControlIds": [],
33833
+ * // "createTime": "my_createTime",
33834
+ * // "customFineTuningSpec": {},
33835
+ * // "displayName": "my_displayName",
33836
+ * // "dissociateControlIds": [],
33837
+ * // "diversityLevel": "my_diversityLevel",
33838
+ * // "embeddingConfig": {},
33839
+ * // "filterControlIds": [],
33840
+ * // "genericConfig": {},
33841
+ * // "guidedSearchSpec": {},
33842
+ * // "ignoreControlIds": [],
33843
+ * // "mediaConfig": {},
33844
+ * // "modelId": "my_modelId",
33845
+ * // "name": "my_name",
33846
+ * // "onewaySynonymsControlIds": [],
33847
+ * // "personalizationSpec": {},
33848
+ * // "promoteControlIds": [],
33849
+ * // "rankingExpression": "my_rankingExpression",
33850
+ * // "redirectControlIds": [],
33851
+ * // "replacementControlIds": [],
33852
+ * // "solutionType": "my_solutionType",
33853
+ * // "synonymsControlIds": [],
33854
+ * // "updateTime": "my_updateTime"
33855
+ * // }
33856
+ * },
33857
+ * },
33858
+ * );
33859
+ * console.log(res.data);
33860
+ *
33861
+ * // Example response
33862
+ * // {
33863
+ * // "answerGenerationSpec": {},
33864
+ * // "boostControlIds": [],
33865
+ * // "createTime": "my_createTime",
33866
+ * // "customFineTuningSpec": {},
33867
+ * // "displayName": "my_displayName",
33868
+ * // "dissociateControlIds": [],
33869
+ * // "diversityLevel": "my_diversityLevel",
33870
+ * // "embeddingConfig": {},
33871
+ * // "filterControlIds": [],
33872
+ * // "genericConfig": {},
33873
+ * // "guidedSearchSpec": {},
33874
+ * // "ignoreControlIds": [],
33875
+ * // "mediaConfig": {},
33876
+ * // "modelId": "my_modelId",
33877
+ * // "name": "my_name",
33878
+ * // "onewaySynonymsControlIds": [],
33879
+ * // "personalizationSpec": {},
33880
+ * // "promoteControlIds": [],
33881
+ * // "rankingExpression": "my_rankingExpression",
33882
+ * // "redirectControlIds": [],
33883
+ * // "replacementControlIds": [],
33884
+ * // "solutionType": "my_solutionType",
33885
+ * // "synonymsControlIds": [],
33886
+ * // "updateTime": "my_updateTime"
33887
+ * // }
33888
+ * }
33889
+ *
33890
+ * main().catch(e => {
33891
+ * console.error(e);
33892
+ * throw e;
33893
+ * });
33894
+ *
33895
+ * ```
33896
+ *
33897
+ * @param params - Parameters for request
33898
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
33899
+ * @param callback - Optional callback that handles the response.
33900
+ * @returns A promise if used with async/await, or void if used with a callback.
33901
+ */
33902
+ create(
33903
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33904
+ options: StreamMethodOptions
33905
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
33906
+ create(
33907
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33908
+ options?: MethodOptions
33909
+ ): Promise<
33910
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33911
+ >;
33912
+ create(
33913
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33914
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
33915
+ callback: BodyResponseCallback<Readable>
33916
+ ): void;
33917
+ create(
33918
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33919
+ options:
33920
+ | MethodOptions
33921
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
33922
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33923
+ ): void;
33924
+ create(
33925
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
33926
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33927
+ ): void;
33928
+ create(
33929
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33930
+ ): void;
33931
+ create(
33932
+ paramsOrCallback?:
33933
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create
33934
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33935
+ | BodyResponseCallback<Readable>,
33936
+ optionsOrCallback?:
33937
+ | MethodOptions
33938
+ | StreamMethodOptions
33939
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33940
+ | BodyResponseCallback<Readable>,
33941
+ callback?:
33942
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33943
+ | BodyResponseCallback<Readable>
33944
+ ):
33945
+ | void
33946
+ | Promise<
33947
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
33948
+ >
33949
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
33950
+ let params = (paramsOrCallback ||
33951
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
33952
+ let options = (optionsOrCallback || {}) as MethodOptions;
33953
+
33954
+ if (typeof paramsOrCallback === 'function') {
33955
+ callback = paramsOrCallback;
33956
+ params =
33957
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
33958
+ options = {};
33959
+ }
33960
+
33961
+ if (typeof optionsOrCallback === 'function') {
33962
+ callback = optionsOrCallback;
33963
+ options = {};
33964
+ }
33965
+
33966
+ const rootUrl =
33967
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
33968
+ const parameters = {
33969
+ options: Object.assign(
33970
+ {
33971
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(
33972
+ /([^:]\/)\/+/g,
33973
+ '$1'
33974
+ ),
33975
+ method: 'POST',
33976
+ apiVersion: '',
33977
+ },
33978
+ options
33979
+ ),
33980
+ params,
33981
+ requiredParams: ['parent'],
33982
+ pathParams: ['parent'],
33983
+ context: this.context,
33984
+ };
33985
+ if (callback) {
33986
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
33987
+ parameters,
33988
+ callback as BodyResponseCallback<unknown>
33989
+ );
33990
+ } else {
33991
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
33992
+ parameters
33993
+ );
33994
+ }
33995
+ }
33996
+
33696
33997
  /**
33697
33998
  * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
33698
33999
  * @example
@@ -34621,6 +34922,7 @@ export namespace discoveryengine_v1alpha {
34621
34922
  * // "rankingExpression": "my_rankingExpression",
34622
34923
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
34623
34924
  * // "regionCode": "my_regionCode",
34925
+ * // "relevanceFilterSpec": {},
34624
34926
  * // "relevanceScoreSpec": {},
34625
34927
  * // "relevanceThreshold": "my_relevanceThreshold",
34626
34928
  * // "safeSearch": false,
@@ -34842,6 +35144,7 @@ export namespace discoveryengine_v1alpha {
34842
35144
  * // "rankingExpression": "my_rankingExpression",
34843
35145
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
34844
35146
  * // "regionCode": "my_regionCode",
35147
+ * // "relevanceFilterSpec": {},
34845
35148
  * // "relevanceScoreSpec": {},
34846
35149
  * // "relevanceThreshold": "my_relevanceThreshold",
34847
35150
  * // "safeSearch": false,
@@ -35181,6 +35484,21 @@ export namespace discoveryengine_v1alpha {
35181
35484
  */
35182
35485
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
35183
35486
  }
35487
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create extends StandardParameters {
35488
+ /**
35489
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
35490
+ */
35491
+ parent?: string;
35492
+ /**
35493
+ * 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+/.
35494
+ */
35495
+ servingConfigId?: string;
35496
+
35497
+ /**
35498
+ * Request body metadata
35499
+ */
35500
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaServingConfig;
35501
+ }
35184
35502
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
35185
35503
  /**
35186
35504
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -43321,6 +43639,7 @@ export namespace discoveryengine_v1alpha {
43321
43639
  * // request body parameters
43322
43640
  * // {
43323
43641
  * // "customerPolicy": {},
43642
+ * // "defaultWebGroundingToggleOff": false,
43324
43643
  * // "description": "my_description",
43325
43644
  * // "disableLocationContext": false,
43326
43645
  * // "displayName": "my_displayName",
@@ -43337,6 +43656,7 @@ export namespace discoveryengine_v1alpha {
43337
43656
  * // Example response
43338
43657
  * // {
43339
43658
  * // "customerPolicy": {},
43659
+ * // "defaultWebGroundingToggleOff": false,
43340
43660
  * // "description": "my_description",
43341
43661
  * // "disableLocationContext": false,
43342
43662
  * // "displayName": "my_displayName",
@@ -43641,6 +43961,7 @@ export namespace discoveryengine_v1alpha {
43641
43961
  * // Example response
43642
43962
  * // {
43643
43963
  * // "customerPolicy": {},
43964
+ * // "defaultWebGroundingToggleOff": false,
43644
43965
  * // "description": "my_description",
43645
43966
  * // "disableLocationContext": false,
43646
43967
  * // "displayName": "my_displayName",
@@ -44137,6 +44458,7 @@ export namespace discoveryengine_v1alpha {
44137
44458
  * // request body parameters
44138
44459
  * // {
44139
44460
  * // "customerPolicy": {},
44461
+ * // "defaultWebGroundingToggleOff": false,
44140
44462
  * // "description": "my_description",
44141
44463
  * // "disableLocationContext": false,
44142
44464
  * // "displayName": "my_displayName",
@@ -44153,6 +44475,7 @@ export namespace discoveryengine_v1alpha {
44153
44475
  * // Example response
44154
44476
  * // {
44155
44477
  * // "customerPolicy": {},
44478
+ * // "defaultWebGroundingToggleOff": false,
44156
44479
  * // "description": "my_description",
44157
44480
  * // "disableLocationContext": false,
44158
44481
  * // "displayName": "my_displayName",
@@ -50664,6 +50987,218 @@ export namespace discoveryengine_v1alpha {
50664
50987
  }
50665
50988
  }
50666
50989
 
50990
+ /**
50991
+ * 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.
50992
+ * @example
50993
+ * ```js
50994
+ * // Before running the sample:
50995
+ * // - Enable the API at:
50996
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
50997
+ * // - Login into gcloud by running:
50998
+ * // ```sh
50999
+ * // $ gcloud auth application-default login
51000
+ * // ```
51001
+ * // - Install the npm module by running:
51002
+ * // ```sh
51003
+ * // $ npm install googleapis
51004
+ * // ```
51005
+ *
51006
+ * const {google} = require('googleapis');
51007
+ * const discoveryengine = google.discoveryengine('v1alpha');
51008
+ *
51009
+ * async function main() {
51010
+ * const auth = new google.auth.GoogleAuth({
51011
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
51012
+ * scopes: [
51013
+ * 'https://www.googleapis.com/auth/cloud-platform',
51014
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
51015
+ * ],
51016
+ * });
51017
+ *
51018
+ * // Acquire an auth client, and bind it to all future calls
51019
+ * const authClient = await auth.getClient();
51020
+ * google.options({auth: authClient});
51021
+ *
51022
+ * // Do the magic
51023
+ * const res =
51024
+ * await discoveryengine.projects.locations.collections.engines.servingConfigs.create(
51025
+ * {
51026
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
51027
+ * parent:
51028
+ * 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
51029
+ * // 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+/.
51030
+ * servingConfigId: 'placeholder-value',
51031
+ *
51032
+ * // Request body metadata
51033
+ * requestBody: {
51034
+ * // request body parameters
51035
+ * // {
51036
+ * // "answerGenerationSpec": {},
51037
+ * // "boostControlIds": [],
51038
+ * // "createTime": "my_createTime",
51039
+ * // "customFineTuningSpec": {},
51040
+ * // "displayName": "my_displayName",
51041
+ * // "dissociateControlIds": [],
51042
+ * // "diversityLevel": "my_diversityLevel",
51043
+ * // "embeddingConfig": {},
51044
+ * // "filterControlIds": [],
51045
+ * // "genericConfig": {},
51046
+ * // "guidedSearchSpec": {},
51047
+ * // "ignoreControlIds": [],
51048
+ * // "mediaConfig": {},
51049
+ * // "modelId": "my_modelId",
51050
+ * // "name": "my_name",
51051
+ * // "onewaySynonymsControlIds": [],
51052
+ * // "personalizationSpec": {},
51053
+ * // "promoteControlIds": [],
51054
+ * // "rankingExpression": "my_rankingExpression",
51055
+ * // "redirectControlIds": [],
51056
+ * // "replacementControlIds": [],
51057
+ * // "solutionType": "my_solutionType",
51058
+ * // "synonymsControlIds": [],
51059
+ * // "updateTime": "my_updateTime"
51060
+ * // }
51061
+ * },
51062
+ * },
51063
+ * );
51064
+ * console.log(res.data);
51065
+ *
51066
+ * // Example response
51067
+ * // {
51068
+ * // "answerGenerationSpec": {},
51069
+ * // "boostControlIds": [],
51070
+ * // "createTime": "my_createTime",
51071
+ * // "customFineTuningSpec": {},
51072
+ * // "displayName": "my_displayName",
51073
+ * // "dissociateControlIds": [],
51074
+ * // "diversityLevel": "my_diversityLevel",
51075
+ * // "embeddingConfig": {},
51076
+ * // "filterControlIds": [],
51077
+ * // "genericConfig": {},
51078
+ * // "guidedSearchSpec": {},
51079
+ * // "ignoreControlIds": [],
51080
+ * // "mediaConfig": {},
51081
+ * // "modelId": "my_modelId",
51082
+ * // "name": "my_name",
51083
+ * // "onewaySynonymsControlIds": [],
51084
+ * // "personalizationSpec": {},
51085
+ * // "promoteControlIds": [],
51086
+ * // "rankingExpression": "my_rankingExpression",
51087
+ * // "redirectControlIds": [],
51088
+ * // "replacementControlIds": [],
51089
+ * // "solutionType": "my_solutionType",
51090
+ * // "synonymsControlIds": [],
51091
+ * // "updateTime": "my_updateTime"
51092
+ * // }
51093
+ * }
51094
+ *
51095
+ * main().catch(e => {
51096
+ * console.error(e);
51097
+ * throw e;
51098
+ * });
51099
+ *
51100
+ * ```
51101
+ *
51102
+ * @param params - Parameters for request
51103
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
51104
+ * @param callback - Optional callback that handles the response.
51105
+ * @returns A promise if used with async/await, or void if used with a callback.
51106
+ */
51107
+ create(
51108
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51109
+ options: StreamMethodOptions
51110
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
51111
+ create(
51112
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51113
+ options?: MethodOptions
51114
+ ): Promise<
51115
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51116
+ >;
51117
+ create(
51118
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51119
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
51120
+ callback: BodyResponseCallback<Readable>
51121
+ ): void;
51122
+ create(
51123
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51124
+ options:
51125
+ | MethodOptions
51126
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
51127
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51128
+ ): void;
51129
+ create(
51130
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
51131
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51132
+ ): void;
51133
+ create(
51134
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51135
+ ): void;
51136
+ create(
51137
+ paramsOrCallback?:
51138
+ | Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create
51139
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51140
+ | BodyResponseCallback<Readable>,
51141
+ optionsOrCallback?:
51142
+ | MethodOptions
51143
+ | StreamMethodOptions
51144
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51145
+ | BodyResponseCallback<Readable>,
51146
+ callback?:
51147
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51148
+ | BodyResponseCallback<Readable>
51149
+ ):
51150
+ | void
51151
+ | Promise<
51152
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
51153
+ >
51154
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
51155
+ let params = (paramsOrCallback ||
51156
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
51157
+ let options = (optionsOrCallback || {}) as MethodOptions;
51158
+
51159
+ if (typeof paramsOrCallback === 'function') {
51160
+ callback = paramsOrCallback;
51161
+ params =
51162
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
51163
+ options = {};
51164
+ }
51165
+
51166
+ if (typeof optionsOrCallback === 'function') {
51167
+ callback = optionsOrCallback;
51168
+ options = {};
51169
+ }
51170
+
51171
+ const rootUrl =
51172
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
51173
+ const parameters = {
51174
+ options: Object.assign(
51175
+ {
51176
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(
51177
+ /([^:]\/)\/+/g,
51178
+ '$1'
51179
+ ),
51180
+ method: 'POST',
51181
+ apiVersion: '',
51182
+ },
51183
+ options
51184
+ ),
51185
+ params,
51186
+ requiredParams: ['parent'],
51187
+ pathParams: ['parent'],
51188
+ context: this.context,
51189
+ };
51190
+ if (callback) {
51191
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
51192
+ parameters,
51193
+ callback as BodyResponseCallback<unknown>
51194
+ );
51195
+ } else {
51196
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
51197
+ parameters
51198
+ );
51199
+ }
51200
+ }
51201
+
50667
51202
  /**
50668
51203
  * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
50669
51204
  * @example
@@ -51592,6 +52127,7 @@ export namespace discoveryengine_v1alpha {
51592
52127
  * // "rankingExpression": "my_rankingExpression",
51593
52128
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
51594
52129
  * // "regionCode": "my_regionCode",
52130
+ * // "relevanceFilterSpec": {},
51595
52131
  * // "relevanceScoreSpec": {},
51596
52132
  * // "relevanceThreshold": "my_relevanceThreshold",
51597
52133
  * // "safeSearch": false,
@@ -51813,6 +52349,7 @@ export namespace discoveryengine_v1alpha {
51813
52349
  * // "rankingExpression": "my_rankingExpression",
51814
52350
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
51815
52351
  * // "regionCode": "my_regionCode",
52352
+ * // "relevanceFilterSpec": {},
51816
52353
  * // "relevanceScoreSpec": {},
51817
52354
  * // "relevanceThreshold": "my_relevanceThreshold",
51818
52355
  * // "safeSearch": false,
@@ -52152,6 +52689,21 @@ export namespace discoveryengine_v1alpha {
52152
52689
  */
52153
52690
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
52154
52691
  }
52692
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create extends StandardParameters {
52693
+ /**
52694
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
52695
+ */
52696
+ parent?: string;
52697
+ /**
52698
+ * 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+/.
52699
+ */
52700
+ servingConfigId?: string;
52701
+
52702
+ /**
52703
+ * Request body metadata
52704
+ */
52705
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaServingConfig;
52706
+ }
52155
52707
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
52156
52708
  /**
52157
52709
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -63441,6 +63993,216 @@ export namespace discoveryengine_v1alpha {
63441
63993
  }
63442
63994
  }
63443
63995
 
63996
+ /**
63997
+ * 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.
63998
+ * @example
63999
+ * ```js
64000
+ * // Before running the sample:
64001
+ * // - Enable the API at:
64002
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
64003
+ * // - Login into gcloud by running:
64004
+ * // ```sh
64005
+ * // $ gcloud auth application-default login
64006
+ * // ```
64007
+ * // - Install the npm module by running:
64008
+ * // ```sh
64009
+ * // $ npm install googleapis
64010
+ * // ```
64011
+ *
64012
+ * const {google} = require('googleapis');
64013
+ * const discoveryengine = google.discoveryengine('v1alpha');
64014
+ *
64015
+ * async function main() {
64016
+ * const auth = new google.auth.GoogleAuth({
64017
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
64018
+ * scopes: [
64019
+ * 'https://www.googleapis.com/auth/cloud-platform',
64020
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
64021
+ * ],
64022
+ * });
64023
+ *
64024
+ * // Acquire an auth client, and bind it to all future calls
64025
+ * const authClient = await auth.getClient();
64026
+ * google.options({auth: authClient});
64027
+ *
64028
+ * // Do the magic
64029
+ * const res =
64030
+ * await discoveryengine.projects.locations.dataStores.servingConfigs.create({
64031
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
64032
+ * parent:
64033
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
64034
+ * // 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+/.
64035
+ * servingConfigId: 'placeholder-value',
64036
+ *
64037
+ * // Request body metadata
64038
+ * requestBody: {
64039
+ * // request body parameters
64040
+ * // {
64041
+ * // "answerGenerationSpec": {},
64042
+ * // "boostControlIds": [],
64043
+ * // "createTime": "my_createTime",
64044
+ * // "customFineTuningSpec": {},
64045
+ * // "displayName": "my_displayName",
64046
+ * // "dissociateControlIds": [],
64047
+ * // "diversityLevel": "my_diversityLevel",
64048
+ * // "embeddingConfig": {},
64049
+ * // "filterControlIds": [],
64050
+ * // "genericConfig": {},
64051
+ * // "guidedSearchSpec": {},
64052
+ * // "ignoreControlIds": [],
64053
+ * // "mediaConfig": {},
64054
+ * // "modelId": "my_modelId",
64055
+ * // "name": "my_name",
64056
+ * // "onewaySynonymsControlIds": [],
64057
+ * // "personalizationSpec": {},
64058
+ * // "promoteControlIds": [],
64059
+ * // "rankingExpression": "my_rankingExpression",
64060
+ * // "redirectControlIds": [],
64061
+ * // "replacementControlIds": [],
64062
+ * // "solutionType": "my_solutionType",
64063
+ * // "synonymsControlIds": [],
64064
+ * // "updateTime": "my_updateTime"
64065
+ * // }
64066
+ * },
64067
+ * });
64068
+ * console.log(res.data);
64069
+ *
64070
+ * // Example response
64071
+ * // {
64072
+ * // "answerGenerationSpec": {},
64073
+ * // "boostControlIds": [],
64074
+ * // "createTime": "my_createTime",
64075
+ * // "customFineTuningSpec": {},
64076
+ * // "displayName": "my_displayName",
64077
+ * // "dissociateControlIds": [],
64078
+ * // "diversityLevel": "my_diversityLevel",
64079
+ * // "embeddingConfig": {},
64080
+ * // "filterControlIds": [],
64081
+ * // "genericConfig": {},
64082
+ * // "guidedSearchSpec": {},
64083
+ * // "ignoreControlIds": [],
64084
+ * // "mediaConfig": {},
64085
+ * // "modelId": "my_modelId",
64086
+ * // "name": "my_name",
64087
+ * // "onewaySynonymsControlIds": [],
64088
+ * // "personalizationSpec": {},
64089
+ * // "promoteControlIds": [],
64090
+ * // "rankingExpression": "my_rankingExpression",
64091
+ * // "redirectControlIds": [],
64092
+ * // "replacementControlIds": [],
64093
+ * // "solutionType": "my_solutionType",
64094
+ * // "synonymsControlIds": [],
64095
+ * // "updateTime": "my_updateTime"
64096
+ * // }
64097
+ * }
64098
+ *
64099
+ * main().catch(e => {
64100
+ * console.error(e);
64101
+ * throw e;
64102
+ * });
64103
+ *
64104
+ * ```
64105
+ *
64106
+ * @param params - Parameters for request
64107
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
64108
+ * @param callback - Optional callback that handles the response.
64109
+ * @returns A promise if used with async/await, or void if used with a callback.
64110
+ */
64111
+ create(
64112
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64113
+ options: StreamMethodOptions
64114
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
64115
+ create(
64116
+ params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64117
+ options?: MethodOptions
64118
+ ): Promise<
64119
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64120
+ >;
64121
+ create(
64122
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64123
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
64124
+ callback: BodyResponseCallback<Readable>
64125
+ ): void;
64126
+ create(
64127
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64128
+ options:
64129
+ | MethodOptions
64130
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>,
64131
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64132
+ ): void;
64133
+ create(
64134
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
64135
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64136
+ ): void;
64137
+ create(
64138
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64139
+ ): void;
64140
+ create(
64141
+ paramsOrCallback?:
64142
+ | Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create
64143
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64144
+ | BodyResponseCallback<Readable>,
64145
+ optionsOrCallback?:
64146
+ | MethodOptions
64147
+ | StreamMethodOptions
64148
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64149
+ | BodyResponseCallback<Readable>,
64150
+ callback?:
64151
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64152
+ | BodyResponseCallback<Readable>
64153
+ ):
64154
+ | void
64155
+ | Promise<
64156
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>
64157
+ >
64158
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
64159
+ let params = (paramsOrCallback ||
64160
+ {}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
64161
+ let options = (optionsOrCallback || {}) as MethodOptions;
64162
+
64163
+ if (typeof paramsOrCallback === 'function') {
64164
+ callback = paramsOrCallback;
64165
+ params =
64166
+ {} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
64167
+ options = {};
64168
+ }
64169
+
64170
+ if (typeof optionsOrCallback === 'function') {
64171
+ callback = optionsOrCallback;
64172
+ options = {};
64173
+ }
64174
+
64175
+ const rootUrl =
64176
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
64177
+ const parameters = {
64178
+ options: Object.assign(
64179
+ {
64180
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(
64181
+ /([^:]\/)\/+/g,
64182
+ '$1'
64183
+ ),
64184
+ method: 'POST',
64185
+ apiVersion: '',
64186
+ },
64187
+ options
64188
+ ),
64189
+ params,
64190
+ requiredParams: ['parent'],
64191
+ pathParams: ['parent'],
64192
+ context: this.context,
64193
+ };
64194
+ if (callback) {
64195
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
64196
+ parameters,
64197
+ callback as BodyResponseCallback<unknown>
64198
+ );
64199
+ } else {
64200
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>(
64201
+ parameters
64202
+ );
64203
+ }
64204
+ }
64205
+
63444
64206
  /**
63445
64207
  * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
63446
64208
  * @example
@@ -64360,6 +65122,7 @@ export namespace discoveryengine_v1alpha {
64360
65122
  * // "rankingExpression": "my_rankingExpression",
64361
65123
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
64362
65124
  * // "regionCode": "my_regionCode",
65125
+ * // "relevanceFilterSpec": {},
64363
65126
  * // "relevanceScoreSpec": {},
64364
65127
  * // "relevanceThreshold": "my_relevanceThreshold",
64365
65128
  * // "safeSearch": false,
@@ -64580,6 +65343,7 @@ export namespace discoveryengine_v1alpha {
64580
65343
  * // "rankingExpression": "my_rankingExpression",
64581
65344
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
64582
65345
  * // "regionCode": "my_regionCode",
65346
+ * // "relevanceFilterSpec": {},
64583
65347
  * // "relevanceScoreSpec": {},
64584
65348
  * // "relevanceThreshold": "my_relevanceThreshold",
64585
65349
  * // "safeSearch": false,
@@ -64919,6 +65683,21 @@ export namespace discoveryengine_v1alpha {
64919
65683
  */
64920
65684
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
64921
65685
  }
65686
+ export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create extends StandardParameters {
65687
+ /**
65688
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
65689
+ */
65690
+ parent?: string;
65691
+ /**
65692
+ * 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+/.
65693
+ */
65694
+ servingConfigId?: string;
65695
+
65696
+ /**
65697
+ * Request body metadata
65698
+ */
65699
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaServingConfig;
65700
+ }
64922
65701
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
64923
65702
  /**
64924
65703
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`