@googleapis/discoveryengine 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1beta.ts CHANGED
@@ -239,6 +239,28 @@ export namespace discoveryengine_v1beta {
239
239
  */
240
240
  functionName?: string | null;
241
241
  }
242
+ /**
243
+ * Metadata related to the progress of the SiteSearchEngineService.BatchCreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.
244
+ */
245
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata {
246
+ /**
247
+ * Operation create time.
248
+ */
249
+ createTime?: string | null;
250
+ /**
251
+ * Operation last update time. If the operation is done, this is also the finish time.
252
+ */
253
+ updateTime?: string | null;
254
+ }
255
+ /**
256
+ * Response message for SiteSearchEngineService.BatchCreateTargetSites method.
257
+ */
258
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse {
259
+ /**
260
+ * TargetSites created.
261
+ */
262
+ targetSites?: Schema$GoogleCloudDiscoveryengineV1alphaTargetSite[];
263
+ }
242
264
  /**
243
265
  * Metadata related to the progress of the DataStoreService.CreateDataStore operation. This will be returned by the google.longrunning.Operation.metadata field.
244
266
  */
@@ -278,6 +300,19 @@ export namespace discoveryengine_v1beta {
278
300
  */
279
301
  updateTime?: string | null;
280
302
  }
303
+ /**
304
+ * Metadata related to the progress of the SiteSearchEngineService.CreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.
305
+ */
306
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata {
307
+ /**
308
+ * Operation create time.
309
+ */
310
+ createTime?: string | null;
311
+ /**
312
+ * Operation last update time. If the operation is done, this is also the finish time.
313
+ */
314
+ updateTime?: string | null;
315
+ }
281
316
  /**
282
317
  * DataStore captures global settings and configs at the DataStore level.
283
318
  */
@@ -350,6 +385,66 @@ export namespace discoveryengine_v1beta {
350
385
  */
351
386
  updateTime?: string | null;
352
387
  }
388
+ /**
389
+ * Metadata related to the progress of the SiteSearchEngineService.DeleteTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.
390
+ */
391
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata {
392
+ /**
393
+ * Operation create time.
394
+ */
395
+ createTime?: string | null;
396
+ /**
397
+ * Operation last update time. If the operation is done, this is also the finish time.
398
+ */
399
+ updateTime?: string | null;
400
+ }
401
+ /**
402
+ * Metadata related to the progress of the SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
403
+ */
404
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata {
405
+ /**
406
+ * Operation create time.
407
+ */
408
+ createTime?: string | null;
409
+ /**
410
+ * Operation last update time. If the operation is done, this is also the finish time.
411
+ */
412
+ updateTime?: string | null;
413
+ }
414
+ /**
415
+ * Response message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
416
+ */
417
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse {}
418
+ /**
419
+ * A singleton resource of DataStore. It's empty when DataStore is created, which defaults to digital parser. The first call to DataStoreService.UpdateDocumentProcessingConfig method will initialize the config.
420
+ */
421
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig {
422
+ /**
423
+ * Output only. The full resource name of the Document Processing Config. Format: `projects/x/locations/x/collections/x/dataStores/x/documentProcessingConfig`.
424
+ */
425
+ name?: string | null;
426
+ /**
427
+ * The OCR config. Currently it only applies to PDFs.
428
+ */
429
+ ocrConfig?: Schema$GoogleCloudDiscoveryengineV1alphaOcrConfig;
430
+ }
431
+ /**
432
+ * Metadata related to the progress of the SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
433
+ */
434
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata {
435
+ /**
436
+ * Operation create time.
437
+ */
438
+ createTime?: string | null;
439
+ /**
440
+ * Operation last update time. If the operation is done, this is also the finish time.
441
+ */
442
+ updateTime?: string | null;
443
+ }
444
+ /**
445
+ * Response message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
446
+ */
447
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse {}
353
448
  /**
354
449
  * Metadata that describes the training and serving parameters of an Engine.
355
450
  */
@@ -531,6 +626,28 @@ export namespace discoveryengine_v1beta {
531
626
  * Additional config specs for a `similar-items` engine.
532
627
  */
533
628
  export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig {}
629
+ /**
630
+ * Metadata related to the progress of the EstimateDataSize operation. This is returned by the google.longrunning.Operation.metadata field.
631
+ */
632
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata {
633
+ /**
634
+ * Operation create time.
635
+ */
636
+ createTime?: string | null;
637
+ }
638
+ /**
639
+ * Response of the EstimateDataSize request. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.
640
+ */
641
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse {
642
+ /**
643
+ * Data size in terms of bytes.
644
+ */
645
+ dataSizeBytes?: string | null;
646
+ /**
647
+ * Total number of documents.
648
+ */
649
+ documentCount?: string | null;
650
+ }
534
651
  /**
535
652
  * Configurations for fields of a schema. For example, configuring a field is indexable, or searchable.
536
653
  */
@@ -657,6 +774,23 @@ export namespace discoveryengine_v1beta {
657
774
  */
658
775
  unjoinedEventsCount?: string | null;
659
776
  }
777
+ /**
778
+ * The OCR options for parsing documents.
779
+ */
780
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaOcrConfig {
781
+ /**
782
+ * Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig options to apply.
783
+ */
784
+ enabled?: boolean | null;
785
+ /**
786
+ * Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
787
+ */
788
+ enhancedDocumentElements?: string[] | null;
789
+ /**
790
+ * If true, will use native text instead of OCR text on pages containing native text.
791
+ */
792
+ useNativeText?: boolean | null;
793
+ }
660
794
  /**
661
795
  * Metadata related to the progress of the PurgeDocuments operation. This will be returned by the google.longrunning.Operation.metadata field.
662
796
  */
@@ -878,6 +1012,36 @@ export namespace discoveryengine_v1beta {
878
1012
  quotaFailure?: Schema$GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure;
879
1013
  }
880
1014
  export interface Schema$GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure {}
1015
+ /**
1016
+ * Metadata related to the progress of the TrainCustomModel operation. This is returned by the google.longrunning.Operation.metadata field.
1017
+ */
1018
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata {
1019
+ /**
1020
+ * Operation create time.
1021
+ */
1022
+ createTime?: string | null;
1023
+ /**
1024
+ * Operation last update time. If the operation is done, this is also the finish time.
1025
+ */
1026
+ updateTime?: string | null;
1027
+ }
1028
+ /**
1029
+ * Response of the TrainCustomModelRequest. This message is returned by the google.longrunning.Operations.response field.
1030
+ */
1031
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse {
1032
+ /**
1033
+ * Echoes the destination for the complete errors in the request if set.
1034
+ */
1035
+ errorConfig?: Schema$GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
1036
+ /**
1037
+ * A sample of errors encountered while processing the data.
1038
+ */
1039
+ errorSamples?: Schema$GoogleRpcStatus[];
1040
+ /**
1041
+ * The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training is in progress. * **ready**: The model is ready for serving.
1042
+ */
1043
+ modelStatus?: string | null;
1044
+ }
881
1045
  /**
882
1046
  * Metadata associated with a tune operation.
883
1047
  */
@@ -904,6 +1068,19 @@ export namespace discoveryengine_v1beta {
904
1068
  */
905
1069
  updateTime?: string | null;
906
1070
  }
1071
+ /**
1072
+ * Metadata related to the progress of the SiteSearchEngineService.UpdateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.
1073
+ */
1074
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata {
1075
+ /**
1076
+ * Operation create time.
1077
+ */
1078
+ createTime?: string | null;
1079
+ /**
1080
+ * Operation last update time. If the operation is done, this is also the finish time.
1081
+ */
1082
+ updateTime?: string | null;
1083
+ }
907
1084
  /**
908
1085
  * BigQuery source import data from.
909
1086
  */
@@ -985,7 +1162,7 @@ export namespace discoveryengine_v1beta {
985
1162
  */
986
1163
  messages?: Schema$GoogleCloudDiscoveryengineV1betaConversationMessage[];
987
1164
  /**
988
- * Immutable. Fully qualified name `project/x/locations/global/collections/{collection\}/dataStore/x/conversations/x`
1165
+ * Immutable. Fully qualified name `project/x/locations/global/collections/{collection\}/dataStore/x/conversations/x` or `project/x/locations/global/collections/{collection\}/engines/x/conversations/x`.
989
1166
  */
990
1167
  name?: string | null;
991
1168
  /**
@@ -1039,6 +1216,10 @@ export namespace discoveryengine_v1beta {
1039
1216
  * The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
1040
1217
  */
1041
1218
  conversation?: Schema$GoogleCloudDiscoveryengineV1betaConversation;
1219
+ /**
1220
+ * The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. This will be used to filter search results which may affect the summary response. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --\> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
1221
+ */
1222
+ filter?: string | null;
1042
1223
  /**
1043
1224
  * Required. Current user input.
1044
1225
  */
@@ -1865,11 +2046,37 @@ export namespace discoveryengine_v1beta {
1865
2046
  * Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.
1866
2047
  */
1867
2048
  languageCode?: string | null;
2049
+ /**
2050
+ * If specified, the spec will be used to modify the prompt provided to the LLM.
2051
+ */
2052
+ modelPromptSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec;
2053
+ /**
2054
+ * If specified, the spec will be used to modify the model specification provided to the LLM.
2055
+ */
2056
+ modelSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec;
1868
2057
  /**
1869
2058
  * The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most five results can be used to generate a summary.
1870
2059
  */
1871
2060
  summaryResultCount?: number | null;
1872
2061
  }
2062
+ /**
2063
+ * Specification of the prompt to use with the model.
2064
+ */
2065
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec {
2066
+ /**
2067
+ * Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide.
2068
+ */
2069
+ preamble?: string | null;
2070
+ }
2071
+ /**
2072
+ * Specification of the model.
2073
+ */
2074
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec {
2075
+ /**
2076
+ * The string format of the model version. e.g. stable, preview, etc.
2077
+ */
2078
+ version?: string | null;
2079
+ }
1873
2080
  /**
1874
2081
  * The specification that uses customized query embedding vector to do semantic document retrieval.
1875
2082
  */
@@ -2148,6 +2355,59 @@ export namespace discoveryengine_v1beta {
2148
2355
  * The summary content.
2149
2356
  */
2150
2357
  summaryText?: string | null;
2358
+ summaryWithMetadata?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata;
2359
+ }
2360
+ /**
2361
+ * Citation info for a segment.
2362
+ */
2363
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation {
2364
+ /**
2365
+ * End of the attributed segment, exclusive.
2366
+ */
2367
+ endIndex?: string | null;
2368
+ /**
2369
+ * Citation sources for the attributed segment.
2370
+ */
2371
+ sources?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource[];
2372
+ /**
2373
+ * Index indicates the start of the segment, measured in bytes/unicode.
2374
+ */
2375
+ startIndex?: string | null;
2376
+ }
2377
+ /**
2378
+ * Citation metadata.
2379
+ */
2380
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata {
2381
+ /**
2382
+ * Citations for segments.
2383
+ */
2384
+ citations?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation[];
2385
+ }
2386
+ /**
2387
+ * Citation source.
2388
+ */
2389
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource {
2390
+ /**
2391
+ * Document reference index from SummaryWithMetadata.references. It is 0-indexed and the value will be zero if the reference_index is not set explicitly.
2392
+ */
2393
+ referenceIndex?: string | null;
2394
+ }
2395
+ /**
2396
+ * Document reference.
2397
+ */
2398
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference {
2399
+ /**
2400
+ * Required. Document.name of the document. Full resource name of the referenced document, in the format `projects/x/locations/x/collections/x/dataStores/x/branches/x/documents/x`.
2401
+ */
2402
+ document?: string | null;
2403
+ /**
2404
+ * Title of the document.
2405
+ */
2406
+ title?: string | null;
2407
+ /**
2408
+ * GCS or HTTP uri for the document.
2409
+ */
2410
+ uri?: string | null;
2151
2411
  }
2152
2412
  /**
2153
2413
  * Safety Attribute categories and their associated confidence scores.
@@ -2162,6 +2422,23 @@ export namespace discoveryengine_v1beta {
2162
2422
  */
2163
2423
  scores?: number[] | null;
2164
2424
  }
2425
+ /**
2426
+ * Summary with metadata information.
2427
+ */
2428
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata {
2429
+ /**
2430
+ * Citation metadata for given summary.
2431
+ */
2432
+ citationMetadata?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata;
2433
+ /**
2434
+ * Document References.
2435
+ */
2436
+ references?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference[];
2437
+ /**
2438
+ * Summary text with no citation information.
2439
+ */
2440
+ summary?: string | null;
2441
+ }
2165
2442
  /**
2166
2443
  * Defines text input.
2167
2444
  */
@@ -4665,7 +4942,7 @@ export namespace discoveryengine_v1beta {
4665
4942
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Patch
4666
4943
  extends StandardParameters {
4667
4944
  /**
4668
- * Immutable. Fully qualified name `project/x/locations/global/collections/{collection\}/dataStore/x/conversations/x`
4945
+ * Immutable. Fully qualified name `project/x/locations/global/collections/{collection\}/dataStore/x/conversations/x` or `project/x/locations/global/collections/{collection\}/engines/x/conversations/x`.
4669
4946
  */
4670
4947
  name?: string;
4671
4948
  /**
@@ -6961,10 +7238,15 @@ export namespace discoveryengine_v1beta {
6961
7238
 
6962
7239
  export class Resource$Projects$Locations$Collections$Engines {
6963
7240
  context: APIRequestContext;
7241
+ conversations: Resource$Projects$Locations$Collections$Engines$Conversations;
6964
7242
  operations: Resource$Projects$Locations$Collections$Engines$Operations;
6965
7243
  servingConfigs: Resource$Projects$Locations$Collections$Engines$Servingconfigs;
6966
7244
  constructor(context: APIRequestContext) {
6967
7245
  this.context = context;
7246
+ this.conversations =
7247
+ new Resource$Projects$Locations$Collections$Engines$Conversations(
7248
+ this.context
7249
+ );
6968
7250
  this.operations =
6969
7251
  new Resource$Projects$Locations$Collections$Engines$Operations(
6970
7252
  this.context
@@ -6976,6 +7258,664 @@ export namespace discoveryengine_v1beta {
6976
7258
  }
6977
7259
  }
6978
7260
 
7261
+ export class Resource$Projects$Locations$Collections$Engines$Conversations {
7262
+ context: APIRequestContext;
7263
+ constructor(context: APIRequestContext) {
7264
+ this.context = context;
7265
+ }
7266
+
7267
+ /**
7268
+ * Converses a conversation.
7269
+ *
7270
+ * @param params - Parameters for request
7271
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7272
+ * @param callback - Optional callback that handles the response.
7273
+ * @returns A promise if used with async/await, or void if used with a callback.
7274
+ */
7275
+ converse(
7276
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse,
7277
+ options: StreamMethodOptions
7278
+ ): GaxiosPromise<Readable>;
7279
+ converse(
7280
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse,
7281
+ options?: MethodOptions
7282
+ ): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>;
7283
+ converse(
7284
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse,
7285
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7286
+ callback: BodyResponseCallback<Readable>
7287
+ ): void;
7288
+ converse(
7289
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse,
7290
+ options:
7291
+ | MethodOptions
7292
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>,
7293
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>
7294
+ ): void;
7295
+ converse(
7296
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse,
7297
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>
7298
+ ): void;
7299
+ converse(
7300
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>
7301
+ ): void;
7302
+ converse(
7303
+ paramsOrCallback?:
7304
+ | Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse
7305
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>
7306
+ | BodyResponseCallback<Readable>,
7307
+ optionsOrCallback?:
7308
+ | MethodOptions
7309
+ | StreamMethodOptions
7310
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>
7311
+ | BodyResponseCallback<Readable>,
7312
+ callback?:
7313
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>
7314
+ | BodyResponseCallback<Readable>
7315
+ ):
7316
+ | void
7317
+ | GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>
7318
+ | GaxiosPromise<Readable> {
7319
+ let params = (paramsOrCallback ||
7320
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse;
7321
+ let options = (optionsOrCallback || {}) as MethodOptions;
7322
+
7323
+ if (typeof paramsOrCallback === 'function') {
7324
+ callback = paramsOrCallback;
7325
+ params =
7326
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse;
7327
+ options = {};
7328
+ }
7329
+
7330
+ if (typeof optionsOrCallback === 'function') {
7331
+ callback = optionsOrCallback;
7332
+ options = {};
7333
+ }
7334
+
7335
+ const rootUrl =
7336
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
7337
+ const parameters = {
7338
+ options: Object.assign(
7339
+ {
7340
+ url: (rootUrl + '/v1beta/{+name}:converse').replace(
7341
+ /([^:]\/)\/+/g,
7342
+ '$1'
7343
+ ),
7344
+ method: 'POST',
7345
+ },
7346
+ options
7347
+ ),
7348
+ params,
7349
+ requiredParams: ['name'],
7350
+ pathParams: ['name'],
7351
+ context: this.context,
7352
+ };
7353
+ if (callback) {
7354
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>(
7355
+ parameters,
7356
+ callback as BodyResponseCallback<unknown>
7357
+ );
7358
+ } else {
7359
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConverseConversationResponse>(
7360
+ parameters
7361
+ );
7362
+ }
7363
+ }
7364
+
7365
+ /**
7366
+ * Creates a Conversation. If the Conversation to create already exists, an ALREADY_EXISTS error is returned.
7367
+ *
7368
+ * @param params - Parameters for request
7369
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7370
+ * @param callback - Optional callback that handles the response.
7371
+ * @returns A promise if used with async/await, or void if used with a callback.
7372
+ */
7373
+ create(
7374
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create,
7375
+ options: StreamMethodOptions
7376
+ ): GaxiosPromise<Readable>;
7377
+ create(
7378
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create,
7379
+ options?: MethodOptions
7380
+ ): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConversation>;
7381
+ create(
7382
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create,
7383
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7384
+ callback: BodyResponseCallback<Readable>
7385
+ ): void;
7386
+ create(
7387
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create,
7388
+ options:
7389
+ | MethodOptions
7390
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>,
7391
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7392
+ ): void;
7393
+ create(
7394
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create,
7395
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7396
+ ): void;
7397
+ create(
7398
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7399
+ ): void;
7400
+ create(
7401
+ paramsOrCallback?:
7402
+ | Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create
7403
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7404
+ | BodyResponseCallback<Readable>,
7405
+ optionsOrCallback?:
7406
+ | MethodOptions
7407
+ | StreamMethodOptions
7408
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7409
+ | BodyResponseCallback<Readable>,
7410
+ callback?:
7411
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7412
+ | BodyResponseCallback<Readable>
7413
+ ):
7414
+ | void
7415
+ | GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7416
+ | GaxiosPromise<Readable> {
7417
+ let params = (paramsOrCallback ||
7418
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create;
7419
+ let options = (optionsOrCallback || {}) as MethodOptions;
7420
+
7421
+ if (typeof paramsOrCallback === 'function') {
7422
+ callback = paramsOrCallback;
7423
+ params =
7424
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create;
7425
+ options = {};
7426
+ }
7427
+
7428
+ if (typeof optionsOrCallback === 'function') {
7429
+ callback = optionsOrCallback;
7430
+ options = {};
7431
+ }
7432
+
7433
+ const rootUrl =
7434
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
7435
+ const parameters = {
7436
+ options: Object.assign(
7437
+ {
7438
+ url: (rootUrl + '/v1beta/{+parent}/conversations').replace(
7439
+ /([^:]\/)\/+/g,
7440
+ '$1'
7441
+ ),
7442
+ method: 'POST',
7443
+ },
7444
+ options
7445
+ ),
7446
+ params,
7447
+ requiredParams: ['parent'],
7448
+ pathParams: ['parent'],
7449
+ context: this.context,
7450
+ };
7451
+ if (callback) {
7452
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConversation>(
7453
+ parameters,
7454
+ callback as BodyResponseCallback<unknown>
7455
+ );
7456
+ } else {
7457
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConversation>(
7458
+ parameters
7459
+ );
7460
+ }
7461
+ }
7462
+
7463
+ /**
7464
+ * Deletes a Conversation. If the Conversation to delete does not exist, a NOT_FOUND error is returned.
7465
+ *
7466
+ * @param params - Parameters for request
7467
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7468
+ * @param callback - Optional callback that handles the response.
7469
+ * @returns A promise if used with async/await, or void if used with a callback.
7470
+ */
7471
+ delete(
7472
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete,
7473
+ options: StreamMethodOptions
7474
+ ): GaxiosPromise<Readable>;
7475
+ delete(
7476
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete,
7477
+ options?: MethodOptions
7478
+ ): GaxiosPromise<Schema$GoogleProtobufEmpty>;
7479
+ delete(
7480
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete,
7481
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7482
+ callback: BodyResponseCallback<Readable>
7483
+ ): void;
7484
+ delete(
7485
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete,
7486
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
7487
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
7488
+ ): void;
7489
+ delete(
7490
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete,
7491
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
7492
+ ): void;
7493
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
7494
+ delete(
7495
+ paramsOrCallback?:
7496
+ | Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete
7497
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7498
+ | BodyResponseCallback<Readable>,
7499
+ optionsOrCallback?:
7500
+ | MethodOptions
7501
+ | StreamMethodOptions
7502
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7503
+ | BodyResponseCallback<Readable>,
7504
+ callback?:
7505
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
7506
+ | BodyResponseCallback<Readable>
7507
+ ):
7508
+ | void
7509
+ | GaxiosPromise<Schema$GoogleProtobufEmpty>
7510
+ | GaxiosPromise<Readable> {
7511
+ let params = (paramsOrCallback ||
7512
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete;
7513
+ let options = (optionsOrCallback || {}) as MethodOptions;
7514
+
7515
+ if (typeof paramsOrCallback === 'function') {
7516
+ callback = paramsOrCallback;
7517
+ params =
7518
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete;
7519
+ options = {};
7520
+ }
7521
+
7522
+ if (typeof optionsOrCallback === 'function') {
7523
+ callback = optionsOrCallback;
7524
+ options = {};
7525
+ }
7526
+
7527
+ const rootUrl =
7528
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
7529
+ const parameters = {
7530
+ options: Object.assign(
7531
+ {
7532
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
7533
+ method: 'DELETE',
7534
+ },
7535
+ options
7536
+ ),
7537
+ params,
7538
+ requiredParams: ['name'],
7539
+ pathParams: ['name'],
7540
+ context: this.context,
7541
+ };
7542
+ if (callback) {
7543
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
7544
+ parameters,
7545
+ callback as BodyResponseCallback<unknown>
7546
+ );
7547
+ } else {
7548
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
7549
+ }
7550
+ }
7551
+
7552
+ /**
7553
+ * Gets a Conversation.
7554
+ *
7555
+ * @param params - Parameters for request
7556
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7557
+ * @param callback - Optional callback that handles the response.
7558
+ * @returns A promise if used with async/await, or void if used with a callback.
7559
+ */
7560
+ get(
7561
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get,
7562
+ options: StreamMethodOptions
7563
+ ): GaxiosPromise<Readable>;
7564
+ get(
7565
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get,
7566
+ options?: MethodOptions
7567
+ ): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConversation>;
7568
+ get(
7569
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get,
7570
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7571
+ callback: BodyResponseCallback<Readable>
7572
+ ): void;
7573
+ get(
7574
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get,
7575
+ options:
7576
+ | MethodOptions
7577
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>,
7578
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7579
+ ): void;
7580
+ get(
7581
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get,
7582
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7583
+ ): void;
7584
+ get(
7585
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7586
+ ): void;
7587
+ get(
7588
+ paramsOrCallback?:
7589
+ | Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get
7590
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7591
+ | BodyResponseCallback<Readable>,
7592
+ optionsOrCallback?:
7593
+ | MethodOptions
7594
+ | StreamMethodOptions
7595
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7596
+ | BodyResponseCallback<Readable>,
7597
+ callback?:
7598
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7599
+ | BodyResponseCallback<Readable>
7600
+ ):
7601
+ | void
7602
+ | GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7603
+ | GaxiosPromise<Readable> {
7604
+ let params = (paramsOrCallback ||
7605
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get;
7606
+ let options = (optionsOrCallback || {}) as MethodOptions;
7607
+
7608
+ if (typeof paramsOrCallback === 'function') {
7609
+ callback = paramsOrCallback;
7610
+ params =
7611
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get;
7612
+ options = {};
7613
+ }
7614
+
7615
+ if (typeof optionsOrCallback === 'function') {
7616
+ callback = optionsOrCallback;
7617
+ options = {};
7618
+ }
7619
+
7620
+ const rootUrl =
7621
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
7622
+ const parameters = {
7623
+ options: Object.assign(
7624
+ {
7625
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
7626
+ method: 'GET',
7627
+ },
7628
+ options
7629
+ ),
7630
+ params,
7631
+ requiredParams: ['name'],
7632
+ pathParams: ['name'],
7633
+ context: this.context,
7634
+ };
7635
+ if (callback) {
7636
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConversation>(
7637
+ parameters,
7638
+ callback as BodyResponseCallback<unknown>
7639
+ );
7640
+ } else {
7641
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConversation>(
7642
+ parameters
7643
+ );
7644
+ }
7645
+ }
7646
+
7647
+ /**
7648
+ * Lists all Conversations by their parent DataStore.
7649
+ *
7650
+ * @param params - Parameters for request
7651
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7652
+ * @param callback - Optional callback that handles the response.
7653
+ * @returns A promise if used with async/await, or void if used with a callback.
7654
+ */
7655
+ list(
7656
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$List,
7657
+ options: StreamMethodOptions
7658
+ ): GaxiosPromise<Readable>;
7659
+ list(
7660
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Conversations$List,
7661
+ options?: MethodOptions
7662
+ ): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>;
7663
+ list(
7664
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$List,
7665
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7666
+ callback: BodyResponseCallback<Readable>
7667
+ ): void;
7668
+ list(
7669
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$List,
7670
+ options:
7671
+ | MethodOptions
7672
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>,
7673
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>
7674
+ ): void;
7675
+ list(
7676
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$List,
7677
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>
7678
+ ): void;
7679
+ list(
7680
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>
7681
+ ): void;
7682
+ list(
7683
+ paramsOrCallback?:
7684
+ | Params$Resource$Projects$Locations$Collections$Engines$Conversations$List
7685
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>
7686
+ | BodyResponseCallback<Readable>,
7687
+ optionsOrCallback?:
7688
+ | MethodOptions
7689
+ | StreamMethodOptions
7690
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>
7691
+ | BodyResponseCallback<Readable>,
7692
+ callback?:
7693
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>
7694
+ | BodyResponseCallback<Readable>
7695
+ ):
7696
+ | void
7697
+ | GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>
7698
+ | GaxiosPromise<Readable> {
7699
+ let params = (paramsOrCallback ||
7700
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Conversations$List;
7701
+ let options = (optionsOrCallback || {}) as MethodOptions;
7702
+
7703
+ if (typeof paramsOrCallback === 'function') {
7704
+ callback = paramsOrCallback;
7705
+ params =
7706
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Conversations$List;
7707
+ options = {};
7708
+ }
7709
+
7710
+ if (typeof optionsOrCallback === 'function') {
7711
+ callback = optionsOrCallback;
7712
+ options = {};
7713
+ }
7714
+
7715
+ const rootUrl =
7716
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
7717
+ const parameters = {
7718
+ options: Object.assign(
7719
+ {
7720
+ url: (rootUrl + '/v1beta/{+parent}/conversations').replace(
7721
+ /([^:]\/)\/+/g,
7722
+ '$1'
7723
+ ),
7724
+ method: 'GET',
7725
+ },
7726
+ options
7727
+ ),
7728
+ params,
7729
+ requiredParams: ['parent'],
7730
+ pathParams: ['parent'],
7731
+ context: this.context,
7732
+ };
7733
+ if (callback) {
7734
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>(
7735
+ parameters,
7736
+ callback as BodyResponseCallback<unknown>
7737
+ );
7738
+ } else {
7739
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListConversationsResponse>(
7740
+ parameters
7741
+ );
7742
+ }
7743
+ }
7744
+
7745
+ /**
7746
+ * Updates a Conversation. Conversation action type cannot be changed. If the Conversation to update does not exist, a NOT_FOUND error is returned.
7747
+ *
7748
+ * @param params - Parameters for request
7749
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7750
+ * @param callback - Optional callback that handles the response.
7751
+ * @returns A promise if used with async/await, or void if used with a callback.
7752
+ */
7753
+ patch(
7754
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch,
7755
+ options: StreamMethodOptions
7756
+ ): GaxiosPromise<Readable>;
7757
+ patch(
7758
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch,
7759
+ options?: MethodOptions
7760
+ ): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConversation>;
7761
+ patch(
7762
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch,
7763
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7764
+ callback: BodyResponseCallback<Readable>
7765
+ ): void;
7766
+ patch(
7767
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch,
7768
+ options:
7769
+ | MethodOptions
7770
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>,
7771
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7772
+ ): void;
7773
+ patch(
7774
+ params: Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch,
7775
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7776
+ ): void;
7777
+ patch(
7778
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7779
+ ): void;
7780
+ patch(
7781
+ paramsOrCallback?:
7782
+ | Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch
7783
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7784
+ | BodyResponseCallback<Readable>,
7785
+ optionsOrCallback?:
7786
+ | MethodOptions
7787
+ | StreamMethodOptions
7788
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7789
+ | BodyResponseCallback<Readable>,
7790
+ callback?:
7791
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7792
+ | BodyResponseCallback<Readable>
7793
+ ):
7794
+ | void
7795
+ | GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaConversation>
7796
+ | GaxiosPromise<Readable> {
7797
+ let params = (paramsOrCallback ||
7798
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch;
7799
+ let options = (optionsOrCallback || {}) as MethodOptions;
7800
+
7801
+ if (typeof paramsOrCallback === 'function') {
7802
+ callback = paramsOrCallback;
7803
+ params =
7804
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch;
7805
+ options = {};
7806
+ }
7807
+
7808
+ if (typeof optionsOrCallback === 'function') {
7809
+ callback = optionsOrCallback;
7810
+ options = {};
7811
+ }
7812
+
7813
+ const rootUrl =
7814
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
7815
+ const parameters = {
7816
+ options: Object.assign(
7817
+ {
7818
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
7819
+ method: 'PATCH',
7820
+ },
7821
+ options
7822
+ ),
7823
+ params,
7824
+ requiredParams: ['name'],
7825
+ pathParams: ['name'],
7826
+ context: this.context,
7827
+ };
7828
+ if (callback) {
7829
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConversation>(
7830
+ parameters,
7831
+ callback as BodyResponseCallback<unknown>
7832
+ );
7833
+ } else {
7834
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaConversation>(
7835
+ parameters
7836
+ );
7837
+ }
7838
+ }
7839
+ }
7840
+
7841
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Conversations$Converse
7842
+ extends StandardParameters {
7843
+ /**
7844
+ * Required. The resource name of the Conversation to get. Format: `projects/{project_number\}/locations/{location_id\}/collections/{collection\}/dataStores/{data_store_id\}/conversations/{conversation_id\}`. Use `projects/{project_number\}/locations/{location_id\}/collections/{collection\}/dataStores/{data_store_id\}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session.
7845
+ */
7846
+ name?: string;
7847
+
7848
+ /**
7849
+ * Request body metadata
7850
+ */
7851
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaConverseConversationRequest;
7852
+ }
7853
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Conversations$Create
7854
+ extends StandardParameters {
7855
+ /**
7856
+ * Required. Full resource name of parent data store. Format: `projects/{project_number\}/locations/{location_id\}/collections/{collection\}/dataStores/{data_store_id\}`
7857
+ */
7858
+ parent?: string;
7859
+
7860
+ /**
7861
+ * Request body metadata
7862
+ */
7863
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaConversation;
7864
+ }
7865
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Conversations$Delete
7866
+ extends StandardParameters {
7867
+ /**
7868
+ * Required. The resource name of the Conversation to delete. Format: `projects/{project_number\}/locations/{location_id\}/collections/{collection\}/dataStores/{data_store_id\}/conversations/{conversation_id\}`
7869
+ */
7870
+ name?: string;
7871
+ }
7872
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Conversations$Get
7873
+ extends StandardParameters {
7874
+ /**
7875
+ * Required. The resource name of the Conversation to get. Format: `projects/{project_number\}/locations/{location_id\}/collections/{collection\}/dataStores/{data_store_id\}/conversations/{conversation_id\}`
7876
+ */
7877
+ name?: string;
7878
+ }
7879
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Conversations$List
7880
+ extends StandardParameters {
7881
+ /**
7882
+ * A filter to apply on the list results. The supported features are: user_pseudo_id, state. Example: "user_pseudo_id = some_id"
7883
+ */
7884
+ filter?: string;
7885
+ /**
7886
+ * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `conversation_name` Example: "update_time desc" "create_time"
7887
+ */
7888
+ orderBy?: string;
7889
+ /**
7890
+ * Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000.
7891
+ */
7892
+ pageSize?: number;
7893
+ /**
7894
+ * A page token, received from a previous `ListConversations` call. Provide this to retrieve the subsequent page.
7895
+ */
7896
+ pageToken?: string;
7897
+ /**
7898
+ * Required. The data store resource name. Format: `projects/{project_number\}/locations/{location_id\}/collections/{collection\}/dataStores/{data_store_id\}`
7899
+ */
7900
+ parent?: string;
7901
+ }
7902
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Conversations$Patch
7903
+ extends StandardParameters {
7904
+ /**
7905
+ * Immutable. Fully qualified name `project/x/locations/global/collections/{collection\}/dataStore/x/conversations/x` or `project/x/locations/global/collections/{collection\}/engines/x/conversations/x`.
7906
+ */
7907
+ name?: string;
7908
+ /**
7909
+ * Indicates which fields in the provided Conversation to update. The following are NOT supported: * conversation.name If not set or empty, all supported fields are updated.
7910
+ */
7911
+ updateMask?: string;
7912
+
7913
+ /**
7914
+ * Request body metadata
7915
+ */
7916
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaConversation;
7917
+ }
7918
+
6979
7919
  export class Resource$Projects$Locations$Collections$Engines$Operations {
6980
7920
  context: APIRequestContext;
6981
7921
  constructor(context: APIRequestContext) {
@@ -9455,7 +10395,7 @@ export namespace discoveryengine_v1beta {
9455
10395
  export interface Params$Resource$Projects$Locations$Datastores$Conversations$Patch
9456
10396
  extends StandardParameters {
9457
10397
  /**
9458
- * Immutable. Fully qualified name `project/x/locations/global/collections/{collection\}/dataStore/x/conversations/x`
10398
+ * Immutable. Fully qualified name `project/x/locations/global/collections/{collection\}/dataStore/x/conversations/x` or `project/x/locations/global/collections/{collection\}/engines/x/conversations/x`.
9459
10399
  */
9460
10400
  name?: string;
9461
10401
  /**