@googleapis/discoveryengine 28.0.0 → 28.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v1.d.ts CHANGED
@@ -4286,7 +4286,7 @@ export declare namespace discoveryengine_v1 {
4286
4286
  */
4287
4287
  orderBy?: string | null;
4288
4288
  /**
4289
- * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
4289
+ * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
4290
4290
  */
4291
4291
  pageCategories?: string[] | null;
4292
4292
  /**
@@ -8476,7 +8476,7 @@ export declare namespace discoveryengine_v1 {
8476
8476
  */
8477
8477
  orderBy?: string | null;
8478
8478
  /**
8479
- * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
8479
+ * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
8480
8480
  */
8481
8481
  pageCategories?: string[] | null;
8482
8482
  /**
@@ -10629,6 +10629,10 @@ export declare namespace discoveryengine_v1 {
10629
10629
  * Immutable. Identifier. The full resource name of the data store. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
10630
10630
  */
10631
10631
  name?: string | null;
10632
+ /**
10633
+ * Optional. Configuration for Natural Language Query Understanding.
10634
+ */
10635
+ naturalLanguageQueryUnderstandingConfig?: Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig;
10632
10636
  /**
10633
10637
  * Optional. Stores serving config at DataStore level.
10634
10638
  */
@@ -12232,6 +12236,15 @@ export declare namespace discoveryengine_v1 {
12232
12236
  */
12233
12237
  mediaProgressPercentage?: number | null;
12234
12238
  }
12239
+ /**
12240
+ * Configuration for Natural Language Query Understanding.
12241
+ */
12242
+ export interface Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig {
12243
+ /**
12244
+ * Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
12245
+ */
12246
+ mode?: string | null;
12247
+ }
12235
12248
  /**
12236
12249
  * Detailed page information.
12237
12250
  */
@@ -12948,7 +12961,7 @@ export declare namespace discoveryengine_v1 {
12948
12961
  */
12949
12962
  orderBy?: string | null;
12950
12963
  /**
12951
- * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
12964
+ * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
12952
12965
  */
12953
12966
  pageCategories?: string[] | null;
12954
12967
  /**
@@ -14423,7 +14436,7 @@ export declare namespace discoveryengine_v1 {
14423
14436
  */
14424
14437
  eventType?: string | null;
14425
14438
  /**
14426
- * The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
14439
+ * Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
14427
14440
  */
14428
14441
  filter?: string | null;
14429
14442
  /**
@@ -16958,6 +16971,7 @@ export declare namespace discoveryengine_v1 {
16958
16971
  * // "isInfobotFaqDataStore": false,
16959
16972
  * // "kmsKeyName": "my_kmsKeyName",
16960
16973
  * // "name": "my_name",
16974
+ * // "naturalLanguageQueryUnderstandingConfig": {},
16961
16975
  * // "servingConfigDataStore": {},
16962
16976
  * // "solutionTypes": [],
16963
16977
  * // "startingSchema": {},
@@ -17122,6 +17136,7 @@ export declare namespace discoveryengine_v1 {
17122
17136
  * // "isInfobotFaqDataStore": false,
17123
17137
  * // "kmsKeyName": "my_kmsKeyName",
17124
17138
  * // "name": "my_name",
17139
+ * // "naturalLanguageQueryUnderstandingConfig": {},
17125
17140
  * // "servingConfigDataStore": {},
17126
17141
  * // "solutionTypes": [],
17127
17142
  * // "startingSchema": {},
@@ -17346,6 +17361,7 @@ export declare namespace discoveryengine_v1 {
17346
17361
  * // "isInfobotFaqDataStore": false,
17347
17362
  * // "kmsKeyName": "my_kmsKeyName",
17348
17363
  * // "name": "my_name",
17364
+ * // "naturalLanguageQueryUnderstandingConfig": {},
17349
17365
  * // "servingConfigDataStore": {},
17350
17366
  * // "solutionTypes": [],
17351
17367
  * // "startingSchema": {},
@@ -17374,6 +17390,7 @@ export declare namespace discoveryengine_v1 {
17374
17390
  * // "isInfobotFaqDataStore": false,
17375
17391
  * // "kmsKeyName": "my_kmsKeyName",
17376
17392
  * // "name": "my_name",
17393
+ * // "naturalLanguageQueryUnderstandingConfig": {},
17377
17394
  * // "servingConfigDataStore": {},
17378
17395
  * // "solutionTypes": [],
17379
17396
  * // "startingSchema": {},
@@ -21043,6 +21060,70 @@ export declare namespace discoveryengine_v1 {
21043
21060
  answer(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
21044
21061
  answer(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
21045
21062
  answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
21063
+ /**
21064
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
21065
+ * @example
21066
+ * ```js
21067
+ * // Before running the sample:
21068
+ * // - Enable the API at:
21069
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
21070
+ * // - Login into gcloud by running:
21071
+ * // ```sh
21072
+ * // $ gcloud auth application-default login
21073
+ * // ```
21074
+ * // - Install the npm module by running:
21075
+ * // ```sh
21076
+ * // $ npm install googleapis
21077
+ * // ```
21078
+ *
21079
+ * const {google} = require('googleapis');
21080
+ * const discoveryengine = google.discoveryengine('v1');
21081
+ *
21082
+ * async function main() {
21083
+ * const auth = new google.auth.GoogleAuth({
21084
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
21085
+ * scopes: [
21086
+ * 'https://www.googleapis.com/auth/cloud-platform',
21087
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21088
+ * ],
21089
+ * });
21090
+ *
21091
+ * // Acquire an auth client, and bind it to all future calls
21092
+ * const authClient = await auth.getClient();
21093
+ * google.options({auth: authClient});
21094
+ *
21095
+ * // Do the magic
21096
+ * const res =
21097
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
21098
+ * {
21099
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
21100
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
21101
+ * },
21102
+ * );
21103
+ * console.log(res.data);
21104
+ *
21105
+ * // Example response
21106
+ * // {}
21107
+ * }
21108
+ *
21109
+ * main().catch(e => {
21110
+ * console.error(e);
21111
+ * throw e;
21112
+ * });
21113
+ *
21114
+ * ```
21115
+ *
21116
+ * @param params - Parameters for request
21117
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21118
+ * @param callback - Optional callback that handles the response.
21119
+ * @returns A promise if used with async/await, or void if used with a callback.
21120
+ */
21121
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
21122
+ delete(params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
21123
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
21124
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
21125
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
21126
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
21046
21127
  /**
21047
21128
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
21048
21129
  * @example
@@ -21734,6 +21815,12 @@ export declare namespace discoveryengine_v1 {
21734
21815
  */
21735
21816
  requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
21736
21817
  }
21818
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
21819
+ /**
21820
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
21821
+ */
21822
+ name?: string;
21823
+ }
21737
21824
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get extends StandardParameters {
21738
21825
  /**
21739
21826
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -27412,6 +27499,70 @@ export declare namespace discoveryengine_v1 {
27412
27499
  answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
27413
27500
  answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
27414
27501
  answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
27502
+ /**
27503
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
27504
+ * @example
27505
+ * ```js
27506
+ * // Before running the sample:
27507
+ * // - Enable the API at:
27508
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
27509
+ * // - Login into gcloud by running:
27510
+ * // ```sh
27511
+ * // $ gcloud auth application-default login
27512
+ * // ```
27513
+ * // - Install the npm module by running:
27514
+ * // ```sh
27515
+ * // $ npm install googleapis
27516
+ * // ```
27517
+ *
27518
+ * const {google} = require('googleapis');
27519
+ * const discoveryengine = google.discoveryengine('v1');
27520
+ *
27521
+ * async function main() {
27522
+ * const auth = new google.auth.GoogleAuth({
27523
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
27524
+ * scopes: [
27525
+ * 'https://www.googleapis.com/auth/cloud-platform',
27526
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
27527
+ * ],
27528
+ * });
27529
+ *
27530
+ * // Acquire an auth client, and bind it to all future calls
27531
+ * const authClient = await auth.getClient();
27532
+ * google.options({auth: authClient});
27533
+ *
27534
+ * // Do the magic
27535
+ * const res =
27536
+ * await discoveryengine.projects.locations.collections.engines.servingConfigs.delete(
27537
+ * {
27538
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
27539
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
27540
+ * },
27541
+ * );
27542
+ * console.log(res.data);
27543
+ *
27544
+ * // Example response
27545
+ * // {}
27546
+ * }
27547
+ *
27548
+ * main().catch(e => {
27549
+ * console.error(e);
27550
+ * throw e;
27551
+ * });
27552
+ *
27553
+ * ```
27554
+ *
27555
+ * @param params - Parameters for request
27556
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
27557
+ * @param callback - Optional callback that handles the response.
27558
+ * @returns A promise if used with async/await, or void if used with a callback.
27559
+ */
27560
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
27561
+ delete(params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
27562
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
27563
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
27564
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
27565
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
27415
27566
  /**
27416
27567
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
27417
27568
  * @example
@@ -28103,6 +28254,12 @@ export declare namespace discoveryengine_v1 {
28103
28254
  */
28104
28255
  requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
28105
28256
  }
28257
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
28258
+ /**
28259
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
28260
+ */
28261
+ name?: string;
28262
+ }
28106
28263
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get extends StandardParameters {
28107
28264
  /**
28108
28265
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -29354,6 +29511,7 @@ export declare namespace discoveryengine_v1 {
29354
29511
  * // "isInfobotFaqDataStore": false,
29355
29512
  * // "kmsKeyName": "my_kmsKeyName",
29356
29513
  * // "name": "my_name",
29514
+ * // "naturalLanguageQueryUnderstandingConfig": {},
29357
29515
  * // "servingConfigDataStore": {},
29358
29516
  * // "solutionTypes": [],
29359
29517
  * // "startingSchema": {},
@@ -29516,6 +29674,7 @@ export declare namespace discoveryengine_v1 {
29516
29674
  * // "isInfobotFaqDataStore": false,
29517
29675
  * // "kmsKeyName": "my_kmsKeyName",
29518
29676
  * // "name": "my_name",
29677
+ * // "naturalLanguageQueryUnderstandingConfig": {},
29519
29678
  * // "servingConfigDataStore": {},
29520
29679
  * // "solutionTypes": [],
29521
29680
  * // "startingSchema": {},
@@ -29735,6 +29894,7 @@ export declare namespace discoveryengine_v1 {
29735
29894
  * // "isInfobotFaqDataStore": false,
29736
29895
  * // "kmsKeyName": "my_kmsKeyName",
29737
29896
  * // "name": "my_name",
29897
+ * // "naturalLanguageQueryUnderstandingConfig": {},
29738
29898
  * // "servingConfigDataStore": {},
29739
29899
  * // "solutionTypes": [],
29740
29900
  * // "startingSchema": {},
@@ -29763,6 +29923,7 @@ export declare namespace discoveryengine_v1 {
29763
29923
  * // "isInfobotFaqDataStore": false,
29764
29924
  * // "kmsKeyName": "my_kmsKeyName",
29765
29925
  * // "name": "my_name",
29926
+ * // "naturalLanguageQueryUnderstandingConfig": {},
29766
29927
  * // "servingConfigDataStore": {},
29767
29928
  * // "solutionTypes": [],
29768
29929
  * // "startingSchema": {},
@@ -33038,6 +33199,68 @@ export declare namespace discoveryengine_v1 {
33038
33199
  answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
33039
33200
  answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
33040
33201
  answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>): void;
33202
+ /**
33203
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
33204
+ * @example
33205
+ * ```js
33206
+ * // Before running the sample:
33207
+ * // - Enable the API at:
33208
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
33209
+ * // - Login into gcloud by running:
33210
+ * // ```sh
33211
+ * // $ gcloud auth application-default login
33212
+ * // ```
33213
+ * // - Install the npm module by running:
33214
+ * // ```sh
33215
+ * // $ npm install googleapis
33216
+ * // ```
33217
+ *
33218
+ * const {google} = require('googleapis');
33219
+ * const discoveryengine = google.discoveryengine('v1');
33220
+ *
33221
+ * async function main() {
33222
+ * const auth = new google.auth.GoogleAuth({
33223
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
33224
+ * scopes: [
33225
+ * 'https://www.googleapis.com/auth/cloud-platform',
33226
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
33227
+ * ],
33228
+ * });
33229
+ *
33230
+ * // Acquire an auth client, and bind it to all future calls
33231
+ * const authClient = await auth.getClient();
33232
+ * google.options({auth: authClient});
33233
+ *
33234
+ * // Do the magic
33235
+ * const res =
33236
+ * await discoveryengine.projects.locations.dataStores.servingConfigs.delete({
33237
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
33238
+ * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
33239
+ * });
33240
+ * console.log(res.data);
33241
+ *
33242
+ * // Example response
33243
+ * // {}
33244
+ * }
33245
+ *
33246
+ * main().catch(e => {
33247
+ * console.error(e);
33248
+ * throw e;
33249
+ * });
33250
+ *
33251
+ * ```
33252
+ *
33253
+ * @param params - Parameters for request
33254
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
33255
+ * @param callback - Optional callback that handles the response.
33256
+ * @returns A promise if used with async/await, or void if used with a callback.
33257
+ */
33258
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
33259
+ delete(params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
33260
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
33261
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
33262
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
33263
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
33041
33264
  /**
33042
33265
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
33043
33266
  * @example
@@ -33721,6 +33944,12 @@ export declare namespace discoveryengine_v1 {
33721
33944
  */
33722
33945
  requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
33723
33946
  }
33947
+ export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
33948
+ /**
33949
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
33950
+ */
33951
+ name?: string;
33952
+ }
33724
33953
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get extends StandardParameters {
33725
33954
  /**
33726
33955
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
package/build/v1.js CHANGED
@@ -2319,6 +2319,39 @@ var discoveryengine_v1;
2319
2319
  return (0, googleapis_common_1.createAPIRequest)(parameters);
2320
2320
  }
2321
2321
  }
2322
+ delete(paramsOrCallback, optionsOrCallback, callback) {
2323
+ let params = (paramsOrCallback ||
2324
+ {});
2325
+ let options = (optionsOrCallback || {});
2326
+ if (typeof paramsOrCallback === 'function') {
2327
+ callback = paramsOrCallback;
2328
+ params =
2329
+ {};
2330
+ options = {};
2331
+ }
2332
+ if (typeof optionsOrCallback === 'function') {
2333
+ callback = optionsOrCallback;
2334
+ options = {};
2335
+ }
2336
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
2337
+ const parameters = {
2338
+ options: Object.assign({
2339
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2340
+ method: 'DELETE',
2341
+ apiVersion: '',
2342
+ }, options),
2343
+ params,
2344
+ requiredParams: ['name'],
2345
+ pathParams: ['name'],
2346
+ context: this.context,
2347
+ };
2348
+ if (callback) {
2349
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2350
+ }
2351
+ else {
2352
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2353
+ }
2354
+ }
2322
2355
  get(paramsOrCallback, optionsOrCallback, callback) {
2323
2356
  let params = (paramsOrCallback ||
2324
2357
  {});
@@ -4708,6 +4741,39 @@ var discoveryengine_v1;
4708
4741
  return (0, googleapis_common_1.createAPIRequest)(parameters);
4709
4742
  }
4710
4743
  }
4744
+ delete(paramsOrCallback, optionsOrCallback, callback) {
4745
+ let params = (paramsOrCallback ||
4746
+ {});
4747
+ let options = (optionsOrCallback || {});
4748
+ if (typeof paramsOrCallback === 'function') {
4749
+ callback = paramsOrCallback;
4750
+ params =
4751
+ {};
4752
+ options = {};
4753
+ }
4754
+ if (typeof optionsOrCallback === 'function') {
4755
+ callback = optionsOrCallback;
4756
+ options = {};
4757
+ }
4758
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
4759
+ const parameters = {
4760
+ options: Object.assign({
4761
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
4762
+ method: 'DELETE',
4763
+ apiVersion: '',
4764
+ }, options),
4765
+ params,
4766
+ requiredParams: ['name'],
4767
+ pathParams: ['name'],
4768
+ context: this.context,
4769
+ };
4770
+ if (callback) {
4771
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4772
+ }
4773
+ else {
4774
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4775
+ }
4776
+ }
4711
4777
  get(paramsOrCallback, optionsOrCallback, callback) {
4712
4778
  let params = (paramsOrCallback ||
4713
4779
  {});
@@ -6816,6 +6882,39 @@ var discoveryengine_v1;
6816
6882
  return (0, googleapis_common_1.createAPIRequest)(parameters);
6817
6883
  }
6818
6884
  }
6885
+ delete(paramsOrCallback, optionsOrCallback, callback) {
6886
+ let params = (paramsOrCallback ||
6887
+ {});
6888
+ let options = (optionsOrCallback || {});
6889
+ if (typeof paramsOrCallback === 'function') {
6890
+ callback = paramsOrCallback;
6891
+ params =
6892
+ {};
6893
+ options = {};
6894
+ }
6895
+ if (typeof optionsOrCallback === 'function') {
6896
+ callback = optionsOrCallback;
6897
+ options = {};
6898
+ }
6899
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
6900
+ const parameters = {
6901
+ options: Object.assign({
6902
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6903
+ method: 'DELETE',
6904
+ apiVersion: '',
6905
+ }, options),
6906
+ params,
6907
+ requiredParams: ['name'],
6908
+ pathParams: ['name'],
6909
+ context: this.context,
6910
+ };
6911
+ if (callback) {
6912
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
6913
+ }
6914
+ else {
6915
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
6916
+ }
6917
+ }
6819
6918
  get(paramsOrCallback, optionsOrCallback, callback) {
6820
6919
  let params = (paramsOrCallback ||
6821
6920
  {});