@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/v1beta.ts CHANGED
@@ -4086,12 +4086,16 @@ export namespace discoveryengine_v1beta {
4086
4086
  * 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.
4087
4087
  */
4088
4088
  regionCode?: string | null;
4089
+ /**
4090
+ * 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.
4091
+ */
4092
+ relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec;
4089
4093
  /**
4090
4094
  * Optional. The specification for returning the relevance score.
4091
4095
  */
4092
4096
  relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec;
4093
4097
  /**
4094
- * 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.
4098
+ * 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.
4095
4099
  */
4096
4100
  relevanceThreshold?: string | null;
4097
4101
  /**
@@ -4530,6 +4534,32 @@ export namespace discoveryengine_v1beta {
4530
4534
  */
4531
4535
  pinUnexpandedResults?: boolean | null;
4532
4536
  }
4537
+ /**
4538
+ * Relevance filtering specification.
4539
+ */
4540
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec {
4541
+ /**
4542
+ * Optional. Relevance filtering threshold specification for keyword search.
4543
+ */
4544
+ keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
4545
+ /**
4546
+ * Optional. Relevance filtering threshold specification for semantic search.
4547
+ */
4548
+ semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
4549
+ }
4550
+ /**
4551
+ * Specification for relevance filtering on a specific sub-search.
4552
+ */
4553
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
4554
+ /**
4555
+ * Pre-defined relevance threshold for the sub-search.
4556
+ */
4557
+ relevanceThreshold?: string | null;
4558
+ /**
4559
+ * Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
4560
+ */
4561
+ semanticRelevanceThreshold?: number | null;
4562
+ }
4533
4563
  /**
4534
4564
  * The specification for returning the document relevance score.
4535
4565
  */
@@ -5060,6 +5090,10 @@ export namespace discoveryengine_v1beta {
5060
5090
  * Optional. Customer policy for the assistant.
5061
5091
  */
5062
5092
  customerPolicy?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicy;
5093
+ /**
5094
+ * 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.
5095
+ */
5096
+ defaultWebGroundingToggleOff?: boolean | null;
5063
5097
  /**
5064
5098
  * Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
5065
5099
  */
@@ -6501,6 +6535,10 @@ export namespace discoveryengine_v1beta {
6501
6535
  * Optional. Customer policy for the assistant.
6502
6536
  */
6503
6537
  customerPolicy?: Schema$GoogleCloudDiscoveryengineV1betaAssistantCustomerPolicy;
6538
+ /**
6539
+ * 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.
6540
+ */
6541
+ defaultWebGroundingToggleOff?: boolean | null;
6504
6542
  /**
6505
6543
  * Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
6506
6544
  */
@@ -10732,12 +10770,16 @@ export namespace discoveryengine_v1beta {
10732
10770
  * 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.
10733
10771
  */
10734
10772
  regionCode?: string | null;
10773
+ /**
10774
+ * 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.
10775
+ */
10776
+ relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec;
10735
10777
  /**
10736
10778
  * Optional. The specification for returning the relevance score.
10737
10779
  */
10738
10780
  relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec;
10739
10781
  /**
10740
- * 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.
10782
+ * 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.
10741
10783
  */
10742
10784
  relevanceThreshold?: string | null;
10743
10785
  /**
@@ -11172,6 +11214,32 @@ export namespace discoveryengine_v1beta {
11172
11214
  */
11173
11215
  pinUnexpandedResults?: boolean | null;
11174
11216
  }
11217
+ /**
11218
+ * Relevance filtering specification.
11219
+ */
11220
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec {
11221
+ /**
11222
+ * Optional. Relevance filtering threshold specification for keyword search.
11223
+ */
11224
+ keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
11225
+ /**
11226
+ * Optional. Relevance filtering threshold specification for semantic search.
11227
+ */
11228
+ semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
11229
+ }
11230
+ /**
11231
+ * Specification for relevance filtering on a specific sub-search.
11232
+ */
11233
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
11234
+ /**
11235
+ * Pre-defined relevance threshold for the sub-search.
11236
+ */
11237
+ relevanceThreshold?: string | null;
11238
+ /**
11239
+ * Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
11240
+ */
11241
+ semanticRelevanceThreshold?: number | null;
11242
+ }
11175
11243
  /**
11176
11244
  * The specification for returning the document relevance score.
11177
11245
  */
@@ -25923,7 +25991,7 @@ export namespace discoveryengine_v1beta {
25923
25991
  }
25924
25992
 
25925
25993
  /**
25926
- * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
25994
+ * 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.
25927
25995
  * @example
25928
25996
  * ```js
25929
25997
  * // Before running the sample:
@@ -25956,150 +26024,42 @@ export namespace discoveryengine_v1beta {
25956
26024
  *
25957
26025
  * // Do the magic
25958
26026
  * const res =
25959
- * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
26027
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.create(
25960
26028
  * {
25961
- * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
25962
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
25963
- * },
25964
- * );
25965
- * console.log(res.data);
25966
- *
25967
- * // Example response
25968
- * // {}
25969
- * }
25970
- *
25971
- * main().catch(e => {
25972
- * console.error(e);
25973
- * throw e;
25974
- * });
25975
- *
25976
- * ```
25977
- *
25978
- * @param params - Parameters for request
25979
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
25980
- * @param callback - Optional callback that handles the response.
25981
- * @returns A promise if used with async/await, or void if used with a callback.
25982
- */
25983
- delete(
25984
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
25985
- options: StreamMethodOptions
25986
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
25987
- delete(
25988
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
25989
- options?: MethodOptions
25990
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
25991
- delete(
25992
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
25993
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
25994
- callback: BodyResponseCallback<Readable>
25995
- ): void;
25996
- delete(
25997
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
25998
- options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
25999
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
26000
- ): void;
26001
- delete(
26002
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
26003
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
26004
- ): void;
26005
- delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
26006
- delete(
26007
- paramsOrCallback?:
26008
- | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
26009
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
26010
- | BodyResponseCallback<Readable>,
26011
- optionsOrCallback?:
26012
- | MethodOptions
26013
- | StreamMethodOptions
26014
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
26015
- | BodyResponseCallback<Readable>,
26016
- callback?:
26017
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
26018
- | BodyResponseCallback<Readable>
26019
- ):
26020
- | void
26021
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
26022
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
26023
- let params = (paramsOrCallback ||
26024
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
26025
- let options = (optionsOrCallback || {}) as MethodOptions;
26026
-
26027
- if (typeof paramsOrCallback === 'function') {
26028
- callback = paramsOrCallback;
26029
- params =
26030
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
26031
- options = {};
26032
- }
26033
-
26034
- if (typeof optionsOrCallback === 'function') {
26035
- callback = optionsOrCallback;
26036
- options = {};
26037
- }
26038
-
26039
- const rootUrl =
26040
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
26041
- const parameters = {
26042
- options: Object.assign(
26043
- {
26044
- url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
26045
- method: 'DELETE',
26046
- apiVersion: '',
26047
- },
26048
- options
26049
- ),
26050
- params,
26051
- requiredParams: ['name'],
26052
- pathParams: ['name'],
26053
- context: this.context,
26054
- };
26055
- if (callback) {
26056
- createAPIRequest<Schema$GoogleProtobufEmpty>(
26057
- parameters,
26058
- callback as BodyResponseCallback<unknown>
26059
- );
26060
- } else {
26061
- return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
26062
- }
26063
- }
26064
-
26065
- /**
26066
- * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
26067
- * @example
26068
- * ```js
26069
- * // Before running the sample:
26070
- * // - Enable the API at:
26071
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
26072
- * // - Login into gcloud by running:
26073
- * // ```sh
26074
- * // $ gcloud auth application-default login
26075
- * // ```
26076
- * // - Install the npm module by running:
26077
- * // ```sh
26078
- * // $ npm install googleapis
26079
- * // ```
26080
- *
26081
- * const {google} = require('googleapis');
26082
- * const discoveryengine = google.discoveryengine('v1beta');
26083
- *
26084
- * async function main() {
26085
- * const auth = new google.auth.GoogleAuth({
26086
- * // Scopes can be specified either as an array or as a single, space-delimited string.
26087
- * scopes: [
26088
- * 'https://www.googleapis.com/auth/cloud-platform',
26089
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26090
- * ],
26091
- * });
26092
- *
26093
- * // Acquire an auth client, and bind it to all future calls
26094
- * const authClient = await auth.getClient();
26095
- * google.options({auth: authClient});
26029
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
26030
+ * parent:
26031
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
26032
+ * // 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+/.
26033
+ * servingConfigId: 'placeholder-value',
26096
26034
  *
26097
- * // Do the magic
26098
- * const res =
26099
- * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.get(
26100
- * {
26101
- * // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
26102
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
26035
+ * // Request body metadata
26036
+ * requestBody: {
26037
+ * // request body parameters
26038
+ * // {
26039
+ * // "answerGenerationSpec": {},
26040
+ * // "boostControlIds": [],
26041
+ * // "createTime": "my_createTime",
26042
+ * // "displayName": "my_displayName",
26043
+ * // "dissociateControlIds": [],
26044
+ * // "diversityLevel": "my_diversityLevel",
26045
+ * // "embeddingConfig": {},
26046
+ * // "filterControlIds": [],
26047
+ * // "genericConfig": {},
26048
+ * // "ignoreControlIds": [],
26049
+ * // "mediaConfig": {},
26050
+ * // "modelId": "my_modelId",
26051
+ * // "name": "my_name",
26052
+ * // "onewaySynonymsControlIds": [],
26053
+ * // "personalizationSpec": {},
26054
+ * // "promoteControlIds": [],
26055
+ * // "rankingExpression": "my_rankingExpression",
26056
+ * // "redirectControlIds": [],
26057
+ * // "replacementControlIds": [],
26058
+ * // "solutionType": "my_solutionType",
26059
+ * // "synonymsControlIds": [],
26060
+ * // "updateTime": "my_updateTime"
26061
+ * // }
26062
+ * },
26103
26063
  * },
26104
26064
  * );
26105
26065
  * console.log(res.data);
@@ -26143,38 +26103,38 @@ export namespace discoveryengine_v1beta {
26143
26103
  * @param callback - Optional callback that handles the response.
26144
26104
  * @returns A promise if used with async/await, or void if used with a callback.
26145
26105
  */
26146
- get(
26147
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26106
+ create(
26107
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
26148
26108
  options: StreamMethodOptions
26149
26109
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
26150
- get(
26151
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26110
+ create(
26111
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
26152
26112
  options?: MethodOptions
26153
26113
  ): Promise<
26154
26114
  GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26155
26115
  >;
26156
- get(
26157
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26116
+ create(
26117
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
26158
26118
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
26159
26119
  callback: BodyResponseCallback<Readable>
26160
26120
  ): void;
26161
- get(
26162
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26121
+ create(
26122
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
26163
26123
  options:
26164
26124
  | MethodOptions
26165
26125
  | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
26166
26126
  callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26167
26127
  ): void;
26168
- get(
26169
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26128
+ create(
26129
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
26170
26130
  callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26171
26131
  ): void;
26172
- get(
26132
+ create(
26173
26133
  callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26174
26134
  ): void;
26175
- get(
26135
+ create(
26176
26136
  paramsOrCallback?:
26177
- | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
26137
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create
26178
26138
  | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26179
26139
  | BodyResponseCallback<Readable>,
26180
26140
  optionsOrCallback?:
@@ -26192,13 +26152,13 @@ export namespace discoveryengine_v1beta {
26192
26152
  >
26193
26153
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
26194
26154
  let params = (paramsOrCallback ||
26195
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
26155
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
26196
26156
  let options = (optionsOrCallback || {}) as MethodOptions;
26197
26157
 
26198
26158
  if (typeof paramsOrCallback === 'function') {
26199
26159
  callback = paramsOrCallback;
26200
26160
  params =
26201
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
26161
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
26202
26162
  options = {};
26203
26163
  }
26204
26164
 
@@ -26212,15 +26172,18 @@ export namespace discoveryengine_v1beta {
26212
26172
  const parameters = {
26213
26173
  options: Object.assign(
26214
26174
  {
26215
- url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
26216
- method: 'GET',
26175
+ url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
26176
+ /([^:]\/)\/+/g,
26177
+ '$1'
26178
+ ),
26179
+ method: 'POST',
26217
26180
  apiVersion: '',
26218
26181
  },
26219
26182
  options
26220
26183
  ),
26221
26184
  params,
26222
- requiredParams: ['name'],
26223
- pathParams: ['name'],
26185
+ requiredParams: ['parent'],
26186
+ pathParams: ['parent'],
26224
26187
  context: this.context,
26225
26188
  };
26226
26189
  if (callback) {
@@ -26236,7 +26199,7 @@ export namespace discoveryengine_v1beta {
26236
26199
  }
26237
26200
 
26238
26201
  /**
26239
- * Lists all ServingConfigs linked to this dataStore.
26202
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
26240
26203
  * @example
26241
26204
  * ```js
26242
26205
  * // Before running the sample:
@@ -26269,24 +26232,16 @@ export namespace discoveryengine_v1beta {
26269
26232
  *
26270
26233
  * // Do the magic
26271
26234
  * const res =
26272
- * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.list(
26235
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
26273
26236
  * {
26274
- * // Optional. Maximum number of results to return. If unspecified, defaults to 100. If a value greater than 100 is provided, at most 100 results are returned.
26275
- * pageSize: 'placeholder-value',
26276
- * // Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
26277
- * pageToken: 'placeholder-value',
26278
- * // Required. Full resource name of the parent resource. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
26279
- * parent:
26280
- * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
26237
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
26238
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
26281
26239
  * },
26282
26240
  * );
26283
26241
  * console.log(res.data);
26284
26242
  *
26285
26243
  * // Example response
26286
- * // {
26287
- * // "nextPageToken": "my_nextPageToken",
26288
- * // "servingConfigs": []
26289
- * // }
26244
+ * // {}
26290
26245
  * }
26291
26246
  *
26292
26247
  * main().catch(e => {
@@ -26301,62 +26256,54 @@ export namespace discoveryengine_v1beta {
26301
26256
  * @param callback - Optional callback that handles the response.
26302
26257
  * @returns A promise if used with async/await, or void if used with a callback.
26303
26258
  */
26304
- list(
26305
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26259
+ delete(
26260
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
26306
26261
  options: StreamMethodOptions
26307
26262
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
26308
- list(
26309
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26263
+ delete(
26264
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
26310
26265
  options?: MethodOptions
26311
- ): Promise<
26312
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26313
- >;
26314
- list(
26315
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26266
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
26267
+ delete(
26268
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
26316
26269
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
26317
26270
  callback: BodyResponseCallback<Readable>
26318
26271
  ): void;
26319
- list(
26320
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26321
- options:
26322
- | MethodOptions
26323
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>,
26324
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26325
- ): void;
26326
- list(
26327
- params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26328
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26272
+ delete(
26273
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
26274
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
26275
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
26329
26276
  ): void;
26330
- list(
26331
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26277
+ delete(
26278
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
26279
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
26332
26280
  ): void;
26333
- list(
26281
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
26282
+ delete(
26334
26283
  paramsOrCallback?:
26335
- | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List
26336
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26284
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
26285
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
26337
26286
  | BodyResponseCallback<Readable>,
26338
26287
  optionsOrCallback?:
26339
26288
  | MethodOptions
26340
26289
  | StreamMethodOptions
26341
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26290
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
26342
26291
  | BodyResponseCallback<Readable>,
26343
26292
  callback?:
26344
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26293
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
26345
26294
  | BodyResponseCallback<Readable>
26346
26295
  ):
26347
26296
  | void
26348
- | Promise<
26349
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26350
- >
26297
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
26351
26298
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
26352
26299
  let params = (paramsOrCallback ||
26353
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
26300
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
26354
26301
  let options = (optionsOrCallback || {}) as MethodOptions;
26355
26302
 
26356
26303
  if (typeof paramsOrCallback === 'function') {
26357
26304
  callback = paramsOrCallback;
26358
26305
  params =
26359
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
26306
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
26360
26307
  options = {};
26361
26308
  }
26362
26309
 
@@ -26370,34 +26317,363 @@ export namespace discoveryengine_v1beta {
26370
26317
  const parameters = {
26371
26318
  options: Object.assign(
26372
26319
  {
26373
- url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
26374
- /([^:]\/)\/+/g,
26375
- '$1'
26376
- ),
26377
- method: 'GET',
26320
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
26321
+ method: 'DELETE',
26378
26322
  apiVersion: '',
26379
26323
  },
26380
26324
  options
26381
26325
  ),
26382
26326
  params,
26383
- requiredParams: ['parent'],
26384
- pathParams: ['parent'],
26327
+ requiredParams: ['name'],
26328
+ pathParams: ['name'],
26385
26329
  context: this.context,
26386
26330
  };
26387
26331
  if (callback) {
26388
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
26332
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
26389
26333
  parameters,
26390
26334
  callback as BodyResponseCallback<unknown>
26391
26335
  );
26392
26336
  } else {
26393
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
26394
- parameters
26395
- );
26337
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
26396
26338
  }
26397
26339
  }
26398
26340
 
26399
26341
  /**
26400
- * Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
26342
+ * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
26343
+ * @example
26344
+ * ```js
26345
+ * // Before running the sample:
26346
+ * // - Enable the API at:
26347
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
26348
+ * // - Login into gcloud by running:
26349
+ * // ```sh
26350
+ * // $ gcloud auth application-default login
26351
+ * // ```
26352
+ * // - Install the npm module by running:
26353
+ * // ```sh
26354
+ * // $ npm install googleapis
26355
+ * // ```
26356
+ *
26357
+ * const {google} = require('googleapis');
26358
+ * const discoveryengine = google.discoveryengine('v1beta');
26359
+ *
26360
+ * async function main() {
26361
+ * const auth = new google.auth.GoogleAuth({
26362
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
26363
+ * scopes: [
26364
+ * 'https://www.googleapis.com/auth/cloud-platform',
26365
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26366
+ * ],
26367
+ * });
26368
+ *
26369
+ * // Acquire an auth client, and bind it to all future calls
26370
+ * const authClient = await auth.getClient();
26371
+ * google.options({auth: authClient});
26372
+ *
26373
+ * // Do the magic
26374
+ * const res =
26375
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.get(
26376
+ * {
26377
+ * // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
26378
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
26379
+ * },
26380
+ * );
26381
+ * console.log(res.data);
26382
+ *
26383
+ * // Example response
26384
+ * // {
26385
+ * // "answerGenerationSpec": {},
26386
+ * // "boostControlIds": [],
26387
+ * // "createTime": "my_createTime",
26388
+ * // "displayName": "my_displayName",
26389
+ * // "dissociateControlIds": [],
26390
+ * // "diversityLevel": "my_diversityLevel",
26391
+ * // "embeddingConfig": {},
26392
+ * // "filterControlIds": [],
26393
+ * // "genericConfig": {},
26394
+ * // "ignoreControlIds": [],
26395
+ * // "mediaConfig": {},
26396
+ * // "modelId": "my_modelId",
26397
+ * // "name": "my_name",
26398
+ * // "onewaySynonymsControlIds": [],
26399
+ * // "personalizationSpec": {},
26400
+ * // "promoteControlIds": [],
26401
+ * // "rankingExpression": "my_rankingExpression",
26402
+ * // "redirectControlIds": [],
26403
+ * // "replacementControlIds": [],
26404
+ * // "solutionType": "my_solutionType",
26405
+ * // "synonymsControlIds": [],
26406
+ * // "updateTime": "my_updateTime"
26407
+ * // }
26408
+ * }
26409
+ *
26410
+ * main().catch(e => {
26411
+ * console.error(e);
26412
+ * throw e;
26413
+ * });
26414
+ *
26415
+ * ```
26416
+ *
26417
+ * @param params - Parameters for request
26418
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
26419
+ * @param callback - Optional callback that handles the response.
26420
+ * @returns A promise if used with async/await, or void if used with a callback.
26421
+ */
26422
+ get(
26423
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26424
+ options: StreamMethodOptions
26425
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
26426
+ get(
26427
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26428
+ options?: MethodOptions
26429
+ ): Promise<
26430
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26431
+ >;
26432
+ get(
26433
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26434
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
26435
+ callback: BodyResponseCallback<Readable>
26436
+ ): void;
26437
+ get(
26438
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26439
+ options:
26440
+ | MethodOptions
26441
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
26442
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26443
+ ): void;
26444
+ get(
26445
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
26446
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26447
+ ): void;
26448
+ get(
26449
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26450
+ ): void;
26451
+ get(
26452
+ paramsOrCallback?:
26453
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
26454
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26455
+ | BodyResponseCallback<Readable>,
26456
+ optionsOrCallback?:
26457
+ | MethodOptions
26458
+ | StreamMethodOptions
26459
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26460
+ | BodyResponseCallback<Readable>,
26461
+ callback?:
26462
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26463
+ | BodyResponseCallback<Readable>
26464
+ ):
26465
+ | void
26466
+ | Promise<
26467
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
26468
+ >
26469
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
26470
+ let params = (paramsOrCallback ||
26471
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
26472
+ let options = (optionsOrCallback || {}) as MethodOptions;
26473
+
26474
+ if (typeof paramsOrCallback === 'function') {
26475
+ callback = paramsOrCallback;
26476
+ params =
26477
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
26478
+ options = {};
26479
+ }
26480
+
26481
+ if (typeof optionsOrCallback === 'function') {
26482
+ callback = optionsOrCallback;
26483
+ options = {};
26484
+ }
26485
+
26486
+ const rootUrl =
26487
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
26488
+ const parameters = {
26489
+ options: Object.assign(
26490
+ {
26491
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
26492
+ method: 'GET',
26493
+ apiVersion: '',
26494
+ },
26495
+ options
26496
+ ),
26497
+ params,
26498
+ requiredParams: ['name'],
26499
+ pathParams: ['name'],
26500
+ context: this.context,
26501
+ };
26502
+ if (callback) {
26503
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
26504
+ parameters,
26505
+ callback as BodyResponseCallback<unknown>
26506
+ );
26507
+ } else {
26508
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
26509
+ parameters
26510
+ );
26511
+ }
26512
+ }
26513
+
26514
+ /**
26515
+ * Lists all ServingConfigs linked to this dataStore.
26516
+ * @example
26517
+ * ```js
26518
+ * // Before running the sample:
26519
+ * // - Enable the API at:
26520
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
26521
+ * // - Login into gcloud by running:
26522
+ * // ```sh
26523
+ * // $ gcloud auth application-default login
26524
+ * // ```
26525
+ * // - Install the npm module by running:
26526
+ * // ```sh
26527
+ * // $ npm install googleapis
26528
+ * // ```
26529
+ *
26530
+ * const {google} = require('googleapis');
26531
+ * const discoveryengine = google.discoveryengine('v1beta');
26532
+ *
26533
+ * async function main() {
26534
+ * const auth = new google.auth.GoogleAuth({
26535
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
26536
+ * scopes: [
26537
+ * 'https://www.googleapis.com/auth/cloud-platform',
26538
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26539
+ * ],
26540
+ * });
26541
+ *
26542
+ * // Acquire an auth client, and bind it to all future calls
26543
+ * const authClient = await auth.getClient();
26544
+ * google.options({auth: authClient});
26545
+ *
26546
+ * // Do the magic
26547
+ * const res =
26548
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.list(
26549
+ * {
26550
+ * // Optional. Maximum number of results to return. If unspecified, defaults to 100. If a value greater than 100 is provided, at most 100 results are returned.
26551
+ * pageSize: 'placeholder-value',
26552
+ * // Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
26553
+ * pageToken: 'placeholder-value',
26554
+ * // Required. Full resource name of the parent resource. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
26555
+ * parent:
26556
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
26557
+ * },
26558
+ * );
26559
+ * console.log(res.data);
26560
+ *
26561
+ * // Example response
26562
+ * // {
26563
+ * // "nextPageToken": "my_nextPageToken",
26564
+ * // "servingConfigs": []
26565
+ * // }
26566
+ * }
26567
+ *
26568
+ * main().catch(e => {
26569
+ * console.error(e);
26570
+ * throw e;
26571
+ * });
26572
+ *
26573
+ * ```
26574
+ *
26575
+ * @param params - Parameters for request
26576
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
26577
+ * @param callback - Optional callback that handles the response.
26578
+ * @returns A promise if used with async/await, or void if used with a callback.
26579
+ */
26580
+ list(
26581
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26582
+ options: StreamMethodOptions
26583
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
26584
+ list(
26585
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26586
+ options?: MethodOptions
26587
+ ): Promise<
26588
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26589
+ >;
26590
+ list(
26591
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26592
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
26593
+ callback: BodyResponseCallback<Readable>
26594
+ ): void;
26595
+ list(
26596
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26597
+ options:
26598
+ | MethodOptions
26599
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>,
26600
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26601
+ ): void;
26602
+ list(
26603
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
26604
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26605
+ ): void;
26606
+ list(
26607
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26608
+ ): void;
26609
+ list(
26610
+ paramsOrCallback?:
26611
+ | Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List
26612
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26613
+ | BodyResponseCallback<Readable>,
26614
+ optionsOrCallback?:
26615
+ | MethodOptions
26616
+ | StreamMethodOptions
26617
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26618
+ | BodyResponseCallback<Readable>,
26619
+ callback?:
26620
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26621
+ | BodyResponseCallback<Readable>
26622
+ ):
26623
+ | void
26624
+ | Promise<
26625
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>
26626
+ >
26627
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
26628
+ let params = (paramsOrCallback ||
26629
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
26630
+ let options = (optionsOrCallback || {}) as MethodOptions;
26631
+
26632
+ if (typeof paramsOrCallback === 'function') {
26633
+ callback = paramsOrCallback;
26634
+ params =
26635
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
26636
+ options = {};
26637
+ }
26638
+
26639
+ if (typeof optionsOrCallback === 'function') {
26640
+ callback = optionsOrCallback;
26641
+ options = {};
26642
+ }
26643
+
26644
+ const rootUrl =
26645
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
26646
+ const parameters = {
26647
+ options: Object.assign(
26648
+ {
26649
+ url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
26650
+ /([^:]\/)\/+/g,
26651
+ '$1'
26652
+ ),
26653
+ method: 'GET',
26654
+ apiVersion: '',
26655
+ },
26656
+ options
26657
+ ),
26658
+ params,
26659
+ requiredParams: ['parent'],
26660
+ pathParams: ['parent'],
26661
+ context: this.context,
26662
+ };
26663
+ if (callback) {
26664
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
26665
+ parameters,
26666
+ callback as BodyResponseCallback<unknown>
26667
+ );
26668
+ } else {
26669
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListServingConfigsResponse>(
26670
+ parameters
26671
+ );
26672
+ }
26673
+ }
26674
+
26675
+ /**
26676
+ * Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
26401
26677
  * @example
26402
26678
  * ```js
26403
26679
  * // Before running the sample:
@@ -26843,6 +27119,7 @@ export namespace discoveryengine_v1beta {
26843
27119
  * // "rankingExpression": "my_rankingExpression",
26844
27120
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
26845
27121
  * // "regionCode": "my_regionCode",
27122
+ * // "relevanceFilterSpec": {},
26846
27123
  * // "relevanceScoreSpec": {},
26847
27124
  * // "relevanceThreshold": "my_relevanceThreshold",
26848
27125
  * // "safeSearch": false,
@@ -27062,6 +27339,7 @@ export namespace discoveryengine_v1beta {
27062
27339
  * // "rankingExpression": "my_rankingExpression",
27063
27340
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
27064
27341
  * // "regionCode": "my_regionCode",
27342
+ * // "relevanceFilterSpec": {},
27065
27343
  * // "relevanceScoreSpec": {},
27066
27344
  * // "relevanceThreshold": "my_relevanceThreshold",
27067
27345
  * // "safeSearch": false,
@@ -27399,6 +27677,21 @@ export namespace discoveryengine_v1beta {
27399
27677
  */
27400
27678
  requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
27401
27679
  }
27680
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create extends StandardParameters {
27681
+ /**
27682
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
27683
+ */
27684
+ parent?: string;
27685
+ /**
27686
+ * 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+/.
27687
+ */
27688
+ servingConfigId?: string;
27689
+
27690
+ /**
27691
+ * Request body metadata
27692
+ */
27693
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaServingConfig;
27694
+ }
27402
27695
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
27403
27696
  /**
27404
27697
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -34373,6 +34666,7 @@ export namespace discoveryengine_v1beta {
34373
34666
  * // request body parameters
34374
34667
  * // {
34375
34668
  * // "customerPolicy": {},
34669
+ * // "defaultWebGroundingToggleOff": false,
34376
34670
  * // "description": "my_description",
34377
34671
  * // "displayName": "my_displayName",
34378
34672
  * // "enabledTools": {},
@@ -34388,6 +34682,7 @@ export namespace discoveryengine_v1beta {
34388
34682
  * // Example response
34389
34683
  * // {
34390
34684
  * // "customerPolicy": {},
34685
+ * // "defaultWebGroundingToggleOff": false,
34391
34686
  * // "description": "my_description",
34392
34687
  * // "displayName": "my_displayName",
34393
34688
  * // "enabledTools": {},
@@ -34691,6 +34986,7 @@ export namespace discoveryengine_v1beta {
34691
34986
  * // Example response
34692
34987
  * // {
34693
34988
  * // "customerPolicy": {},
34989
+ * // "defaultWebGroundingToggleOff": false,
34694
34990
  * // "description": "my_description",
34695
34991
  * // "displayName": "my_displayName",
34696
34992
  * // "enabledTools": {},
@@ -35013,6 +35309,7 @@ export namespace discoveryengine_v1beta {
35013
35309
  * // request body parameters
35014
35310
  * // {
35015
35311
  * // "customerPolicy": {},
35312
+ * // "defaultWebGroundingToggleOff": false,
35016
35313
  * // "description": "my_description",
35017
35314
  * // "displayName": "my_displayName",
35018
35315
  * // "enabledTools": {},
@@ -35028,6 +35325,7 @@ export namespace discoveryengine_v1beta {
35028
35325
  * // Example response
35029
35326
  * // {
35030
35327
  * // "customerPolicy": {},
35328
+ * // "defaultWebGroundingToggleOff": false,
35031
35329
  * // "description": "my_description",
35032
35330
  * // "displayName": "my_displayName",
35033
35331
  * // "enabledTools": {},
@@ -38421,6 +38719,214 @@ export namespace discoveryengine_v1beta {
38421
38719
  }
38422
38720
  }
38423
38721
 
38722
+ /**
38723
+ * 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.
38724
+ * @example
38725
+ * ```js
38726
+ * // Before running the sample:
38727
+ * // - Enable the API at:
38728
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
38729
+ * // - Login into gcloud by running:
38730
+ * // ```sh
38731
+ * // $ gcloud auth application-default login
38732
+ * // ```
38733
+ * // - Install the npm module by running:
38734
+ * // ```sh
38735
+ * // $ npm install googleapis
38736
+ * // ```
38737
+ *
38738
+ * const {google} = require('googleapis');
38739
+ * const discoveryengine = google.discoveryengine('v1beta');
38740
+ *
38741
+ * async function main() {
38742
+ * const auth = new google.auth.GoogleAuth({
38743
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
38744
+ * scopes: [
38745
+ * 'https://www.googleapis.com/auth/cloud-platform',
38746
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
38747
+ * ],
38748
+ * });
38749
+ *
38750
+ * // Acquire an auth client, and bind it to all future calls
38751
+ * const authClient = await auth.getClient();
38752
+ * google.options({auth: authClient});
38753
+ *
38754
+ * // Do the magic
38755
+ * const res =
38756
+ * await discoveryengine.projects.locations.collections.engines.servingConfigs.create(
38757
+ * {
38758
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
38759
+ * parent:
38760
+ * 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
38761
+ * // 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+/.
38762
+ * servingConfigId: 'placeholder-value',
38763
+ *
38764
+ * // Request body metadata
38765
+ * requestBody: {
38766
+ * // request body parameters
38767
+ * // {
38768
+ * // "answerGenerationSpec": {},
38769
+ * // "boostControlIds": [],
38770
+ * // "createTime": "my_createTime",
38771
+ * // "displayName": "my_displayName",
38772
+ * // "dissociateControlIds": [],
38773
+ * // "diversityLevel": "my_diversityLevel",
38774
+ * // "embeddingConfig": {},
38775
+ * // "filterControlIds": [],
38776
+ * // "genericConfig": {},
38777
+ * // "ignoreControlIds": [],
38778
+ * // "mediaConfig": {},
38779
+ * // "modelId": "my_modelId",
38780
+ * // "name": "my_name",
38781
+ * // "onewaySynonymsControlIds": [],
38782
+ * // "personalizationSpec": {},
38783
+ * // "promoteControlIds": [],
38784
+ * // "rankingExpression": "my_rankingExpression",
38785
+ * // "redirectControlIds": [],
38786
+ * // "replacementControlIds": [],
38787
+ * // "solutionType": "my_solutionType",
38788
+ * // "synonymsControlIds": [],
38789
+ * // "updateTime": "my_updateTime"
38790
+ * // }
38791
+ * },
38792
+ * },
38793
+ * );
38794
+ * console.log(res.data);
38795
+ *
38796
+ * // Example response
38797
+ * // {
38798
+ * // "answerGenerationSpec": {},
38799
+ * // "boostControlIds": [],
38800
+ * // "createTime": "my_createTime",
38801
+ * // "displayName": "my_displayName",
38802
+ * // "dissociateControlIds": [],
38803
+ * // "diversityLevel": "my_diversityLevel",
38804
+ * // "embeddingConfig": {},
38805
+ * // "filterControlIds": [],
38806
+ * // "genericConfig": {},
38807
+ * // "ignoreControlIds": [],
38808
+ * // "mediaConfig": {},
38809
+ * // "modelId": "my_modelId",
38810
+ * // "name": "my_name",
38811
+ * // "onewaySynonymsControlIds": [],
38812
+ * // "personalizationSpec": {},
38813
+ * // "promoteControlIds": [],
38814
+ * // "rankingExpression": "my_rankingExpression",
38815
+ * // "redirectControlIds": [],
38816
+ * // "replacementControlIds": [],
38817
+ * // "solutionType": "my_solutionType",
38818
+ * // "synonymsControlIds": [],
38819
+ * // "updateTime": "my_updateTime"
38820
+ * // }
38821
+ * }
38822
+ *
38823
+ * main().catch(e => {
38824
+ * console.error(e);
38825
+ * throw e;
38826
+ * });
38827
+ *
38828
+ * ```
38829
+ *
38830
+ * @param params - Parameters for request
38831
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
38832
+ * @param callback - Optional callback that handles the response.
38833
+ * @returns A promise if used with async/await, or void if used with a callback.
38834
+ */
38835
+ create(
38836
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
38837
+ options: StreamMethodOptions
38838
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
38839
+ create(
38840
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
38841
+ options?: MethodOptions
38842
+ ): Promise<
38843
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38844
+ >;
38845
+ create(
38846
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
38847
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
38848
+ callback: BodyResponseCallback<Readable>
38849
+ ): void;
38850
+ create(
38851
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
38852
+ options:
38853
+ | MethodOptions
38854
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
38855
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38856
+ ): void;
38857
+ create(
38858
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
38859
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38860
+ ): void;
38861
+ create(
38862
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38863
+ ): void;
38864
+ create(
38865
+ paramsOrCallback?:
38866
+ | Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create
38867
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38868
+ | BodyResponseCallback<Readable>,
38869
+ optionsOrCallback?:
38870
+ | MethodOptions
38871
+ | StreamMethodOptions
38872
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38873
+ | BodyResponseCallback<Readable>,
38874
+ callback?:
38875
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38876
+ | BodyResponseCallback<Readable>
38877
+ ):
38878
+ | void
38879
+ | Promise<
38880
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
38881
+ >
38882
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
38883
+ let params = (paramsOrCallback ||
38884
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
38885
+ let options = (optionsOrCallback || {}) as MethodOptions;
38886
+
38887
+ if (typeof paramsOrCallback === 'function') {
38888
+ callback = paramsOrCallback;
38889
+ params =
38890
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
38891
+ options = {};
38892
+ }
38893
+
38894
+ if (typeof optionsOrCallback === 'function') {
38895
+ callback = optionsOrCallback;
38896
+ options = {};
38897
+ }
38898
+
38899
+ const rootUrl =
38900
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
38901
+ const parameters = {
38902
+ options: Object.assign(
38903
+ {
38904
+ url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
38905
+ /([^:]\/)\/+/g,
38906
+ '$1'
38907
+ ),
38908
+ method: 'POST',
38909
+ apiVersion: '',
38910
+ },
38911
+ options
38912
+ ),
38913
+ params,
38914
+ requiredParams: ['parent'],
38915
+ pathParams: ['parent'],
38916
+ context: this.context,
38917
+ };
38918
+ if (callback) {
38919
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
38920
+ parameters,
38921
+ callback as BodyResponseCallback<unknown>
38922
+ );
38923
+ } else {
38924
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
38925
+ parameters
38926
+ );
38927
+ }
38928
+ }
38929
+
38424
38930
  /**
38425
38931
  * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
38426
38932
  * @example
@@ -39342,6 +39848,7 @@ export namespace discoveryengine_v1beta {
39342
39848
  * // "rankingExpression": "my_rankingExpression",
39343
39849
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
39344
39850
  * // "regionCode": "my_regionCode",
39851
+ * // "relevanceFilterSpec": {},
39345
39852
  * // "relevanceScoreSpec": {},
39346
39853
  * // "relevanceThreshold": "my_relevanceThreshold",
39347
39854
  * // "safeSearch": false,
@@ -39561,6 +40068,7 @@ export namespace discoveryengine_v1beta {
39561
40068
  * // "rankingExpression": "my_rankingExpression",
39562
40069
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
39563
40070
  * // "regionCode": "my_regionCode",
40071
+ * // "relevanceFilterSpec": {},
39564
40072
  * // "relevanceScoreSpec": {},
39565
40073
  * // "relevanceThreshold": "my_relevanceThreshold",
39566
40074
  * // "safeSearch": false,
@@ -39898,6 +40406,21 @@ export namespace discoveryengine_v1beta {
39898
40406
  */
39899
40407
  requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
39900
40408
  }
40409
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create extends StandardParameters {
40410
+ /**
40411
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
40412
+ */
40413
+ parent?: string;
40414
+ /**
40415
+ * 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+/.
40416
+ */
40417
+ servingConfigId?: string;
40418
+
40419
+ /**
40420
+ * Request body metadata
40421
+ */
40422
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaServingConfig;
40423
+ }
39901
40424
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
39902
40425
  /**
39903
40426
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -48580,33 +49103,263 @@ export namespace discoveryengine_v1beta {
48580
49103
  * google.options({auth: authClient});
48581
49104
  *
48582
49105
  * // Do the magic
48583
- * const res = await discoveryengine.projects.locations.dataStores.schemas.patch(
48584
- * {
48585
- * // If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
48586
- * allowMissing: 'placeholder-value',
48587
- * // Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
48588
- * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/schemas/my-schema',
49106
+ * const res = await discoveryengine.projects.locations.dataStores.schemas.patch(
49107
+ * {
49108
+ * // If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
49109
+ * allowMissing: 'placeholder-value',
49110
+ * // Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
49111
+ * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/schemas/my-schema',
49112
+ *
49113
+ * // Request body metadata
49114
+ * requestBody: {
49115
+ * // request body parameters
49116
+ * // {
49117
+ * // "jsonSchema": "my_jsonSchema",
49118
+ * // "name": "my_name",
49119
+ * // "structSchema": {}
49120
+ * // }
49121
+ * },
49122
+ * },
49123
+ * );
49124
+ * console.log(res.data);
49125
+ *
49126
+ * // Example response
49127
+ * // {
49128
+ * // "done": false,
49129
+ * // "error": {},
49130
+ * // "metadata": {},
49131
+ * // "name": "my_name",
49132
+ * // "response": {}
49133
+ * // }
49134
+ * }
49135
+ *
49136
+ * main().catch(e => {
49137
+ * console.error(e);
49138
+ * throw e;
49139
+ * });
49140
+ *
49141
+ * ```
49142
+ *
49143
+ * @param params - Parameters for request
49144
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
49145
+ * @param callback - Optional callback that handles the response.
49146
+ * @returns A promise if used with async/await, or void if used with a callback.
49147
+ */
49148
+ patch(
49149
+ params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49150
+ options: StreamMethodOptions
49151
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
49152
+ patch(
49153
+ params?: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49154
+ options?: MethodOptions
49155
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
49156
+ patch(
49157
+ params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49158
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
49159
+ callback: BodyResponseCallback<Readable>
49160
+ ): void;
49161
+ patch(
49162
+ params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49163
+ options:
49164
+ | MethodOptions
49165
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
49166
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
49167
+ ): void;
49168
+ patch(
49169
+ params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49170
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
49171
+ ): void;
49172
+ patch(
49173
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
49174
+ ): void;
49175
+ patch(
49176
+ paramsOrCallback?:
49177
+ | Params$Resource$Projects$Locations$Datastores$Schemas$Patch
49178
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
49179
+ | BodyResponseCallback<Readable>,
49180
+ optionsOrCallback?:
49181
+ | MethodOptions
49182
+ | StreamMethodOptions
49183
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
49184
+ | BodyResponseCallback<Readable>,
49185
+ callback?:
49186
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
49187
+ | BodyResponseCallback<Readable>
49188
+ ):
49189
+ | void
49190
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
49191
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
49192
+ let params = (paramsOrCallback ||
49193
+ {}) as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
49194
+ let options = (optionsOrCallback || {}) as MethodOptions;
49195
+
49196
+ if (typeof paramsOrCallback === 'function') {
49197
+ callback = paramsOrCallback;
49198
+ params =
49199
+ {} as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
49200
+ options = {};
49201
+ }
49202
+
49203
+ if (typeof optionsOrCallback === 'function') {
49204
+ callback = optionsOrCallback;
49205
+ options = {};
49206
+ }
49207
+
49208
+ const rootUrl =
49209
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
49210
+ const parameters = {
49211
+ options: Object.assign(
49212
+ {
49213
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
49214
+ method: 'PATCH',
49215
+ apiVersion: '',
49216
+ },
49217
+ options
49218
+ ),
49219
+ params,
49220
+ requiredParams: ['name'],
49221
+ pathParams: ['name'],
49222
+ context: this.context,
49223
+ };
49224
+ if (callback) {
49225
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
49226
+ parameters,
49227
+ callback as BodyResponseCallback<unknown>
49228
+ );
49229
+ } else {
49230
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
49231
+ }
49232
+ }
49233
+ }
49234
+
49235
+ export interface Params$Resource$Projects$Locations$Datastores$Schemas$Create extends StandardParameters {
49236
+ /**
49237
+ * Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
49238
+ */
49239
+ parent?: string;
49240
+ /**
49241
+ * Required. The ID to use for the Schema, which becomes the final component of the Schema.name. This field should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
49242
+ */
49243
+ schemaId?: string;
49244
+
49245
+ /**
49246
+ * Request body metadata
49247
+ */
49248
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaSchema;
49249
+ }
49250
+ export interface Params$Resource$Projects$Locations$Datastores$Schemas$Delete extends StandardParameters {
49251
+ /**
49252
+ * Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
49253
+ */
49254
+ name?: string;
49255
+ }
49256
+ export interface Params$Resource$Projects$Locations$Datastores$Schemas$Get extends StandardParameters {
49257
+ /**
49258
+ * Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
49259
+ */
49260
+ name?: string;
49261
+ }
49262
+ export interface Params$Resource$Projects$Locations$Datastores$Schemas$List extends StandardParameters {
49263
+ /**
49264
+ * The maximum number of Schemas to return. The service may return fewer than this value. If unspecified, at most 100 Schemas are returned. The maximum value is 1000; values above 1000 are set to 1000.
49265
+ */
49266
+ pageSize?: number;
49267
+ /**
49268
+ * A page token, received from a previous SchemaService.ListSchemas call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SchemaService.ListSchemas must match the call that provided the page token.
49269
+ */
49270
+ pageToken?: string;
49271
+ /**
49272
+ * Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
49273
+ */
49274
+ parent?: string;
49275
+ }
49276
+ export interface Params$Resource$Projects$Locations$Datastores$Schemas$Patch extends StandardParameters {
49277
+ /**
49278
+ * If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
49279
+ */
49280
+ allowMissing?: boolean;
49281
+ /**
49282
+ * Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
49283
+ */
49284
+ name?: string;
49285
+
49286
+ /**
49287
+ * Request body metadata
49288
+ */
49289
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaSchema;
49290
+ }
49291
+
49292
+ export class Resource$Projects$Locations$Datastores$Servingconfigs {
49293
+ context: APIRequestContext;
49294
+ constructor(context: APIRequestContext) {
49295
+ this.context = context;
49296
+ }
49297
+
49298
+ /**
49299
+ * Answer query method.
49300
+ * @example
49301
+ * ```js
49302
+ * // Before running the sample:
49303
+ * // - Enable the API at:
49304
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
49305
+ * // - Login into gcloud by running:
49306
+ * // ```sh
49307
+ * // $ gcloud auth application-default login
49308
+ * // ```
49309
+ * // - Install the npm module by running:
49310
+ * // ```sh
49311
+ * // $ npm install googleapis
49312
+ * // ```
49313
+ *
49314
+ * const {google} = require('googleapis');
49315
+ * const discoveryengine = google.discoveryengine('v1beta');
49316
+ *
49317
+ * async function main() {
49318
+ * const auth = new google.auth.GoogleAuth({
49319
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
49320
+ * scopes: [
49321
+ * 'https://www.googleapis.com/auth/cloud-platform',
49322
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
49323
+ * ],
49324
+ * });
49325
+ *
49326
+ * // Acquire an auth client, and bind it to all future calls
49327
+ * const authClient = await auth.getClient();
49328
+ * google.options({auth: authClient});
49329
+ *
49330
+ * // Do the magic
49331
+ * const res =
49332
+ * await discoveryengine.projects.locations.dataStores.servingConfigs.answer({
49333
+ * // Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/x/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
49334
+ * servingConfig:
49335
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
48589
49336
  *
48590
49337
  * // Request body metadata
48591
49338
  * requestBody: {
48592
49339
  * // request body parameters
48593
49340
  * // {
48594
- * // "jsonSchema": "my_jsonSchema",
48595
- * // "name": "my_name",
48596
- * // "structSchema": {}
49341
+ * // "answerGenerationSpec": {},
49342
+ * // "asynchronousMode": false,
49343
+ * // "endUserSpec": {},
49344
+ * // "groundingSpec": {},
49345
+ * // "query": {},
49346
+ * // "queryUnderstandingSpec": {},
49347
+ * // "relatedQuestionsSpec": {},
49348
+ * // "safetySpec": {},
49349
+ * // "searchSpec": {},
49350
+ * // "session": "my_session",
49351
+ * // "userLabels": {},
49352
+ * // "userPseudoId": "my_userPseudoId"
48597
49353
  * // }
48598
49354
  * },
48599
- * },
48600
- * );
49355
+ * });
48601
49356
  * console.log(res.data);
48602
49357
  *
48603
49358
  * // Example response
48604
49359
  * // {
48605
- * // "done": false,
48606
- * // "error": {},
48607
- * // "metadata": {},
48608
- * // "name": "my_name",
48609
- * // "response": {}
49360
+ * // "answer": {},
49361
+ * // "answerQueryToken": "my_answerQueryToken",
49362
+ * // "session": {}
48610
49363
  * // }
48611
49364
  * }
48612
49365
  *
@@ -48622,58 +49375,62 @@ export namespace discoveryengine_v1beta {
48622
49375
  * @param callback - Optional callback that handles the response.
48623
49376
  * @returns A promise if used with async/await, or void if used with a callback.
48624
49377
  */
48625
- patch(
48626
- params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49378
+ answer(
49379
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
48627
49380
  options: StreamMethodOptions
48628
49381
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
48629
- patch(
48630
- params?: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49382
+ answer(
49383
+ params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
48631
49384
  options?: MethodOptions
48632
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
48633
- patch(
48634
- params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49385
+ ): Promise<
49386
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49387
+ >;
49388
+ answer(
49389
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
48635
49390
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
48636
49391
  callback: BodyResponseCallback<Readable>
48637
49392
  ): void;
48638
- patch(
48639
- params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
49393
+ answer(
49394
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
48640
49395
  options:
48641
49396
  | MethodOptions
48642
- | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
48643
- callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
49397
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>,
49398
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
48644
49399
  ): void;
48645
- patch(
48646
- params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
48647
- callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
49400
+ answer(
49401
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
49402
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
48648
49403
  ): void;
48649
- patch(
48650
- callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
49404
+ answer(
49405
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
48651
49406
  ): void;
48652
- patch(
49407
+ answer(
48653
49408
  paramsOrCallback?:
48654
- | Params$Resource$Projects$Locations$Datastores$Schemas$Patch
48655
- | BodyResponseCallback<Schema$GoogleLongrunningOperation>
49409
+ | Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer
49410
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
48656
49411
  | BodyResponseCallback<Readable>,
48657
49412
  optionsOrCallback?:
48658
49413
  | MethodOptions
48659
49414
  | StreamMethodOptions
48660
- | BodyResponseCallback<Schema$GoogleLongrunningOperation>
49415
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
48661
49416
  | BodyResponseCallback<Readable>,
48662
49417
  callback?:
48663
- | BodyResponseCallback<Schema$GoogleLongrunningOperation>
49418
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
48664
49419
  | BodyResponseCallback<Readable>
48665
49420
  ):
48666
49421
  | void
48667
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
49422
+ | Promise<
49423
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49424
+ >
48668
49425
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
48669
49426
  let params = (paramsOrCallback ||
48670
- {}) as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
49427
+ {}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
48671
49428
  let options = (optionsOrCallback || {}) as MethodOptions;
48672
49429
 
48673
49430
  if (typeof paramsOrCallback === 'function') {
48674
49431
  callback = paramsOrCallback;
48675
49432
  params =
48676
- {} as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
49433
+ {} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
48677
49434
  options = {};
48678
49435
  }
48679
49436
 
@@ -48687,93 +49444,34 @@ export namespace discoveryengine_v1beta {
48687
49444
  const parameters = {
48688
49445
  options: Object.assign(
48689
49446
  {
48690
- url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
48691
- method: 'PATCH',
49447
+ url: (rootUrl + '/v1beta/{+servingConfig}:answer').replace(
49448
+ /([^:]\/)\/+/g,
49449
+ '$1'
49450
+ ),
49451
+ method: 'POST',
48692
49452
  apiVersion: '',
48693
49453
  },
48694
49454
  options
48695
49455
  ),
48696
49456
  params,
48697
- requiredParams: ['name'],
48698
- pathParams: ['name'],
49457
+ requiredParams: ['servingConfig'],
49458
+ pathParams: ['servingConfig'],
48699
49459
  context: this.context,
48700
49460
  };
48701
49461
  if (callback) {
48702
- createAPIRequest<Schema$GoogleLongrunningOperation>(
49462
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>(
48703
49463
  parameters,
48704
49464
  callback as BodyResponseCallback<unknown>
48705
49465
  );
48706
49466
  } else {
48707
- return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
49467
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>(
49468
+ parameters
49469
+ );
48708
49470
  }
48709
49471
  }
48710
- }
48711
-
48712
- export interface Params$Resource$Projects$Locations$Datastores$Schemas$Create extends StandardParameters {
48713
- /**
48714
- * Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
48715
- */
48716
- parent?: string;
48717
- /**
48718
- * Required. The ID to use for the Schema, which becomes the final component of the Schema.name. This field should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
48719
- */
48720
- schemaId?: string;
48721
49472
 
48722
49473
  /**
48723
- * Request body metadata
48724
- */
48725
- requestBody?: Schema$GoogleCloudDiscoveryengineV1betaSchema;
48726
- }
48727
- export interface Params$Resource$Projects$Locations$Datastores$Schemas$Delete extends StandardParameters {
48728
- /**
48729
- * Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
48730
- */
48731
- name?: string;
48732
- }
48733
- export interface Params$Resource$Projects$Locations$Datastores$Schemas$Get extends StandardParameters {
48734
- /**
48735
- * Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
48736
- */
48737
- name?: string;
48738
- }
48739
- export interface Params$Resource$Projects$Locations$Datastores$Schemas$List extends StandardParameters {
48740
- /**
48741
- * The maximum number of Schemas to return. The service may return fewer than this value. If unspecified, at most 100 Schemas are returned. The maximum value is 1000; values above 1000 are set to 1000.
48742
- */
48743
- pageSize?: number;
48744
- /**
48745
- * A page token, received from a previous SchemaService.ListSchemas call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SchemaService.ListSchemas must match the call that provided the page token.
48746
- */
48747
- pageToken?: string;
48748
- /**
48749
- * Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
48750
- */
48751
- parent?: string;
48752
- }
48753
- export interface Params$Resource$Projects$Locations$Datastores$Schemas$Patch extends StandardParameters {
48754
- /**
48755
- * If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
48756
- */
48757
- allowMissing?: boolean;
48758
- /**
48759
- * Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
48760
- */
48761
- name?: string;
48762
-
48763
- /**
48764
- * Request body metadata
48765
- */
48766
- requestBody?: Schema$GoogleCloudDiscoveryengineV1betaSchema;
48767
- }
48768
-
48769
- export class Resource$Projects$Locations$Datastores$Servingconfigs {
48770
- context: APIRequestContext;
48771
- constructor(context: APIRequestContext) {
48772
- this.context = context;
48773
- }
48774
-
48775
- /**
48776
- * Answer query method.
49474
+ * 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.
48777
49475
  * @example
48778
49476
  * ```js
48779
49477
  * // Before running the sample:
@@ -48806,27 +49504,39 @@ export namespace discoveryengine_v1beta {
48806
49504
  *
48807
49505
  * // Do the magic
48808
49506
  * const res =
48809
- * await discoveryengine.projects.locations.dataStores.servingConfigs.answer({
48810
- * // Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/x/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
48811
- * servingConfig:
48812
- * 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
49507
+ * await discoveryengine.projects.locations.dataStores.servingConfigs.create({
49508
+ * // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
49509
+ * parent:
49510
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
49511
+ * // 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+/.
49512
+ * servingConfigId: 'placeholder-value',
48813
49513
  *
48814
49514
  * // Request body metadata
48815
49515
  * requestBody: {
48816
49516
  * // request body parameters
48817
49517
  * // {
48818
49518
  * // "answerGenerationSpec": {},
48819
- * // "asynchronousMode": false,
48820
- * // "endUserSpec": {},
48821
- * // "groundingSpec": {},
48822
- * // "query": {},
48823
- * // "queryUnderstandingSpec": {},
48824
- * // "relatedQuestionsSpec": {},
48825
- * // "safetySpec": {},
48826
- * // "searchSpec": {},
48827
- * // "session": "my_session",
48828
- * // "userLabels": {},
48829
- * // "userPseudoId": "my_userPseudoId"
49519
+ * // "boostControlIds": [],
49520
+ * // "createTime": "my_createTime",
49521
+ * // "displayName": "my_displayName",
49522
+ * // "dissociateControlIds": [],
49523
+ * // "diversityLevel": "my_diversityLevel",
49524
+ * // "embeddingConfig": {},
49525
+ * // "filterControlIds": [],
49526
+ * // "genericConfig": {},
49527
+ * // "ignoreControlIds": [],
49528
+ * // "mediaConfig": {},
49529
+ * // "modelId": "my_modelId",
49530
+ * // "name": "my_name",
49531
+ * // "onewaySynonymsControlIds": [],
49532
+ * // "personalizationSpec": {},
49533
+ * // "promoteControlIds": [],
49534
+ * // "rankingExpression": "my_rankingExpression",
49535
+ * // "redirectControlIds": [],
49536
+ * // "replacementControlIds": [],
49537
+ * // "solutionType": "my_solutionType",
49538
+ * // "synonymsControlIds": [],
49539
+ * // "updateTime": "my_updateTime"
48830
49540
  * // }
48831
49541
  * },
48832
49542
  * });
@@ -48834,9 +49544,28 @@ export namespace discoveryengine_v1beta {
48834
49544
  *
48835
49545
  * // Example response
48836
49546
  * // {
48837
- * // "answer": {},
48838
- * // "answerQueryToken": "my_answerQueryToken",
48839
- * // "session": {}
49547
+ * // "answerGenerationSpec": {},
49548
+ * // "boostControlIds": [],
49549
+ * // "createTime": "my_createTime",
49550
+ * // "displayName": "my_displayName",
49551
+ * // "dissociateControlIds": [],
49552
+ * // "diversityLevel": "my_diversityLevel",
49553
+ * // "embeddingConfig": {},
49554
+ * // "filterControlIds": [],
49555
+ * // "genericConfig": {},
49556
+ * // "ignoreControlIds": [],
49557
+ * // "mediaConfig": {},
49558
+ * // "modelId": "my_modelId",
49559
+ * // "name": "my_name",
49560
+ * // "onewaySynonymsControlIds": [],
49561
+ * // "personalizationSpec": {},
49562
+ * // "promoteControlIds": [],
49563
+ * // "rankingExpression": "my_rankingExpression",
49564
+ * // "redirectControlIds": [],
49565
+ * // "replacementControlIds": [],
49566
+ * // "solutionType": "my_solutionType",
49567
+ * // "synonymsControlIds": [],
49568
+ * // "updateTime": "my_updateTime"
48840
49569
  * // }
48841
49570
  * }
48842
49571
  *
@@ -48852,62 +49581,62 @@ export namespace discoveryengine_v1beta {
48852
49581
  * @param callback - Optional callback that handles the response.
48853
49582
  * @returns A promise if used with async/await, or void if used with a callback.
48854
49583
  */
48855
- answer(
48856
- params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
49584
+ create(
49585
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
48857
49586
  options: StreamMethodOptions
48858
49587
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
48859
- answer(
48860
- params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
49588
+ create(
49589
+ params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
48861
49590
  options?: MethodOptions
48862
49591
  ): Promise<
48863
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49592
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48864
49593
  >;
48865
- answer(
48866
- params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
49594
+ create(
49595
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
48867
49596
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
48868
49597
  callback: BodyResponseCallback<Readable>
48869
49598
  ): void;
48870
- answer(
48871
- params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
49599
+ create(
49600
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
48872
49601
  options:
48873
49602
  | MethodOptions
48874
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>,
48875
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49603
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>,
49604
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48876
49605
  ): void;
48877
- answer(
48878
- params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
48879
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49606
+ create(
49607
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
49608
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48880
49609
  ): void;
48881
- answer(
48882
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49610
+ create(
49611
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48883
49612
  ): void;
48884
- answer(
49613
+ create(
48885
49614
  paramsOrCallback?:
48886
- | Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer
48887
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49615
+ | Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create
49616
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48888
49617
  | BodyResponseCallback<Readable>,
48889
49618
  optionsOrCallback?:
48890
49619
  | MethodOptions
48891
49620
  | StreamMethodOptions
48892
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49621
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48893
49622
  | BodyResponseCallback<Readable>,
48894
49623
  callback?:
48895
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49624
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48896
49625
  | BodyResponseCallback<Readable>
48897
49626
  ):
48898
49627
  | void
48899
49628
  | Promise<
48900
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>
49629
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>
48901
49630
  >
48902
49631
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
48903
49632
  let params = (paramsOrCallback ||
48904
- {}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
49633
+ {}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
48905
49634
  let options = (optionsOrCallback || {}) as MethodOptions;
48906
49635
 
48907
49636
  if (typeof paramsOrCallback === 'function') {
48908
49637
  callback = paramsOrCallback;
48909
49638
  params =
48910
- {} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
49639
+ {} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
48911
49640
  options = {};
48912
49641
  }
48913
49642
 
@@ -48921,7 +49650,7 @@ export namespace discoveryengine_v1beta {
48921
49650
  const parameters = {
48922
49651
  options: Object.assign(
48923
49652
  {
48924
- url: (rootUrl + '/v1beta/{+servingConfig}:answer').replace(
49653
+ url: (rootUrl + '/v1beta/{+parent}/servingConfigs').replace(
48925
49654
  /([^:]\/)\/+/g,
48926
49655
  '$1'
48927
49656
  ),
@@ -48931,17 +49660,17 @@ export namespace discoveryengine_v1beta {
48931
49660
  options
48932
49661
  ),
48933
49662
  params,
48934
- requiredParams: ['servingConfig'],
48935
- pathParams: ['servingConfig'],
49663
+ requiredParams: ['parent'],
49664
+ pathParams: ['parent'],
48936
49665
  context: this.context,
48937
49666
  };
48938
49667
  if (callback) {
48939
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>(
49668
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
48940
49669
  parameters,
48941
49670
  callback as BodyResponseCallback<unknown>
48942
49671
  );
48943
49672
  } else {
48944
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>(
49673
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaServingConfig>(
48945
49674
  parameters
48946
49675
  );
48947
49676
  }
@@ -49859,6 +50588,7 @@ export namespace discoveryengine_v1beta {
49859
50588
  * // "rankingExpression": "my_rankingExpression",
49860
50589
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
49861
50590
  * // "regionCode": "my_regionCode",
50591
+ * // "relevanceFilterSpec": {},
49862
50592
  * // "relevanceScoreSpec": {},
49863
50593
  * // "relevanceThreshold": "my_relevanceThreshold",
49864
50594
  * // "safeSearch": false,
@@ -50077,6 +50807,7 @@ export namespace discoveryengine_v1beta {
50077
50807
  * // "rankingExpression": "my_rankingExpression",
50078
50808
  * // "rankingExpressionBackend": "my_rankingExpressionBackend",
50079
50809
  * // "regionCode": "my_regionCode",
50810
+ * // "relevanceFilterSpec": {},
50080
50811
  * // "relevanceScoreSpec": {},
50081
50812
  * // "relevanceThreshold": "my_relevanceThreshold",
50082
50813
  * // "safeSearch": false,
@@ -50414,6 +51145,21 @@ export namespace discoveryengine_v1beta {
50414
51145
  */
50415
51146
  requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
50416
51147
  }
51148
+ export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create extends StandardParameters {
51149
+ /**
51150
+ * Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
51151
+ */
51152
+ parent?: string;
51153
+ /**
51154
+ * 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+/.
51155
+ */
51156
+ servingConfigId?: string;
51157
+
51158
+ /**
51159
+ * Request body metadata
51160
+ */
51161
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaServingConfig;
51162
+ }
50417
51163
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
50418
51164
  /**
50419
51165
  * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`