@googleapis/discoveryengine 27.1.0 → 28.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.
@@ -68,439 +68,9 @@ export declare namespace discoveryengine_v1alpha {
68
68
  export class Discoveryengine {
69
69
  context: APIRequestContext;
70
70
  billingAccounts: Resource$Billingaccounts;
71
- media: Resource$Media;
72
71
  projects: Resource$Projects;
73
72
  constructor(options: GlobalOptions, google?: GoogleConfigurable);
74
73
  }
75
- /**
76
- * Extra information added to operations that support Scotty media requests.
77
- */
78
- export interface Schema$ApiservingMediaRequestInfo {
79
- /**
80
- * The number of current bytes uploaded or downloaded.
81
- */
82
- currentBytes?: string | null;
83
- /**
84
- * Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.
85
- */
86
- customData?: string | null;
87
- /**
88
- * Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information.
89
- */
90
- diffObjectVersion?: string | null;
91
- /**
92
- * The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929
93
- */
94
- finalStatus?: number | null;
95
- /**
96
- * The type of notification received from Scotty.
97
- */
98
- notificationType?: string | null;
99
- /**
100
- * The physical headers provided by RequestReceivedParameters in Scotty request. type is uploader_service.KeyValuePairs.
101
- */
102
- physicalHeaders?: string | null;
103
- /**
104
- * The Scotty request ID.
105
- */
106
- requestId?: string | null;
107
- /**
108
- * The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange()
109
- */
110
- requestReceivedParamsServingInfo?: string | null;
111
- /**
112
- * The total size of the file.
113
- */
114
- totalBytes?: string | null;
115
- /**
116
- * Whether the total bytes field contains an estimated data.
117
- */
118
- totalBytesIsEstimated?: boolean | null;
119
- }
120
- /**
121
- * This message is for backends to pass their scotty media specific fields to ESF. Backend will include this in their response message to ESF. Example: ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile(ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse will include apiserving.MediaResponseInfo to tell ESF about data like dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse { optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo media_response_info = 2 \}
122
- */
123
- export interface Schema$ApiservingMediaResponseInfo {
124
- /**
125
- * Data to copy from backend response to the next backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.
126
- */
127
- customData?: string | null;
128
- /**
129
- * Specifies any transformation to be applied to data before persisting it or retrieving from storage. E.g., encryption options for blobstore2. This should be of the form uploader_service.DataStorageTransform.
130
- */
131
- dataStorageTransform?: string | null;
132
- /**
133
- * For the first notification of a |diff_encoded| HttpRequestInfo, this is the index of the blob mint that Scotty should use when writing the resulting blob. This field is optional. It's not required ever, even if `original_object_blob_mint_index` is set. In situations like that, we will use the destination blob's mint for the destination blob and regular blob ACL checks for the original object. Note: This field is only for use by Drive API for diff uploads.
134
- */
135
- destinationBlobMintIndex?: number | null;
136
- /**
137
- * Specifies the Scotty Drop Target to use for uploads. If present in a media response, Scotty does not upload to a standard drop zone. Instead, Scotty saves the upload directly to the location specified in this drop target. Unlike drop zones, the drop target is the final storage location for an upload. So, the agent does not need to clone the blob at the end of the upload. The agent is responsible for garbage collecting any orphaned blobs that may occur due to aborted uploads. For more information, see the drop target design doc here: http://goto/ScottyDropTarget This field will be preferred to dynamicDropzone. If provided, the identified field in the response must be of the type uploader.agent.DropTarget.
138
- */
139
- dynamicDropTarget?: string | null;
140
- /**
141
- * Specifies the Scotty dropzone to use for uploads.
142
- */
143
- dynamicDropzone?: string | null;
144
- /**
145
- * Diff Updates must respond to a START notification with this Media proto to tell Scotty to decode the diff encoded payload and apply the diff against this field. If the request was diff encoded, but this field is not set, Scotty will treat the encoding as identity. This is corresponding to Apiary's DiffUploadResponse.original_object (//depot/google3/gdata/rosy/proto/data.proto?l=413). See go/esf-scotty-diff-upload for more information.
146
- */
147
- mediaForDiff?: Schema$GdataMedia;
148
- /**
149
- * For the first notification of a |diff_encoded| HttpRequestInfo, this is the index of the blob mint that Scotty should use when reading the original blob. This field is optional. It's not required ever, even if `destination_blob_mint_index` is set. In situations like that, we will use the destination blob's mint for the destination blob and regular blob ACL checks for the original object. Note: This field is only for use by Drive API for diff uploads.
150
- */
151
- originalObjectBlobMintIndex?: number | null;
152
- /**
153
- * Request class to use for all Blobstore operations for this request.
154
- */
155
- requestClass?: string | null;
156
- /**
157
- * Requester ID passed along to be recorded in the Scotty logs
158
- */
159
- scottyAgentUserId?: string | null;
160
- /**
161
- * Customer-specific data to be recorded in the Scotty logs type is logs_proto_scotty.CustomerLog
162
- */
163
- scottyCustomerLog?: string | null;
164
- /**
165
- * Specifies the TrafficClass that Scotty should use for any RPCs to fetch the response bytes. Will override the traffic class GTOS of the incoming http request. This is a temporary field to facilitate whitelisting and experimentation by the bigstore agent only. For instance, this does not apply to RTMP reads. WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.
166
- */
167
- trafficClassField?: string | null;
168
- /**
169
- * Tells Scotty to verify hashes on the agent's behalf by parsing out the X-Goog-Hash header.
170
- */
171
- verifyHashFromHeader?: boolean | null;
172
- }
173
- /**
174
- * Information to read/write to blobstore2.
175
- */
176
- export interface Schema$GdataBlobstore2Info {
177
- /**
178
- * The blob generation id.
179
- */
180
- blobGeneration?: string | null;
181
- /**
182
- * The blob id, e.g., /blobstore/prod/playground/scotty
183
- */
184
- blobId?: string | null;
185
- /**
186
- * Read handle passed from Bigstore -\> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
187
- */
188
- downloadReadHandle?: string | null;
189
- /**
190
- * The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
191
- */
192
- readToken?: string | null;
193
- /**
194
- * Metadata passed from Blobstore -\> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
195
- */
196
- uploadMetadataContainer?: string | null;
197
- }
198
- /**
199
- * A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.
200
- */
201
- export interface Schema$GdataCompositeMedia {
202
- /**
203
- * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
204
- */
205
- blobRef?: string | null;
206
- /**
207
- * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
208
- */
209
- blobstore2Info?: Schema$GdataBlobstore2Info;
210
- /**
211
- * A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.
212
- */
213
- cosmoBinaryReference?: string | null;
214
- /**
215
- * crc32.c hash for the payload.
216
- */
217
- crc32cHash?: number | null;
218
- /**
219
- * Media data, set if reference_type is INLINE
220
- */
221
- inline?: string | null;
222
- /**
223
- * Size of the data, in bytes
224
- */
225
- length?: string | null;
226
- /**
227
- * MD5 hash for the payload.
228
- */
229
- md5Hash?: string | null;
230
- /**
231
- * Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
232
- */
233
- objectId?: Schema$GdataObjectId;
234
- /**
235
- * Path to the data, set if reference_type is PATH
236
- */
237
- path?: string | null;
238
- /**
239
- * Describes what the field reference contains.
240
- */
241
- referenceType?: string | null;
242
- /**
243
- * SHA-1 hash for the payload.
244
- */
245
- sha1Hash?: string | null;
246
- }
247
- /**
248
- * Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.
249
- */
250
- export interface Schema$GdataContentTypeInfo {
251
- /**
252
- * Scotty's best guess of what the content type of the file is.
253
- */
254
- bestGuess?: string | null;
255
- /**
256
- * The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file.
257
- */
258
- fromBytes?: string | null;
259
- /**
260
- * The content type of the file derived from the file extension of the original file name used by the client.
261
- */
262
- fromFileName?: string | null;
263
- /**
264
- * The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
265
- */
266
- fromHeader?: string | null;
267
- /**
268
- * The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).
269
- */
270
- fromUrlPath?: string | null;
271
- }
272
- /**
273
- * Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
274
- */
275
- export interface Schema$GdataDiffChecksumsResponse {
276
- /**
277
- * Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.
278
- */
279
- checksumsLocation?: Schema$GdataCompositeMedia;
280
- /**
281
- * The chunk size of checksums. Must be a multiple of 256KB.
282
- */
283
- chunkSizeBytes?: string | null;
284
- /**
285
- * If set, calculate the checksums based on the contents and return them to the caller.
286
- */
287
- objectLocation?: Schema$GdataCompositeMedia;
288
- /**
289
- * The total size of the server object.
290
- */
291
- objectSizeBytes?: string | null;
292
- /**
293
- * The object version of the object the checksums are being returned for.
294
- */
295
- objectVersion?: string | null;
296
- }
297
- /**
298
- * Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
299
- */
300
- export interface Schema$GdataDiffDownloadResponse {
301
- /**
302
- * The original object location.
303
- */
304
- objectLocation?: Schema$GdataCompositeMedia;
305
- }
306
- /**
307
- * A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
308
- */
309
- export interface Schema$GdataDiffUploadRequest {
310
- /**
311
- * The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol.
312
- */
313
- checksumsInfo?: Schema$GdataCompositeMedia;
314
- /**
315
- * The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received.
316
- */
317
- objectInfo?: Schema$GdataCompositeMedia;
318
- /**
319
- * The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.
320
- */
321
- objectVersion?: string | null;
322
- }
323
- /**
324
- * Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
325
- */
326
- export interface Schema$GdataDiffUploadResponse {
327
- /**
328
- * The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload.
329
- */
330
- objectVersion?: string | null;
331
- /**
332
- * The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification.
333
- */
334
- originalObject?: Schema$GdataCompositeMedia;
335
- }
336
- /**
337
- * Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
338
- */
339
- export interface Schema$GdataDiffVersionResponse {
340
- /**
341
- * The total size of the server object.
342
- */
343
- objectSizeBytes?: string | null;
344
- /**
345
- * The version of the object stored at the server.
346
- */
347
- objectVersion?: string | null;
348
- }
349
- /**
350
- * Parameters specific to media downloads.
351
- */
352
- export interface Schema$GdataDownloadParameters {
353
- /**
354
- * A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.
355
- */
356
- allowGzipCompression?: boolean | null;
357
- /**
358
- * Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.
359
- */
360
- ignoreRange?: boolean | null;
361
- }
362
- /**
363
- * A reference to data stored on the filesystem, on GFS or in blobstore.
364
- */
365
- export interface Schema$GdataMedia {
366
- /**
367
- * Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any time.
368
- */
369
- algorithm?: string | null;
370
- /**
371
- * Use object_id instead.
372
- */
373
- bigstoreObjectRef?: string | null;
374
- /**
375
- * Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
376
- */
377
- blobRef?: string | null;
378
- /**
379
- * Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
380
- */
381
- blobstore2Info?: Schema$GdataBlobstore2Info;
382
- /**
383
- * A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.
384
- */
385
- compositeMedia?: Schema$GdataCompositeMedia[];
386
- /**
387
- * MIME type of the data
388
- */
389
- contentType?: string | null;
390
- /**
391
- * Extended content type information provided for Scotty uploads.
392
- */
393
- contentTypeInfo?: Schema$GdataContentTypeInfo;
394
- /**
395
- * A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.
396
- */
397
- cosmoBinaryReference?: string | null;
398
- /**
399
- * For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.
400
- */
401
- crc32cHash?: number | null;
402
- /**
403
- * Set if reference_type is DIFF_CHECKSUMS_RESPONSE.
404
- */
405
- diffChecksumsResponse?: Schema$GdataDiffChecksumsResponse;
406
- /**
407
- * Set if reference_type is DIFF_DOWNLOAD_RESPONSE.
408
- */
409
- diffDownloadResponse?: Schema$GdataDiffDownloadResponse;
410
- /**
411
- * Set if reference_type is DIFF_UPLOAD_REQUEST.
412
- */
413
- diffUploadRequest?: Schema$GdataDiffUploadRequest;
414
- /**
415
- * Set if reference_type is DIFF_UPLOAD_RESPONSE.
416
- */
417
- diffUploadResponse?: Schema$GdataDiffUploadResponse;
418
- /**
419
- * Set if reference_type is DIFF_VERSION_RESPONSE.
420
- */
421
- diffVersionResponse?: Schema$GdataDiffVersionResponse;
422
- /**
423
- * Parameters for a media download.
424
- */
425
- downloadParameters?: Schema$GdataDownloadParameters;
426
- /**
427
- * Original file name
428
- */
429
- filename?: string | null;
430
- /**
431
- * Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media.
432
- */
433
- hash?: string | null;
434
- /**
435
- * For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification.
436
- */
437
- hashVerified?: boolean | null;
438
- /**
439
- * Media data, set if reference_type is INLINE
440
- */
441
- inline?: string | null;
442
- /**
443
- * |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.
444
- */
445
- isPotentialRetry?: boolean | null;
446
- /**
447
- * Size of the data, in bytes
448
- */
449
- length?: string | null;
450
- /**
451
- * Scotty-provided MD5 hash for an upload.
452
- */
453
- md5Hash?: string | null;
454
- /**
455
- * Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.
456
- */
457
- mediaId?: string | null;
458
- /**
459
- * Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
460
- */
461
- objectId?: Schema$GdataObjectId;
462
- /**
463
- * Path to the data, set if reference_type is PATH
464
- */
465
- path?: string | null;
466
- /**
467
- * Describes what the field reference contains.
468
- */
469
- referenceType?: string | null;
470
- /**
471
- * Scotty-provided SHA1 hash for an upload.
472
- */
473
- sha1Hash?: string | null;
474
- /**
475
- * Scotty-provided SHA256 hash for an upload.
476
- */
477
- sha256Hash?: string | null;
478
- /**
479
- * Time at which the media data was last updated, in milliseconds since UNIX epoch
480
- */
481
- timestamp?: string | null;
482
- /**
483
- * A unique fingerprint/version id for the media data
484
- */
485
- token?: string | null;
486
- }
487
- /**
488
- * This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763.
489
- */
490
- export interface Schema$GdataObjectId {
491
- /**
492
- * The name of the bucket to which this object belongs.
493
- */
494
- bucketName?: string | null;
495
- /**
496
- * Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
497
- */
498
- generation?: string | null;
499
- /**
500
- * The name of the object.
501
- */
502
- objectName?: string | null;
503
- }
504
74
  /**
505
75
  * `Distribution` contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of buckets. The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by formulas for buckets of fixed or exponentially increasing widths. Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the `mean` and `sum_of_squared_deviation` fields meaningless.
506
76
  */
@@ -2544,6 +2114,18 @@ export declare namespace discoveryengine_v1alpha {
2544
2114
  * Optional. Customer policy for the assistant.
2545
2115
  */
2546
2116
  customerPolicy?: Schema$GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicy;
2117
+ /**
2118
+ * Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
2119
+ */
2120
+ description?: string | null;
2121
+ /**
2122
+ * Optional. Indicates whether to disable user location context. By default, user location context is enabled.
2123
+ */
2124
+ disableLocationContext?: boolean | null;
2125
+ /**
2126
+ * Required. The assistant display name. It must be a UTF-8 encoded string with a length limit of 128 characters.
2127
+ */
2128
+ displayName?: string | null;
2547
2129
  /**
2548
2130
  * Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId\}/locations/{locationId\}/collections/{collectionId\}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] \}
2549
2131
  */
@@ -2695,10 +2277,18 @@ export declare namespace discoveryengine_v1alpha {
2695
2277
  * Configuration for the generation of the assistant response.
2696
2278
  */
2697
2279
  export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig {
2280
+ /**
2281
+ * Optional. The list of models that are allowed to be used for assistant.
2282
+ */
2283
+ allowedModelIds?: string[] | null;
2698
2284
  /**
2699
2285
  * The default language to use for the generation of the assistant response. Use an ISO 639-1 language code such as `en`. If not specified, the language will be automatically detected.
2700
2286
  */
2701
2287
  defaultLanguage?: string | null;
2288
+ /**
2289
+ * Optional. The default model to use for assistant.
2290
+ */
2291
+ defaultModelId?: string | null;
2702
2292
  /**
2703
2293
  * System instruction, also known as the prompt preamble for LLM calls. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
2704
2294
  */
@@ -3870,49 +3460,6 @@ export declare namespace discoveryengine_v1alpha {
3870
3460
  */
3871
3461
  startTime?: string | null;
3872
3462
  }
3873
- /**
3874
- * Response for [EstimateBillingService.GetConfigurablePricingUsageStats] method.
3875
- */
3876
- export interface Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStats {
3877
- /**
3878
- * A list of metric usages, one for each requested resource type that has data in the requested time range.
3879
- */
3880
- metricUsages?: Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStatsMetricUsage[];
3881
- /**
3882
- * Identifier. The name of the ConfigurablePricingUsageStats. Format: projects/{project\}/locations/{location\}/configurablePricingUsageStats
3883
- */
3884
- name?: string | null;
3885
- }
3886
- /**
3887
- * A list of usages for a specific day.
3888
- */
3889
- export interface Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStatsDatedUsage {
3890
- /**
3891
- * The date of the usage.
3892
- */
3893
- date?: Schema$GoogleTypeDate;
3894
- /**
3895
- * The usage value on the date.
3896
- */
3897
- usage?: number | null;
3898
- }
3899
- /**
3900
- * The usage of a metric over a list of days.
3901
- */
3902
- export interface Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStatsMetricUsage {
3903
- /**
3904
- * The list of usages for this resource type, chronologically sorted by date. This is populated for metrics with daily aggregation like DAILY_MDN_QPM.
3905
- */
3906
- datedUsages?: Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStatsDatedUsage[];
3907
- /**
3908
- * The metric type.
3909
- */
3910
- metricType?: string | null;
3911
- /**
3912
- * The list of total usages for this resource type
3913
- */
3914
- totalUsages?: number[] | null;
3915
- }
3916
3463
  /**
3917
3464
  * A data sync run of DataConnector. After DataConnector is successfully initialized, data syncs are scheduled at DataConnector.refresh_interval. A ConnectorRun represents a data sync either in the past or onging that the moment. //
3918
3465
  */
@@ -5677,6 +5224,10 @@ export declare namespace discoveryengine_v1alpha {
5677
5224
  * Configurations for a Search Engine.
5678
5225
  */
5679
5226
  export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig {
5227
+ /**
5228
+ * Optional. The required subscription tier of this engine. They cannot be modified after engine creation. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine.
5229
+ */
5230
+ requiredSubscriptionTier?: string | null;
5680
5231
  /**
5681
5232
  * The add-on that this search engine enables.
5682
5233
  */
@@ -6251,6 +5802,10 @@ export declare namespace discoveryengine_v1alpha {
6251
5802
  * Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
6252
5803
  */
6253
5804
  externalIdentity?: string | null;
5805
+ /**
5806
+ * Optional. The name of the external identity.
5807
+ */
5808
+ externalIdentityName?: string | null;
6254
5809
  /**
6255
5810
  * Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
6256
5811
  */
@@ -6897,6 +6452,19 @@ export declare namespace discoveryengine_v1alpha {
6897
6452
  */
6898
6453
  nextPageToken?: string | null;
6899
6454
  }
6455
+ /**
6456
+ * Response message for the AssistantService.ListAssistants method.
6457
+ */
6458
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse {
6459
+ /**
6460
+ * All the customer's Assistants.
6461
+ */
6462
+ assistants?: Schema$GoogleCloudDiscoveryengineV1alphaAssistant[];
6463
+ /**
6464
+ * A token that can be sent as ListAssistantsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
6465
+ */
6466
+ nextPageToken?: string | null;
6467
+ }
6900
6468
  /**
6901
6469
  * Response message for the AuthorizationService.ListAuthorizations method.
6902
6470
  */
@@ -7856,6 +7424,45 @@ export declare namespace discoveryengine_v1alpha {
7856
7424
  */
7857
7425
  text?: string | null;
7858
7426
  }
7427
+ /**
7428
+ * Response for [ProjectService.QueryConfigurablePricingUsageStats] method.
7429
+ */
7430
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse {
7431
+ /**
7432
+ * A list of metric usages, one for each requested resource type that has data in the requested time range.
7433
+ */
7434
+ metricUsages?: Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseMetricUsage[];
7435
+ }
7436
+ /**
7437
+ * A list of usages for a specific day.
7438
+ */
7439
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseDatedUsage {
7440
+ /**
7441
+ * The date of the usage.
7442
+ */
7443
+ date?: Schema$GoogleTypeDate;
7444
+ /**
7445
+ * The usage value on the date.
7446
+ */
7447
+ usage?: number | null;
7448
+ }
7449
+ /**
7450
+ * The usage of a metric over a list of days.
7451
+ */
7452
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseMetricUsage {
7453
+ /**
7454
+ * The list of usages for this resource type, chronologically sorted by date. This is populated for metrics with daily aggregation like DAILY_MDN_QPM.
7455
+ */
7456
+ datedUsages?: Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseDatedUsage[];
7457
+ /**
7458
+ * The metric type.
7459
+ */
7460
+ metricType?: string | null;
7461
+ /**
7462
+ * The total usage for this resource type. This is populated for metrics like TOTAL_STORAGE.
7463
+ */
7464
+ totalUsage?: number | null;
7465
+ }
7859
7466
  /**
7860
7467
  * Record message for RankService.Rank method.
7861
7468
  */
@@ -8554,6 +8161,10 @@ export declare namespace discoveryengine_v1alpha {
8554
8161
  * A specification for configuring the behavior of content search.
8555
8162
  */
8556
8163
  contentSearchSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
8164
+ /**
8165
+ * Optional. Crowding specifications for improving result diversity. If multiple CrowdingSpecs are specified, crowding will be evaluated on each unique combination of the `field` values, and max_count will be the maximum value of `max_count` across all CrowdingSpecs. For example, if the first CrowdingSpec has `field` = "color" and `max_count` = 3, and the second CrowdingSpec has `field` = "size" and `max_count` = 2, then after 3 documents that share the same color AND size have been returned, subsequent ones should be removed or demoted.
8166
+ */
8167
+ crowdingSpecs?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestCrowdingSpec[];
8557
8168
  /**
8558
8169
  * Custom fine tuning configs. If set, it has higher priority than the configs set in ServingConfig.custom_fine_tuning_spec.
8559
8170
  */
@@ -8602,6 +8213,10 @@ export declare namespace discoveryengine_v1alpha {
8602
8213
  * The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering the website search results, see [Order web search results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results). For more information on ordering the healthcare search results, see [Order healthcare search results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results). If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
8603
8214
  */
8604
8215
  orderBy?: string | null;
8216
+ /**
8217
+ * 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`
8218
+ */
8219
+ pageCategories?: string[] | null;
8605
8220
  /**
8606
8221
  * Maximum number of Documents to return. The maximum allowed value depends on the data type. Values above the maximum value are coerced to the maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. * Websites with advanced indexing: Default `25`, Maximum `50`. * Other: Default `50`, Maximum `100`. If this field is negative, an `INVALID_ARGUMENT` is returned.
8607
8222
  */
@@ -8911,6 +8526,23 @@ export declare namespace discoveryengine_v1alpha {
8911
8526
  */
8912
8527
  imageSource?: string | null;
8913
8528
  }
8529
+ /**
8530
+ * Specification for crowding. Crowding improves the diversity of search results by limiting the number of results that share the same field value. For example, crowding on the color field with a max_count of 3 and mode DROP_CROWDED_RESULTS will return at most 3 results with the same color across all pages.
8531
+ */
8532
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestCrowdingSpec {
8533
+ /**
8534
+ * The field to use for crowding. Documents can be crowded by a field in the Document object. Crowding field is case sensitive.
8535
+ */
8536
+ field?: string | null;
8537
+ /**
8538
+ * The maximum number of documents to keep per value of the field. Once there are at least max_count previous results which contain the same value for the given field (according to the order specified in `order_by`), later results with the same value are "crowded away". If not specified, the default value is 1.
8539
+ */
8540
+ maxCount?: number | null;
8541
+ /**
8542
+ * Mode to use for documents that are crowded away.
8543
+ */
8544
+ mode?: string | null;
8545
+ }
8914
8546
  /**
8915
8547
  * A struct to define data stores to filter on in a search call and configurations for those data stores. Otherwise, an `INVALID_ARGUMENT` error is returned.
8916
8548
  */
@@ -9179,6 +8811,10 @@ export declare namespace discoveryengine_v1alpha {
9179
8811
  * Promotions for site search.
9180
8812
  */
9181
8813
  searchLinkPromotions?: Schema$GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion[];
8814
+ /**
8815
+ * Output only. Indicates the semantic state of the search response.
8816
+ */
8817
+ semanticState?: string | null;
9182
8818
  /**
9183
8819
  * Session information. Only set if SearchRequest.session is provided. See its description for more details.
9184
8820
  */
@@ -10185,6 +9821,10 @@ export declare namespace discoveryengine_v1alpha {
10185
9821
  * A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
10186
9822
  */
10187
9823
  assistToken?: string | null;
9824
+ /**
9825
+ * The tool names of the tools that were invoked.
9826
+ */
9827
+ invocationTools?: string[] | null;
10188
9828
  /**
10189
9829
  * Session information. Only included in the final StreamAssistResponse of the response stream.
10190
9830
  */
@@ -10500,58 +10140,6 @@ export declare namespace discoveryengine_v1alpha {
10500
10140
  */
10501
10141
  updateTime?: string | null;
10502
10142
  }
10503
- /**
10504
- * Request message for the AgentService.UploadAgentFile method.
10505
- */
10506
- export interface Schema$GoogleCloudDiscoveryengineV1alphaUploadAgentFileRequest {
10507
- /**
10508
- * Information about the file being uploaded.
10509
- */
10510
- blob?: Schema$GdataMedia;
10511
- /**
10512
- * Media upload request metadata.
10513
- */
10514
- mediaRequestInfo?: Schema$ApiservingMediaRequestInfo;
10515
- }
10516
- /**
10517
- * Response message for the AgentService.UploadAgentFile method.
10518
- */
10519
- export interface Schema$GoogleCloudDiscoveryengineV1alphaUploadAgentFileResponse {
10520
- /**
10521
- * The uploaded AgentFile.
10522
- */
10523
- agentFile?: Schema$GoogleCloudDiscoveryengineV1alphaAgentFile;
10524
- /**
10525
- * Media upload response metadata.
10526
- */
10527
- mediaResponseInfo?: Schema$ApiservingMediaResponseInfo;
10528
- }
10529
- /**
10530
- * Request for the AssistantService.UploadSessionFile method.
10531
- */
10532
- export interface Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileRequest {
10533
- /**
10534
- * Information about the file being uploaded.
10535
- */
10536
- blob?: Schema$GdataMedia;
10537
- /**
10538
- * Media upload request metadata.
10539
- */
10540
- mediaRequestInfo?: Schema$ApiservingMediaRequestInfo;
10541
- }
10542
- /**
10543
- * Response for the AssistantService.UploadSessionFile method.
10544
- */
10545
- export interface Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileResponse {
10546
- /**
10547
- * The ID of the uploaded file.
10548
- */
10549
- fileId?: string | null;
10550
- /**
10551
- * Media upload response metadata.
10552
- */
10553
- mediaResponseInfo?: Schema$ApiservingMediaResponseInfo;
10554
- }
10555
10143
  /**
10556
10144
  * Per-user annotations for an Agent, based on UserAnnotation.
10557
10145
  */
@@ -11360,6 +10948,14 @@ export declare namespace discoveryengine_v1alpha {
11360
10948
  * Optional. Customer policy for the assistant.
11361
10949
  */
11362
10950
  customerPolicy?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicy;
10951
+ /**
10952
+ * Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
10953
+ */
10954
+ description?: string | null;
10955
+ /**
10956
+ * Required. The assistant display name. It must be a UTF-8 encoded string with a length limit of 128 characters.
10957
+ */
10958
+ displayName?: string | null;
11363
10959
  /**
11364
10960
  * Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId\}/locations/{locationId\}/collections/{collectionId\}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] \}
11365
10961
  */
@@ -11430,10 +11026,18 @@ export declare namespace discoveryengine_v1alpha {
11430
11026
  * Configuration for the generation of the assistant response.
11431
11027
  */
11432
11028
  export interface Schema$GoogleCloudDiscoveryengineV1AssistantGenerationConfig {
11029
+ /**
11030
+ * Optional. The list of models that are allowed to be used for assistant.
11031
+ */
11032
+ allowedModelIds?: string[] | null;
11433
11033
  /**
11434
11034
  * The default language to use for the generation of the assistant response. Use an ISO 639-1 language code such as `en`. If not specified, the language will be automatically detected.
11435
11035
  */
11436
11036
  defaultLanguage?: string | null;
11037
+ /**
11038
+ * Optional. The default model to use for assistant.
11039
+ */
11040
+ defaultModelId?: string | null;
11437
11041
  /**
11438
11042
  * System instruction, also known as the prompt preamble for LLM calls. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
11439
11043
  */
@@ -12529,6 +12133,10 @@ export declare namespace discoveryengine_v1alpha {
12529
12133
  * Configurations for a Search Engine.
12530
12134
  */
12531
12135
  export interface Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig {
12136
+ /**
12137
+ * Optional. The required subscription tier of this engine. They cannot be modified after engine creation. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine.
12138
+ */
12139
+ requiredSubscriptionTier?: string | null;
12532
12140
  /**
12533
12141
  * The add-on that this search engine enables.
12534
12142
  */
@@ -13296,6 +12904,10 @@ export declare namespace discoveryengine_v1alpha {
13296
12904
  * A specification for configuring the behavior of content search.
13297
12905
  */
13298
12906
  contentSearchSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec;
12907
+ /**
12908
+ * Optional. Crowding specifications for improving result diversity. If multiple CrowdingSpecs are specified, crowding will be evaluated on each unique combination of the `field` values, and max_count will be the maximum value of `max_count` across all CrowdingSpecs. For example, if the first CrowdingSpec has `field` = "color" and `max_count` = 3, and the second CrowdingSpec has `field` = "size" and `max_count` = 2, then after 3 documents that share the same color AND size have been returned, subsequent ones should be removed or demoted.
12909
+ */
12910
+ crowdingSpecs?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestCrowdingSpec[];
13299
12911
  /**
13300
12912
  * Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used.
13301
12913
  */
@@ -13340,6 +12952,10 @@ export declare namespace discoveryengine_v1alpha {
13340
12952
  * The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering the website search results, see [Order web search results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results). For more information on ordering the healthcare search results, see [Order healthcare search results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results). If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
13341
12953
  */
13342
12954
  orderBy?: string | null;
12955
+ /**
12956
+ * 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`
12957
+ */
12958
+ pageCategories?: string[] | null;
13343
12959
  /**
13344
12960
  * Maximum number of Documents to return. The maximum allowed value depends on the data type. Values above the maximum value are coerced to the maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. * Websites with advanced indexing: Default `25`, Maximum `50`. * Other: Default `50`, Maximum `100`. If this field is negative, an `INVALID_ARGUMENT` is returned.
13345
12961
  */
@@ -13645,6 +13261,23 @@ export declare namespace discoveryengine_v1alpha {
13645
13261
  */
13646
13262
  imageSource?: string | null;
13647
13263
  }
13264
+ /**
13265
+ * Specification for crowding. Crowding improves the diversity of search results by limiting the number of results that share the same field value. For example, crowding on the color field with a max_count of 3 and mode DROP_CROWDED_RESULTS will return at most 3 results with the same color across all pages.
13266
+ */
13267
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestCrowdingSpec {
13268
+ /**
13269
+ * The field to use for crowding. Documents can be crowded by a field in the Document object. Crowding field is case sensitive.
13270
+ */
13271
+ field?: string | null;
13272
+ /**
13273
+ * The maximum number of documents to keep per value of the field. Once there are at least max_count previous results which contain the same value for the given field (according to the order specified in `order_by`), later results with the same value are "crowded away". If not specified, the default value is 1.
13274
+ */
13275
+ maxCount?: number | null;
13276
+ /**
13277
+ * Mode to use for documents that are crowded away.
13278
+ */
13279
+ mode?: string | null;
13280
+ }
13648
13281
  /**
13649
13282
  * A struct to define data stores to filter on in a search call and configurations for those data stores. Otherwise, an `INVALID_ARGUMENT` error is returned.
13650
13283
  */
@@ -15384,6 +15017,10 @@ export declare namespace discoveryengine_v1alpha {
15384
15017
  * Configurations for a Search Engine.
15385
15018
  */
15386
15019
  export interface Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig {
15020
+ /**
15021
+ * Optional. The required subscription tier of this engine. They cannot be modified after engine creation. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine.
15022
+ */
15023
+ requiredSubscriptionTier?: string | null;
15387
15024
  /**
15388
15025
  * The add-on that this search engine enables.
15389
15026
  */
@@ -16930,36 +16567,6 @@ export declare namespace discoveryengine_v1alpha {
16930
16567
  */
16931
16568
  status?: string | null;
16932
16569
  }
16933
- /**
16934
- * Request for the SourceService.UploadSourceFile method.
16935
- */
16936
- export interface Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileRequest {
16937
- /**
16938
- * Information about the file being uploaded.
16939
- */
16940
- blob?: Schema$GdataMedia;
16941
- /**
16942
- * Media upload request metadata.
16943
- */
16944
- mediaRequestInfo?: Schema$ApiservingMediaRequestInfo;
16945
- /**
16946
- * The source id of the associated file. If not set, a source id will be generated and a new tentative source will be created.
16947
- */
16948
- sourceId?: string | null;
16949
- }
16950
- /**
16951
- * Response for the SourceService.UploadSourceFile method.
16952
- */
16953
- export interface Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileResponse {
16954
- /**
16955
- * Media upload response metadata.
16956
- */
16957
- mediaResponseInfo?: Schema$ApiservingMediaResponseInfo;
16958
- /**
16959
- * The source id of the uploaded source.
16960
- */
16961
- sourceId?: Schema$GoogleCloudNotebooklmV1alphaSourceId;
16962
- }
16963
16570
  /**
16964
16571
  * The "Content" messages refer to data the user wants to upload.
16965
16572
  */
@@ -17128,7 +16735,7 @@ export declare namespace discoveryengine_v1alpha {
17128
16735
  */
17129
16736
  operations?: Schema$GoogleLongrunningOperation[];
17130
16737
  /**
17131
- * Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
16738
+ * Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.
17132
16739
  */
17133
16740
  unreachable?: string[] | null;
17134
16741
  }
@@ -17714,11 +17321,13 @@ export declare namespace discoveryengine_v1alpha {
17714
17321
  */
17715
17322
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaRetractLicenseConfigRequest;
17716
17323
  }
17717
- export class Resource$Media {
17324
+ export class Resource$Projects {
17718
17325
  context: APIRequestContext;
17326
+ locations: Resource$Projects$Locations;
17327
+ operations: Resource$Projects$Operations;
17719
17328
  constructor(context: APIRequestContext);
17720
17329
  /**
17721
- * Downloads a file from the session.
17330
+ * Gets a Project. Returns NOT_FOUND when the project is not yet created.
17722
17331
  * @example
17723
17332
  * ```js
17724
17333
  * // Before running the sample:
@@ -17741,7 +17350,6 @@ export declare namespace discoveryengine_v1alpha {
17741
17350
  * // Scopes can be specified either as an array or as a single, space-delimited string.
17742
17351
  * scopes: [
17743
17352
  * 'https://www.googleapis.com/auth/cloud-platform',
17744
- * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
17745
17353
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
17746
17354
  * ],
17747
17355
  * });
@@ -17751,48 +17359,20 @@ export declare namespace discoveryengine_v1alpha {
17751
17359
  * google.options({auth: authClient});
17752
17360
  *
17753
17361
  * // Do the magic
17754
- * const res = await discoveryengine.media.download({
17755
- * // Required. The ID of the file to be downloaded.
17756
- * fileId: 'placeholder-value',
17757
- * // Required. The resource name of the Session. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}`
17758
- * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session',
17759
- * // Optional. The ID of the view to be downloaded.
17760
- * viewId: 'placeholder-value',
17362
+ * const res = await discoveryengine.projects.get({
17363
+ * // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
17364
+ * name: 'projects/my-project',
17761
17365
  * });
17762
17366
  * console.log(res.data);
17763
17367
  *
17764
17368
  * // Example response
17765
17369
  * // {
17766
- * // "algorithm": "my_algorithm",
17767
- * // "bigstoreObjectRef": "my_bigstoreObjectRef",
17768
- * // "blobRef": "my_blobRef",
17769
- * // "blobstore2Info": {},
17770
- * // "compositeMedia": [],
17771
- * // "contentType": "my_contentType",
17772
- * // "contentTypeInfo": {},
17773
- * // "cosmoBinaryReference": "my_cosmoBinaryReference",
17774
- * // "crc32cHash": 0,
17775
- * // "diffChecksumsResponse": {},
17776
- * // "diffDownloadResponse": {},
17777
- * // "diffUploadRequest": {},
17778
- * // "diffUploadResponse": {},
17779
- * // "diffVersionResponse": {},
17780
- * // "downloadParameters": {},
17781
- * // "filename": "my_filename",
17782
- * // "hash": "my_hash",
17783
- * // "hashVerified": false,
17784
- * // "inline": "my_inline",
17785
- * // "isPotentialRetry": false,
17786
- * // "length": "my_length",
17787
- * // "md5Hash": "my_md5Hash",
17788
- * // "mediaId": "my_mediaId",
17789
- * // "objectId": {},
17790
- * // "path": "my_path",
17791
- * // "referenceType": "my_referenceType",
17792
- * // "sha1Hash": "my_sha1Hash",
17793
- * // "sha256Hash": "my_sha256Hash",
17794
- * // "timestamp": "my_timestamp",
17795
- * // "token": "my_token"
17370
+ * // "configurableBillingStatus": {},
17371
+ * // "createTime": "my_createTime",
17372
+ * // "customerProvidedConfig": {},
17373
+ * // "name": "my_name",
17374
+ * // "provisionCompletionTime": "my_provisionCompletionTime",
17375
+ * // "serviceTermsMap": {}
17796
17376
  * // }
17797
17377
  * }
17798
17378
  *
@@ -17808,14 +17388,14 @@ export declare namespace discoveryengine_v1alpha {
17808
17388
  * @param callback - Optional callback that handles the response.
17809
17389
  * @returns A promise if used with async/await, or void if used with a callback.
17810
17390
  */
17811
- download(params: Params$Resource$Media$Download, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
17812
- download(params?: Params$Resource$Media$Download, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GdataMedia>>;
17813
- download(params: Params$Resource$Media$Download, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
17814
- download(params: Params$Resource$Media$Download, options: MethodOptions | BodyResponseCallback<Schema$GdataMedia>, callback: BodyResponseCallback<Schema$GdataMedia>): void;
17815
- download(params: Params$Resource$Media$Download, callback: BodyResponseCallback<Schema$GdataMedia>): void;
17816
- download(callback: BodyResponseCallback<Schema$GdataMedia>): void;
17391
+ get(params: Params$Resource$Projects$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
17392
+ get(params?: Params$Resource$Projects$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaProject>>;
17393
+ get(params: Params$Resource$Projects$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
17394
+ get(params: Params$Resource$Projects$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
17395
+ get(params: Params$Resource$Projects$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
17396
+ get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
17817
17397
  /**
17818
- * Uploads a file for the assistant to use as a source of information within the session.
17398
+ * Updates the editable settings of a Discovery Engine Project.
17819
17399
  * @example
17820
17400
  * ```js
17821
17401
  * // Before running the sample:
@@ -17838,7 +17418,6 @@ export declare namespace discoveryengine_v1alpha {
17838
17418
  * // Scopes can be specified either as an array or as a single, space-delimited string.
17839
17419
  * scopes: [
17840
17420
  * 'https://www.googleapis.com/auth/cloud-platform',
17841
- * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
17842
17421
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
17843
17422
  * ],
17844
17423
  * });
@@ -17848,29 +17427,35 @@ export declare namespace discoveryengine_v1alpha {
17848
17427
  * google.options({auth: authClient});
17849
17428
  *
17850
17429
  * // Do the magic
17851
- * const res = await discoveryengine.media.upload({
17852
- * // Required. The resource name of the Session. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}`
17853
- * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session',
17430
+ * const res = await discoveryengine.projects.patch({
17431
+ * // Output only. Full resource name of the project, for example `projects/{project\}`. Note that when making requests, project number and project id are both acceptable, but the server will always respond in project number.
17432
+ * name: 'projects/my-project',
17433
+ * // Optional. The list of fields to update. Supported fields: * `customer_provided_config`
17434
+ * updateMask: 'placeholder-value',
17854
17435
  *
17855
17436
  * // Request body metadata
17856
17437
  * requestBody: {
17857
17438
  * // request body parameters
17858
17439
  * // {
17859
- * // "blob": {},
17860
- * // "mediaRequestInfo": {}
17440
+ * // "configurableBillingStatus": {},
17441
+ * // "createTime": "my_createTime",
17442
+ * // "customerProvidedConfig": {},
17443
+ * // "name": "my_name",
17444
+ * // "provisionCompletionTime": "my_provisionCompletionTime",
17445
+ * // "serviceTermsMap": {}
17861
17446
  * // }
17862
17447
  * },
17863
- * media: {
17864
- * mimeType: 'placeholder-value',
17865
- * body: 'placeholder-value',
17866
- * },
17867
17448
  * });
17868
17449
  * console.log(res.data);
17869
17450
  *
17870
17451
  * // Example response
17871
17452
  * // {
17872
- * // "fileId": "my_fileId",
17873
- * // "mediaResponseInfo": {}
17453
+ * // "configurableBillingStatus": {},
17454
+ * // "createTime": "my_createTime",
17455
+ * // "customerProvidedConfig": {},
17456
+ * // "name": "my_name",
17457
+ * // "provisionCompletionTime": "my_provisionCompletionTime",
17458
+ * // "serviceTermsMap": {}
17874
17459
  * // }
17875
17460
  * }
17876
17461
  *
@@ -17886,57 +17471,14 @@ export declare namespace discoveryengine_v1alpha {
17886
17471
  * @param callback - Optional callback that handles the response.
17887
17472
  * @returns A promise if used with async/await, or void if used with a callback.
17888
17473
  */
17889
- upload(params: Params$Resource$Media$Upload, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
17890
- upload(params?: Params$Resource$Media$Upload, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileResponse>>;
17891
- upload(params: Params$Resource$Media$Upload, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
17892
- upload(params: Params$Resource$Media$Upload, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileResponse>): void;
17893
- upload(params: Params$Resource$Media$Upload, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileResponse>): void;
17894
- upload(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileResponse>): void;
17895
- }
17896
- export interface Params$Resource$Media$Download extends StandardParameters {
17897
- /**
17898
- * Required. The ID of the file to be downloaded.
17899
- */
17900
- fileId?: string;
17901
- /**
17902
- * Required. The resource name of the Session. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}`
17903
- */
17904
- name?: string;
17905
- /**
17906
- * Optional. The ID of the view to be downloaded.
17907
- */
17908
- viewId?: string;
17909
- }
17910
- export interface Params$Resource$Media$Upload extends StandardParameters {
17911
- /**
17912
- * Required. The resource name of the Session. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}`
17913
- */
17914
- name?: string;
17915
- /**
17916
- * Request body metadata
17917
- */
17918
- requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaUploadSessionFileRequest;
17919
- /**
17920
- * Media metadata
17921
- */
17922
- media?: {
17923
- /**
17924
- * Media mime-type
17925
- */
17926
- mimeType?: string;
17927
- /**
17928
- * Media body contents
17929
- */
17930
- body?: any;
17931
- };
17932
- }
17933
- export class Resource$Projects {
17934
- context: APIRequestContext;
17935
- locations: Resource$Projects$Locations;
17936
- operations: Resource$Projects$Operations;
17937
- constructor(context: APIRequestContext);
17474
+ patch(params: Params$Resource$Projects$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
17475
+ patch(params?: Params$Resource$Projects$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaProject>>;
17476
+ patch(params: Params$Resource$Projects$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
17477
+ patch(params: Params$Resource$Projects$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
17478
+ patch(params: Params$Resource$Projects$Patch, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
17479
+ patch(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
17938
17480
  /**
17939
- * Gets a Project. Returns NOT_FOUND when the project is not yet created.
17481
+ * Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.
17940
17482
  * @example
17941
17483
  * ```js
17942
17484
  * // Before running the sample:
@@ -17968,20 +17510,29 @@ export declare namespace discoveryengine_v1alpha {
17968
17510
  * google.options({auth: authClient});
17969
17511
  *
17970
17512
  * // Do the magic
17971
- * const res = await discoveryengine.projects.get({
17513
+ * const res = await discoveryengine.projects.provision({
17972
17514
  * // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
17973
17515
  * name: 'projects/my-project',
17516
+ *
17517
+ * // Request body metadata
17518
+ * requestBody: {
17519
+ * // request body parameters
17520
+ * // {
17521
+ * // "acceptDataUseTerms": false,
17522
+ * // "dataUseTermsVersion": "my_dataUseTermsVersion",
17523
+ * // "saasParams": {}
17524
+ * // }
17525
+ * },
17974
17526
  * });
17975
17527
  * console.log(res.data);
17976
17528
  *
17977
17529
  * // Example response
17978
17530
  * // {
17979
- * // "configurableBillingStatus": {},
17980
- * // "createTime": "my_createTime",
17981
- * // "customerProvidedConfig": {},
17531
+ * // "done": false,
17532
+ * // "error": {},
17533
+ * // "metadata": {},
17982
17534
  * // "name": "my_name",
17983
- * // "provisionCompletionTime": "my_provisionCompletionTime",
17984
- * // "serviceTermsMap": {}
17535
+ * // "response": {}
17985
17536
  * // }
17986
17537
  * }
17987
17538
  *
@@ -17997,14 +17548,14 @@ export declare namespace discoveryengine_v1alpha {
17997
17548
  * @param callback - Optional callback that handles the response.
17998
17549
  * @returns A promise if used with async/await, or void if used with a callback.
17999
17550
  */
18000
- get(params: Params$Resource$Projects$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
18001
- get(params?: Params$Resource$Projects$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaProject>>;
18002
- get(params: Params$Resource$Projects$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
18003
- get(params: Params$Resource$Projects$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
18004
- get(params: Params$Resource$Projects$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
18005
- get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
17551
+ provision(params: Params$Resource$Projects$Provision, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
17552
+ provision(params?: Params$Resource$Projects$Provision, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
17553
+ provision(params: Params$Resource$Projects$Provision, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
17554
+ provision(params: Params$Resource$Projects$Provision, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
17555
+ provision(params: Params$Resource$Projects$Provision, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
17556
+ provision(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
18006
17557
  /**
18007
- * Updates the editable settings of a Discovery Engine Project.
17558
+ * Updates service terms for this project. This method can be used to retroactively accept the latest terms. Terms available for update: * [Terms for data use](https://cloud.google.com/retail/data-use-terms)
18008
17559
  * @example
18009
17560
  * ```js
18010
17561
  * // Before running the sample:
@@ -18036,177 +17587,17 @@ export declare namespace discoveryengine_v1alpha {
18036
17587
  * google.options({auth: authClient});
18037
17588
  *
18038
17589
  * // Do the magic
18039
- * const res = await discoveryengine.projects.patch({
18040
- * // Output only. Full resource name of the project, for example `projects/{project\}`. Note that when making requests, project number and project id are both acceptable, but the server will always respond in project number.
18041
- * name: 'projects/my-project',
18042
- * // Optional. The list of fields to update. Supported fields: * `customer_provided_config`
18043
- * updateMask: 'placeholder-value',
17590
+ * const res = await discoveryengine.projects.reportConsentChange({
17591
+ * // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
17592
+ * project: 'projects/my-project',
18044
17593
  *
18045
17594
  * // Request body metadata
18046
17595
  * requestBody: {
18047
17596
  * // request body parameters
18048
17597
  * // {
18049
- * // "configurableBillingStatus": {},
18050
- * // "createTime": "my_createTime",
18051
- * // "customerProvidedConfig": {},
18052
- * // "name": "my_name",
18053
- * // "provisionCompletionTime": "my_provisionCompletionTime",
18054
- * // "serviceTermsMap": {}
18055
- * // }
18056
- * },
18057
- * });
18058
- * console.log(res.data);
18059
- *
18060
- * // Example response
18061
- * // {
18062
- * // "configurableBillingStatus": {},
18063
- * // "createTime": "my_createTime",
18064
- * // "customerProvidedConfig": {},
18065
- * // "name": "my_name",
18066
- * // "provisionCompletionTime": "my_provisionCompletionTime",
18067
- * // "serviceTermsMap": {}
18068
- * // }
18069
- * }
18070
- *
18071
- * main().catch(e => {
18072
- * console.error(e);
18073
- * throw e;
18074
- * });
18075
- *
18076
- * ```
18077
- *
18078
- * @param params - Parameters for request
18079
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
18080
- * @param callback - Optional callback that handles the response.
18081
- * @returns A promise if used with async/await, or void if used with a callback.
18082
- */
18083
- patch(params: Params$Resource$Projects$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
18084
- patch(params?: Params$Resource$Projects$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaProject>>;
18085
- patch(params: Params$Resource$Projects$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
18086
- patch(params: Params$Resource$Projects$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
18087
- patch(params: Params$Resource$Projects$Patch, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
18088
- patch(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
18089
- /**
18090
- * Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.
18091
- * @example
18092
- * ```js
18093
- * // Before running the sample:
18094
- * // - Enable the API at:
18095
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
18096
- * // - Login into gcloud by running:
18097
- * // ```sh
18098
- * // $ gcloud auth application-default login
18099
- * // ```
18100
- * // - Install the npm module by running:
18101
- * // ```sh
18102
- * // $ npm install googleapis
18103
- * // ```
18104
- *
18105
- * const {google} = require('googleapis');
18106
- * const discoveryengine = google.discoveryengine('v1alpha');
18107
- *
18108
- * async function main() {
18109
- * const auth = new google.auth.GoogleAuth({
18110
- * // Scopes can be specified either as an array or as a single, space-delimited string.
18111
- * scopes: [
18112
- * 'https://www.googleapis.com/auth/cloud-platform',
18113
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
18114
- * ],
18115
- * });
18116
- *
18117
- * // Acquire an auth client, and bind it to all future calls
18118
- * const authClient = await auth.getClient();
18119
- * google.options({auth: authClient});
18120
- *
18121
- * // Do the magic
18122
- * const res = await discoveryengine.projects.provision({
18123
- * // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
18124
- * name: 'projects/my-project',
18125
- *
18126
- * // Request body metadata
18127
- * requestBody: {
18128
- * // request body parameters
18129
- * // {
18130
- * // "acceptDataUseTerms": false,
18131
- * // "dataUseTermsVersion": "my_dataUseTermsVersion",
18132
- * // "saasParams": {}
18133
- * // }
18134
- * },
18135
- * });
18136
- * console.log(res.data);
18137
- *
18138
- * // Example response
18139
- * // {
18140
- * // "done": false,
18141
- * // "error": {},
18142
- * // "metadata": {},
18143
- * // "name": "my_name",
18144
- * // "response": {}
18145
- * // }
18146
- * }
18147
- *
18148
- * main().catch(e => {
18149
- * console.error(e);
18150
- * throw e;
18151
- * });
18152
- *
18153
- * ```
18154
- *
18155
- * @param params - Parameters for request
18156
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
18157
- * @param callback - Optional callback that handles the response.
18158
- * @returns A promise if used with async/await, or void if used with a callback.
18159
- */
18160
- provision(params: Params$Resource$Projects$Provision, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
18161
- provision(params?: Params$Resource$Projects$Provision, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
18162
- provision(params: Params$Resource$Projects$Provision, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
18163
- provision(params: Params$Resource$Projects$Provision, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
18164
- provision(params: Params$Resource$Projects$Provision, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
18165
- provision(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
18166
- /**
18167
- * Updates service terms for this project. This method can be used to retroactively accept the latest terms. Terms available for update: * [Terms for data use](https://cloud.google.com/retail/data-use-terms)
18168
- * @example
18169
- * ```js
18170
- * // Before running the sample:
18171
- * // - Enable the API at:
18172
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
18173
- * // - Login into gcloud by running:
18174
- * // ```sh
18175
- * // $ gcloud auth application-default login
18176
- * // ```
18177
- * // - Install the npm module by running:
18178
- * // ```sh
18179
- * // $ npm install googleapis
18180
- * // ```
18181
- *
18182
- * const {google} = require('googleapis');
18183
- * const discoveryengine = google.discoveryengine('v1alpha');
18184
- *
18185
- * async function main() {
18186
- * const auth = new google.auth.GoogleAuth({
18187
- * // Scopes can be specified either as an array or as a single, space-delimited string.
18188
- * scopes: [
18189
- * 'https://www.googleapis.com/auth/cloud-platform',
18190
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
18191
- * ],
18192
- * });
18193
- *
18194
- * // Acquire an auth client, and bind it to all future calls
18195
- * const authClient = await auth.getClient();
18196
- * google.options({auth: authClient});
18197
- *
18198
- * // Do the magic
18199
- * const res = await discoveryengine.projects.reportConsentChange({
18200
- * // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
18201
- * project: 'projects/my-project',
18202
- *
18203
- * // Request body metadata
18204
- * requestBody: {
18205
- * // request body parameters
18206
- * // {
18207
- * // "consentChangeAction": "my_consentChangeAction",
18208
- * // "serviceTermId": "my_serviceTermId",
18209
- * // "serviceTermVersion": "my_serviceTermVersion"
17598
+ * // "consentChangeAction": "my_consentChangeAction",
17599
+ * // "serviceTermId": "my_serviceTermId",
17600
+ * // "serviceTermVersion": "my_serviceTermVersion"
18210
17601
  * // }
18211
17602
  * },
18212
17603
  * });
@@ -18512,7 +17903,7 @@ export declare namespace discoveryengine_v1alpha {
18512
17903
  getCmekConfig(params: Params$Resource$Projects$Locations$Getcmekconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCmekConfig>): void;
18513
17904
  getCmekConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCmekConfig>): void;
18514
17905
  /**
18515
- * Gets configurable pricing usage stats.
17906
+ * Obtains the time series data of organic or dedicated crawl rate for monitoring. When dedicated crawl rate is not set, it will return vertex AI's organic crawl rate time series. Organic crawl means Google automatically crawl the internet at its own convenience. When dedicated crawl rate is set, it will return vertex AI's dedicated crawl rate time series.
18516
17907
  * @example
18517
17908
  * ```js
18518
17909
  * // Before running the sample:
@@ -18544,31 +17935,26 @@ export declare namespace discoveryengine_v1alpha {
18544
17935
  * google.options({auth: authClient});
18545
17936
  *
18546
17937
  * // Do the magic
18547
- * const res =
18548
- * await discoveryengine.projects.locations.getConfigurablePricingUsageStats({
18549
- * // Optional. The metric types to return usage for.
18550
- * metricTypes: 'placeholder-value',
18551
- * // Required. The name of the ConfigurablePricingUsageStats to retrieve. Format: projects/{project\}/locations/{location\}/configurablePricingUsageStats
18552
- * name: 'projects/my-project/locations/my-location/configurablePricingUsageStats',
18553
- * // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
18554
- * 'timeRange.endDate.day': 'placeholder-value',
18555
- * // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
18556
- * 'timeRange.endDate.month': 'placeholder-value',
18557
- * // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
18558
- * 'timeRange.endDate.year': 'placeholder-value',
18559
- * // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
18560
- * 'timeRange.startDate.day': 'placeholder-value',
18561
- * // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
18562
- * 'timeRange.startDate.month': 'placeholder-value',
18563
- * // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
18564
- * 'timeRange.startDate.year': 'placeholder-value',
18565
- * });
17938
+ * const res = await discoveryengine.projects.locations.obtainCrawlRate({
17939
+ * // Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
17940
+ * location: 'projects/my-project/locations/my-location',
17941
+ *
17942
+ * // Request body metadata
17943
+ * requestBody: {
17944
+ * // request body parameters
17945
+ * // {
17946
+ * // "crawlRateScope": "my_crawlRateScope"
17947
+ * // }
17948
+ * },
17949
+ * });
18566
17950
  * console.log(res.data);
18567
17951
  *
18568
17952
  * // Example response
18569
17953
  * // {
18570
- * // "metricUsages": [],
18571
- * // "name": "my_name"
17954
+ * // "dedicatedCrawlRateTimeSeries": {},
17955
+ * // "error": {},
17956
+ * // "organicCrawlRateTimeSeries": {},
17957
+ * // "state": "my_state"
18572
17958
  * // }
18573
17959
  * }
18574
17960
  *
@@ -18584,14 +17970,14 @@ export declare namespace discoveryengine_v1alpha {
18584
17970
  * @param callback - Optional callback that handles the response.
18585
17971
  * @returns A promise if used with async/await, or void if used with a callback.
18586
17972
  */
18587
- getConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Getconfigurablepricingusagestats, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
18588
- getConfigurablePricingUsageStats(params?: Params$Resource$Projects$Locations$Getconfigurablepricingusagestats, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStats>>;
18589
- getConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Getconfigurablepricingusagestats, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
18590
- getConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Getconfigurablepricingusagestats, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStats>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStats>): void;
18591
- getConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Getconfigurablepricingusagestats, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStats>): void;
18592
- getConfigurablePricingUsageStats(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConfigurablePricingUsageStats>): void;
17973
+ obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
17974
+ obtainCrawlRate(params?: Params$Resource$Projects$Locations$Obtaincrawlrate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>>;
17975
+ obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
17976
+ obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
17977
+ obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
17978
+ obtainCrawlRate(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
18593
17979
  /**
18594
- * Obtains the time series data of organic or dedicated crawl rate for monitoring. When dedicated crawl rate is not set, it will return vertex AI's organic crawl rate time series. Organic crawl means Google automatically crawl the internet at its own convenience. When dedicated crawl rate is set, it will return vertex AI's dedicated crawl rate time series.
17980
+ * Queries configurable pricing usage stats for a project.
18595
17981
  * @example
18596
17982
  * ```js
18597
17983
  * // Before running the sample:
@@ -18623,26 +18009,34 @@ export declare namespace discoveryengine_v1alpha {
18623
18009
  * google.options({auth: authClient});
18624
18010
  *
18625
18011
  * // Do the magic
18626
- * const res = await discoveryengine.projects.locations.obtainCrawlRate({
18627
- * // Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
18628
- * location: 'projects/my-project/locations/my-location',
18629
- *
18630
- * // Request body metadata
18631
- * requestBody: {
18632
- * // request body parameters
18633
- * // {
18634
- * // "crawlRateScope": "my_crawlRateScope"
18635
- * // }
18636
- * },
18637
- * });
18012
+ * const res =
18013
+ * await discoveryengine.projects.locations.queryConfigurablePricingUsageStats(
18014
+ * {
18015
+ * // Required. The location to query usage stats for.
18016
+ * location: 'placeholder-value',
18017
+ * // Optional. The metric types to return usage for.
18018
+ * metricTypes: 'placeholder-value',
18019
+ * // Required. The project to query usage stats for. Format: projects/{project\}
18020
+ * project: 'projects/my-project',
18021
+ * // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
18022
+ * 'timeRange.endDate.day': 'placeholder-value',
18023
+ * // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
18024
+ * 'timeRange.endDate.month': 'placeholder-value',
18025
+ * // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
18026
+ * 'timeRange.endDate.year': 'placeholder-value',
18027
+ * // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
18028
+ * 'timeRange.startDate.day': 'placeholder-value',
18029
+ * // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
18030
+ * 'timeRange.startDate.month': 'placeholder-value',
18031
+ * // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
18032
+ * 'timeRange.startDate.year': 'placeholder-value',
18033
+ * },
18034
+ * );
18638
18035
  * console.log(res.data);
18639
18036
  *
18640
18037
  * // Example response
18641
18038
  * // {
18642
- * // "dedicatedCrawlRateTimeSeries": {},
18643
- * // "error": {},
18644
- * // "organicCrawlRateTimeSeries": {},
18645
- * // "state": "my_state"
18039
+ * // "metricUsages": []
18646
18040
  * // }
18647
18041
  * }
18648
18042
  *
@@ -18658,12 +18052,12 @@ export declare namespace discoveryengine_v1alpha {
18658
18052
  * @param callback - Optional callback that handles the response.
18659
18053
  * @returns A promise if used with async/await, or void if used with a callback.
18660
18054
  */
18661
- obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
18662
- obtainCrawlRate(params?: Params$Resource$Projects$Locations$Obtaincrawlrate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>>;
18663
- obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
18664
- obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
18665
- obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
18666
- obtainCrawlRate(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
18055
+ queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
18056
+ queryConfigurablePricingUsageStats(params?: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>>;
18057
+ queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
18058
+ queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>): void;
18059
+ queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>): void;
18060
+ queryConfigurablePricingUsageStats(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>): void;
18667
18061
  /**
18668
18062
  * Removes the dedicated crawl rate for a craw_rate_scope. If the dedicated crawl rate was set, this will disable vertex AI's crawl bot from using the dedicated crawl rate for crawling. If the dedicated crawl rate was not set, this is a no-op.
18669
18063
  * @example
@@ -19195,15 +18589,29 @@ export declare namespace discoveryengine_v1alpha {
19195
18589
  */
19196
18590
  name?: string;
19197
18591
  }
19198
- export interface Params$Resource$Projects$Locations$Getconfigurablepricingusagestats extends StandardParameters {
18592
+ export interface Params$Resource$Projects$Locations$Obtaincrawlrate extends StandardParameters {
18593
+ /**
18594
+ * Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
18595
+ */
18596
+ location?: string;
18597
+ /**
18598
+ * Request body metadata
18599
+ */
18600
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateRequest;
18601
+ }
18602
+ export interface Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats extends StandardParameters {
18603
+ /**
18604
+ * Required. The location to query usage stats for.
18605
+ */
18606
+ location?: string;
19199
18607
  /**
19200
18608
  * Optional. The metric types to return usage for.
19201
18609
  */
19202
18610
  metricTypes?: string[];
19203
18611
  /**
19204
- * Required. The name of the ConfigurablePricingUsageStats to retrieve. Format: projects/{project\}/locations/{location\}/configurablePricingUsageStats
18612
+ * Required. The project to query usage stats for. Format: projects/{project\}
19205
18613
  */
19206
- name?: string;
18614
+ project?: string;
19207
18615
  /**
19208
18616
  * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
19209
18617
  */
@@ -19229,16 +18637,6 @@ export declare namespace discoveryengine_v1alpha {
19229
18637
  */
19230
18638
  'timeRange.startDate.year'?: number;
19231
18639
  }
19232
- export interface Params$Resource$Projects$Locations$Obtaincrawlrate extends StandardParameters {
19233
- /**
19234
- * Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
19235
- */
19236
- location?: string;
19237
- /**
19238
- * Request body metadata
19239
- */
19240
- requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateRequest;
19241
- }
19242
18640
  export interface Params$Resource$Projects$Locations$Removededicatedcrawlrate extends StandardParameters {
19243
18641
  /**
19244
18642
  * Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
@@ -21193,7 +20591,7 @@ export declare namespace discoveryengine_v1alpha {
21193
20591
  * pageSize: 'placeholder-value',
21194
20592
  * // The standard list page token.
21195
20593
  * pageToken: 'placeholder-value',
21196
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
20594
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
21197
20595
  * returnPartialSuccess: 'placeholder-value',
21198
20596
  * },
21199
20597
  * );
@@ -21250,7 +20648,7 @@ export declare namespace discoveryengine_v1alpha {
21250
20648
  */
21251
20649
  pageToken?: string;
21252
20650
  /**
21253
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
20651
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
21254
20652
  */
21255
20653
  returnPartialSuccess?: boolean;
21256
20654
  }
@@ -21373,6 +20771,7 @@ export declare namespace discoveryengine_v1alpha {
21373
20771
  * // Scopes can be specified either as an array or as a single, space-delimited string.
21374
20772
  * scopes: [
21375
20773
  * 'https://www.googleapis.com/auth/cloud-platform',
20774
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
21376
20775
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21377
20776
  * ],
21378
20777
  * });
@@ -21483,6 +20882,7 @@ export declare namespace discoveryengine_v1alpha {
21483
20882
  * // Scopes can be specified either as an array or as a single, space-delimited string.
21484
20883
  * scopes: [
21485
20884
  * 'https://www.googleapis.com/auth/cloud-platform',
20885
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
21486
20886
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21487
20887
  * ],
21488
20888
  * });
@@ -21551,6 +20951,7 @@ export declare namespace discoveryengine_v1alpha {
21551
20951
  * // Scopes can be specified either as an array or as a single, space-delimited string.
21552
20952
  * scopes: [
21553
20953
  * 'https://www.googleapis.com/auth/cloud-platform',
20954
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
21554
20955
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21555
20956
  * ],
21556
20957
  * });
@@ -23606,7 +23007,7 @@ export declare namespace discoveryengine_v1alpha {
23606
23007
  * pageSize: 'placeholder-value',
23607
23008
  * // The standard list page token.
23608
23009
  * pageToken: 'placeholder-value',
23609
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
23010
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
23610
23011
  * returnPartialSuccess: 'placeholder-value',
23611
23012
  * },
23612
23013
  * );
@@ -23673,7 +23074,7 @@ export declare namespace discoveryengine_v1alpha {
23673
23074
  */
23674
23075
  pageToken?: string;
23675
23076
  /**
23676
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
23077
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
23677
23078
  */
23678
23079
  returnPartialSuccess?: boolean;
23679
23080
  }
@@ -25171,7 +24572,7 @@ export declare namespace discoveryengine_v1alpha {
25171
24572
  * pageSize: 'placeholder-value',
25172
24573
  * // The standard list page token.
25173
24574
  * pageToken: 'placeholder-value',
25174
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
24575
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
25175
24576
  * returnPartialSuccess: 'placeholder-value',
25176
24577
  * },
25177
24578
  * );
@@ -25228,7 +24629,7 @@ export declare namespace discoveryengine_v1alpha {
25228
24629
  */
25229
24630
  pageToken?: string;
25230
24631
  /**
25231
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
24632
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
25232
24633
  */
25233
24634
  returnPartialSuccess?: boolean;
25234
24635
  }
@@ -25349,7 +24750,7 @@ export declare namespace discoveryengine_v1alpha {
25349
24750
  * pageSize: 'placeholder-value',
25350
24751
  * // The standard list page token.
25351
24752
  * pageToken: 'placeholder-value',
25352
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
24753
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
25353
24754
  * returnPartialSuccess: 'placeholder-value',
25354
24755
  * },
25355
24756
  * );
@@ -25406,7 +24807,7 @@ export declare namespace discoveryengine_v1alpha {
25406
24807
  */
25407
24808
  pageToken?: string;
25408
24809
  /**
25409
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
24810
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
25410
24811
  */
25411
24812
  returnPartialSuccess?: boolean;
25412
24813
  }
@@ -25964,7 +25365,7 @@ export declare namespace discoveryengine_v1alpha {
25964
25365
  * pageSize: 'placeholder-value',
25965
25366
  * // The standard list page token.
25966
25367
  * pageToken: 'placeholder-value',
25967
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
25368
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
25968
25369
  * returnPartialSuccess: 'placeholder-value',
25969
25370
  * },
25970
25371
  * );
@@ -26021,7 +25422,7 @@ export declare namespace discoveryengine_v1alpha {
26021
25422
  */
26022
25423
  pageToken?: string;
26023
25424
  /**
26024
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
25425
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
26025
25426
  */
26026
25427
  returnPartialSuccess?: boolean;
26027
25428
  }
@@ -26052,6 +25453,7 @@ export declare namespace discoveryengine_v1alpha {
26052
25453
  * // Scopes can be specified either as an array or as a single, space-delimited string.
26053
25454
  * scopes: [
26054
25455
  * 'https://www.googleapis.com/auth/cloud-platform',
25456
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
26055
25457
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26056
25458
  * ],
26057
25459
  * });
@@ -26531,6 +25933,7 @@ export declare namespace discoveryengine_v1alpha {
26531
25933
  * // "branch": "my_branch",
26532
25934
  * // "canonicalFilter": "my_canonicalFilter",
26533
25935
  * // "contentSearchSpec": {},
25936
+ * // "crowdingSpecs": [],
26534
25937
  * // "customFineTuningSpec": {},
26535
25938
  * // "dataStoreSpecs": [],
26536
25939
  * // "displaySpec": {},
@@ -26543,6 +25946,7 @@ export declare namespace discoveryengine_v1alpha {
26543
25946
  * // "offset": 0,
26544
25947
  * // "oneBoxPageSize": 0,
26545
25948
  * // "orderBy": "my_orderBy",
25949
+ * // "pageCategories": [],
26546
25950
  * // "pageSize": 0,
26547
25951
  * // "pageToken": "my_pageToken",
26548
25952
  * // "params": {},
@@ -26586,6 +25990,7 @@ export declare namespace discoveryengine_v1alpha {
26586
25990
  * // "redirectUri": "my_redirectUri",
26587
25991
  * // "results": [],
26588
25992
  * // "searchLinkPromotions": [],
25993
+ * // "semanticState": "my_semanticState",
26589
25994
  * // "sessionInfo": {},
26590
25995
  * // "suggestedQuery": "my_suggestedQuery",
26591
25996
  * // "summary": {},
@@ -26660,6 +26065,7 @@ export declare namespace discoveryengine_v1alpha {
26660
26065
  * // "branch": "my_branch",
26661
26066
  * // "canonicalFilter": "my_canonicalFilter",
26662
26067
  * // "contentSearchSpec": {},
26068
+ * // "crowdingSpecs": [],
26663
26069
  * // "customFineTuningSpec": {},
26664
26070
  * // "dataStoreSpecs": [],
26665
26071
  * // "displaySpec": {},
@@ -26672,6 +26078,7 @@ export declare namespace discoveryengine_v1alpha {
26672
26078
  * // "offset": 0,
26673
26079
  * // "oneBoxPageSize": 0,
26674
26080
  * // "orderBy": "my_orderBy",
26081
+ * // "pageCategories": [],
26675
26082
  * // "pageSize": 0,
26676
26083
  * // "pageToken": "my_pageToken",
26677
26084
  * // "params": {},
@@ -26715,6 +26122,7 @@ export declare namespace discoveryengine_v1alpha {
26715
26122
  * // "redirectUri": "my_redirectUri",
26716
26123
  * // "results": [],
26717
26124
  * // "searchLinkPromotions": [],
26125
+ * // "semanticState": "my_semanticState",
26718
26126
  * // "sessionInfo": {},
26719
26127
  * // "suggestedQuery": "my_suggestedQuery",
26720
26128
  * // "summary": {},
@@ -26764,6 +26172,7 @@ export declare namespace discoveryengine_v1alpha {
26764
26172
  * // Scopes can be specified either as an array or as a single, space-delimited string.
26765
26173
  * scopes: [
26766
26174
  * 'https://www.googleapis.com/auth/cloud-platform',
26175
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
26767
26176
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26768
26177
  * ],
26769
26178
  * });
@@ -28200,7 +27609,7 @@ export declare namespace discoveryengine_v1alpha {
28200
27609
  * pageSize: 'placeholder-value',
28201
27610
  * // The standard list page token.
28202
27611
  * pageToken: 'placeholder-value',
28203
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
27612
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
28204
27613
  * returnPartialSuccess: 'placeholder-value',
28205
27614
  * },
28206
27615
  * );
@@ -28257,7 +27666,7 @@ export declare namespace discoveryengine_v1alpha {
28257
27666
  */
28258
27667
  pageToken?: string;
28259
27668
  /**
28260
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
27669
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
28261
27670
  */
28262
27671
  returnPartialSuccess?: boolean;
28263
27672
  }
@@ -29161,7 +28570,7 @@ export declare namespace discoveryengine_v1alpha {
29161
28570
  * pageSize: 'placeholder-value',
29162
28571
  * // The standard list page token.
29163
28572
  * pageToken: 'placeholder-value',
29164
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
28573
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
29165
28574
  * returnPartialSuccess: 'placeholder-value',
29166
28575
  * },
29167
28576
  * );
@@ -29218,7 +28627,7 @@ export declare namespace discoveryengine_v1alpha {
29218
28627
  */
29219
28628
  pageToken?: string;
29220
28629
  /**
29221
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
28630
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
29222
28631
  */
29223
28632
  returnPartialSuccess?: boolean;
29224
28633
  }
@@ -31065,7 +30474,7 @@ export declare namespace discoveryengine_v1alpha {
31065
30474
  cannedQueries: Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries;
31066
30475
  constructor(context: APIRequestContext);
31067
30476
  /**
31068
- * Gets an Assistant.
30477
+ * Creates an Assistant.
31069
30478
  * @example
31070
30479
  * ```js
31071
30480
  * // Before running the sample:
@@ -31099,10 +30508,28 @@ export declare namespace discoveryengine_v1alpha {
31099
30508
  *
31100
30509
  * // Do the magic
31101
30510
  * const res =
31102
- * await discoveryengine.projects.locations.collections.engines.assistants.get(
30511
+ * await discoveryengine.projects.locations.collections.engines.assistants.create(
31103
30512
  * {
31104
- * // Required. Resource name of Assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}`
31105
- * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant',
30513
+ * // Required. The ID to use for the Assistant, which will become the final component of the Assistant's resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
30514
+ * assistantId: 'placeholder-value',
30515
+ * // Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
30516
+ * parent:
30517
+ * 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
30518
+ *
30519
+ * // Request body metadata
30520
+ * requestBody: {
30521
+ * // request body parameters
30522
+ * // {
30523
+ * // "customerPolicy": {},
30524
+ * // "description": "my_description",
30525
+ * // "disableLocationContext": false,
30526
+ * // "displayName": "my_displayName",
30527
+ * // "enabledTools": {},
30528
+ * // "generationConfig": {},
30529
+ * // "name": "my_name",
30530
+ * // "webGroundingType": "my_webGroundingType"
30531
+ * // }
30532
+ * },
31106
30533
  * },
31107
30534
  * );
31108
30535
  * console.log(res.data);
@@ -31110,6 +30537,9 @@ export declare namespace discoveryengine_v1alpha {
31110
30537
  * // Example response
31111
30538
  * // {
31112
30539
  * // "customerPolicy": {},
30540
+ * // "description": "my_description",
30541
+ * // "disableLocationContext": false,
30542
+ * // "displayName": "my_displayName",
31113
30543
  * // "enabledTools": {},
31114
30544
  * // "generationConfig": {},
31115
30545
  * // "name": "my_name",
@@ -31129,14 +30559,226 @@ export declare namespace discoveryengine_v1alpha {
31129
30559
  * @param callback - Optional callback that handles the response.
31130
30560
  * @returns A promise if used with async/await, or void if used with a callback.
31131
30561
  */
31132
- get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
31133
- get(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>>;
31134
- get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
31135
- get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
31136
- get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
31137
- get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
30562
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
30563
+ create(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>>;
30564
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
30565
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
30566
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
30567
+ create(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
31138
30568
  /**
31139
- * Lists the data for displaying the Agents under an Assistant which are available to the caller.
30569
+ * Deletes an Assistant.
30570
+ * @example
30571
+ * ```js
30572
+ * // Before running the sample:
30573
+ * // - Enable the API at:
30574
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
30575
+ * // - Login into gcloud by running:
30576
+ * // ```sh
30577
+ * // $ gcloud auth application-default login
30578
+ * // ```
30579
+ * // - Install the npm module by running:
30580
+ * // ```sh
30581
+ * // $ npm install googleapis
30582
+ * // ```
30583
+ *
30584
+ * const {google} = require('googleapis');
30585
+ * const discoveryengine = google.discoveryengine('v1alpha');
30586
+ *
30587
+ * async function main() {
30588
+ * const auth = new google.auth.GoogleAuth({
30589
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
30590
+ * scopes: [
30591
+ * 'https://www.googleapis.com/auth/cloud-platform',
30592
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
30593
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
30594
+ * ],
30595
+ * });
30596
+ *
30597
+ * // Acquire an auth client, and bind it to all future calls
30598
+ * const authClient = await auth.getClient();
30599
+ * google.options({auth: authClient});
30600
+ *
30601
+ * // Do the magic
30602
+ * const res =
30603
+ * await discoveryengine.projects.locations.collections.engines.assistants.delete(
30604
+ * {
30605
+ * // Required. Resource name of Assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}` If the caller does not have permission to delete the Assistant, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Assistant to delete does not exist, a NOT_FOUND error is returned.
30606
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant',
30607
+ * },
30608
+ * );
30609
+ * console.log(res.data);
30610
+ *
30611
+ * // Example response
30612
+ * // {}
30613
+ * }
30614
+ *
30615
+ * main().catch(e => {
30616
+ * console.error(e);
30617
+ * throw e;
30618
+ * });
30619
+ *
30620
+ * ```
30621
+ *
30622
+ * @param params - Parameters for request
30623
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
30624
+ * @param callback - Optional callback that handles the response.
30625
+ * @returns A promise if used with async/await, or void if used with a callback.
30626
+ */
30627
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
30628
+ delete(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
30629
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
30630
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
30631
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
30632
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
30633
+ /**
30634
+ * Gets an Assistant.
30635
+ * @example
30636
+ * ```js
30637
+ * // Before running the sample:
30638
+ * // - Enable the API at:
30639
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
30640
+ * // - Login into gcloud by running:
30641
+ * // ```sh
30642
+ * // $ gcloud auth application-default login
30643
+ * // ```
30644
+ * // - Install the npm module by running:
30645
+ * // ```sh
30646
+ * // $ npm install googleapis
30647
+ * // ```
30648
+ *
30649
+ * const {google} = require('googleapis');
30650
+ * const discoveryengine = google.discoveryengine('v1alpha');
30651
+ *
30652
+ * async function main() {
30653
+ * const auth = new google.auth.GoogleAuth({
30654
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
30655
+ * scopes: [
30656
+ * 'https://www.googleapis.com/auth/cloud-platform',
30657
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
30658
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
30659
+ * ],
30660
+ * });
30661
+ *
30662
+ * // Acquire an auth client, and bind it to all future calls
30663
+ * const authClient = await auth.getClient();
30664
+ * google.options({auth: authClient});
30665
+ *
30666
+ * // Do the magic
30667
+ * const res =
30668
+ * await discoveryengine.projects.locations.collections.engines.assistants.get(
30669
+ * {
30670
+ * // Required. Resource name of Assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}`
30671
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant',
30672
+ * },
30673
+ * );
30674
+ * console.log(res.data);
30675
+ *
30676
+ * // Example response
30677
+ * // {
30678
+ * // "customerPolicy": {},
30679
+ * // "description": "my_description",
30680
+ * // "disableLocationContext": false,
30681
+ * // "displayName": "my_displayName",
30682
+ * // "enabledTools": {},
30683
+ * // "generationConfig": {},
30684
+ * // "name": "my_name",
30685
+ * // "webGroundingType": "my_webGroundingType"
30686
+ * // }
30687
+ * }
30688
+ *
30689
+ * main().catch(e => {
30690
+ * console.error(e);
30691
+ * throw e;
30692
+ * });
30693
+ *
30694
+ * ```
30695
+ *
30696
+ * @param params - Parameters for request
30697
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
30698
+ * @param callback - Optional callback that handles the response.
30699
+ * @returns A promise if used with async/await, or void if used with a callback.
30700
+ */
30701
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
30702
+ get(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>>;
30703
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
30704
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
30705
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
30706
+ get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
30707
+ /**
30708
+ * Lists all Assistants under an Engine.
30709
+ * @example
30710
+ * ```js
30711
+ * // Before running the sample:
30712
+ * // - Enable the API at:
30713
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
30714
+ * // - Login into gcloud by running:
30715
+ * // ```sh
30716
+ * // $ gcloud auth application-default login
30717
+ * // ```
30718
+ * // - Install the npm module by running:
30719
+ * // ```sh
30720
+ * // $ npm install googleapis
30721
+ * // ```
30722
+ *
30723
+ * const {google} = require('googleapis');
30724
+ * const discoveryengine = google.discoveryengine('v1alpha');
30725
+ *
30726
+ * async function main() {
30727
+ * const auth = new google.auth.GoogleAuth({
30728
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
30729
+ * scopes: [
30730
+ * 'https://www.googleapis.com/auth/cloud-platform',
30731
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
30732
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
30733
+ * ],
30734
+ * });
30735
+ *
30736
+ * // Acquire an auth client, and bind it to all future calls
30737
+ * const authClient = await auth.getClient();
30738
+ * google.options({auth: authClient});
30739
+ *
30740
+ * // Do the magic
30741
+ * const res =
30742
+ * await discoveryengine.projects.locations.collections.engines.assistants.list(
30743
+ * {
30744
+ * // Maximum number of Assistants to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.
30745
+ * pageSize: 'placeholder-value',
30746
+ * // A page token ListAssistantsResponse.next_page_token, received from a previous AssistantService.ListAssistants call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAssistants must match the call that provided the page token.
30747
+ * pageToken: 'placeholder-value',
30748
+ * // Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
30749
+ * parent:
30750
+ * 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
30751
+ * },
30752
+ * );
30753
+ * console.log(res.data);
30754
+ *
30755
+ * // Example response
30756
+ * // {
30757
+ * // "assistants": [],
30758
+ * // "nextPageToken": "my_nextPageToken"
30759
+ * // }
30760
+ * }
30761
+ *
30762
+ * main().catch(e => {
30763
+ * console.error(e);
30764
+ * throw e;
30765
+ * });
30766
+ *
30767
+ * ```
30768
+ *
30769
+ * @param params - Parameters for request
30770
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
30771
+ * @param callback - Optional callback that handles the response.
30772
+ * @returns A promise if used with async/await, or void if used with a callback.
30773
+ */
30774
+ list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
30775
+ list(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>>;
30776
+ list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
30777
+ list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>): void;
30778
+ list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>): void;
30779
+ list(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>): void;
30780
+ /**
30781
+ * Lists the data for displaying the Agents under an Assistant which are available to the caller.
31140
30782
  * @example
31141
30783
  * ```js
31142
30784
  * // Before running the sample:
@@ -31172,6 +30814,8 @@ export declare namespace discoveryengine_v1alpha {
31172
30814
  * const res =
31173
30815
  * await discoveryengine.projects.locations.collections.engines.assistants.listAvailableAgentViews(
31174
30816
  * {
30817
+ * // Optional. Indicates whether to consider if the caller is an admin. If set, and the caller is an admin, the response will consider admin-only permissions. Otherwise, a caller with admin permissions will get a response as an unprivileged user.
30818
+ * adminView: 'placeholder-value',
31175
30819
  * // Optional. The origin of the Agent.
31176
30820
  * agentOrigin: 'placeholder-value',
31177
30821
  * // Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the files being filtered. Filter expression is case-sensitive. Allowed fields are: * `display_name` * `state` Some examples of filters would be: * `display_name = 'agent_1'` * `display_name = 'agent_1' AND state = ENABLED` For a full description of the filter format, please see https://google.aip.dev/160.
@@ -31265,6 +30909,9 @@ export declare namespace discoveryengine_v1alpha {
31265
30909
  * // request body parameters
31266
30910
  * // {
31267
30911
  * // "customerPolicy": {},
30912
+ * // "description": "my_description",
30913
+ * // "disableLocationContext": false,
30914
+ * // "displayName": "my_displayName",
31268
30915
  * // "enabledTools": {},
31269
30916
  * // "generationConfig": {},
31270
30917
  * // "name": "my_name",
@@ -31278,6 +30925,9 @@ export declare namespace discoveryengine_v1alpha {
31278
30925
  * // Example response
31279
30926
  * // {
31280
30927
  * // "customerPolicy": {},
30928
+ * // "description": "my_description",
30929
+ * // "disableLocationContext": false,
30930
+ * // "displayName": "my_displayName",
31281
30931
  * // "enabledTools": {},
31282
30932
  * // "generationConfig": {},
31283
30933
  * // "name": "my_name",
@@ -31362,6 +31012,7 @@ export declare namespace discoveryengine_v1alpha {
31362
31012
  * // {
31363
31013
  * // "answer": {},
31364
31014
  * // "assistToken": "my_assistToken",
31015
+ * // "invocationTools": [],
31365
31016
  * // "sessionInfo": {}
31366
31017
  * // }
31367
31018
  * }
@@ -31385,13 +31036,51 @@ export declare namespace discoveryengine_v1alpha {
31385
31036
  streamAssist(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Streamassist, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistResponse>): void;
31386
31037
  streamAssist(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistResponse>): void;
31387
31038
  }
31039
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create extends StandardParameters {
31040
+ /**
31041
+ * Required. The ID to use for the Assistant, which will become the final component of the Assistant's resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
31042
+ */
31043
+ assistantId?: string;
31044
+ /**
31045
+ * Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
31046
+ */
31047
+ parent?: string;
31048
+ /**
31049
+ * Request body metadata
31050
+ */
31051
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAssistant;
31052
+ }
31053
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete extends StandardParameters {
31054
+ /**
31055
+ * Required. Resource name of Assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}` If the caller does not have permission to delete the Assistant, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Assistant to delete does not exist, a NOT_FOUND error is returned.
31056
+ */
31057
+ name?: string;
31058
+ }
31388
31059
  export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get extends StandardParameters {
31389
31060
  /**
31390
31061
  * Required. Resource name of Assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}`
31391
31062
  */
31392
31063
  name?: string;
31393
31064
  }
31065
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$List extends StandardParameters {
31066
+ /**
31067
+ * Maximum number of Assistants to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.
31068
+ */
31069
+ pageSize?: number;
31070
+ /**
31071
+ * A page token ListAssistantsResponse.next_page_token, received from a previous AssistantService.ListAssistants call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAssistants must match the call that provided the page token.
31072
+ */
31073
+ pageToken?: string;
31074
+ /**
31075
+ * Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
31076
+ */
31077
+ parent?: string;
31078
+ }
31394
31079
  export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Listavailableagentviews extends StandardParameters {
31080
+ /**
31081
+ * Optional. Indicates whether to consider if the caller is an admin. If set, and the caller is an admin, the response will consider admin-only permissions. Otherwise, a caller with admin permissions will get a response as an unprivileged user.
31082
+ */
31083
+ adminView?: boolean;
31395
31084
  /**
31396
31085
  * Optional. The origin of the Agent.
31397
31086
  */
@@ -31452,6 +31141,7 @@ export declare namespace discoveryengine_v1alpha {
31452
31141
  export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents {
31453
31142
  context: APIRequestContext;
31454
31143
  files: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files;
31144
+ operations: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations;
31455
31145
  constructor(context: APIRequestContext);
31456
31146
  /**
31457
31147
  * Creates an Agent.
@@ -31923,6 +31613,8 @@ export declare namespace discoveryengine_v1alpha {
31923
31613
  * const res =
31924
31614
  * await discoveryengine.projects.locations.collections.engines.assistants.agents.getAgentView(
31925
31615
  * {
31616
+ * // Optional. Indicates whether to consider if the caller is an admin. If set, and the caller is an admin, the response will consider admin-only permissions. Otherwise, a caller with admin permissions will get a response as an unprivileged user.
31617
+ * adminView: 'placeholder-value',
31926
31618
  * // Optional. The UI language currently shown to the user. Specifying this field request that the texts in the AgentView in the response should be translated to this language.
31927
31619
  * languageCode: 'placeholder-value',
31928
31620
  * // Optional. The maximum number of suggested prompts to return per agent.
@@ -32415,6 +32107,10 @@ export declare namespace discoveryengine_v1alpha {
32415
32107
  name?: string;
32416
32108
  }
32417
32109
  export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Getagentview extends StandardParameters {
32110
+ /**
32111
+ * Optional. Indicates whether to consider if the caller is an admin. If set, and the caller is an admin, the response will consider admin-only permissions. Otherwise, a caller with admin permissions will get a response as an unprivileged user.
32112
+ */
32113
+ adminView?: boolean;
32418
32114
  /**
32419
32115
  * Optional. The UI language currently shown to the user. Specifying this field request that the texts in the AgentView in the response should be translated to this language.
32420
32116
  */
@@ -32581,11 +32277,11 @@ export declare namespace discoveryengine_v1alpha {
32581
32277
  */
32582
32278
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaImportAgentFileRequest;
32583
32279
  }
32584
- export class Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries {
32280
+ export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations {
32585
32281
  context: APIRequestContext;
32586
32282
  constructor(context: APIRequestContext);
32587
32283
  /**
32588
- * Creates a CannedQuery.
32284
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
32589
32285
  * @example
32590
32286
  * ```js
32591
32287
  * // Before running the sample:
@@ -32608,7 +32304,6 @@ export declare namespace discoveryengine_v1alpha {
32608
32304
  * // Scopes can be specified either as an array or as a single, space-delimited string.
32609
32305
  * scopes: [
32610
32306
  * 'https://www.googleapis.com/auth/cloud-platform',
32611
- * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
32612
32307
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
32613
32308
  * ],
32614
32309
  * });
@@ -32619,40 +32314,21 @@ export declare namespace discoveryengine_v1alpha {
32619
32314
  *
32620
32315
  * // Do the magic
32621
32316
  * const res =
32622
- * await discoveryengine.projects.locations.collections.engines.assistants.cannedQueries.create(
32317
+ * await discoveryengine.projects.locations.collections.engines.assistants.agents.operations.get(
32623
32318
  * {
32624
- * // Required. The ID to use for the canned query, which will become the final component of the canned query's resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
32625
- * cannedQueryId: 'placeholder-value',
32626
- * // Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}`
32627
- * parent:
32628
- * 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant',
32629
- *
32630
- * // Request body metadata
32631
- * requestBody: {
32632
- * // request body parameters
32633
- * // {
32634
- * // "defaultTexts": {},
32635
- * // "displayName": "my_displayName",
32636
- * // "enabled": false,
32637
- * // "googleDefined": false,
32638
- * // "localizedTexts": {},
32639
- * // "name": "my_name",
32640
- * // "requiredCapabilities": []
32641
- * // }
32642
- * },
32319
+ * // The name of the operation resource.
32320
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant/agents/my-agent/operations/my-operation',
32643
32321
  * },
32644
32322
  * );
32645
32323
  * console.log(res.data);
32646
32324
  *
32647
32325
  * // Example response
32648
32326
  * // {
32649
- * // "defaultTexts": {},
32650
- * // "displayName": "my_displayName",
32651
- * // "enabled": false,
32652
- * // "googleDefined": false,
32653
- * // "localizedTexts": {},
32327
+ * // "done": false,
32328
+ * // "error": {},
32329
+ * // "metadata": {},
32654
32330
  * // "name": "my_name",
32655
- * // "requiredCapabilities": []
32331
+ * // "response": {}
32656
32332
  * // }
32657
32333
  * }
32658
32334
  *
@@ -32668,14 +32344,114 @@ export declare namespace discoveryengine_v1alpha {
32668
32344
  * @param callback - Optional callback that handles the response.
32669
32345
  * @returns A promise if used with async/await, or void if used with a callback.
32670
32346
  */
32671
- create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
32672
- create(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>>;
32673
- create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
32674
- create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>): void;
32675
- create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>): void;
32676
- create(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>): void;
32347
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
32348
+ get(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
32349
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
32350
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
32351
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
32352
+ get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
32353
+ }
32354
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get extends StandardParameters {
32677
32355
  /**
32678
- * Deletes a CannedQuery.
32356
+ * The name of the operation resource.
32357
+ */
32358
+ name?: string;
32359
+ }
32360
+ export class Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries {
32361
+ context: APIRequestContext;
32362
+ constructor(context: APIRequestContext);
32363
+ /**
32364
+ * Creates a CannedQuery.
32365
+ * @example
32366
+ * ```js
32367
+ * // Before running the sample:
32368
+ * // - Enable the API at:
32369
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
32370
+ * // - Login into gcloud by running:
32371
+ * // ```sh
32372
+ * // $ gcloud auth application-default login
32373
+ * // ```
32374
+ * // - Install the npm module by running:
32375
+ * // ```sh
32376
+ * // $ npm install googleapis
32377
+ * // ```
32378
+ *
32379
+ * const {google} = require('googleapis');
32380
+ * const discoveryengine = google.discoveryengine('v1alpha');
32381
+ *
32382
+ * async function main() {
32383
+ * const auth = new google.auth.GoogleAuth({
32384
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
32385
+ * scopes: [
32386
+ * 'https://www.googleapis.com/auth/cloud-platform',
32387
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
32388
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
32389
+ * ],
32390
+ * });
32391
+ *
32392
+ * // Acquire an auth client, and bind it to all future calls
32393
+ * const authClient = await auth.getClient();
32394
+ * google.options({auth: authClient});
32395
+ *
32396
+ * // Do the magic
32397
+ * const res =
32398
+ * await discoveryengine.projects.locations.collections.engines.assistants.cannedQueries.create(
32399
+ * {
32400
+ * // Required. The ID to use for the canned query, which will become the final component of the canned query's resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
32401
+ * cannedQueryId: 'placeholder-value',
32402
+ * // Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}`
32403
+ * parent:
32404
+ * 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant',
32405
+ *
32406
+ * // Request body metadata
32407
+ * requestBody: {
32408
+ * // request body parameters
32409
+ * // {
32410
+ * // "defaultTexts": {},
32411
+ * // "displayName": "my_displayName",
32412
+ * // "enabled": false,
32413
+ * // "googleDefined": false,
32414
+ * // "localizedTexts": {},
32415
+ * // "name": "my_name",
32416
+ * // "requiredCapabilities": []
32417
+ * // }
32418
+ * },
32419
+ * },
32420
+ * );
32421
+ * console.log(res.data);
32422
+ *
32423
+ * // Example response
32424
+ * // {
32425
+ * // "defaultTexts": {},
32426
+ * // "displayName": "my_displayName",
32427
+ * // "enabled": false,
32428
+ * // "googleDefined": false,
32429
+ * // "localizedTexts": {},
32430
+ * // "name": "my_name",
32431
+ * // "requiredCapabilities": []
32432
+ * // }
32433
+ * }
32434
+ *
32435
+ * main().catch(e => {
32436
+ * console.error(e);
32437
+ * throw e;
32438
+ * });
32439
+ *
32440
+ * ```
32441
+ *
32442
+ * @param params - Parameters for request
32443
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
32444
+ * @param callback - Optional callback that handles the response.
32445
+ * @returns A promise if used with async/await, or void if used with a callback.
32446
+ */
32447
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
32448
+ create(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>>;
32449
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
32450
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>): void;
32451
+ create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries$Create, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>): void;
32452
+ create(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery>): void;
32453
+ /**
32454
+ * Deletes a CannedQuery.
32679
32455
  * @example
32680
32456
  * ```js
32681
32457
  * // Before running the sample:
@@ -34346,7 +34122,7 @@ export declare namespace discoveryengine_v1alpha {
34346
34122
  * pageSize: 'placeholder-value',
34347
34123
  * // The standard list page token.
34348
34124
  * pageToken: 'placeholder-value',
34349
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
34125
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
34350
34126
  * returnPartialSuccess: 'placeholder-value',
34351
34127
  * },
34352
34128
  * );
@@ -34403,7 +34179,7 @@ export declare namespace discoveryengine_v1alpha {
34403
34179
  */
34404
34180
  pageToken?: string;
34405
34181
  /**
34406
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
34182
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
34407
34183
  */
34408
34184
  returnPartialSuccess?: boolean;
34409
34185
  }
@@ -34434,6 +34210,7 @@ export declare namespace discoveryengine_v1alpha {
34434
34210
  * // Scopes can be specified either as an array or as a single, space-delimited string.
34435
34211
  * scopes: [
34436
34212
  * 'https://www.googleapis.com/auth/cloud-platform',
34213
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
34437
34214
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
34438
34215
  * ],
34439
34216
  * });
@@ -34913,6 +34690,7 @@ export declare namespace discoveryengine_v1alpha {
34913
34690
  * // "branch": "my_branch",
34914
34691
  * // "canonicalFilter": "my_canonicalFilter",
34915
34692
  * // "contentSearchSpec": {},
34693
+ * // "crowdingSpecs": [],
34916
34694
  * // "customFineTuningSpec": {},
34917
34695
  * // "dataStoreSpecs": [],
34918
34696
  * // "displaySpec": {},
@@ -34925,6 +34703,7 @@ export declare namespace discoveryengine_v1alpha {
34925
34703
  * // "offset": 0,
34926
34704
  * // "oneBoxPageSize": 0,
34927
34705
  * // "orderBy": "my_orderBy",
34706
+ * // "pageCategories": [],
34928
34707
  * // "pageSize": 0,
34929
34708
  * // "pageToken": "my_pageToken",
34930
34709
  * // "params": {},
@@ -34968,6 +34747,7 @@ export declare namespace discoveryengine_v1alpha {
34968
34747
  * // "redirectUri": "my_redirectUri",
34969
34748
  * // "results": [],
34970
34749
  * // "searchLinkPromotions": [],
34750
+ * // "semanticState": "my_semanticState",
34971
34751
  * // "sessionInfo": {},
34972
34752
  * // "suggestedQuery": "my_suggestedQuery",
34973
34753
  * // "summary": {},
@@ -35042,6 +34822,7 @@ export declare namespace discoveryengine_v1alpha {
35042
34822
  * // "branch": "my_branch",
35043
34823
  * // "canonicalFilter": "my_canonicalFilter",
35044
34824
  * // "contentSearchSpec": {},
34825
+ * // "crowdingSpecs": [],
35045
34826
  * // "customFineTuningSpec": {},
35046
34827
  * // "dataStoreSpecs": [],
35047
34828
  * // "displaySpec": {},
@@ -35054,6 +34835,7 @@ export declare namespace discoveryengine_v1alpha {
35054
34835
  * // "offset": 0,
35055
34836
  * // "oneBoxPageSize": 0,
35056
34837
  * // "orderBy": "my_orderBy",
34838
+ * // "pageCategories": [],
35057
34839
  * // "pageSize": 0,
35058
34840
  * // "pageToken": "my_pageToken",
35059
34841
  * // "params": {},
@@ -35097,6 +34879,7 @@ export declare namespace discoveryengine_v1alpha {
35097
34879
  * // "redirectUri": "my_redirectUri",
35098
34880
  * // "results": [],
35099
34881
  * // "searchLinkPromotions": [],
34882
+ * // "semanticState": "my_semanticState",
35100
34883
  * // "sessionInfo": {},
35101
34884
  * // "suggestedQuery": "my_suggestedQuery",
35102
34885
  * // "summary": {},
@@ -35146,6 +34929,7 @@ export declare namespace discoveryengine_v1alpha {
35146
34929
  * // Scopes can be specified either as an array or as a single, space-delimited string.
35147
34930
  * scopes: [
35148
34931
  * 'https://www.googleapis.com/auth/cloud-platform',
34932
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
35149
34933
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
35150
34934
  * ],
35151
34935
  * });
@@ -35297,8 +35081,10 @@ export declare namespace discoveryengine_v1alpha {
35297
35081
  }
35298
35082
  export class Resource$Projects$Locations$Collections$Engines$Sessions {
35299
35083
  context: APIRequestContext;
35084
+ alphaEvolveExperiments: Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments;
35300
35085
  answers: Resource$Projects$Locations$Collections$Engines$Sessions$Answers;
35301
35086
  files: Resource$Projects$Locations$Collections$Engines$Sessions$Files;
35087
+ operations: Resource$Projects$Locations$Collections$Engines$Sessions$Operations;
35302
35088
  constructor(context: APIRequestContext);
35303
35089
  /**
35304
35090
  * Creates a Session. If the Session to create already exists, an ALREADY_EXISTS error is returned.
@@ -35763,6 +35549,91 @@ export declare namespace discoveryengine_v1alpha {
35763
35549
  */
35764
35550
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaSession;
35765
35551
  }
35552
+ export class Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments {
35553
+ context: APIRequestContext;
35554
+ operations: Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations;
35555
+ constructor(context: APIRequestContext);
35556
+ }
35557
+ export class Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations {
35558
+ context: APIRequestContext;
35559
+ constructor(context: APIRequestContext);
35560
+ /**
35561
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
35562
+ * @example
35563
+ * ```js
35564
+ * // Before running the sample:
35565
+ * // - Enable the API at:
35566
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
35567
+ * // - Login into gcloud by running:
35568
+ * // ```sh
35569
+ * // $ gcloud auth application-default login
35570
+ * // ```
35571
+ * // - Install the npm module by running:
35572
+ * // ```sh
35573
+ * // $ npm install googleapis
35574
+ * // ```
35575
+ *
35576
+ * const {google} = require('googleapis');
35577
+ * const discoveryengine = google.discoveryengine('v1alpha');
35578
+ *
35579
+ * async function main() {
35580
+ * const auth = new google.auth.GoogleAuth({
35581
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
35582
+ * scopes: [
35583
+ * 'https://www.googleapis.com/auth/cloud-platform',
35584
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
35585
+ * ],
35586
+ * });
35587
+ *
35588
+ * // Acquire an auth client, and bind it to all future calls
35589
+ * const authClient = await auth.getClient();
35590
+ * google.options({auth: authClient});
35591
+ *
35592
+ * // Do the magic
35593
+ * const res =
35594
+ * await discoveryengine.projects.locations.collections.engines.sessions.alphaEvolveExperiments.operations.get(
35595
+ * {
35596
+ * // The name of the operation resource.
35597
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session/alphaEvolveExperiments/my-alphaEvolveExperiment/operations/my-operation',
35598
+ * },
35599
+ * );
35600
+ * console.log(res.data);
35601
+ *
35602
+ * // Example response
35603
+ * // {
35604
+ * // "done": false,
35605
+ * // "error": {},
35606
+ * // "metadata": {},
35607
+ * // "name": "my_name",
35608
+ * // "response": {}
35609
+ * // }
35610
+ * }
35611
+ *
35612
+ * main().catch(e => {
35613
+ * console.error(e);
35614
+ * throw e;
35615
+ * });
35616
+ *
35617
+ * ```
35618
+ *
35619
+ * @param params - Parameters for request
35620
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
35621
+ * @param callback - Optional callback that handles the response.
35622
+ * @returns A promise if used with async/await, or void if used with a callback.
35623
+ */
35624
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
35625
+ get(params?: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
35626
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
35627
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
35628
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
35629
+ get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
35630
+ }
35631
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get extends StandardParameters {
35632
+ /**
35633
+ * The name of the operation resource.
35634
+ */
35635
+ name?: string;
35636
+ }
35766
35637
  export class Resource$Projects$Locations$Collections$Engines$Sessions$Answers {
35767
35638
  context: APIRequestContext;
35768
35639
  constructor(context: APIRequestContext);
@@ -35956,6 +35827,86 @@ export declare namespace discoveryengine_v1alpha {
35956
35827
  */
35957
35828
  parent?: string;
35958
35829
  }
35830
+ export class Resource$Projects$Locations$Collections$Engines$Sessions$Operations {
35831
+ context: APIRequestContext;
35832
+ constructor(context: APIRequestContext);
35833
+ /**
35834
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
35835
+ * @example
35836
+ * ```js
35837
+ * // Before running the sample:
35838
+ * // - Enable the API at:
35839
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
35840
+ * // - Login into gcloud by running:
35841
+ * // ```sh
35842
+ * // $ gcloud auth application-default login
35843
+ * // ```
35844
+ * // - Install the npm module by running:
35845
+ * // ```sh
35846
+ * // $ npm install googleapis
35847
+ * // ```
35848
+ *
35849
+ * const {google} = require('googleapis');
35850
+ * const discoveryengine = google.discoveryengine('v1alpha');
35851
+ *
35852
+ * async function main() {
35853
+ * const auth = new google.auth.GoogleAuth({
35854
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
35855
+ * scopes: [
35856
+ * 'https://www.googleapis.com/auth/cloud-platform',
35857
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
35858
+ * ],
35859
+ * });
35860
+ *
35861
+ * // Acquire an auth client, and bind it to all future calls
35862
+ * const authClient = await auth.getClient();
35863
+ * google.options({auth: authClient});
35864
+ *
35865
+ * // Do the magic
35866
+ * const res =
35867
+ * await discoveryengine.projects.locations.collections.engines.sessions.operations.get(
35868
+ * {
35869
+ * // The name of the operation resource.
35870
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session/operations/my-operation',
35871
+ * },
35872
+ * );
35873
+ * console.log(res.data);
35874
+ *
35875
+ * // Example response
35876
+ * // {
35877
+ * // "done": false,
35878
+ * // "error": {},
35879
+ * // "metadata": {},
35880
+ * // "name": "my_name",
35881
+ * // "response": {}
35882
+ * // }
35883
+ * }
35884
+ *
35885
+ * main().catch(e => {
35886
+ * console.error(e);
35887
+ * throw e;
35888
+ * });
35889
+ *
35890
+ * ```
35891
+ *
35892
+ * @param params - Parameters for request
35893
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
35894
+ * @param callback - Optional callback that handles the response.
35895
+ * @returns A promise if used with async/await, or void if used with a callback.
35896
+ */
35897
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
35898
+ get(params?: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
35899
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
35900
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
35901
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
35902
+ get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
35903
+ }
35904
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get extends StandardParameters {
35905
+ /**
35906
+ * The name of the operation resource.
35907
+ */
35908
+ name?: string;
35909
+ }
35959
35910
  export class Resource$Projects$Locations$Collections$Engines$Widgetconfigs {
35960
35911
  context: APIRequestContext;
35961
35912
  constructor(context: APIRequestContext);
@@ -36356,7 +36307,7 @@ export declare namespace discoveryengine_v1alpha {
36356
36307
  * pageSize: 'placeholder-value',
36357
36308
  * // The standard list page token.
36358
36309
  * pageToken: 'placeholder-value',
36359
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
36310
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
36360
36311
  * returnPartialSuccess: 'placeholder-value',
36361
36312
  * });
36362
36313
  * console.log(res.data);
@@ -36412,7 +36363,7 @@ export declare namespace discoveryengine_v1alpha {
36412
36363
  */
36413
36364
  pageToken?: string;
36414
36365
  /**
36415
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
36366
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
36416
36367
  */
36417
36368
  returnPartialSuccess?: boolean;
36418
36369
  }
@@ -36467,189 +36418,191 @@ export declare namespace discoveryengine_v1alpha {
36467
36418
  * google.options({auth: authClient});
36468
36419
  *
36469
36420
  * // Do the magic
36470
- * const res = await discoveryengine.projects.locations.dataStores.completeQuery(
36471
- * {
36472
- * // Required. The parent data store resource name for which the completion is performed, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store`.
36473
- * dataStore:
36474
- * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
36475
- * // Indicates if tail suggestions should be returned if there are no suggestions that match the full query. Even if set to true, if there are suggestions that match the full query, those are returned and no tail suggestions are returned.
36476
- * includeTailSuggestions: 'placeholder-value',
36477
- * // Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters.
36478
- * query: 'placeholder-value',
36479
- * // Specifies the autocomplete data model. This overrides any model specified in the Configuration \> Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.
36480
- * queryModel: 'placeholder-value',
36481
- * // Optional. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
36482
- * userPseudoId: 'placeholder-value',
36483
- * },
36484
- * );
36485
- * console.log(res.data);
36486
- *
36487
- * // Example response
36488
- * // {
36489
- * // "querySuggestions": [],
36490
- * // "tailMatchTriggered": false
36491
- * // }
36492
- * }
36493
- *
36494
- * main().catch(e => {
36495
- * console.error(e);
36496
- * throw e;
36497
- * });
36498
- *
36499
- * ```
36500
- *
36501
- * @param params - Parameters for request
36502
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
36503
- * @param callback - Optional callback that handles the response.
36504
- * @returns A promise if used with async/await, or void if used with a callback.
36505
- */
36506
- completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
36507
- completeQuery(params?: Params$Resource$Projects$Locations$Datastores$Completequery, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>>;
36508
- completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
36509
- completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>): void;
36510
- completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>): void;
36511
- completeQuery(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>): void;
36512
- /**
36513
- * Creates a DataStore. DataStore is for storing Documents. To serve these documents for Search, or Recommendation use case, an Engine needs to be created separately.
36514
- * @example
36515
- * ```js
36516
- * // Before running the sample:
36517
- * // - Enable the API at:
36518
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
36519
- * // - Login into gcloud by running:
36520
- * // ```sh
36521
- * // $ gcloud auth application-default login
36522
- * // ```
36523
- * // - Install the npm module by running:
36524
- * // ```sh
36525
- * // $ npm install googleapis
36526
- * // ```
36527
- *
36528
- * const {google} = require('googleapis');
36529
- * const discoveryengine = google.discoveryengine('v1alpha');
36530
- *
36531
- * async function main() {
36532
- * const auth = new google.auth.GoogleAuth({
36533
- * // Scopes can be specified either as an array or as a single, space-delimited string.
36534
- * scopes: [
36535
- * 'https://www.googleapis.com/auth/cloud-platform',
36536
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
36537
- * ],
36538
- * });
36539
- *
36540
- * // Acquire an auth client, and bind it to all future calls
36541
- * const authClient = await auth.getClient();
36542
- * google.options({auth: authClient});
36543
- *
36544
- * // Do the magic
36545
- * const res = await discoveryengine.projects.locations.dataStores.create({
36546
- * // Resource name of the CmekConfig to use for protecting this DataStore.
36547
- * cmekConfigName: 'placeholder-value',
36548
- * // A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will be ignored.
36549
- * createAdvancedSiteSearch: 'placeholder-value',
36550
- * // Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
36551
- * dataStoreId: 'placeholder-value',
36552
- * // DataStore without CMEK protections. If a default CmekConfig is set for the project, setting this field will override the default CmekConfig as well.
36553
- * disableCmek: 'placeholder-value',
36554
- * // Required. The parent resource name, such as `projects/{project\}/locations/{location\}/collections/{collection\}`.
36555
- * parent: 'projects/my-project/locations/my-location',
36556
- * // A boolean flag indicating whether to skip the default schema creation for the data store. Only enable this flag if you are certain that the default schema is incompatible with your use case. If set to true, you must manually create a schema for the data store before any documents can be ingested. This flag cannot be specified if `data_store.starting_schema` is specified.
36557
- * skipDefaultSchemaCreation: 'placeholder-value',
36558
- *
36559
- * // Request body metadata
36560
- * requestBody: {
36561
- * // request body parameters
36562
- * // {
36563
- * // "aclEnabled": false,
36564
- * // "advancedSiteSearchConfig": {},
36565
- * // "billingEstimation": {},
36566
- * // "cmekConfig": {},
36567
- * // "configurableBillingApproach": "my_configurableBillingApproach",
36568
- * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
36569
- * // "contentConfig": "my_contentConfig",
36570
- * // "createTime": "my_createTime",
36571
- * // "defaultSchemaId": "my_defaultSchemaId",
36572
- * // "displayName": "my_displayName",
36573
- * // "documentProcessingConfig": {},
36574
- * // "healthcareFhirConfig": {},
36575
- * // "identityMappingStore": "my_identityMappingStore",
36576
- * // "idpConfig": {},
36577
- * // "industryVertical": "my_industryVertical",
36578
- * // "isInfobotFaqDataStore": false,
36579
- * // "kmsKeyName": "my_kmsKeyName",
36580
- * // "languageInfo": {},
36581
- * // "name": "my_name",
36582
- * // "naturalLanguageQueryUnderstandingConfig": {},
36583
- * // "servingConfigDataStore": {},
36584
- * // "solutionTypes": [],
36585
- * // "startingSchema": {},
36586
- * // "workspaceConfig": {}
36587
- * // }
36588
- * },
36589
- * });
36590
- * console.log(res.data);
36591
- *
36592
- * // Example response
36593
- * // {
36594
- * // "done": false,
36595
- * // "error": {},
36596
- * // "metadata": {},
36597
- * // "name": "my_name",
36598
- * // "response": {}
36599
- * // }
36600
- * }
36601
- *
36602
- * main().catch(e => {
36603
- * console.error(e);
36604
- * throw e;
36605
- * });
36606
- *
36607
- * ```
36608
- *
36609
- * @param params - Parameters for request
36610
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
36611
- * @param callback - Optional callback that handles the response.
36612
- * @returns A promise if used with async/await, or void if used with a callback.
36613
- */
36614
- create(params: Params$Resource$Projects$Locations$Datastores$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
36615
- create(params?: Params$Resource$Projects$Locations$Datastores$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
36616
- create(params: Params$Resource$Projects$Locations$Datastores$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
36617
- create(params: Params$Resource$Projects$Locations$Datastores$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
36618
- create(params: Params$Resource$Projects$Locations$Datastores$Create, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
36619
- create(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
36620
- /**
36621
- * Deletes a DataStore.
36622
- * @example
36623
- * ```js
36624
- * // Before running the sample:
36625
- * // - Enable the API at:
36626
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
36627
- * // - Login into gcloud by running:
36628
- * // ```sh
36629
- * // $ gcloud auth application-default login
36630
- * // ```
36631
- * // - Install the npm module by running:
36632
- * // ```sh
36633
- * // $ npm install googleapis
36634
- * // ```
36635
- *
36636
- * const {google} = require('googleapis');
36637
- * const discoveryengine = google.discoveryengine('v1alpha');
36638
- *
36639
- * async function main() {
36640
- * const auth = new google.auth.GoogleAuth({
36641
- * // Scopes can be specified either as an array or as a single, space-delimited string.
36642
- * scopes: [
36643
- * 'https://www.googleapis.com/auth/cloud-platform',
36644
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
36645
- * ],
36646
- * });
36647
- *
36648
- * // Acquire an auth client, and bind it to all future calls
36649
- * const authClient = await auth.getClient();
36650
- * google.options({auth: authClient});
36651
- *
36652
- * // Do the magic
36421
+ * const res = await discoveryengine.projects.locations.dataStores.completeQuery(
36422
+ * {
36423
+ * // Required. The parent data store resource name for which the completion is performed, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store`.
36424
+ * dataStore:
36425
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
36426
+ * // Indicates if tail suggestions should be returned if there are no suggestions that match the full query. Even if set to true, if there are suggestions that match the full query, those are returned and no tail suggestions are returned.
36427
+ * includeTailSuggestions: 'placeholder-value',
36428
+ * // Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters.
36429
+ * query: 'placeholder-value',
36430
+ * // Specifies the autocomplete data model. This overrides any model specified in the Configuration \> Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.
36431
+ * queryModel: 'placeholder-value',
36432
+ * // Optional. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
36433
+ * userPseudoId: 'placeholder-value',
36434
+ * },
36435
+ * );
36436
+ * console.log(res.data);
36437
+ *
36438
+ * // Example response
36439
+ * // {
36440
+ * // "querySuggestions": [],
36441
+ * // "tailMatchTriggered": false
36442
+ * // }
36443
+ * }
36444
+ *
36445
+ * main().catch(e => {
36446
+ * console.error(e);
36447
+ * throw e;
36448
+ * });
36449
+ *
36450
+ * ```
36451
+ *
36452
+ * @param params - Parameters for request
36453
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
36454
+ * @param callback - Optional callback that handles the response.
36455
+ * @returns A promise if used with async/await, or void if used with a callback.
36456
+ */
36457
+ completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
36458
+ completeQuery(params?: Params$Resource$Projects$Locations$Datastores$Completequery, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>>;
36459
+ completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
36460
+ completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>): void;
36461
+ completeQuery(params: Params$Resource$Projects$Locations$Datastores$Completequery, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>): void;
36462
+ completeQuery(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse>): void;
36463
+ /**
36464
+ * Creates a DataStore. DataStore is for storing Documents. To serve these documents for Search, or Recommendation use case, an Engine needs to be created separately.
36465
+ * @example
36466
+ * ```js
36467
+ * // Before running the sample:
36468
+ * // - Enable the API at:
36469
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
36470
+ * // - Login into gcloud by running:
36471
+ * // ```sh
36472
+ * // $ gcloud auth application-default login
36473
+ * // ```
36474
+ * // - Install the npm module by running:
36475
+ * // ```sh
36476
+ * // $ npm install googleapis
36477
+ * // ```
36478
+ *
36479
+ * const {google} = require('googleapis');
36480
+ * const discoveryengine = google.discoveryengine('v1alpha');
36481
+ *
36482
+ * async function main() {
36483
+ * const auth = new google.auth.GoogleAuth({
36484
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
36485
+ * scopes: [
36486
+ * 'https://www.googleapis.com/auth/cloud-platform',
36487
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
36488
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
36489
+ * ],
36490
+ * });
36491
+ *
36492
+ * // Acquire an auth client, and bind it to all future calls
36493
+ * const authClient = await auth.getClient();
36494
+ * google.options({auth: authClient});
36495
+ *
36496
+ * // Do the magic
36497
+ * const res = await discoveryengine.projects.locations.dataStores.create({
36498
+ * // Resource name of the CmekConfig to use for protecting this DataStore.
36499
+ * cmekConfigName: 'placeholder-value',
36500
+ * // A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will be ignored.
36501
+ * createAdvancedSiteSearch: 'placeholder-value',
36502
+ * // Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
36503
+ * dataStoreId: 'placeholder-value',
36504
+ * // DataStore without CMEK protections. If a default CmekConfig is set for the project, setting this field will override the default CmekConfig as well.
36505
+ * disableCmek: 'placeholder-value',
36506
+ * // Required. The parent resource name, such as `projects/{project\}/locations/{location\}/collections/{collection\}`.
36507
+ * parent: 'projects/my-project/locations/my-location',
36508
+ * // A boolean flag indicating whether to skip the default schema creation for the data store. Only enable this flag if you are certain that the default schema is incompatible with your use case. If set to true, you must manually create a schema for the data store before any documents can be ingested. This flag cannot be specified if `data_store.starting_schema` is specified.
36509
+ * skipDefaultSchemaCreation: 'placeholder-value',
36510
+ *
36511
+ * // Request body metadata
36512
+ * requestBody: {
36513
+ * // request body parameters
36514
+ * // {
36515
+ * // "aclEnabled": false,
36516
+ * // "advancedSiteSearchConfig": {},
36517
+ * // "billingEstimation": {},
36518
+ * // "cmekConfig": {},
36519
+ * // "configurableBillingApproach": "my_configurableBillingApproach",
36520
+ * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
36521
+ * // "contentConfig": "my_contentConfig",
36522
+ * // "createTime": "my_createTime",
36523
+ * // "defaultSchemaId": "my_defaultSchemaId",
36524
+ * // "displayName": "my_displayName",
36525
+ * // "documentProcessingConfig": {},
36526
+ * // "healthcareFhirConfig": {},
36527
+ * // "identityMappingStore": "my_identityMappingStore",
36528
+ * // "idpConfig": {},
36529
+ * // "industryVertical": "my_industryVertical",
36530
+ * // "isInfobotFaqDataStore": false,
36531
+ * // "kmsKeyName": "my_kmsKeyName",
36532
+ * // "languageInfo": {},
36533
+ * // "name": "my_name",
36534
+ * // "naturalLanguageQueryUnderstandingConfig": {},
36535
+ * // "servingConfigDataStore": {},
36536
+ * // "solutionTypes": [],
36537
+ * // "startingSchema": {},
36538
+ * // "workspaceConfig": {}
36539
+ * // }
36540
+ * },
36541
+ * });
36542
+ * console.log(res.data);
36543
+ *
36544
+ * // Example response
36545
+ * // {
36546
+ * // "done": false,
36547
+ * // "error": {},
36548
+ * // "metadata": {},
36549
+ * // "name": "my_name",
36550
+ * // "response": {}
36551
+ * // }
36552
+ * }
36553
+ *
36554
+ * main().catch(e => {
36555
+ * console.error(e);
36556
+ * throw e;
36557
+ * });
36558
+ *
36559
+ * ```
36560
+ *
36561
+ * @param params - Parameters for request
36562
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
36563
+ * @param callback - Optional callback that handles the response.
36564
+ * @returns A promise if used with async/await, or void if used with a callback.
36565
+ */
36566
+ create(params: Params$Resource$Projects$Locations$Datastores$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
36567
+ create(params?: Params$Resource$Projects$Locations$Datastores$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
36568
+ create(params: Params$Resource$Projects$Locations$Datastores$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
36569
+ create(params: Params$Resource$Projects$Locations$Datastores$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
36570
+ create(params: Params$Resource$Projects$Locations$Datastores$Create, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
36571
+ create(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
36572
+ /**
36573
+ * Deletes a DataStore.
36574
+ * @example
36575
+ * ```js
36576
+ * // Before running the sample:
36577
+ * // - Enable the API at:
36578
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
36579
+ * // - Login into gcloud by running:
36580
+ * // ```sh
36581
+ * // $ gcloud auth application-default login
36582
+ * // ```
36583
+ * // - Install the npm module by running:
36584
+ * // ```sh
36585
+ * // $ npm install googleapis
36586
+ * // ```
36587
+ *
36588
+ * const {google} = require('googleapis');
36589
+ * const discoveryengine = google.discoveryengine('v1alpha');
36590
+ *
36591
+ * async function main() {
36592
+ * const auth = new google.auth.GoogleAuth({
36593
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
36594
+ * scopes: [
36595
+ * 'https://www.googleapis.com/auth/cloud-platform',
36596
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
36597
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
36598
+ * ],
36599
+ * });
36600
+ *
36601
+ * // Acquire an auth client, and bind it to all future calls
36602
+ * const authClient = await auth.getClient();
36603
+ * google.options({auth: authClient});
36604
+ *
36605
+ * // Do the magic
36653
36606
  * const res = await discoveryengine.projects.locations.dataStores.delete({
36654
36607
  * // Required. Full resource name of DataStore, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. If the caller does not have permission to delete the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the DataStore to delete does not exist, a NOT_FOUND error is returned.
36655
36608
  * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore',
@@ -36708,6 +36661,7 @@ export declare namespace discoveryengine_v1alpha {
36708
36661
  * // Scopes can be specified either as an array or as a single, space-delimited string.
36709
36662
  * scopes: [
36710
36663
  * 'https://www.googleapis.com/auth/cloud-platform',
36664
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
36711
36665
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
36712
36666
  * ],
36713
36667
  * });
@@ -38659,7 +38613,7 @@ export declare namespace discoveryengine_v1alpha {
38659
38613
  * pageSize: 'placeholder-value',
38660
38614
  * // The standard list page token.
38661
38615
  * pageToken: 'placeholder-value',
38662
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
38616
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
38663
38617
  * returnPartialSuccess: 'placeholder-value',
38664
38618
  * },
38665
38619
  * );
@@ -38726,7 +38680,7 @@ export declare namespace discoveryengine_v1alpha {
38726
38680
  */
38727
38681
  pageToken?: string;
38728
38682
  /**
38729
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
38683
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
38730
38684
  */
38731
38685
  returnPartialSuccess?: boolean;
38732
38686
  }
@@ -40122,7 +40076,7 @@ export declare namespace discoveryengine_v1alpha {
40122
40076
  * pageSize: 'placeholder-value',
40123
40077
  * // The standard list page token.
40124
40078
  * pageToken: 'placeholder-value',
40125
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40079
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40126
40080
  * returnPartialSuccess: 'placeholder-value',
40127
40081
  * });
40128
40082
  * console.log(res.data);
@@ -40178,7 +40132,7 @@ export declare namespace discoveryengine_v1alpha {
40178
40132
  */
40179
40133
  pageToken?: string;
40180
40134
  /**
40181
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40135
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40182
40136
  */
40183
40137
  returnPartialSuccess?: boolean;
40184
40138
  }
@@ -40296,7 +40250,7 @@ export declare namespace discoveryengine_v1alpha {
40296
40250
  * pageSize: 'placeholder-value',
40297
40251
  * // The standard list page token.
40298
40252
  * pageToken: 'placeholder-value',
40299
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40253
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40300
40254
  * returnPartialSuccess: 'placeholder-value',
40301
40255
  * });
40302
40256
  * console.log(res.data);
@@ -40352,7 +40306,7 @@ export declare namespace discoveryengine_v1alpha {
40352
40306
  */
40353
40307
  pageToken?: string;
40354
40308
  /**
40355
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40309
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
40356
40310
  */
40357
40311
  returnPartialSuccess?: boolean;
40358
40312
  }
@@ -40807,6 +40761,7 @@ export declare namespace discoveryengine_v1alpha {
40807
40761
  * // Scopes can be specified either as an array or as a single, space-delimited string.
40808
40762
  * scopes: [
40809
40763
  * 'https://www.googleapis.com/auth/cloud-platform',
40764
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
40810
40765
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
40811
40766
  * ],
40812
40767
  * });
@@ -41277,6 +41232,7 @@ export declare namespace discoveryengine_v1alpha {
41277
41232
  * // "branch": "my_branch",
41278
41233
  * // "canonicalFilter": "my_canonicalFilter",
41279
41234
  * // "contentSearchSpec": {},
41235
+ * // "crowdingSpecs": [],
41280
41236
  * // "customFineTuningSpec": {},
41281
41237
  * // "dataStoreSpecs": [],
41282
41238
  * // "displaySpec": {},
@@ -41289,6 +41245,7 @@ export declare namespace discoveryengine_v1alpha {
41289
41245
  * // "offset": 0,
41290
41246
  * // "oneBoxPageSize": 0,
41291
41247
  * // "orderBy": "my_orderBy",
41248
+ * // "pageCategories": [],
41292
41249
  * // "pageSize": 0,
41293
41250
  * // "pageToken": "my_pageToken",
41294
41251
  * // "params": {},
@@ -41331,6 +41288,7 @@ export declare namespace discoveryengine_v1alpha {
41331
41288
  * // "redirectUri": "my_redirectUri",
41332
41289
  * // "results": [],
41333
41290
  * // "searchLinkPromotions": [],
41291
+ * // "semanticState": "my_semanticState",
41334
41292
  * // "sessionInfo": {},
41335
41293
  * // "suggestedQuery": "my_suggestedQuery",
41336
41294
  * // "summary": {},
@@ -41405,6 +41363,7 @@ export declare namespace discoveryengine_v1alpha {
41405
41363
  * // "branch": "my_branch",
41406
41364
  * // "canonicalFilter": "my_canonicalFilter",
41407
41365
  * // "contentSearchSpec": {},
41366
+ * // "crowdingSpecs": [],
41408
41367
  * // "customFineTuningSpec": {},
41409
41368
  * // "dataStoreSpecs": [],
41410
41369
  * // "displaySpec": {},
@@ -41417,6 +41376,7 @@ export declare namespace discoveryengine_v1alpha {
41417
41376
  * // "offset": 0,
41418
41377
  * // "oneBoxPageSize": 0,
41419
41378
  * // "orderBy": "my_orderBy",
41379
+ * // "pageCategories": [],
41420
41380
  * // "pageSize": 0,
41421
41381
  * // "pageToken": "my_pageToken",
41422
41382
  * // "params": {},
@@ -41460,6 +41420,7 @@ export declare namespace discoveryengine_v1alpha {
41460
41420
  * // "redirectUri": "my_redirectUri",
41461
41421
  * // "results": [],
41462
41422
  * // "searchLinkPromotions": [],
41423
+ * // "semanticState": "my_semanticState",
41463
41424
  * // "sessionInfo": {},
41464
41425
  * // "suggestedQuery": "my_suggestedQuery",
41465
41426
  * // "summary": {},
@@ -41509,6 +41470,7 @@ export declare namespace discoveryengine_v1alpha {
41509
41470
  * // Scopes can be specified either as an array or as a single, space-delimited string.
41510
41471
  * scopes: [
41511
41472
  * 'https://www.googleapis.com/auth/cloud-platform',
41473
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
41512
41474
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
41513
41475
  * ],
41514
41476
  * });
@@ -44159,6 +44121,7 @@ export declare namespace discoveryengine_v1alpha {
44159
44121
  * // Scopes can be specified either as an array or as a single, space-delimited string.
44160
44122
  * scopes: [
44161
44123
  * 'https://www.googleapis.com/auth/cloud-platform',
44124
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
44162
44125
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
44163
44126
  * ],
44164
44127
  * });
@@ -45363,7 +45326,7 @@ export declare namespace discoveryengine_v1alpha {
45363
45326
  * pageSize: 'placeholder-value',
45364
45327
  * // The standard list page token.
45365
45328
  * pageToken: 'placeholder-value',
45366
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
45329
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
45367
45330
  * returnPartialSuccess: 'placeholder-value',
45368
45331
  * },
45369
45332
  * );
@@ -45420,7 +45383,7 @@ export declare namespace discoveryengine_v1alpha {
45420
45383
  */
45421
45384
  pageToken?: string;
45422
45385
  /**
45423
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
45386
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
45424
45387
  */
45425
45388
  returnPartialSuccess?: boolean;
45426
45389
  }
@@ -46318,6 +46281,7 @@ export declare namespace discoveryengine_v1alpha {
46318
46281
  * // Scopes can be specified either as an array or as a single, space-delimited string.
46319
46282
  * scopes: [
46320
46283
  * 'https://www.googleapis.com/auth/cloud-platform',
46284
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
46321
46285
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
46322
46286
  * ],
46323
46287
  * });
@@ -46503,83 +46467,6 @@ export declare namespace discoveryengine_v1alpha {
46503
46467
  get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
46504
46468
  get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
46505
46469
  get(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
46506
- /**
46507
- * Uploads a file for Notebook LM to use. Creates a Source.
46508
- * @example
46509
- * ```js
46510
- * // Before running the sample:
46511
- * // - Enable the API at:
46512
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
46513
- * // - Login into gcloud by running:
46514
- * // ```sh
46515
- * // $ gcloud auth application-default login
46516
- * // ```
46517
- * // - Install the npm module by running:
46518
- * // ```sh
46519
- * // $ npm install googleapis
46520
- * // ```
46521
- *
46522
- * const {google} = require('googleapis');
46523
- * const discoveryengine = google.discoveryengine('v1alpha');
46524
- *
46525
- * async function main() {
46526
- * const auth = new google.auth.GoogleAuth({
46527
- * // Scopes can be specified either as an array or as a single, space-delimited string.
46528
- * scopes: [
46529
- * 'https://www.googleapis.com/auth/cloud-platform',
46530
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
46531
- * ],
46532
- * });
46533
- *
46534
- * // Acquire an auth client, and bind it to all future calls
46535
- * const authClient = await auth.getClient();
46536
- * google.options({auth: authClient});
46537
- *
46538
- * // Do the magic
46539
- * const res =
46540
- * await discoveryengine.projects.locations.notebooks.sources.uploadFile({
46541
- * // Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
46542
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
46543
- * // The source id of the associated file. If not set, a source id will be generated and a new tentative source will be created.
46544
- * sourceId: 'placeholder-value',
46545
- *
46546
- * // Request body metadata
46547
- * requestBody: {
46548
- * // request body parameters
46549
- * // {
46550
- * // "blob": {},
46551
- * // "mediaRequestInfo": {},
46552
- * // "sourceId": "my_sourceId"
46553
- * // }
46554
- * },
46555
- * });
46556
- * console.log(res.data);
46557
- *
46558
- * // Example response
46559
- * // {
46560
- * // "mediaResponseInfo": {},
46561
- * // "sourceId": {}
46562
- * // }
46563
- * }
46564
- *
46565
- * main().catch(e => {
46566
- * console.error(e);
46567
- * throw e;
46568
- * });
46569
- *
46570
- * ```
46571
- *
46572
- * @param params - Parameters for request
46573
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
46574
- * @param callback - Optional callback that handles the response.
46575
- * @returns A promise if used with async/await, or void if used with a callback.
46576
- */
46577
- uploadFile(params: Params$Resource$Projects$Locations$Notebooks$Sources$Uploadfile, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
46578
- uploadFile(params?: Params$Resource$Projects$Locations$Notebooks$Sources$Uploadfile, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileResponse>>;
46579
- uploadFile(params: Params$Resource$Projects$Locations$Notebooks$Sources$Uploadfile, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
46580
- uploadFile(params: Params$Resource$Projects$Locations$Notebooks$Sources$Uploadfile, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileResponse>): void;
46581
- uploadFile(params: Params$Resource$Projects$Locations$Notebooks$Sources$Uploadfile, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileResponse>): void;
46582
- uploadFile(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileResponse>): void;
46583
46470
  }
46584
46471
  export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate extends StandardParameters {
46585
46472
  /**
@@ -46607,20 +46494,6 @@ export declare namespace discoveryengine_v1alpha {
46607
46494
  */
46608
46495
  name?: string;
46609
46496
  }
46610
- export interface Params$Resource$Projects$Locations$Notebooks$Sources$Uploadfile extends StandardParameters {
46611
- /**
46612
- * Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
46613
- */
46614
- parent?: string;
46615
- /**
46616
- * The source id of the associated file. If not set, a source id will be generated and a new tentative source will be created.
46617
- */
46618
- sourceId?: string;
46619
- /**
46620
- * Request body metadata
46621
- */
46622
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaUploadSourceFileRequest;
46623
- }
46624
46497
  export class Resource$Projects$Locations$Operations {
46625
46498
  context: APIRequestContext;
46626
46499
  constructor(context: APIRequestContext);
@@ -46733,7 +46606,7 @@ export declare namespace discoveryengine_v1alpha {
46733
46606
  * pageSize: 'placeholder-value',
46734
46607
  * // The standard list page token.
46735
46608
  * pageToken: 'placeholder-value',
46736
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
46609
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
46737
46610
  * returnPartialSuccess: 'placeholder-value',
46738
46611
  * });
46739
46612
  * console.log(res.data);
@@ -46789,7 +46662,7 @@ export declare namespace discoveryengine_v1alpha {
46789
46662
  */
46790
46663
  pageToken?: string;
46791
46664
  /**
46792
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
46665
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
46793
46666
  */
46794
46667
  returnPartialSuccess?: boolean;
46795
46668
  }
@@ -48998,7 +48871,7 @@ export declare namespace discoveryengine_v1alpha {
48998
48871
  * pageSize: 'placeholder-value',
48999
48872
  * // The standard list page token.
49000
48873
  * pageToken: 'placeholder-value',
49001
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
48874
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
49002
48875
  * returnPartialSuccess: 'placeholder-value',
49003
48876
  * });
49004
48877
  * console.log(res.data);
@@ -49054,7 +48927,7 @@ export declare namespace discoveryengine_v1alpha {
49054
48927
  */
49055
48928
  pageToken?: string;
49056
48929
  /**
49057
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
48930
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
49058
48931
  */
49059
48932
  returnPartialSuccess?: boolean;
49060
48933
  }
@@ -49096,8 +48969,8 @@ export declare namespace discoveryengine_v1alpha {
49096
48969
  * // Do the magic
49097
48970
  * const res =
49098
48971
  * await discoveryengine.projects.locations.userStores.userLicenses.list({
49099
- * // Optional. Filter for the list request. Supported fields: * `license`_`assignment`_`state` * `user_principal` * `user_profile` Examples: * `license`_`assignment`_`state = ASSIGNED` to list assigned user licenses. * `license`_`assignment`_`state = NO_LICENSE` to list not licensed users. * `license`_`assignment`_`state = NO_LICENSE_ATTEMPTED_LOGIN` to list users who attempted login but no license assigned. * `license`_`assignment`_`state != NO_LICENSE_ATTEMPTED_LOGIN` to filter out users who attempted login but no license assigned.
49100
- * filter: 'placeholder-value',
48972
+ * // Optional. The order in which the UserLicenses are listed. The value must be a comma-separated list of fields. Default sorting order is ascending. To specify descending order for a field, append a " desc" suffix. Redundant space characters in the syntax are insignificant. Supported fields: * `license_assignment_state` * `user_principal` * `user_profile` * `last_login_date` * `update_time` If not set, the default ordering is by `user_principal`. Examples: * `user_principal desc` to order by `user_principal` in descending order. * `license_assignment_state` to order by `license_assignment_state` in ascending order. * `last_login_date desc` to order by `last_login_date` in descending order. * `update_time desc` to order by `update_time` in descending order. * `last_login_date desc, user_principal` to order by `last_login_date` in descending order and then by `user_principal` in ascending order.
48973
+ * orderBy: 'placeholder-value',
49101
48974
  * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, defaults to 10. The maximum value is 50; values above 50 will be coerced to 50. If this field is negative, an INVALID_ARGUMENT error is returned.
49102
48975
  * pageSize: 'placeholder-value',
49103
48976
  * // Optional. A page token, received from a previous `ListUserLicenses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserLicenses` must match the call that provided the page token.
@@ -49136,9 +49009,9 @@ export declare namespace discoveryengine_v1alpha {
49136
49009
  }
49137
49010
  export interface Params$Resource$Projects$Locations$Userstores$Userlicenses$List extends StandardParameters {
49138
49011
  /**
49139
- * Optional. Filter for the list request. Supported fields: * `license`_`assignment`_`state` * `user_principal` * `user_profile` Examples: * `license`_`assignment`_`state = ASSIGNED` to list assigned user licenses. * `license`_`assignment`_`state = NO_LICENSE` to list not licensed users. * `license`_`assignment`_`state = NO_LICENSE_ATTEMPTED_LOGIN` to list users who attempted login but no license assigned. * `license`_`assignment`_`state != NO_LICENSE_ATTEMPTED_LOGIN` to filter out users who attempted login but no license assigned.
49012
+ * Optional. The order in which the UserLicenses are listed. The value must be a comma-separated list of fields. Default sorting order is ascending. To specify descending order for a field, append a " desc" suffix. Redundant space characters in the syntax are insignificant. Supported fields: * `license_assignment_state` * `user_principal` * `user_profile` * `last_login_date` * `update_time` If not set, the default ordering is by `user_principal`. Examples: * `user_principal desc` to order by `user_principal` in descending order. * `license_assignment_state` to order by `license_assignment_state` in ascending order. * `last_login_date desc` to order by `last_login_date` in descending order. * `update_time desc` to order by `update_time` in descending order. * `last_login_date desc, user_principal` to order by `last_login_date` in descending order and then by `user_principal` in ascending order.
49140
49013
  */
49141
- filter?: string;
49014
+ orderBy?: string;
49142
49015
  /**
49143
49016
  * Optional. Requested page size. Server may return fewer items than requested. If unspecified, defaults to 10. The maximum value is 50; values above 50 will be coerced to 50. If this field is negative, an INVALID_ARGUMENT error is returned.
49144
49017
  */
@@ -49264,7 +49137,7 @@ export declare namespace discoveryengine_v1alpha {
49264
49137
  * pageSize: 'placeholder-value',
49265
49138
  * // The standard list page token.
49266
49139
  * pageToken: 'placeholder-value',
49267
- * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
49140
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
49268
49141
  * returnPartialSuccess: 'placeholder-value',
49269
49142
  * });
49270
49143
  * console.log(res.data);
@@ -49320,7 +49193,7 @@ export declare namespace discoveryengine_v1alpha {
49320
49193
  */
49321
49194
  pageToken?: string;
49322
49195
  /**
49323
- * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
49196
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
49324
49197
  */
49325
49198
  returnPartialSuccess?: boolean;
49326
49199
  }