@googleapis/discoveryengine 27.1.0 → 28.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +865 -582
- package/build/v1.js +251 -40
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +1274 -1163
- package/build/v1alpha.js +351 -118
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +1078 -811
- package/build/v1beta.js +251 -40
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +2007 -1475
- package/v1alpha.ts +2634 -2372
- package/v1beta.ts +2008 -1503
package/build/v1alpha.d.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -1261,6 +831,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
1261
831
|
* Optional. The code of the language of the text in the description, display_name and starter_prompts fields.
|
|
1262
832
|
*/
|
|
1263
833
|
languageCode?: string | null;
|
|
834
|
+
/**
|
|
835
|
+
* Optional. The behavior of the Google managed agent.
|
|
836
|
+
*/
|
|
837
|
+
managedAgentDefinition?: Schema$GoogleCloudDiscoveryengineV1alphaManagedAgentDefinition;
|
|
1264
838
|
/**
|
|
1265
839
|
* Identifier. Resource name of the agent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}/agents/{agent\}`
|
|
1266
840
|
*/
|
|
@@ -2544,6 +2118,18 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
2544
2118
|
* Optional. Customer policy for the assistant.
|
|
2545
2119
|
*/
|
|
2546
2120
|
customerPolicy?: Schema$GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicy;
|
|
2121
|
+
/**
|
|
2122
|
+
* Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
|
|
2123
|
+
*/
|
|
2124
|
+
description?: string | null;
|
|
2125
|
+
/**
|
|
2126
|
+
* Optional. Indicates whether to disable user location context. By default, user location context is enabled.
|
|
2127
|
+
*/
|
|
2128
|
+
disableLocationContext?: boolean | null;
|
|
2129
|
+
/**
|
|
2130
|
+
* Required. The assistant display name. It must be a UTF-8 encoded string with a length limit of 128 characters.
|
|
2131
|
+
*/
|
|
2132
|
+
displayName?: string | null;
|
|
2547
2133
|
/**
|
|
2548
2134
|
* 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
2135
|
*/
|
|
@@ -2695,10 +2281,18 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
2695
2281
|
* Configuration for the generation of the assistant response.
|
|
2696
2282
|
*/
|
|
2697
2283
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig {
|
|
2284
|
+
/**
|
|
2285
|
+
* Optional. The list of models that are allowed to be used for assistant.
|
|
2286
|
+
*/
|
|
2287
|
+
allowedModelIds?: string[] | null;
|
|
2698
2288
|
/**
|
|
2699
2289
|
* 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
2290
|
*/
|
|
2701
2291
|
defaultLanguage?: string | null;
|
|
2292
|
+
/**
|
|
2293
|
+
* Optional. The default model to use for assistant.
|
|
2294
|
+
*/
|
|
2295
|
+
defaultModelId?: string | null;
|
|
2702
2296
|
/**
|
|
2703
2297
|
* 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
2298
|
*/
|
|
@@ -3870,49 +3464,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
3870
3464
|
*/
|
|
3871
3465
|
startTime?: string | null;
|
|
3872
3466
|
}
|
|
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
3467
|
/**
|
|
3917
3468
|
* 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
3469
|
*/
|
|
@@ -5677,6 +5228,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
5677
5228
|
* Configurations for a Search Engine.
|
|
5678
5229
|
*/
|
|
5679
5230
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig {
|
|
5231
|
+
/**
|
|
5232
|
+
* 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.
|
|
5233
|
+
*/
|
|
5234
|
+
requiredSubscriptionTier?: string | null;
|
|
5680
5235
|
/**
|
|
5681
5236
|
* The add-on that this search engine enables.
|
|
5682
5237
|
*/
|
|
@@ -6251,6 +5806,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
6251
5806
|
* Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
|
|
6252
5807
|
*/
|
|
6253
5808
|
externalIdentity?: string | null;
|
|
5809
|
+
/**
|
|
5810
|
+
* Optional. The name of the external identity.
|
|
5811
|
+
*/
|
|
5812
|
+
externalIdentityName?: string | null;
|
|
6254
5813
|
/**
|
|
6255
5814
|
* 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
5815
|
*/
|
|
@@ -6897,6 +6456,19 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
6897
6456
|
*/
|
|
6898
6457
|
nextPageToken?: string | null;
|
|
6899
6458
|
}
|
|
6459
|
+
/**
|
|
6460
|
+
* Response message for the AssistantService.ListAssistants method.
|
|
6461
|
+
*/
|
|
6462
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse {
|
|
6463
|
+
/**
|
|
6464
|
+
* All the customer's Assistants.
|
|
6465
|
+
*/
|
|
6466
|
+
assistants?: Schema$GoogleCloudDiscoveryengineV1alphaAssistant[];
|
|
6467
|
+
/**
|
|
6468
|
+
* 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.
|
|
6469
|
+
*/
|
|
6470
|
+
nextPageToken?: string | null;
|
|
6471
|
+
}
|
|
6900
6472
|
/**
|
|
6901
6473
|
* Response message for the AuthorizationService.ListAuthorizations method.
|
|
6902
6474
|
*/
|
|
@@ -7287,6 +6859,11 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
7287
6859
|
*/
|
|
7288
6860
|
userLicenses?: Schema$GoogleCloudDiscoveryengineV1alphaUserLicense[];
|
|
7289
6861
|
}
|
|
6862
|
+
/**
|
|
6863
|
+
* Stores the definition of a Google managed agent.
|
|
6864
|
+
*/
|
|
6865
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaManagedAgentDefinition {
|
|
6866
|
+
}
|
|
7290
6867
|
/**
|
|
7291
6868
|
* Media-specific user event information.
|
|
7292
6869
|
*/
|
|
@@ -7856,6 +7433,45 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
7856
7433
|
*/
|
|
7857
7434
|
text?: string | null;
|
|
7858
7435
|
}
|
|
7436
|
+
/**
|
|
7437
|
+
* Response for [ProjectService.QueryConfigurablePricingUsageStats] method.
|
|
7438
|
+
*/
|
|
7439
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse {
|
|
7440
|
+
/**
|
|
7441
|
+
* A list of metric usages, one for each requested resource type that has data in the requested time range.
|
|
7442
|
+
*/
|
|
7443
|
+
metricUsages?: Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseMetricUsage[];
|
|
7444
|
+
}
|
|
7445
|
+
/**
|
|
7446
|
+
* A list of usages for a specific day.
|
|
7447
|
+
*/
|
|
7448
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseDatedUsage {
|
|
7449
|
+
/**
|
|
7450
|
+
* The date of the usage.
|
|
7451
|
+
*/
|
|
7452
|
+
date?: Schema$GoogleTypeDate;
|
|
7453
|
+
/**
|
|
7454
|
+
* The usage value on the date.
|
|
7455
|
+
*/
|
|
7456
|
+
usage?: number | null;
|
|
7457
|
+
}
|
|
7458
|
+
/**
|
|
7459
|
+
* The usage of a metric over a list of days.
|
|
7460
|
+
*/
|
|
7461
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseMetricUsage {
|
|
7462
|
+
/**
|
|
7463
|
+
* The list of usages for this resource type, chronologically sorted by date. This is populated for metrics with daily aggregation like DAILY_MDN_QPM.
|
|
7464
|
+
*/
|
|
7465
|
+
datedUsages?: Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponseDatedUsage[];
|
|
7466
|
+
/**
|
|
7467
|
+
* The metric type.
|
|
7468
|
+
*/
|
|
7469
|
+
metricType?: string | null;
|
|
7470
|
+
/**
|
|
7471
|
+
* The total usage for this resource type. This is populated for metrics like TOTAL_STORAGE.
|
|
7472
|
+
*/
|
|
7473
|
+
totalUsage?: number | null;
|
|
7474
|
+
}
|
|
7859
7475
|
/**
|
|
7860
7476
|
* Record message for RankService.Rank method.
|
|
7861
7477
|
*/
|
|
@@ -8554,6 +8170,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
8554
8170
|
* A specification for configuring the behavior of content search.
|
|
8555
8171
|
*/
|
|
8556
8172
|
contentSearchSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
|
|
8173
|
+
/**
|
|
8174
|
+
* 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.
|
|
8175
|
+
*/
|
|
8176
|
+
crowdingSpecs?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestCrowdingSpec[];
|
|
8557
8177
|
/**
|
|
8558
8178
|
* Custom fine tuning configs. If set, it has higher priority than the configs set in ServingConfig.custom_fine_tuning_spec.
|
|
8559
8179
|
*/
|
|
@@ -8602,6 +8222,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
8602
8222
|
* 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
8223
|
*/
|
|
8604
8224
|
orderBy?: string | null;
|
|
8225
|
+
/**
|
|
8226
|
+
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
8227
|
+
*/
|
|
8228
|
+
pageCategories?: string[] | null;
|
|
8605
8229
|
/**
|
|
8606
8230
|
* 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
8231
|
*/
|
|
@@ -8911,6 +8535,23 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
8911
8535
|
*/
|
|
8912
8536
|
imageSource?: string | null;
|
|
8913
8537
|
}
|
|
8538
|
+
/**
|
|
8539
|
+
* 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.
|
|
8540
|
+
*/
|
|
8541
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestCrowdingSpec {
|
|
8542
|
+
/**
|
|
8543
|
+
* The field to use for crowding. Documents can be crowded by a field in the Document object. Crowding field is case sensitive.
|
|
8544
|
+
*/
|
|
8545
|
+
field?: string | null;
|
|
8546
|
+
/**
|
|
8547
|
+
* 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.
|
|
8548
|
+
*/
|
|
8549
|
+
maxCount?: number | null;
|
|
8550
|
+
/**
|
|
8551
|
+
* Mode to use for documents that are crowded away.
|
|
8552
|
+
*/
|
|
8553
|
+
mode?: string | null;
|
|
8554
|
+
}
|
|
8914
8555
|
/**
|
|
8915
8556
|
* 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
8557
|
*/
|
|
@@ -9179,6 +8820,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
9179
8820
|
* Promotions for site search.
|
|
9180
8821
|
*/
|
|
9181
8822
|
searchLinkPromotions?: Schema$GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion[];
|
|
8823
|
+
/**
|
|
8824
|
+
* Output only. Indicates the semantic state of the search response.
|
|
8825
|
+
*/
|
|
8826
|
+
semanticState?: string | null;
|
|
9182
8827
|
/**
|
|
9183
8828
|
* Session information. Only set if SearchRequest.session is provided. See its description for more details.
|
|
9184
8829
|
*/
|
|
@@ -10185,6 +9830,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
10185
9830
|
* A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
|
|
10186
9831
|
*/
|
|
10187
9832
|
assistToken?: string | null;
|
|
9833
|
+
/**
|
|
9834
|
+
* The tool names of the tools that were invoked.
|
|
9835
|
+
*/
|
|
9836
|
+
invocationTools?: string[] | null;
|
|
10188
9837
|
/**
|
|
10189
9838
|
* Session information. Only included in the final StreamAssistResponse of the response stream.
|
|
10190
9839
|
*/
|
|
@@ -10500,58 +10149,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
10500
10149
|
*/
|
|
10501
10150
|
updateTime?: string | null;
|
|
10502
10151
|
}
|
|
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
10152
|
/**
|
|
10556
10153
|
* Per-user annotations for an Agent, based on UserAnnotation.
|
|
10557
10154
|
*/
|
|
@@ -10612,7 +10209,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
10612
10209
|
*/
|
|
10613
10210
|
eventType?: string | null;
|
|
10614
10211
|
/**
|
|
10615
|
-
* The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
10212
|
+
* Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
10616
10213
|
*/
|
|
10617
10214
|
filter?: string | null;
|
|
10618
10215
|
/**
|
|
@@ -11360,6 +10957,14 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
11360
10957
|
* Optional. Customer policy for the assistant.
|
|
11361
10958
|
*/
|
|
11362
10959
|
customerPolicy?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicy;
|
|
10960
|
+
/**
|
|
10961
|
+
* Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
|
|
10962
|
+
*/
|
|
10963
|
+
description?: string | null;
|
|
10964
|
+
/**
|
|
10965
|
+
* Required. The assistant display name. It must be a UTF-8 encoded string with a length limit of 128 characters.
|
|
10966
|
+
*/
|
|
10967
|
+
displayName?: string | null;
|
|
11363
10968
|
/**
|
|
11364
10969
|
* 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
10970
|
*/
|
|
@@ -11430,10 +11035,18 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
11430
11035
|
* Configuration for the generation of the assistant response.
|
|
11431
11036
|
*/
|
|
11432
11037
|
export interface Schema$GoogleCloudDiscoveryengineV1AssistantGenerationConfig {
|
|
11038
|
+
/**
|
|
11039
|
+
* Optional. The list of models that are allowed to be used for assistant.
|
|
11040
|
+
*/
|
|
11041
|
+
allowedModelIds?: string[] | null;
|
|
11433
11042
|
/**
|
|
11434
11043
|
* 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
11044
|
*/
|
|
11436
11045
|
defaultLanguage?: string | null;
|
|
11046
|
+
/**
|
|
11047
|
+
* Optional. The default model to use for assistant.
|
|
11048
|
+
*/
|
|
11049
|
+
defaultModelId?: string | null;
|
|
11437
11050
|
/**
|
|
11438
11051
|
* 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
11052
|
*/
|
|
@@ -12529,6 +12142,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
12529
12142
|
* Configurations for a Search Engine.
|
|
12530
12143
|
*/
|
|
12531
12144
|
export interface Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig {
|
|
12145
|
+
/**
|
|
12146
|
+
* 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.
|
|
12147
|
+
*/
|
|
12148
|
+
requiredSubscriptionTier?: string | null;
|
|
12532
12149
|
/**
|
|
12533
12150
|
* The add-on that this search engine enables.
|
|
12534
12151
|
*/
|
|
@@ -13296,6 +12913,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
13296
12913
|
* A specification for configuring the behavior of content search.
|
|
13297
12914
|
*/
|
|
13298
12915
|
contentSearchSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec;
|
|
12916
|
+
/**
|
|
12917
|
+
* 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.
|
|
12918
|
+
*/
|
|
12919
|
+
crowdingSpecs?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestCrowdingSpec[];
|
|
13299
12920
|
/**
|
|
13300
12921
|
* 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
12922
|
*/
|
|
@@ -13340,6 +12961,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
13340
12961
|
* 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
12962
|
*/
|
|
13342
12963
|
orderBy?: string | null;
|
|
12964
|
+
/**
|
|
12965
|
+
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
12966
|
+
*/
|
|
12967
|
+
pageCategories?: string[] | null;
|
|
13343
12968
|
/**
|
|
13344
12969
|
* 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
12970
|
*/
|
|
@@ -13645,6 +13270,23 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
13645
13270
|
*/
|
|
13646
13271
|
imageSource?: string | null;
|
|
13647
13272
|
}
|
|
13273
|
+
/**
|
|
13274
|
+
* 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.
|
|
13275
|
+
*/
|
|
13276
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestCrowdingSpec {
|
|
13277
|
+
/**
|
|
13278
|
+
* The field to use for crowding. Documents can be crowded by a field in the Document object. Crowding field is case sensitive.
|
|
13279
|
+
*/
|
|
13280
|
+
field?: string | null;
|
|
13281
|
+
/**
|
|
13282
|
+
* 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.
|
|
13283
|
+
*/
|
|
13284
|
+
maxCount?: number | null;
|
|
13285
|
+
/**
|
|
13286
|
+
* Mode to use for documents that are crowded away.
|
|
13287
|
+
*/
|
|
13288
|
+
mode?: string | null;
|
|
13289
|
+
}
|
|
13648
13290
|
/**
|
|
13649
13291
|
* 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
13292
|
*/
|
|
@@ -14826,6 +14468,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
14826
14468
|
* Immutable. Identifier. The full resource name of the data store. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
14827
14469
|
*/
|
|
14828
14470
|
name?: string | null;
|
|
14471
|
+
/**
|
|
14472
|
+
* Optional. Configuration for Natural Language Query Understanding.
|
|
14473
|
+
*/
|
|
14474
|
+
naturalLanguageQueryUnderstandingConfig?: Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig;
|
|
14829
14475
|
/**
|
|
14830
14476
|
* Optional. Stores serving config at DataStore level.
|
|
14831
14477
|
*/
|
|
@@ -15384,6 +15030,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
15384
15030
|
* Configurations for a Search Engine.
|
|
15385
15031
|
*/
|
|
15386
15032
|
export interface Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig {
|
|
15033
|
+
/**
|
|
15034
|
+
* 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.
|
|
15035
|
+
*/
|
|
15036
|
+
requiredSubscriptionTier?: string | null;
|
|
15387
15037
|
/**
|
|
15388
15038
|
* The add-on that this search engine enables.
|
|
15389
15039
|
*/
|
|
@@ -15665,6 +15315,15 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
15665
15315
|
*/
|
|
15666
15316
|
subscriptionTier?: string | null;
|
|
15667
15317
|
}
|
|
15318
|
+
/**
|
|
15319
|
+
* Configuration for Natural Language Query Understanding.
|
|
15320
|
+
*/
|
|
15321
|
+
export interface Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig {
|
|
15322
|
+
/**
|
|
15323
|
+
* Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
|
|
15324
|
+
*/
|
|
15325
|
+
mode?: string | null;
|
|
15326
|
+
}
|
|
15668
15327
|
/**
|
|
15669
15328
|
* Metadata and configurations for a Google Cloud project in the service.
|
|
15670
15329
|
*/
|
|
@@ -16930,36 +16589,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
16930
16589
|
*/
|
|
16931
16590
|
status?: string | null;
|
|
16932
16591
|
}
|
|
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
16592
|
/**
|
|
16964
16593
|
* The "Content" messages refer to data the user wants to upload.
|
|
16965
16594
|
*/
|
|
@@ -17128,7 +16757,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17128
16757
|
*/
|
|
17129
16758
|
operations?: Schema$GoogleLongrunningOperation[];
|
|
17130
16759
|
/**
|
|
17131
|
-
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections
|
|
16760
|
+
* 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
16761
|
*/
|
|
17133
16762
|
unreachable?: string[] | null;
|
|
17134
16763
|
}
|
|
@@ -17714,11 +17343,13 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17714
17343
|
*/
|
|
17715
17344
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaRetractLicenseConfigRequest;
|
|
17716
17345
|
}
|
|
17717
|
-
export class Resource$
|
|
17346
|
+
export class Resource$Projects {
|
|
17718
17347
|
context: APIRequestContext;
|
|
17348
|
+
locations: Resource$Projects$Locations;
|
|
17349
|
+
operations: Resource$Projects$Operations;
|
|
17719
17350
|
constructor(context: APIRequestContext);
|
|
17720
17351
|
/**
|
|
17721
|
-
*
|
|
17352
|
+
* Gets a Project. Returns NOT_FOUND when the project is not yet created.
|
|
17722
17353
|
* @example
|
|
17723
17354
|
* ```js
|
|
17724
17355
|
* // Before running the sample:
|
|
@@ -17741,7 +17372,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17741
17372
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
17742
17373
|
* scopes: [
|
|
17743
17374
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
17744
|
-
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
17745
17375
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
17746
17376
|
* ],
|
|
17747
17377
|
* });
|
|
@@ -17751,48 +17381,20 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17751
17381
|
* google.options({auth: authClient});
|
|
17752
17382
|
*
|
|
17753
17383
|
* // Do the magic
|
|
17754
|
-
* const res = await discoveryengine.
|
|
17755
|
-
* // Required.
|
|
17756
|
-
*
|
|
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',
|
|
17384
|
+
* const res = await discoveryengine.projects.get({
|
|
17385
|
+
* // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
|
|
17386
|
+
* name: 'projects/my-project',
|
|
17761
17387
|
* });
|
|
17762
17388
|
* console.log(res.data);
|
|
17763
17389
|
*
|
|
17764
17390
|
* // Example response
|
|
17765
17391
|
* // {
|
|
17766
|
-
* // "
|
|
17767
|
-
* // "
|
|
17768
|
-
* // "
|
|
17769
|
-
* // "
|
|
17770
|
-
* // "
|
|
17771
|
-
* // "
|
|
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"
|
|
17392
|
+
* // "configurableBillingStatus": {},
|
|
17393
|
+
* // "createTime": "my_createTime",
|
|
17394
|
+
* // "customerProvidedConfig": {},
|
|
17395
|
+
* // "name": "my_name",
|
|
17396
|
+
* // "provisionCompletionTime": "my_provisionCompletionTime",
|
|
17397
|
+
* // "serviceTermsMap": {}
|
|
17796
17398
|
* // }
|
|
17797
17399
|
* }
|
|
17798
17400
|
*
|
|
@@ -17808,14 +17410,14 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17808
17410
|
* @param callback - Optional callback that handles the response.
|
|
17809
17411
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
17810
17412
|
*/
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
|
|
17814
|
-
|
|
17815
|
-
|
|
17816
|
-
|
|
17413
|
+
get(params: Params$Resource$Projects$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
17414
|
+
get(params?: Params$Resource$Projects$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaProject>>;
|
|
17415
|
+
get(params: Params$Resource$Projects$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
17416
|
+
get(params: Params$Resource$Projects$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
|
|
17417
|
+
get(params: Params$Resource$Projects$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
|
|
17418
|
+
get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
|
|
17817
17419
|
/**
|
|
17818
|
-
*
|
|
17420
|
+
* Updates the editable settings of a Discovery Engine Project.
|
|
17819
17421
|
* @example
|
|
17820
17422
|
* ```js
|
|
17821
17423
|
* // Before running the sample:
|
|
@@ -17838,7 +17440,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17838
17440
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
17839
17441
|
* scopes: [
|
|
17840
17442
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
17841
|
-
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
17842
17443
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
17843
17444
|
* ],
|
|
17844
17445
|
* });
|
|
@@ -17848,29 +17449,35 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17848
17449
|
* google.options({auth: authClient});
|
|
17849
17450
|
*
|
|
17850
17451
|
* // Do the magic
|
|
17851
|
-
* const res = await discoveryengine.
|
|
17852
|
-
* //
|
|
17853
|
-
* name: 'projects/my-project
|
|
17452
|
+
* const res = await discoveryengine.projects.patch({
|
|
17453
|
+
* // 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.
|
|
17454
|
+
* name: 'projects/my-project',
|
|
17455
|
+
* // Optional. The list of fields to update. Supported fields: * `customer_provided_config`
|
|
17456
|
+
* updateMask: 'placeholder-value',
|
|
17854
17457
|
*
|
|
17855
17458
|
* // Request body metadata
|
|
17856
17459
|
* requestBody: {
|
|
17857
17460
|
* // request body parameters
|
|
17858
17461
|
* // {
|
|
17859
|
-
* // "
|
|
17860
|
-
* // "
|
|
17462
|
+
* // "configurableBillingStatus": {},
|
|
17463
|
+
* // "createTime": "my_createTime",
|
|
17464
|
+
* // "customerProvidedConfig": {},
|
|
17465
|
+
* // "name": "my_name",
|
|
17466
|
+
* // "provisionCompletionTime": "my_provisionCompletionTime",
|
|
17467
|
+
* // "serviceTermsMap": {}
|
|
17861
17468
|
* // }
|
|
17862
17469
|
* },
|
|
17863
|
-
* media: {
|
|
17864
|
-
* mimeType: 'placeholder-value',
|
|
17865
|
-
* body: 'placeholder-value',
|
|
17866
|
-
* },
|
|
17867
17470
|
* });
|
|
17868
17471
|
* console.log(res.data);
|
|
17869
17472
|
*
|
|
17870
17473
|
* // Example response
|
|
17871
17474
|
* // {
|
|
17872
|
-
* // "
|
|
17873
|
-
* // "
|
|
17475
|
+
* // "configurableBillingStatus": {},
|
|
17476
|
+
* // "createTime": "my_createTime",
|
|
17477
|
+
* // "customerProvidedConfig": {},
|
|
17478
|
+
* // "name": "my_name",
|
|
17479
|
+
* // "provisionCompletionTime": "my_provisionCompletionTime",
|
|
17480
|
+
* // "serviceTermsMap": {}
|
|
17874
17481
|
* // }
|
|
17875
17482
|
* }
|
|
17876
17483
|
*
|
|
@@ -17886,57 +17493,14 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17886
17493
|
* @param callback - Optional callback that handles the response.
|
|
17887
17494
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
17888
17495
|
*/
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
|
|
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);
|
|
17496
|
+
patch(params: Params$Resource$Projects$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
17497
|
+
patch(params?: Params$Resource$Projects$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaProject>>;
|
|
17498
|
+
patch(params: Params$Resource$Projects$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
17499
|
+
patch(params: Params$Resource$Projects$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
|
|
17500
|
+
patch(params: Params$Resource$Projects$Patch, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
|
|
17501
|
+
patch(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProject>): void;
|
|
17938
17502
|
/**
|
|
17939
|
-
*
|
|
17503
|
+
* 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
17504
|
* @example
|
|
17941
17505
|
* ```js
|
|
17942
17506
|
* // Before running the sample:
|
|
@@ -17968,20 +17532,29 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17968
17532
|
* google.options({auth: authClient});
|
|
17969
17533
|
*
|
|
17970
17534
|
* // Do the magic
|
|
17971
|
-
* const res = await discoveryengine.projects.
|
|
17535
|
+
* const res = await discoveryengine.projects.provision({
|
|
17972
17536
|
* // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
|
|
17973
17537
|
* name: 'projects/my-project',
|
|
17538
|
+
*
|
|
17539
|
+
* // Request body metadata
|
|
17540
|
+
* requestBody: {
|
|
17541
|
+
* // request body parameters
|
|
17542
|
+
* // {
|
|
17543
|
+
* // "acceptDataUseTerms": false,
|
|
17544
|
+
* // "dataUseTermsVersion": "my_dataUseTermsVersion",
|
|
17545
|
+
* // "saasParams": {}
|
|
17546
|
+
* // }
|
|
17547
|
+
* },
|
|
17974
17548
|
* });
|
|
17975
17549
|
* console.log(res.data);
|
|
17976
17550
|
*
|
|
17977
17551
|
* // Example response
|
|
17978
17552
|
* // {
|
|
17979
|
-
* // "
|
|
17980
|
-
* // "
|
|
17981
|
-
* // "
|
|
17553
|
+
* // "done": false,
|
|
17554
|
+
* // "error": {},
|
|
17555
|
+
* // "metadata": {},
|
|
17982
17556
|
* // "name": "my_name",
|
|
17983
|
-
* // "
|
|
17984
|
-
* // "serviceTermsMap": {}
|
|
17557
|
+
* // "response": {}
|
|
17985
17558
|
* // }
|
|
17986
17559
|
* }
|
|
17987
17560
|
*
|
|
@@ -17997,174 +17570,14 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
17997
17570
|
* @param callback - Optional callback that handles the response.
|
|
17998
17571
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
17999
17572
|
*/
|
|
18000
|
-
|
|
18001
|
-
|
|
18002
|
-
|
|
18003
|
-
|
|
18004
|
-
|
|
18005
|
-
|
|
17573
|
+
provision(params: Params$Resource$Projects$Provision, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
17574
|
+
provision(params?: Params$Resource$Projects$Provision, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
17575
|
+
provision(params: Params$Resource$Projects$Provision, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
17576
|
+
provision(params: Params$Resource$Projects$Provision, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
17577
|
+
provision(params: Params$Resource$Projects$Provision, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
17578
|
+
provision(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
18006
17579
|
/**
|
|
18007
|
-
* Updates the
|
|
18008
|
-
* @example
|
|
18009
|
-
* ```js
|
|
18010
|
-
* // Before running the sample:
|
|
18011
|
-
* // - Enable the API at:
|
|
18012
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
18013
|
-
* // - Login into gcloud by running:
|
|
18014
|
-
* // ```sh
|
|
18015
|
-
* // $ gcloud auth application-default login
|
|
18016
|
-
* // ```
|
|
18017
|
-
* // - Install the npm module by running:
|
|
18018
|
-
* // ```sh
|
|
18019
|
-
* // $ npm install googleapis
|
|
18020
|
-
* // ```
|
|
18021
|
-
*
|
|
18022
|
-
* const {google} = require('googleapis');
|
|
18023
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
18024
|
-
*
|
|
18025
|
-
* async function main() {
|
|
18026
|
-
* const auth = new google.auth.GoogleAuth({
|
|
18027
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
18028
|
-
* scopes: [
|
|
18029
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
18030
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
18031
|
-
* ],
|
|
18032
|
-
* });
|
|
18033
|
-
*
|
|
18034
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
18035
|
-
* const authClient = await auth.getClient();
|
|
18036
|
-
* google.options({auth: authClient});
|
|
18037
|
-
*
|
|
18038
|
-
* // 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',
|
|
18044
|
-
*
|
|
18045
|
-
* // Request body metadata
|
|
18046
|
-
* requestBody: {
|
|
18047
|
-
* // request body parameters
|
|
18048
|
-
* // {
|
|
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)
|
|
17580
|
+
* 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
17581
|
* @example
|
|
18169
17582
|
* ```js
|
|
18170
17583
|
* // Before running the sample:
|
|
@@ -18512,7 +17925,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
18512
17925
|
getCmekConfig(params: Params$Resource$Projects$Locations$Getcmekconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCmekConfig>): void;
|
|
18513
17926
|
getCmekConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCmekConfig>): void;
|
|
18514
17927
|
/**
|
|
18515
|
-
*
|
|
17928
|
+
* 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
17929
|
* @example
|
|
18517
17930
|
* ```js
|
|
18518
17931
|
* // Before running the sample:
|
|
@@ -18544,31 +17957,26 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
18544
17957
|
* google.options({auth: authClient});
|
|
18545
17958
|
*
|
|
18546
17959
|
* // Do the magic
|
|
18547
|
-
* const res =
|
|
18548
|
-
*
|
|
18549
|
-
*
|
|
18550
|
-
*
|
|
18551
|
-
*
|
|
18552
|
-
*
|
|
18553
|
-
* //
|
|
18554
|
-
*
|
|
18555
|
-
* //
|
|
18556
|
-
*
|
|
18557
|
-
*
|
|
18558
|
-
*
|
|
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
|
-
* });
|
|
17960
|
+
* const res = await discoveryengine.projects.locations.obtainCrawlRate({
|
|
17961
|
+
* // Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
|
|
17962
|
+
* location: 'projects/my-project/locations/my-location',
|
|
17963
|
+
*
|
|
17964
|
+
* // Request body metadata
|
|
17965
|
+
* requestBody: {
|
|
17966
|
+
* // request body parameters
|
|
17967
|
+
* // {
|
|
17968
|
+
* // "crawlRateScope": "my_crawlRateScope"
|
|
17969
|
+
* // }
|
|
17970
|
+
* },
|
|
17971
|
+
* });
|
|
18566
17972
|
* console.log(res.data);
|
|
18567
17973
|
*
|
|
18568
17974
|
* // Example response
|
|
18569
17975
|
* // {
|
|
18570
|
-
* // "
|
|
18571
|
-
* // "
|
|
17976
|
+
* // "dedicatedCrawlRateTimeSeries": {},
|
|
17977
|
+
* // "error": {},
|
|
17978
|
+
* // "organicCrawlRateTimeSeries": {},
|
|
17979
|
+
* // "state": "my_state"
|
|
18572
17980
|
* // }
|
|
18573
17981
|
* }
|
|
18574
17982
|
*
|
|
@@ -18584,14 +17992,14 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
18584
17992
|
* @param callback - Optional callback that handles the response.
|
|
18585
17993
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
18586
17994
|
*/
|
|
18587
|
-
|
|
18588
|
-
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
17995
|
+
obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
17996
|
+
obtainCrawlRate(params?: Params$Resource$Projects$Locations$Obtaincrawlrate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>>;
|
|
17997
|
+
obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
17998
|
+
obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
|
|
17999
|
+
obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
|
|
18000
|
+
obtainCrawlRate(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse>): void;
|
|
18593
18001
|
/**
|
|
18594
|
-
*
|
|
18002
|
+
* Queries configurable pricing usage stats for a project.
|
|
18595
18003
|
* @example
|
|
18596
18004
|
* ```js
|
|
18597
18005
|
* // Before running the sample:
|
|
@@ -18623,26 +18031,34 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
18623
18031
|
* google.options({auth: authClient});
|
|
18624
18032
|
*
|
|
18625
18033
|
* // Do the magic
|
|
18626
|
-
* const res =
|
|
18627
|
-
*
|
|
18628
|
-
*
|
|
18629
|
-
*
|
|
18630
|
-
*
|
|
18631
|
-
*
|
|
18632
|
-
*
|
|
18633
|
-
*
|
|
18634
|
-
*
|
|
18635
|
-
*
|
|
18636
|
-
*
|
|
18637
|
-
*
|
|
18034
|
+
* const res =
|
|
18035
|
+
* await discoveryengine.projects.locations.queryConfigurablePricingUsageStats(
|
|
18036
|
+
* {
|
|
18037
|
+
* // Required. The location to query usage stats for.
|
|
18038
|
+
* location: 'placeholder-value',
|
|
18039
|
+
* // Optional. The metric types to return usage for.
|
|
18040
|
+
* metricTypes: 'placeholder-value',
|
|
18041
|
+
* // Required. The project to query usage stats for. Format: projects/{project\}
|
|
18042
|
+
* project: 'projects/my-project',
|
|
18043
|
+
* // 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.
|
|
18044
|
+
* 'timeRange.endDate.day': 'placeholder-value',
|
|
18045
|
+
* // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
18046
|
+
* 'timeRange.endDate.month': 'placeholder-value',
|
|
18047
|
+
* // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
18048
|
+
* 'timeRange.endDate.year': 'placeholder-value',
|
|
18049
|
+
* // 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.
|
|
18050
|
+
* 'timeRange.startDate.day': 'placeholder-value',
|
|
18051
|
+
* // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
18052
|
+
* 'timeRange.startDate.month': 'placeholder-value',
|
|
18053
|
+
* // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
18054
|
+
* 'timeRange.startDate.year': 'placeholder-value',
|
|
18055
|
+
* },
|
|
18056
|
+
* );
|
|
18638
18057
|
* console.log(res.data);
|
|
18639
18058
|
*
|
|
18640
18059
|
* // Example response
|
|
18641
18060
|
* // {
|
|
18642
|
-
* // "
|
|
18643
|
-
* // "error": {},
|
|
18644
|
-
* // "organicCrawlRateTimeSeries": {},
|
|
18645
|
-
* // "state": "my_state"
|
|
18061
|
+
* // "metricUsages": []
|
|
18646
18062
|
* // }
|
|
18647
18063
|
* }
|
|
18648
18064
|
*
|
|
@@ -18658,12 +18074,12 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
18658
18074
|
* @param callback - Optional callback that handles the response.
|
|
18659
18075
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
18660
18076
|
*/
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
|
|
18665
|
-
|
|
18666
|
-
|
|
18077
|
+
queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
18078
|
+
queryConfigurablePricingUsageStats(params?: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>>;
|
|
18079
|
+
queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
18080
|
+
queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>): void;
|
|
18081
|
+
queryConfigurablePricingUsageStats(params: Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>): void;
|
|
18082
|
+
queryConfigurablePricingUsageStats(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaQueryConfigurablePricingUsageStatsResponse>): void;
|
|
18667
18083
|
/**
|
|
18668
18084
|
* 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
18085
|
* @example
|
|
@@ -19195,15 +18611,29 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
19195
18611
|
*/
|
|
19196
18612
|
name?: string;
|
|
19197
18613
|
}
|
|
19198
|
-
export interface Params$Resource$Projects$Locations$
|
|
18614
|
+
export interface Params$Resource$Projects$Locations$Obtaincrawlrate extends StandardParameters {
|
|
18615
|
+
/**
|
|
18616
|
+
* Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
|
|
18617
|
+
*/
|
|
18618
|
+
location?: string;
|
|
18619
|
+
/**
|
|
18620
|
+
* Request body metadata
|
|
18621
|
+
*/
|
|
18622
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaObtainCrawlRateRequest;
|
|
18623
|
+
}
|
|
18624
|
+
export interface Params$Resource$Projects$Locations$Queryconfigurablepricingusagestats extends StandardParameters {
|
|
18625
|
+
/**
|
|
18626
|
+
* Required. The location to query usage stats for.
|
|
18627
|
+
*/
|
|
18628
|
+
location?: string;
|
|
19199
18629
|
/**
|
|
19200
18630
|
* Optional. The metric types to return usage for.
|
|
19201
18631
|
*/
|
|
19202
18632
|
metricTypes?: string[];
|
|
19203
18633
|
/**
|
|
19204
|
-
* Required. The
|
|
18634
|
+
* Required. The project to query usage stats for. Format: projects/{project\}
|
|
19205
18635
|
*/
|
|
19206
|
-
|
|
18636
|
+
project?: string;
|
|
19207
18637
|
/**
|
|
19208
18638
|
* 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
18639
|
*/
|
|
@@ -19229,16 +18659,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
19229
18659
|
*/
|
|
19230
18660
|
'timeRange.startDate.year'?: number;
|
|
19231
18661
|
}
|
|
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
18662
|
export interface Params$Resource$Projects$Locations$Removededicatedcrawlrate extends StandardParameters {
|
|
19243
18663
|
/**
|
|
19244
18664
|
* Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
|
|
@@ -21193,7 +20613,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
21193
20613
|
* pageSize: 'placeholder-value',
|
|
21194
20614
|
* // The standard list page token.
|
|
21195
20615
|
* 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
|
|
20616
|
+
* // 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
20617
|
* returnPartialSuccess: 'placeholder-value',
|
|
21198
20618
|
* },
|
|
21199
20619
|
* );
|
|
@@ -21250,7 +20670,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
21250
20670
|
*/
|
|
21251
20671
|
pageToken?: string;
|
|
21252
20672
|
/**
|
|
21253
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
20673
|
+
* 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
20674
|
*/
|
|
21255
20675
|
returnPartialSuccess?: boolean;
|
|
21256
20676
|
}
|
|
@@ -21373,6 +20793,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
21373
20793
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
21374
20794
|
* scopes: [
|
|
21375
20795
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
20796
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
21376
20797
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
21377
20798
|
* ],
|
|
21378
20799
|
* });
|
|
@@ -21483,6 +20904,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
21483
20904
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
21484
20905
|
* scopes: [
|
|
21485
20906
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
20907
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
21486
20908
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
21487
20909
|
* ],
|
|
21488
20910
|
* });
|
|
@@ -21551,6 +20973,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
21551
20973
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
21552
20974
|
* scopes: [
|
|
21553
20975
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
20976
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
21554
20977
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
21555
20978
|
* ],
|
|
21556
20979
|
* });
|
|
@@ -23606,7 +23029,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
23606
23029
|
* pageSize: 'placeholder-value',
|
|
23607
23030
|
* // The standard list page token.
|
|
23608
23031
|
* 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
|
|
23032
|
+
* // 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
23033
|
* returnPartialSuccess: 'placeholder-value',
|
|
23611
23034
|
* },
|
|
23612
23035
|
* );
|
|
@@ -23673,7 +23096,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
23673
23096
|
*/
|
|
23674
23097
|
pageToken?: string;
|
|
23675
23098
|
/**
|
|
23676
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
23099
|
+
* 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
23100
|
*/
|
|
23678
23101
|
returnPartialSuccess?: boolean;
|
|
23679
23102
|
}
|
|
@@ -25171,7 +24594,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
25171
24594
|
* pageSize: 'placeholder-value',
|
|
25172
24595
|
* // The standard list page token.
|
|
25173
24596
|
* 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
|
|
24597
|
+
* // 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
24598
|
* returnPartialSuccess: 'placeholder-value',
|
|
25176
24599
|
* },
|
|
25177
24600
|
* );
|
|
@@ -25228,7 +24651,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
25228
24651
|
*/
|
|
25229
24652
|
pageToken?: string;
|
|
25230
24653
|
/**
|
|
25231
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
24654
|
+
* 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
24655
|
*/
|
|
25233
24656
|
returnPartialSuccess?: boolean;
|
|
25234
24657
|
}
|
|
@@ -25349,7 +24772,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
25349
24772
|
* pageSize: 'placeholder-value',
|
|
25350
24773
|
* // The standard list page token.
|
|
25351
24774
|
* 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
|
|
24775
|
+
* // 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
24776
|
* returnPartialSuccess: 'placeholder-value',
|
|
25354
24777
|
* },
|
|
25355
24778
|
* );
|
|
@@ -25406,7 +24829,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
25406
24829
|
*/
|
|
25407
24830
|
pageToken?: string;
|
|
25408
24831
|
/**
|
|
25409
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
24832
|
+
* 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
24833
|
*/
|
|
25411
24834
|
returnPartialSuccess?: boolean;
|
|
25412
24835
|
}
|
|
@@ -25964,7 +25387,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
25964
25387
|
* pageSize: 'placeholder-value',
|
|
25965
25388
|
* // The standard list page token.
|
|
25966
25389
|
* 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
|
|
25390
|
+
* // 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
25391
|
* returnPartialSuccess: 'placeholder-value',
|
|
25969
25392
|
* },
|
|
25970
25393
|
* );
|
|
@@ -26021,7 +25444,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26021
25444
|
*/
|
|
26022
25445
|
pageToken?: string;
|
|
26023
25446
|
/**
|
|
26024
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
25447
|
+
* 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
25448
|
*/
|
|
26026
25449
|
returnPartialSuccess?: boolean;
|
|
26027
25450
|
}
|
|
@@ -26052,6 +25475,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26052
25475
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
26053
25476
|
* scopes: [
|
|
26054
25477
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
25478
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
26055
25479
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
26056
25480
|
* ],
|
|
26057
25481
|
* });
|
|
@@ -26117,7 +25541,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26117
25541
|
answer(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
26118
25542
|
answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
26119
25543
|
/**
|
|
26120
|
-
*
|
|
25544
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
26121
25545
|
* @example
|
|
26122
25546
|
* ```js
|
|
26123
25547
|
* // Before running the sample:
|
|
@@ -26150,41 +25574,16 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26150
25574
|
*
|
|
26151
25575
|
* // Do the magic
|
|
26152
25576
|
* const res =
|
|
26153
|
-
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.
|
|
25577
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
|
|
26154
25578
|
* {
|
|
26155
|
-
* // Required. The resource name of the ServingConfig to
|
|
25579
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
26156
25580
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
26157
25581
|
* },
|
|
26158
25582
|
* );
|
|
26159
25583
|
* console.log(res.data);
|
|
26160
25584
|
*
|
|
26161
25585
|
* // Example response
|
|
26162
|
-
* // {
|
|
26163
|
-
* // "answerGenerationSpec": {},
|
|
26164
|
-
* // "boostControlIds": [],
|
|
26165
|
-
* // "createTime": "my_createTime",
|
|
26166
|
-
* // "customFineTuningSpec": {},
|
|
26167
|
-
* // "displayName": "my_displayName",
|
|
26168
|
-
* // "dissociateControlIds": [],
|
|
26169
|
-
* // "diversityLevel": "my_diversityLevel",
|
|
26170
|
-
* // "embeddingConfig": {},
|
|
26171
|
-
* // "filterControlIds": [],
|
|
26172
|
-
* // "genericConfig": {},
|
|
26173
|
-
* // "guidedSearchSpec": {},
|
|
26174
|
-
* // "ignoreControlIds": [],
|
|
26175
|
-
* // "mediaConfig": {},
|
|
26176
|
-
* // "modelId": "my_modelId",
|
|
26177
|
-
* // "name": "my_name",
|
|
26178
|
-
* // "onewaySynonymsControlIds": [],
|
|
26179
|
-
* // "personalizationSpec": {},
|
|
26180
|
-
* // "promoteControlIds": [],
|
|
26181
|
-
* // "rankingExpression": "my_rankingExpression",
|
|
26182
|
-
* // "redirectControlIds": [],
|
|
26183
|
-
* // "replacementControlIds": [],
|
|
26184
|
-
* // "solutionType": "my_solutionType",
|
|
26185
|
-
* // "synonymsControlIds": [],
|
|
26186
|
-
* // "updateTime": "my_updateTime"
|
|
26187
|
-
* // }
|
|
25586
|
+
* // {}
|
|
26188
25587
|
* }
|
|
26189
25588
|
*
|
|
26190
25589
|
* main().catch(e => {
|
|
@@ -26199,14 +25598,103 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26199
25598
|
* @param callback - Optional callback that handles the response.
|
|
26200
25599
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26201
25600
|
*/
|
|
26202
|
-
|
|
26203
|
-
|
|
26204
|
-
|
|
26205
|
-
|
|
26206
|
-
|
|
26207
|
-
|
|
25601
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
25602
|
+
delete(params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
25603
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
25604
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
25605
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
25606
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
26208
25607
|
/**
|
|
26209
|
-
*
|
|
25608
|
+
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
25609
|
+
* @example
|
|
25610
|
+
* ```js
|
|
25611
|
+
* // Before running the sample:
|
|
25612
|
+
* // - Enable the API at:
|
|
25613
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
25614
|
+
* // - Login into gcloud by running:
|
|
25615
|
+
* // ```sh
|
|
25616
|
+
* // $ gcloud auth application-default login
|
|
25617
|
+
* // ```
|
|
25618
|
+
* // - Install the npm module by running:
|
|
25619
|
+
* // ```sh
|
|
25620
|
+
* // $ npm install googleapis
|
|
25621
|
+
* // ```
|
|
25622
|
+
*
|
|
25623
|
+
* const {google} = require('googleapis');
|
|
25624
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
25625
|
+
*
|
|
25626
|
+
* async function main() {
|
|
25627
|
+
* const auth = new google.auth.GoogleAuth({
|
|
25628
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
25629
|
+
* scopes: [
|
|
25630
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
25631
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
25632
|
+
* ],
|
|
25633
|
+
* });
|
|
25634
|
+
*
|
|
25635
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
25636
|
+
* const authClient = await auth.getClient();
|
|
25637
|
+
* google.options({auth: authClient});
|
|
25638
|
+
*
|
|
25639
|
+
* // Do the magic
|
|
25640
|
+
* const res =
|
|
25641
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.get(
|
|
25642
|
+
* {
|
|
25643
|
+
* // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
25644
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
25645
|
+
* },
|
|
25646
|
+
* );
|
|
25647
|
+
* console.log(res.data);
|
|
25648
|
+
*
|
|
25649
|
+
* // Example response
|
|
25650
|
+
* // {
|
|
25651
|
+
* // "answerGenerationSpec": {},
|
|
25652
|
+
* // "boostControlIds": [],
|
|
25653
|
+
* // "createTime": "my_createTime",
|
|
25654
|
+
* // "customFineTuningSpec": {},
|
|
25655
|
+
* // "displayName": "my_displayName",
|
|
25656
|
+
* // "dissociateControlIds": [],
|
|
25657
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
25658
|
+
* // "embeddingConfig": {},
|
|
25659
|
+
* // "filterControlIds": [],
|
|
25660
|
+
* // "genericConfig": {},
|
|
25661
|
+
* // "guidedSearchSpec": {},
|
|
25662
|
+
* // "ignoreControlIds": [],
|
|
25663
|
+
* // "mediaConfig": {},
|
|
25664
|
+
* // "modelId": "my_modelId",
|
|
25665
|
+
* // "name": "my_name",
|
|
25666
|
+
* // "onewaySynonymsControlIds": [],
|
|
25667
|
+
* // "personalizationSpec": {},
|
|
25668
|
+
* // "promoteControlIds": [],
|
|
25669
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
25670
|
+
* // "redirectControlIds": [],
|
|
25671
|
+
* // "replacementControlIds": [],
|
|
25672
|
+
* // "solutionType": "my_solutionType",
|
|
25673
|
+
* // "synonymsControlIds": [],
|
|
25674
|
+
* // "updateTime": "my_updateTime"
|
|
25675
|
+
* // }
|
|
25676
|
+
* }
|
|
25677
|
+
*
|
|
25678
|
+
* main().catch(e => {
|
|
25679
|
+
* console.error(e);
|
|
25680
|
+
* throw e;
|
|
25681
|
+
* });
|
|
25682
|
+
*
|
|
25683
|
+
* ```
|
|
25684
|
+
*
|
|
25685
|
+
* @param params - Parameters for request
|
|
25686
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
25687
|
+
* @param callback - Optional callback that handles the response.
|
|
25688
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
25689
|
+
*/
|
|
25690
|
+
get(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
25691
|
+
get(params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>>;
|
|
25692
|
+
get(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
25693
|
+
get(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>): void;
|
|
25694
|
+
get(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>): void;
|
|
25695
|
+
get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaServingConfig>): void;
|
|
25696
|
+
/**
|
|
25697
|
+
* Lists all ServingConfigs linked to this dataStore.
|
|
26210
25698
|
* @example
|
|
26211
25699
|
* ```js
|
|
26212
25700
|
* // Before running the sample:
|
|
@@ -26531,6 +26019,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26531
26019
|
* // "branch": "my_branch",
|
|
26532
26020
|
* // "canonicalFilter": "my_canonicalFilter",
|
|
26533
26021
|
* // "contentSearchSpec": {},
|
|
26022
|
+
* // "crowdingSpecs": [],
|
|
26534
26023
|
* // "customFineTuningSpec": {},
|
|
26535
26024
|
* // "dataStoreSpecs": [],
|
|
26536
26025
|
* // "displaySpec": {},
|
|
@@ -26543,6 +26032,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26543
26032
|
* // "offset": 0,
|
|
26544
26033
|
* // "oneBoxPageSize": 0,
|
|
26545
26034
|
* // "orderBy": "my_orderBy",
|
|
26035
|
+
* // "pageCategories": [],
|
|
26546
26036
|
* // "pageSize": 0,
|
|
26547
26037
|
* // "pageToken": "my_pageToken",
|
|
26548
26038
|
* // "params": {},
|
|
@@ -26586,6 +26076,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26586
26076
|
* // "redirectUri": "my_redirectUri",
|
|
26587
26077
|
* // "results": [],
|
|
26588
26078
|
* // "searchLinkPromotions": [],
|
|
26079
|
+
* // "semanticState": "my_semanticState",
|
|
26589
26080
|
* // "sessionInfo": {},
|
|
26590
26081
|
* // "suggestedQuery": "my_suggestedQuery",
|
|
26591
26082
|
* // "summary": {},
|
|
@@ -26660,6 +26151,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26660
26151
|
* // "branch": "my_branch",
|
|
26661
26152
|
* // "canonicalFilter": "my_canonicalFilter",
|
|
26662
26153
|
* // "contentSearchSpec": {},
|
|
26154
|
+
* // "crowdingSpecs": [],
|
|
26663
26155
|
* // "customFineTuningSpec": {},
|
|
26664
26156
|
* // "dataStoreSpecs": [],
|
|
26665
26157
|
* // "displaySpec": {},
|
|
@@ -26672,6 +26164,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26672
26164
|
* // "offset": 0,
|
|
26673
26165
|
* // "oneBoxPageSize": 0,
|
|
26674
26166
|
* // "orderBy": "my_orderBy",
|
|
26167
|
+
* // "pageCategories": [],
|
|
26675
26168
|
* // "pageSize": 0,
|
|
26676
26169
|
* // "pageToken": "my_pageToken",
|
|
26677
26170
|
* // "params": {},
|
|
@@ -26715,6 +26208,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26715
26208
|
* // "redirectUri": "my_redirectUri",
|
|
26716
26209
|
* // "results": [],
|
|
26717
26210
|
* // "searchLinkPromotions": [],
|
|
26211
|
+
* // "semanticState": "my_semanticState",
|
|
26718
26212
|
* // "sessionInfo": {},
|
|
26719
26213
|
* // "suggestedQuery": "my_suggestedQuery",
|
|
26720
26214
|
* // "summary": {},
|
|
@@ -26764,6 +26258,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26764
26258
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
26765
26259
|
* scopes: [
|
|
26766
26260
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
26261
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
26767
26262
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
26768
26263
|
* ],
|
|
26769
26264
|
* });
|
|
@@ -26839,6 +26334,12 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
26839
26334
|
*/
|
|
26840
26335
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
|
|
26841
26336
|
}
|
|
26337
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
26338
|
+
/**
|
|
26339
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
26340
|
+
*/
|
|
26341
|
+
name?: string;
|
|
26342
|
+
}
|
|
26842
26343
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
26843
26344
|
/**
|
|
26844
26345
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -28200,7 +27701,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
28200
27701
|
* pageSize: 'placeholder-value',
|
|
28201
27702
|
* // The standard list page token.
|
|
28202
27703
|
* 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
|
|
27704
|
+
* // 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
27705
|
* returnPartialSuccess: 'placeholder-value',
|
|
28205
27706
|
* },
|
|
28206
27707
|
* );
|
|
@@ -28257,7 +27758,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
28257
27758
|
*/
|
|
28258
27759
|
pageToken?: string;
|
|
28259
27760
|
/**
|
|
28260
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
27761
|
+
* 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
27762
|
*/
|
|
28262
27763
|
returnPartialSuccess?: boolean;
|
|
28263
27764
|
}
|
|
@@ -29161,7 +28662,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
29161
28662
|
* pageSize: 'placeholder-value',
|
|
29162
28663
|
* // The standard list page token.
|
|
29163
28664
|
* 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
|
|
28665
|
+
* // 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
28666
|
* returnPartialSuccess: 'placeholder-value',
|
|
29166
28667
|
* },
|
|
29167
28668
|
* );
|
|
@@ -29218,7 +28719,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
29218
28719
|
*/
|
|
29219
28720
|
pageToken?: string;
|
|
29220
28721
|
/**
|
|
29221
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
28722
|
+
* 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
28723
|
*/
|
|
29223
28724
|
returnPartialSuccess?: boolean;
|
|
29224
28725
|
}
|
|
@@ -31064,6 +30565,163 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31064
30565
|
agents: Resource$Projects$Locations$Collections$Engines$Assistants$Agents;
|
|
31065
30566
|
cannedQueries: Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries;
|
|
31066
30567
|
constructor(context: APIRequestContext);
|
|
30568
|
+
/**
|
|
30569
|
+
* Creates 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.create(
|
|
30604
|
+
* {
|
|
30605
|
+
* // 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.
|
|
30606
|
+
* assistantId: 'placeholder-value',
|
|
30607
|
+
* // Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
30608
|
+
* parent:
|
|
30609
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
|
|
30610
|
+
*
|
|
30611
|
+
* // Request body metadata
|
|
30612
|
+
* requestBody: {
|
|
30613
|
+
* // request body parameters
|
|
30614
|
+
* // {
|
|
30615
|
+
* // "customerPolicy": {},
|
|
30616
|
+
* // "description": "my_description",
|
|
30617
|
+
* // "disableLocationContext": false,
|
|
30618
|
+
* // "displayName": "my_displayName",
|
|
30619
|
+
* // "enabledTools": {},
|
|
30620
|
+
* // "generationConfig": {},
|
|
30621
|
+
* // "name": "my_name",
|
|
30622
|
+
* // "webGroundingType": "my_webGroundingType"
|
|
30623
|
+
* // }
|
|
30624
|
+
* },
|
|
30625
|
+
* },
|
|
30626
|
+
* );
|
|
30627
|
+
* console.log(res.data);
|
|
30628
|
+
*
|
|
30629
|
+
* // Example response
|
|
30630
|
+
* // {
|
|
30631
|
+
* // "customerPolicy": {},
|
|
30632
|
+
* // "description": "my_description",
|
|
30633
|
+
* // "disableLocationContext": false,
|
|
30634
|
+
* // "displayName": "my_displayName",
|
|
30635
|
+
* // "enabledTools": {},
|
|
30636
|
+
* // "generationConfig": {},
|
|
30637
|
+
* // "name": "my_name",
|
|
30638
|
+
* // "webGroundingType": "my_webGroundingType"
|
|
30639
|
+
* // }
|
|
30640
|
+
* }
|
|
30641
|
+
*
|
|
30642
|
+
* main().catch(e => {
|
|
30643
|
+
* console.error(e);
|
|
30644
|
+
* throw e;
|
|
30645
|
+
* });
|
|
30646
|
+
*
|
|
30647
|
+
* ```
|
|
30648
|
+
*
|
|
30649
|
+
* @param params - Parameters for request
|
|
30650
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
30651
|
+
* @param callback - Optional callback that handles the response.
|
|
30652
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
30653
|
+
*/
|
|
30654
|
+
create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
30655
|
+
create(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>>;
|
|
30656
|
+
create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
30657
|
+
create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
|
|
30658
|
+
create(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
|
|
30659
|
+
create(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
|
|
30660
|
+
/**
|
|
30661
|
+
* Deletes an Assistant.
|
|
30662
|
+
* @example
|
|
30663
|
+
* ```js
|
|
30664
|
+
* // Before running the sample:
|
|
30665
|
+
* // - Enable the API at:
|
|
30666
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
30667
|
+
* // - Login into gcloud by running:
|
|
30668
|
+
* // ```sh
|
|
30669
|
+
* // $ gcloud auth application-default login
|
|
30670
|
+
* // ```
|
|
30671
|
+
* // - Install the npm module by running:
|
|
30672
|
+
* // ```sh
|
|
30673
|
+
* // $ npm install googleapis
|
|
30674
|
+
* // ```
|
|
30675
|
+
*
|
|
30676
|
+
* const {google} = require('googleapis');
|
|
30677
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
30678
|
+
*
|
|
30679
|
+
* async function main() {
|
|
30680
|
+
* const auth = new google.auth.GoogleAuth({
|
|
30681
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
30682
|
+
* scopes: [
|
|
30683
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
30684
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
30685
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
30686
|
+
* ],
|
|
30687
|
+
* });
|
|
30688
|
+
*
|
|
30689
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
30690
|
+
* const authClient = await auth.getClient();
|
|
30691
|
+
* google.options({auth: authClient});
|
|
30692
|
+
*
|
|
30693
|
+
* // Do the magic
|
|
30694
|
+
* const res =
|
|
30695
|
+
* await discoveryengine.projects.locations.collections.engines.assistants.delete(
|
|
30696
|
+
* {
|
|
30697
|
+
* // 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.
|
|
30698
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant',
|
|
30699
|
+
* },
|
|
30700
|
+
* );
|
|
30701
|
+
* console.log(res.data);
|
|
30702
|
+
*
|
|
30703
|
+
* // Example response
|
|
30704
|
+
* // {}
|
|
30705
|
+
* }
|
|
30706
|
+
*
|
|
30707
|
+
* main().catch(e => {
|
|
30708
|
+
* console.error(e);
|
|
30709
|
+
* throw e;
|
|
30710
|
+
* });
|
|
30711
|
+
*
|
|
30712
|
+
* ```
|
|
30713
|
+
*
|
|
30714
|
+
* @param params - Parameters for request
|
|
30715
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
30716
|
+
* @param callback - Optional callback that handles the response.
|
|
30717
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
30718
|
+
*/
|
|
30719
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
30720
|
+
delete(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
30721
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
30722
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
30723
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
30724
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
31067
30725
|
/**
|
|
31068
30726
|
* Gets an Assistant.
|
|
31069
30727
|
* @example
|
|
@@ -31110,6 +30768,9 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31110
30768
|
* // Example response
|
|
31111
30769
|
* // {
|
|
31112
30770
|
* // "customerPolicy": {},
|
|
30771
|
+
* // "description": "my_description",
|
|
30772
|
+
* // "disableLocationContext": false,
|
|
30773
|
+
* // "displayName": "my_displayName",
|
|
31113
30774
|
* // "enabledTools": {},
|
|
31114
30775
|
* // "generationConfig": {},
|
|
31115
30776
|
* // "name": "my_name",
|
|
@@ -31135,6 +30796,79 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31135
30796
|
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
|
|
31136
30797
|
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
|
|
31137
30798
|
get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAssistant>): void;
|
|
30799
|
+
/**
|
|
30800
|
+
* Lists all Assistants under an Engine.
|
|
30801
|
+
* @example
|
|
30802
|
+
* ```js
|
|
30803
|
+
* // Before running the sample:
|
|
30804
|
+
* // - Enable the API at:
|
|
30805
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
30806
|
+
* // - Login into gcloud by running:
|
|
30807
|
+
* // ```sh
|
|
30808
|
+
* // $ gcloud auth application-default login
|
|
30809
|
+
* // ```
|
|
30810
|
+
* // - Install the npm module by running:
|
|
30811
|
+
* // ```sh
|
|
30812
|
+
* // $ npm install googleapis
|
|
30813
|
+
* // ```
|
|
30814
|
+
*
|
|
30815
|
+
* const {google} = require('googleapis');
|
|
30816
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
30817
|
+
*
|
|
30818
|
+
* async function main() {
|
|
30819
|
+
* const auth = new google.auth.GoogleAuth({
|
|
30820
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
30821
|
+
* scopes: [
|
|
30822
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
30823
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
30824
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
30825
|
+
* ],
|
|
30826
|
+
* });
|
|
30827
|
+
*
|
|
30828
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
30829
|
+
* const authClient = await auth.getClient();
|
|
30830
|
+
* google.options({auth: authClient});
|
|
30831
|
+
*
|
|
30832
|
+
* // Do the magic
|
|
30833
|
+
* const res =
|
|
30834
|
+
* await discoveryengine.projects.locations.collections.engines.assistants.list(
|
|
30835
|
+
* {
|
|
30836
|
+
* // 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.
|
|
30837
|
+
* pageSize: 'placeholder-value',
|
|
30838
|
+
* // 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.
|
|
30839
|
+
* pageToken: 'placeholder-value',
|
|
30840
|
+
* // Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
30841
|
+
* parent:
|
|
30842
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
|
|
30843
|
+
* },
|
|
30844
|
+
* );
|
|
30845
|
+
* console.log(res.data);
|
|
30846
|
+
*
|
|
30847
|
+
* // Example response
|
|
30848
|
+
* // {
|
|
30849
|
+
* // "assistants": [],
|
|
30850
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
30851
|
+
* // }
|
|
30852
|
+
* }
|
|
30853
|
+
*
|
|
30854
|
+
* main().catch(e => {
|
|
30855
|
+
* console.error(e);
|
|
30856
|
+
* throw e;
|
|
30857
|
+
* });
|
|
30858
|
+
*
|
|
30859
|
+
* ```
|
|
30860
|
+
*
|
|
30861
|
+
* @param params - Parameters for request
|
|
30862
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
30863
|
+
* @param callback - Optional callback that handles the response.
|
|
30864
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
30865
|
+
*/
|
|
30866
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
30867
|
+
list(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>>;
|
|
30868
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
30869
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>): void;
|
|
30870
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$List, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>): void;
|
|
30871
|
+
list(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListAssistantsResponse>): void;
|
|
31138
30872
|
/**
|
|
31139
30873
|
* Lists the data for displaying the Agents under an Assistant which are available to the caller.
|
|
31140
30874
|
* @example
|
|
@@ -31172,6 +30906,8 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31172
30906
|
* const res =
|
|
31173
30907
|
* await discoveryengine.projects.locations.collections.engines.assistants.listAvailableAgentViews(
|
|
31174
30908
|
* {
|
|
30909
|
+
* // 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.
|
|
30910
|
+
* adminView: 'placeholder-value',
|
|
31175
30911
|
* // Optional. The origin of the Agent.
|
|
31176
30912
|
* agentOrigin: 'placeholder-value',
|
|
31177
30913
|
* // 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 +31001,9 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31265
31001
|
* // request body parameters
|
|
31266
31002
|
* // {
|
|
31267
31003
|
* // "customerPolicy": {},
|
|
31004
|
+
* // "description": "my_description",
|
|
31005
|
+
* // "disableLocationContext": false,
|
|
31006
|
+
* // "displayName": "my_displayName",
|
|
31268
31007
|
* // "enabledTools": {},
|
|
31269
31008
|
* // "generationConfig": {},
|
|
31270
31009
|
* // "name": "my_name",
|
|
@@ -31278,6 +31017,9 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31278
31017
|
* // Example response
|
|
31279
31018
|
* // {
|
|
31280
31019
|
* // "customerPolicy": {},
|
|
31020
|
+
* // "description": "my_description",
|
|
31021
|
+
* // "disableLocationContext": false,
|
|
31022
|
+
* // "displayName": "my_displayName",
|
|
31281
31023
|
* // "enabledTools": {},
|
|
31282
31024
|
* // "generationConfig": {},
|
|
31283
31025
|
* // "name": "my_name",
|
|
@@ -31362,6 +31104,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31362
31104
|
* // {
|
|
31363
31105
|
* // "answer": {},
|
|
31364
31106
|
* // "assistToken": "my_assistToken",
|
|
31107
|
+
* // "invocationTools": [],
|
|
31365
31108
|
* // "sessionInfo": {}
|
|
31366
31109
|
* // }
|
|
31367
31110
|
* }
|
|
@@ -31385,13 +31128,51 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31385
31128
|
streamAssist(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Streamassist, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistResponse>): void;
|
|
31386
31129
|
streamAssist(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistResponse>): void;
|
|
31387
31130
|
}
|
|
31131
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Create extends StandardParameters {
|
|
31132
|
+
/**
|
|
31133
|
+
* 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.
|
|
31134
|
+
*/
|
|
31135
|
+
assistantId?: string;
|
|
31136
|
+
/**
|
|
31137
|
+
* Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
31138
|
+
*/
|
|
31139
|
+
parent?: string;
|
|
31140
|
+
/**
|
|
31141
|
+
* Request body metadata
|
|
31142
|
+
*/
|
|
31143
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAssistant;
|
|
31144
|
+
}
|
|
31145
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Delete extends StandardParameters {
|
|
31146
|
+
/**
|
|
31147
|
+
* 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.
|
|
31148
|
+
*/
|
|
31149
|
+
name?: string;
|
|
31150
|
+
}
|
|
31388
31151
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Get extends StandardParameters {
|
|
31389
31152
|
/**
|
|
31390
31153
|
* Required. Resource name of Assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}`
|
|
31391
31154
|
*/
|
|
31392
31155
|
name?: string;
|
|
31393
31156
|
}
|
|
31157
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$List extends StandardParameters {
|
|
31158
|
+
/**
|
|
31159
|
+
* 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.
|
|
31160
|
+
*/
|
|
31161
|
+
pageSize?: number;
|
|
31162
|
+
/**
|
|
31163
|
+
* 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.
|
|
31164
|
+
*/
|
|
31165
|
+
pageToken?: string;
|
|
31166
|
+
/**
|
|
31167
|
+
* Required. The parent resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
31168
|
+
*/
|
|
31169
|
+
parent?: string;
|
|
31170
|
+
}
|
|
31394
31171
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Listavailableagentviews extends StandardParameters {
|
|
31172
|
+
/**
|
|
31173
|
+
* 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.
|
|
31174
|
+
*/
|
|
31175
|
+
adminView?: boolean;
|
|
31395
31176
|
/**
|
|
31396
31177
|
* Optional. The origin of the Agent.
|
|
31397
31178
|
*/
|
|
@@ -31452,6 +31233,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31452
31233
|
export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents {
|
|
31453
31234
|
context: APIRequestContext;
|
|
31454
31235
|
files: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files;
|
|
31236
|
+
operations: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations;
|
|
31455
31237
|
constructor(context: APIRequestContext);
|
|
31456
31238
|
/**
|
|
31457
31239
|
* Creates an Agent.
|
|
@@ -31509,6 +31291,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31509
31291
|
* // "displayName": "my_displayName",
|
|
31510
31292
|
* // "icon": {},
|
|
31511
31293
|
* // "languageCode": "my_languageCode",
|
|
31294
|
+
* // "managedAgentDefinition": {},
|
|
31512
31295
|
* // "name": "my_name",
|
|
31513
31296
|
* // "rejectionReason": "my_rejectionReason",
|
|
31514
31297
|
* // "sharingConfig": {},
|
|
@@ -31535,6 +31318,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31535
31318
|
* // "displayName": "my_displayName",
|
|
31536
31319
|
* // "icon": {},
|
|
31537
31320
|
* // "languageCode": "my_languageCode",
|
|
31321
|
+
* // "managedAgentDefinition": {},
|
|
31538
31322
|
* // "name": "my_name",
|
|
31539
31323
|
* // "rejectionReason": "my_rejectionReason",
|
|
31540
31324
|
* // "sharingConfig": {},
|
|
@@ -31690,6 +31474,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31690
31474
|
* // "displayName": "my_displayName",
|
|
31691
31475
|
* // "icon": {},
|
|
31692
31476
|
* // "languageCode": "my_languageCode",
|
|
31477
|
+
* // "managedAgentDefinition": {},
|
|
31693
31478
|
* // "name": "my_name",
|
|
31694
31479
|
* // "rejectionReason": "my_rejectionReason",
|
|
31695
31480
|
* // "sharingConfig": {},
|
|
@@ -31774,6 +31559,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31774
31559
|
* // "displayName": "my_displayName",
|
|
31775
31560
|
* // "icon": {},
|
|
31776
31561
|
* // "languageCode": "my_languageCode",
|
|
31562
|
+
* // "managedAgentDefinition": {},
|
|
31777
31563
|
* // "name": "my_name",
|
|
31778
31564
|
* // "rejectionReason": "my_rejectionReason",
|
|
31779
31565
|
* // "sharingConfig": {},
|
|
@@ -31858,6 +31644,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31858
31644
|
* // "displayName": "my_displayName",
|
|
31859
31645
|
* // "icon": {},
|
|
31860
31646
|
* // "languageCode": "my_languageCode",
|
|
31647
|
+
* // "managedAgentDefinition": {},
|
|
31861
31648
|
* // "name": "my_name",
|
|
31862
31649
|
* // "rejectionReason": "my_rejectionReason",
|
|
31863
31650
|
* // "sharingConfig": {},
|
|
@@ -31923,6 +31710,8 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
31923
31710
|
* const res =
|
|
31924
31711
|
* await discoveryengine.projects.locations.collections.engines.assistants.agents.getAgentView(
|
|
31925
31712
|
* {
|
|
31713
|
+
* // 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.
|
|
31714
|
+
* adminView: 'placeholder-value',
|
|
31926
31715
|
* // 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
31716
|
* languageCode: 'placeholder-value',
|
|
31928
31717
|
* // Optional. The maximum number of suggested prompts to return per agent.
|
|
@@ -32161,6 +31950,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
32161
31950
|
* // "displayName": "my_displayName",
|
|
32162
31951
|
* // "icon": {},
|
|
32163
31952
|
* // "languageCode": "my_languageCode",
|
|
31953
|
+
* // "managedAgentDefinition": {},
|
|
32164
31954
|
* // "name": "my_name",
|
|
32165
31955
|
* // "rejectionReason": "my_rejectionReason",
|
|
32166
31956
|
* // "sharingConfig": {},
|
|
@@ -32187,6 +31977,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
32187
31977
|
* // "displayName": "my_displayName",
|
|
32188
31978
|
* // "icon": {},
|
|
32189
31979
|
* // "languageCode": "my_languageCode",
|
|
31980
|
+
* // "managedAgentDefinition": {},
|
|
32190
31981
|
* // "name": "my_name",
|
|
32191
31982
|
* // "rejectionReason": "my_rejectionReason",
|
|
32192
31983
|
* // "sharingConfig": {},
|
|
@@ -32351,6 +32142,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
32351
32142
|
* // "displayName": "my_displayName",
|
|
32352
32143
|
* // "icon": {},
|
|
32353
32144
|
* // "languageCode": "my_languageCode",
|
|
32145
|
+
* // "managedAgentDefinition": {},
|
|
32354
32146
|
* // "name": "my_name",
|
|
32355
32147
|
* // "rejectionReason": "my_rejectionReason",
|
|
32356
32148
|
* // "sharingConfig": {},
|
|
@@ -32415,6 +32207,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
32415
32207
|
name?: string;
|
|
32416
32208
|
}
|
|
32417
32209
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Getagentview extends StandardParameters {
|
|
32210
|
+
/**
|
|
32211
|
+
* 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.
|
|
32212
|
+
*/
|
|
32213
|
+
adminView?: boolean;
|
|
32418
32214
|
/**
|
|
32419
32215
|
* 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
32216
|
*/
|
|
@@ -32517,7 +32313,97 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
32517
32313
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
32518
32314
|
* scopes: [
|
|
32519
32315
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
32520
|
-
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
32316
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
32317
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
32318
|
+
* ],
|
|
32319
|
+
* });
|
|
32320
|
+
*
|
|
32321
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
32322
|
+
* const authClient = await auth.getClient();
|
|
32323
|
+
* google.options({auth: authClient});
|
|
32324
|
+
*
|
|
32325
|
+
* // Do the magic
|
|
32326
|
+
* const res =
|
|
32327
|
+
* await discoveryengine.projects.locations.collections.engines.assistants.agents.files.import(
|
|
32328
|
+
* {
|
|
32329
|
+
* // Required. The resource name of the Agent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}/agents/{agent\}`
|
|
32330
|
+
* parent:
|
|
32331
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant/agents/my-agent',
|
|
32332
|
+
*
|
|
32333
|
+
* // Request body metadata
|
|
32334
|
+
* requestBody: {
|
|
32335
|
+
* // request body parameters
|
|
32336
|
+
* // {
|
|
32337
|
+
* // "fileName": "my_fileName",
|
|
32338
|
+
* // "mimeType": "my_mimeType"
|
|
32339
|
+
* // }
|
|
32340
|
+
* },
|
|
32341
|
+
* },
|
|
32342
|
+
* );
|
|
32343
|
+
* console.log(res.data);
|
|
32344
|
+
*
|
|
32345
|
+
* // Example response
|
|
32346
|
+
* // {
|
|
32347
|
+
* // "agentFile": {}
|
|
32348
|
+
* // }
|
|
32349
|
+
* }
|
|
32350
|
+
*
|
|
32351
|
+
* main().catch(e => {
|
|
32352
|
+
* console.error(e);
|
|
32353
|
+
* throw e;
|
|
32354
|
+
* });
|
|
32355
|
+
*
|
|
32356
|
+
* ```
|
|
32357
|
+
*
|
|
32358
|
+
* @param params - Parameters for request
|
|
32359
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
32360
|
+
* @param callback - Optional callback that handles the response.
|
|
32361
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
32362
|
+
*/
|
|
32363
|
+
import(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files$Import, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
32364
|
+
import(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files$Import, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaImportAgentFileResponse>>;
|
|
32365
|
+
import(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files$Import, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
32366
|
+
import(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files$Import, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaImportAgentFileResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaImportAgentFileResponse>): void;
|
|
32367
|
+
import(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files$Import, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaImportAgentFileResponse>): void;
|
|
32368
|
+
import(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaImportAgentFileResponse>): void;
|
|
32369
|
+
}
|
|
32370
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files$Import extends StandardParameters {
|
|
32371
|
+
/**
|
|
32372
|
+
* Required. The resource name of the Agent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}/agents/{agent\}`
|
|
32373
|
+
*/
|
|
32374
|
+
parent?: string;
|
|
32375
|
+
/**
|
|
32376
|
+
* Request body metadata
|
|
32377
|
+
*/
|
|
32378
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaImportAgentFileRequest;
|
|
32379
|
+
}
|
|
32380
|
+
export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations {
|
|
32381
|
+
context: APIRequestContext;
|
|
32382
|
+
constructor(context: APIRequestContext);
|
|
32383
|
+
/**
|
|
32384
|
+
* 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.
|
|
32385
|
+
* @example
|
|
32386
|
+
* ```js
|
|
32387
|
+
* // Before running the sample:
|
|
32388
|
+
* // - Enable the API at:
|
|
32389
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
32390
|
+
* // - Login into gcloud by running:
|
|
32391
|
+
* // ```sh
|
|
32392
|
+
* // $ gcloud auth application-default login
|
|
32393
|
+
* // ```
|
|
32394
|
+
* // - Install the npm module by running:
|
|
32395
|
+
* // ```sh
|
|
32396
|
+
* // $ npm install googleapis
|
|
32397
|
+
* // ```
|
|
32398
|
+
*
|
|
32399
|
+
* const {google} = require('googleapis');
|
|
32400
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
32401
|
+
*
|
|
32402
|
+
* async function main() {
|
|
32403
|
+
* const auth = new google.auth.GoogleAuth({
|
|
32404
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
32405
|
+
* scopes: [
|
|
32406
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
32521
32407
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
32522
32408
|
* ],
|
|
32523
32409
|
* });
|
|
@@ -32528,27 +32414,21 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
32528
32414
|
*
|
|
32529
32415
|
* // Do the magic
|
|
32530
32416
|
* const res =
|
|
32531
|
-
* await discoveryengine.projects.locations.collections.engines.assistants.agents.
|
|
32417
|
+
* await discoveryengine.projects.locations.collections.engines.assistants.agents.operations.get(
|
|
32532
32418
|
* {
|
|
32533
|
-
* //
|
|
32534
|
-
*
|
|
32535
|
-
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant/agents/my-agent',
|
|
32536
|
-
*
|
|
32537
|
-
* // Request body metadata
|
|
32538
|
-
* requestBody: {
|
|
32539
|
-
* // request body parameters
|
|
32540
|
-
* // {
|
|
32541
|
-
* // "fileName": "my_fileName",
|
|
32542
|
-
* // "mimeType": "my_mimeType"
|
|
32543
|
-
* // }
|
|
32544
|
-
* },
|
|
32419
|
+
* // The name of the operation resource.
|
|
32420
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant/agents/my-agent/operations/my-operation',
|
|
32545
32421
|
* },
|
|
32546
32422
|
* );
|
|
32547
32423
|
* console.log(res.data);
|
|
32548
32424
|
*
|
|
32549
32425
|
* // Example response
|
|
32550
32426
|
* // {
|
|
32551
|
-
* // "
|
|
32427
|
+
* // "done": false,
|
|
32428
|
+
* // "error": {},
|
|
32429
|
+
* // "metadata": {},
|
|
32430
|
+
* // "name": "my_name",
|
|
32431
|
+
* // "response": {}
|
|
32552
32432
|
* // }
|
|
32553
32433
|
* }
|
|
32554
32434
|
*
|
|
@@ -32564,22 +32444,18 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
32564
32444
|
* @param callback - Optional callback that handles the response.
|
|
32565
32445
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
32566
32446
|
*/
|
|
32567
|
-
|
|
32568
|
-
|
|
32569
|
-
|
|
32570
|
-
|
|
32571
|
-
|
|
32572
|
-
|
|
32447
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
32448
|
+
get(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
32449
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
32450
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
32451
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
32452
|
+
get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
32573
32453
|
}
|
|
32574
|
-
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$
|
|
32575
|
-
/**
|
|
32576
|
-
* Required. The resource name of the Agent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}/agents/{agent\}`
|
|
32577
|
-
*/
|
|
32578
|
-
parent?: string;
|
|
32454
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations$Get extends StandardParameters {
|
|
32579
32455
|
/**
|
|
32580
|
-
*
|
|
32456
|
+
* The name of the operation resource.
|
|
32581
32457
|
*/
|
|
32582
|
-
|
|
32458
|
+
name?: string;
|
|
32583
32459
|
}
|
|
32584
32460
|
export class Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries {
|
|
32585
32461
|
context: APIRequestContext;
|
|
@@ -34346,7 +34222,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
34346
34222
|
* pageSize: 'placeholder-value',
|
|
34347
34223
|
* // The standard list page token.
|
|
34348
34224
|
* 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
|
|
34225
|
+
* // 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
34226
|
* returnPartialSuccess: 'placeholder-value',
|
|
34351
34227
|
* },
|
|
34352
34228
|
* );
|
|
@@ -34403,7 +34279,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
34403
34279
|
*/
|
|
34404
34280
|
pageToken?: string;
|
|
34405
34281
|
/**
|
|
34406
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
34282
|
+
* 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
34283
|
*/
|
|
34408
34284
|
returnPartialSuccess?: boolean;
|
|
34409
34285
|
}
|
|
@@ -34434,6 +34310,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
34434
34310
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
34435
34311
|
* scopes: [
|
|
34436
34312
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
34313
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
34437
34314
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
34438
34315
|
* ],
|
|
34439
34316
|
* });
|
|
@@ -34498,6 +34375,70 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
34498
34375
|
answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
34499
34376
|
answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
34500
34377
|
answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
34378
|
+
/**
|
|
34379
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
34380
|
+
* @example
|
|
34381
|
+
* ```js
|
|
34382
|
+
* // Before running the sample:
|
|
34383
|
+
* // - Enable the API at:
|
|
34384
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
34385
|
+
* // - Login into gcloud by running:
|
|
34386
|
+
* // ```sh
|
|
34387
|
+
* // $ gcloud auth application-default login
|
|
34388
|
+
* // ```
|
|
34389
|
+
* // - Install the npm module by running:
|
|
34390
|
+
* // ```sh
|
|
34391
|
+
* // $ npm install googleapis
|
|
34392
|
+
* // ```
|
|
34393
|
+
*
|
|
34394
|
+
* const {google} = require('googleapis');
|
|
34395
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
34396
|
+
*
|
|
34397
|
+
* async function main() {
|
|
34398
|
+
* const auth = new google.auth.GoogleAuth({
|
|
34399
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
34400
|
+
* scopes: [
|
|
34401
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
34402
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
34403
|
+
* ],
|
|
34404
|
+
* });
|
|
34405
|
+
*
|
|
34406
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
34407
|
+
* const authClient = await auth.getClient();
|
|
34408
|
+
* google.options({auth: authClient});
|
|
34409
|
+
*
|
|
34410
|
+
* // Do the magic
|
|
34411
|
+
* const res =
|
|
34412
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.delete(
|
|
34413
|
+
* {
|
|
34414
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
34415
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
|
|
34416
|
+
* },
|
|
34417
|
+
* );
|
|
34418
|
+
* console.log(res.data);
|
|
34419
|
+
*
|
|
34420
|
+
* // Example response
|
|
34421
|
+
* // {}
|
|
34422
|
+
* }
|
|
34423
|
+
*
|
|
34424
|
+
* main().catch(e => {
|
|
34425
|
+
* console.error(e);
|
|
34426
|
+
* throw e;
|
|
34427
|
+
* });
|
|
34428
|
+
*
|
|
34429
|
+
* ```
|
|
34430
|
+
*
|
|
34431
|
+
* @param params - Parameters for request
|
|
34432
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
34433
|
+
* @param callback - Optional callback that handles the response.
|
|
34434
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
34435
|
+
*/
|
|
34436
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
34437
|
+
delete(params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
34438
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
34439
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
34440
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
34441
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
34501
34442
|
/**
|
|
34502
34443
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
34503
34444
|
* @example
|
|
@@ -34913,6 +34854,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
34913
34854
|
* // "branch": "my_branch",
|
|
34914
34855
|
* // "canonicalFilter": "my_canonicalFilter",
|
|
34915
34856
|
* // "contentSearchSpec": {},
|
|
34857
|
+
* // "crowdingSpecs": [],
|
|
34916
34858
|
* // "customFineTuningSpec": {},
|
|
34917
34859
|
* // "dataStoreSpecs": [],
|
|
34918
34860
|
* // "displaySpec": {},
|
|
@@ -34925,6 +34867,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
34925
34867
|
* // "offset": 0,
|
|
34926
34868
|
* // "oneBoxPageSize": 0,
|
|
34927
34869
|
* // "orderBy": "my_orderBy",
|
|
34870
|
+
* // "pageCategories": [],
|
|
34928
34871
|
* // "pageSize": 0,
|
|
34929
34872
|
* // "pageToken": "my_pageToken",
|
|
34930
34873
|
* // "params": {},
|
|
@@ -34968,6 +34911,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
34968
34911
|
* // "redirectUri": "my_redirectUri",
|
|
34969
34912
|
* // "results": [],
|
|
34970
34913
|
* // "searchLinkPromotions": [],
|
|
34914
|
+
* // "semanticState": "my_semanticState",
|
|
34971
34915
|
* // "sessionInfo": {},
|
|
34972
34916
|
* // "suggestedQuery": "my_suggestedQuery",
|
|
34973
34917
|
* // "summary": {},
|
|
@@ -35042,6 +34986,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35042
34986
|
* // "branch": "my_branch",
|
|
35043
34987
|
* // "canonicalFilter": "my_canonicalFilter",
|
|
35044
34988
|
* // "contentSearchSpec": {},
|
|
34989
|
+
* // "crowdingSpecs": [],
|
|
35045
34990
|
* // "customFineTuningSpec": {},
|
|
35046
34991
|
* // "dataStoreSpecs": [],
|
|
35047
34992
|
* // "displaySpec": {},
|
|
@@ -35054,6 +34999,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35054
34999
|
* // "offset": 0,
|
|
35055
35000
|
* // "oneBoxPageSize": 0,
|
|
35056
35001
|
* // "orderBy": "my_orderBy",
|
|
35002
|
+
* // "pageCategories": [],
|
|
35057
35003
|
* // "pageSize": 0,
|
|
35058
35004
|
* // "pageToken": "my_pageToken",
|
|
35059
35005
|
* // "params": {},
|
|
@@ -35097,6 +35043,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35097
35043
|
* // "redirectUri": "my_redirectUri",
|
|
35098
35044
|
* // "results": [],
|
|
35099
35045
|
* // "searchLinkPromotions": [],
|
|
35046
|
+
* // "semanticState": "my_semanticState",
|
|
35100
35047
|
* // "sessionInfo": {},
|
|
35101
35048
|
* // "suggestedQuery": "my_suggestedQuery",
|
|
35102
35049
|
* // "summary": {},
|
|
@@ -35146,6 +35093,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35146
35093
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
35147
35094
|
* scopes: [
|
|
35148
35095
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
35096
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
35149
35097
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
35150
35098
|
* ],
|
|
35151
35099
|
* });
|
|
@@ -35221,6 +35169,12 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35221
35169
|
*/
|
|
35222
35170
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
|
|
35223
35171
|
}
|
|
35172
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
|
|
35173
|
+
/**
|
|
35174
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
35175
|
+
*/
|
|
35176
|
+
name?: string;
|
|
35177
|
+
}
|
|
35224
35178
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get extends StandardParameters {
|
|
35225
35179
|
/**
|
|
35226
35180
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -35297,8 +35251,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35297
35251
|
}
|
|
35298
35252
|
export class Resource$Projects$Locations$Collections$Engines$Sessions {
|
|
35299
35253
|
context: APIRequestContext;
|
|
35254
|
+
alphaEvolveExperiments: Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments;
|
|
35300
35255
|
answers: Resource$Projects$Locations$Collections$Engines$Sessions$Answers;
|
|
35301
35256
|
files: Resource$Projects$Locations$Collections$Engines$Sessions$Files;
|
|
35257
|
+
operations: Resource$Projects$Locations$Collections$Engines$Sessions$Operations;
|
|
35302
35258
|
constructor(context: APIRequestContext);
|
|
35303
35259
|
/**
|
|
35304
35260
|
* Creates a Session. If the Session to create already exists, an ALREADY_EXISTS error is returned.
|
|
@@ -35763,6 +35719,91 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35763
35719
|
*/
|
|
35764
35720
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaSession;
|
|
35765
35721
|
}
|
|
35722
|
+
export class Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments {
|
|
35723
|
+
context: APIRequestContext;
|
|
35724
|
+
operations: Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations;
|
|
35725
|
+
constructor(context: APIRequestContext);
|
|
35726
|
+
}
|
|
35727
|
+
export class Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations {
|
|
35728
|
+
context: APIRequestContext;
|
|
35729
|
+
constructor(context: APIRequestContext);
|
|
35730
|
+
/**
|
|
35731
|
+
* 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.
|
|
35732
|
+
* @example
|
|
35733
|
+
* ```js
|
|
35734
|
+
* // Before running the sample:
|
|
35735
|
+
* // - Enable the API at:
|
|
35736
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
35737
|
+
* // - Login into gcloud by running:
|
|
35738
|
+
* // ```sh
|
|
35739
|
+
* // $ gcloud auth application-default login
|
|
35740
|
+
* // ```
|
|
35741
|
+
* // - Install the npm module by running:
|
|
35742
|
+
* // ```sh
|
|
35743
|
+
* // $ npm install googleapis
|
|
35744
|
+
* // ```
|
|
35745
|
+
*
|
|
35746
|
+
* const {google} = require('googleapis');
|
|
35747
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
35748
|
+
*
|
|
35749
|
+
* async function main() {
|
|
35750
|
+
* const auth = new google.auth.GoogleAuth({
|
|
35751
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
35752
|
+
* scopes: [
|
|
35753
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
35754
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
35755
|
+
* ],
|
|
35756
|
+
* });
|
|
35757
|
+
*
|
|
35758
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
35759
|
+
* const authClient = await auth.getClient();
|
|
35760
|
+
* google.options({auth: authClient});
|
|
35761
|
+
*
|
|
35762
|
+
* // Do the magic
|
|
35763
|
+
* const res =
|
|
35764
|
+
* await discoveryengine.projects.locations.collections.engines.sessions.alphaEvolveExperiments.operations.get(
|
|
35765
|
+
* {
|
|
35766
|
+
* // The name of the operation resource.
|
|
35767
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session/alphaEvolveExperiments/my-alphaEvolveExperiment/operations/my-operation',
|
|
35768
|
+
* },
|
|
35769
|
+
* );
|
|
35770
|
+
* console.log(res.data);
|
|
35771
|
+
*
|
|
35772
|
+
* // Example response
|
|
35773
|
+
* // {
|
|
35774
|
+
* // "done": false,
|
|
35775
|
+
* // "error": {},
|
|
35776
|
+
* // "metadata": {},
|
|
35777
|
+
* // "name": "my_name",
|
|
35778
|
+
* // "response": {}
|
|
35779
|
+
* // }
|
|
35780
|
+
* }
|
|
35781
|
+
*
|
|
35782
|
+
* main().catch(e => {
|
|
35783
|
+
* console.error(e);
|
|
35784
|
+
* throw e;
|
|
35785
|
+
* });
|
|
35786
|
+
*
|
|
35787
|
+
* ```
|
|
35788
|
+
*
|
|
35789
|
+
* @param params - Parameters for request
|
|
35790
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
35791
|
+
* @param callback - Optional callback that handles the response.
|
|
35792
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
35793
|
+
*/
|
|
35794
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
35795
|
+
get(params?: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
35796
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
35797
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
35798
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
35799
|
+
get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
35800
|
+
}
|
|
35801
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$Alphaevolveexperiments$Operations$Get extends StandardParameters {
|
|
35802
|
+
/**
|
|
35803
|
+
* The name of the operation resource.
|
|
35804
|
+
*/
|
|
35805
|
+
name?: string;
|
|
35806
|
+
}
|
|
35766
35807
|
export class Resource$Projects$Locations$Collections$Engines$Sessions$Answers {
|
|
35767
35808
|
context: APIRequestContext;
|
|
35768
35809
|
constructor(context: APIRequestContext);
|
|
@@ -35800,31 +35841,118 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35800
35841
|
*
|
|
35801
35842
|
* // Do the magic
|
|
35802
35843
|
* const res =
|
|
35803
|
-
* await discoveryengine.projects.locations.collections.engines.sessions.answers.get(
|
|
35844
|
+
* await discoveryengine.projects.locations.collections.engines.sessions.answers.get(
|
|
35845
|
+
* {
|
|
35846
|
+
* // Required. The resource name of the Answer to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine_id\}/sessions/{session_id\}/answers/{answer_id\}`
|
|
35847
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session/answers/my-answer',
|
|
35848
|
+
* },
|
|
35849
|
+
* );
|
|
35850
|
+
* console.log(res.data);
|
|
35851
|
+
*
|
|
35852
|
+
* // Example response
|
|
35853
|
+
* // {
|
|
35854
|
+
* // "answerSkippedReasons": [],
|
|
35855
|
+
* // "answerText": "my_answerText",
|
|
35856
|
+
* // "blobAttachments": [],
|
|
35857
|
+
* // "citations": [],
|
|
35858
|
+
* // "completeTime": "my_completeTime",
|
|
35859
|
+
* // "createTime": "my_createTime",
|
|
35860
|
+
* // "groundingScore": {},
|
|
35861
|
+
* // "groundingSupports": [],
|
|
35862
|
+
* // "name": "my_name",
|
|
35863
|
+
* // "queryUnderstandingInfo": {},
|
|
35864
|
+
* // "references": [],
|
|
35865
|
+
* // "relatedQuestions": [],
|
|
35866
|
+
* // "safetyRatings": [],
|
|
35867
|
+
* // "state": "my_state",
|
|
35868
|
+
* // "steps": []
|
|
35869
|
+
* // }
|
|
35870
|
+
* }
|
|
35871
|
+
*
|
|
35872
|
+
* main().catch(e => {
|
|
35873
|
+
* console.error(e);
|
|
35874
|
+
* throw e;
|
|
35875
|
+
* });
|
|
35876
|
+
*
|
|
35877
|
+
* ```
|
|
35878
|
+
*
|
|
35879
|
+
* @param params - Parameters for request
|
|
35880
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
35881
|
+
* @param callback - Optional callback that handles the response.
|
|
35882
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
35883
|
+
*/
|
|
35884
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Answers$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
35885
|
+
get(params?: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Answers$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaAnswer>>;
|
|
35886
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Answers$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
35887
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Answers$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswer>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswer>): void;
|
|
35888
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Answers$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswer>): void;
|
|
35889
|
+
get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswer>): void;
|
|
35890
|
+
}
|
|
35891
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$Answers$Get extends StandardParameters {
|
|
35892
|
+
/**
|
|
35893
|
+
* Required. The resource name of the Answer to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine_id\}/sessions/{session_id\}/answers/{answer_id\}`
|
|
35894
|
+
*/
|
|
35895
|
+
name?: string;
|
|
35896
|
+
}
|
|
35897
|
+
export class Resource$Projects$Locations$Collections$Engines$Sessions$Files {
|
|
35898
|
+
context: APIRequestContext;
|
|
35899
|
+
constructor(context: APIRequestContext);
|
|
35900
|
+
/**
|
|
35901
|
+
* Lists metadata for all files in the current session.
|
|
35902
|
+
* @example
|
|
35903
|
+
* ```js
|
|
35904
|
+
* // Before running the sample:
|
|
35905
|
+
* // - Enable the API at:
|
|
35906
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
35907
|
+
* // - Login into gcloud by running:
|
|
35908
|
+
* // ```sh
|
|
35909
|
+
* // $ gcloud auth application-default login
|
|
35910
|
+
* // ```
|
|
35911
|
+
* // - Install the npm module by running:
|
|
35912
|
+
* // ```sh
|
|
35913
|
+
* // $ npm install googleapis
|
|
35914
|
+
* // ```
|
|
35915
|
+
*
|
|
35916
|
+
* const {google} = require('googleapis');
|
|
35917
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
35918
|
+
*
|
|
35919
|
+
* async function main() {
|
|
35920
|
+
* const auth = new google.auth.GoogleAuth({
|
|
35921
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
35922
|
+
* scopes: [
|
|
35923
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
35924
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
35925
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
35926
|
+
* ],
|
|
35927
|
+
* });
|
|
35928
|
+
*
|
|
35929
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
35930
|
+
* const authClient = await auth.getClient();
|
|
35931
|
+
* google.options({auth: authClient});
|
|
35932
|
+
*
|
|
35933
|
+
* // Do the magic
|
|
35934
|
+
* const res =
|
|
35935
|
+
* await discoveryengine.projects.locations.collections.engines.sessions.files.list(
|
|
35804
35936
|
* {
|
|
35805
|
-
* //
|
|
35806
|
-
*
|
|
35937
|
+
* // 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. Currently supported field names are: * upload_time * last_add_time * last_use_time * file_name * mime_type Some examples of filters would be: * "file_name = 'file_1'" * "file_name = 'file_1' AND mime_type = 'text/plain'" * "last_use_time \> '2025-06-14T12:00:00Z'" For a full description of the filter format, please see https://google.aip.dev/160.
|
|
35938
|
+
* filter: 'placeholder-value',
|
|
35939
|
+
* // Optional. Specifies the order in which files are returned. The value is a comma-separated string of fields to sort by. For ascending order - just the field name is used. For descending order - the field name is suffixed with ` desc`. Sorting is stable and applied sequentially according to the order of fields provided in the string. Supported fields for ordering: * `upload_time`: The time the file was uploaded. * `file_name`: The name of the file. * `mime_type`: The MIME type of the file. * `session_name`: The name of the session the file belongs to. Default Behavior: If the `order_by` field is not specified, files will be returned sorted by creation time in descending order. Examples: 1. Sort by file name in ascending order: `file_name` 2. Sort by upload time in descending order: `upload_time desc` 3. Sort by file name (ascending), then by content type (MIME type) (descending), and finally by upload time (ascending): `file_name, mime_type desc, upload_time`
|
|
35940
|
+
* orderBy: 'placeholder-value',
|
|
35941
|
+
* // Optional. The maximum number of files to return. The service may return fewer than this value. If unspecified, at most 100 files will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. If user specifies a value less than or equal to 0 - the request will be rejected with an INVALID_ARGUMENT error.
|
|
35942
|
+
* pageSize: 'placeholder-value',
|
|
35943
|
+
* // Optional. A page token received from a previous `ListFiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFiles` must match the call that provided the page token (except `page_size`, which may differ).
|
|
35944
|
+
* pageToken: 'placeholder-value',
|
|
35945
|
+
* // Required. The resource name of the Session. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}` Name of the session resource to which the file belong.
|
|
35946
|
+
* parent:
|
|
35947
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session',
|
|
35807
35948
|
* },
|
|
35808
35949
|
* );
|
|
35809
35950
|
* console.log(res.data);
|
|
35810
35951
|
*
|
|
35811
35952
|
* // Example response
|
|
35812
35953
|
* // {
|
|
35813
|
-
* // "
|
|
35814
|
-
* // "
|
|
35815
|
-
* // "blobAttachments": [],
|
|
35816
|
-
* // "citations": [],
|
|
35817
|
-
* // "completeTime": "my_completeTime",
|
|
35818
|
-
* // "createTime": "my_createTime",
|
|
35819
|
-
* // "groundingScore": {},
|
|
35820
|
-
* // "groundingSupports": [],
|
|
35821
|
-
* // "name": "my_name",
|
|
35822
|
-
* // "queryUnderstandingInfo": {},
|
|
35823
|
-
* // "references": [],
|
|
35824
|
-
* // "relatedQuestions": [],
|
|
35825
|
-
* // "safetyRatings": [],
|
|
35826
|
-
* // "state": "my_state",
|
|
35827
|
-
* // "steps": []
|
|
35954
|
+
* // "files": [],
|
|
35955
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
35828
35956
|
* // }
|
|
35829
35957
|
* }
|
|
35830
35958
|
*
|
|
@@ -35840,24 +35968,40 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35840
35968
|
* @param callback - Optional callback that handles the response.
|
|
35841
35969
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
35842
35970
|
*/
|
|
35843
|
-
|
|
35844
|
-
|
|
35845
|
-
|
|
35846
|
-
|
|
35847
|
-
|
|
35848
|
-
|
|
35971
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Files$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
35972
|
+
list(params?: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Files$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaListFilesResponse>>;
|
|
35973
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Files$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
35974
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Files$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListFilesResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListFilesResponse>): void;
|
|
35975
|
+
list(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Files$List, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListFilesResponse>): void;
|
|
35976
|
+
list(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListFilesResponse>): void;
|
|
35849
35977
|
}
|
|
35850
|
-
export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$
|
|
35978
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$Files$List extends StandardParameters {
|
|
35851
35979
|
/**
|
|
35852
|
-
*
|
|
35980
|
+
* 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. Currently supported field names are: * upload_time * last_add_time * last_use_time * file_name * mime_type Some examples of filters would be: * "file_name = 'file_1'" * "file_name = 'file_1' AND mime_type = 'text/plain'" * "last_use_time \> '2025-06-14T12:00:00Z'" For a full description of the filter format, please see https://google.aip.dev/160.
|
|
35853
35981
|
*/
|
|
35854
|
-
|
|
35982
|
+
filter?: string;
|
|
35983
|
+
/**
|
|
35984
|
+
* Optional. Specifies the order in which files are returned. The value is a comma-separated string of fields to sort by. For ascending order - just the field name is used. For descending order - the field name is suffixed with ` desc`. Sorting is stable and applied sequentially according to the order of fields provided in the string. Supported fields for ordering: * `upload_time`: The time the file was uploaded. * `file_name`: The name of the file. * `mime_type`: The MIME type of the file. * `session_name`: The name of the session the file belongs to. Default Behavior: If the `order_by` field is not specified, files will be returned sorted by creation time in descending order. Examples: 1. Sort by file name in ascending order: `file_name` 2. Sort by upload time in descending order: `upload_time desc` 3. Sort by file name (ascending), then by content type (MIME type) (descending), and finally by upload time (ascending): `file_name, mime_type desc, upload_time`
|
|
35985
|
+
*/
|
|
35986
|
+
orderBy?: string;
|
|
35987
|
+
/**
|
|
35988
|
+
* Optional. The maximum number of files to return. The service may return fewer than this value. If unspecified, at most 100 files will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. If user specifies a value less than or equal to 0 - the request will be rejected with an INVALID_ARGUMENT error.
|
|
35989
|
+
*/
|
|
35990
|
+
pageSize?: number;
|
|
35991
|
+
/**
|
|
35992
|
+
* Optional. A page token received from a previous `ListFiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFiles` must match the call that provided the page token (except `page_size`, which may differ).
|
|
35993
|
+
*/
|
|
35994
|
+
pageToken?: string;
|
|
35995
|
+
/**
|
|
35996
|
+
* Required. The resource name of the Session. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}` Name of the session resource to which the file belong.
|
|
35997
|
+
*/
|
|
35998
|
+
parent?: string;
|
|
35855
35999
|
}
|
|
35856
|
-
export class Resource$Projects$Locations$Collections$Engines$Sessions$
|
|
36000
|
+
export class Resource$Projects$Locations$Collections$Engines$Sessions$Operations {
|
|
35857
36001
|
context: APIRequestContext;
|
|
35858
36002
|
constructor(context: APIRequestContext);
|
|
35859
36003
|
/**
|
|
35860
|
-
*
|
|
36004
|
+
* 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.
|
|
35861
36005
|
* @example
|
|
35862
36006
|
* ```js
|
|
35863
36007
|
* // Before running the sample:
|
|
@@ -35880,7 +36024,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35880
36024
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
35881
36025
|
* scopes: [
|
|
35882
36026
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
35883
|
-
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
35884
36027
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
35885
36028
|
* ],
|
|
35886
36029
|
* });
|
|
@@ -35891,27 +36034,21 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35891
36034
|
*
|
|
35892
36035
|
* // Do the magic
|
|
35893
36036
|
* const res =
|
|
35894
|
-
* await discoveryengine.projects.locations.collections.engines.sessions.
|
|
36037
|
+
* await discoveryengine.projects.locations.collections.engines.sessions.operations.get(
|
|
35895
36038
|
* {
|
|
35896
|
-
* //
|
|
35897
|
-
*
|
|
35898
|
-
* // Optional. Specifies the order in which files are returned. The value is a comma-separated string of fields to sort by. For ascending order - just the field name is used. For descending order - the field name is suffixed with ` desc`. Sorting is stable and applied sequentially according to the order of fields provided in the string. Supported fields for ordering: * `upload_time`: The time the file was uploaded. * `file_name`: The name of the file. * `mime_type`: The MIME type of the file. * `session_name`: The name of the session the file belongs to. Default Behavior: If the `order_by` field is not specified, files will be returned sorted by creation time in descending order. Examples: 1. Sort by file name in ascending order: `file_name` 2. Sort by upload time in descending order: `upload_time desc` 3. Sort by file name (ascending), then by content type (MIME type) (descending), and finally by upload time (ascending): `file_name, mime_type desc, upload_time`
|
|
35899
|
-
* orderBy: 'placeholder-value',
|
|
35900
|
-
* // Optional. The maximum number of files to return. The service may return fewer than this value. If unspecified, at most 100 files will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. If user specifies a value less than or equal to 0 - the request will be rejected with an INVALID_ARGUMENT error.
|
|
35901
|
-
* pageSize: 'placeholder-value',
|
|
35902
|
-
* // Optional. A page token received from a previous `ListFiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFiles` must match the call that provided the page token (except `page_size`, which may differ).
|
|
35903
|
-
* pageToken: 'placeholder-value',
|
|
35904
|
-
* // Required. The resource name of the Session. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}` Name of the session resource to which the file belong.
|
|
35905
|
-
* parent:
|
|
35906
|
-
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session',
|
|
36039
|
+
* // The name of the operation resource.
|
|
36040
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/sessions/my-session/operations/my-operation',
|
|
35907
36041
|
* },
|
|
35908
36042
|
* );
|
|
35909
36043
|
* console.log(res.data);
|
|
35910
36044
|
*
|
|
35911
36045
|
* // Example response
|
|
35912
36046
|
* // {
|
|
35913
|
-
* // "
|
|
35914
|
-
* // "
|
|
36047
|
+
* // "done": false,
|
|
36048
|
+
* // "error": {},
|
|
36049
|
+
* // "metadata": {},
|
|
36050
|
+
* // "name": "my_name",
|
|
36051
|
+
* // "response": {}
|
|
35915
36052
|
* // }
|
|
35916
36053
|
* }
|
|
35917
36054
|
*
|
|
@@ -35927,34 +36064,18 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
35927
36064
|
* @param callback - Optional callback that handles the response.
|
|
35928
36065
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
35929
36066
|
*/
|
|
35930
|
-
|
|
35931
|
-
|
|
35932
|
-
|
|
35933
|
-
|
|
35934
|
-
|
|
35935
|
-
|
|
36067
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
36068
|
+
get(params?: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
36069
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
36070
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
36071
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
36072
|
+
get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
35936
36073
|
}
|
|
35937
|
-
export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$
|
|
35938
|
-
/**
|
|
35939
|
-
* 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. Currently supported field names are: * upload_time * last_add_time * last_use_time * file_name * mime_type Some examples of filters would be: * "file_name = 'file_1'" * "file_name = 'file_1' AND mime_type = 'text/plain'" * "last_use_time \> '2025-06-14T12:00:00Z'" For a full description of the filter format, please see https://google.aip.dev/160.
|
|
35940
|
-
*/
|
|
35941
|
-
filter?: string;
|
|
35942
|
-
/**
|
|
35943
|
-
* Optional. Specifies the order in which files are returned. The value is a comma-separated string of fields to sort by. For ascending order - just the field name is used. For descending order - the field name is suffixed with ` desc`. Sorting is stable and applied sequentially according to the order of fields provided in the string. Supported fields for ordering: * `upload_time`: The time the file was uploaded. * `file_name`: The name of the file. * `mime_type`: The MIME type of the file. * `session_name`: The name of the session the file belongs to. Default Behavior: If the `order_by` field is not specified, files will be returned sorted by creation time in descending order. Examples: 1. Sort by file name in ascending order: `file_name` 2. Sort by upload time in descending order: `upload_time desc` 3. Sort by file name (ascending), then by content type (MIME type) (descending), and finally by upload time (ascending): `file_name, mime_type desc, upload_time`
|
|
35944
|
-
*/
|
|
35945
|
-
orderBy?: string;
|
|
35946
|
-
/**
|
|
35947
|
-
* Optional. The maximum number of files to return. The service may return fewer than this value. If unspecified, at most 100 files will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. If user specifies a value less than or equal to 0 - the request will be rejected with an INVALID_ARGUMENT error.
|
|
35948
|
-
*/
|
|
35949
|
-
pageSize?: number;
|
|
35950
|
-
/**
|
|
35951
|
-
* Optional. A page token received from a previous `ListFiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFiles` must match the call that provided the page token (except `page_size`, which may differ).
|
|
35952
|
-
*/
|
|
35953
|
-
pageToken?: string;
|
|
36074
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Sessions$Operations$Get extends StandardParameters {
|
|
35954
36075
|
/**
|
|
35955
|
-
*
|
|
36076
|
+
* The name of the operation resource.
|
|
35956
36077
|
*/
|
|
35957
|
-
|
|
36078
|
+
name?: string;
|
|
35958
36079
|
}
|
|
35959
36080
|
export class Resource$Projects$Locations$Collections$Engines$Widgetconfigs {
|
|
35960
36081
|
context: APIRequestContext;
|
|
@@ -36356,7 +36477,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
36356
36477
|
* pageSize: 'placeholder-value',
|
|
36357
36478
|
* // The standard list page token.
|
|
36358
36479
|
* 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
|
|
36480
|
+
* // 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
36481
|
* returnPartialSuccess: 'placeholder-value',
|
|
36361
36482
|
* });
|
|
36362
36483
|
* console.log(res.data);
|
|
@@ -36412,7 +36533,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
36412
36533
|
*/
|
|
36413
36534
|
pageToken?: string;
|
|
36414
36535
|
/**
|
|
36415
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
36536
|
+
* 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
36537
|
*/
|
|
36417
36538
|
returnPartialSuccess?: boolean;
|
|
36418
36539
|
}
|
|
@@ -36533,6 +36654,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
36533
36654
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
36534
36655
|
* scopes: [
|
|
36535
36656
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
36657
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
36536
36658
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
36537
36659
|
* ],
|
|
36538
36660
|
* });
|
|
@@ -36641,6 +36763,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
36641
36763
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
36642
36764
|
* scopes: [
|
|
36643
36765
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
36766
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
36644
36767
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
36645
36768
|
* ],
|
|
36646
36769
|
* });
|
|
@@ -36708,6 +36831,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
36708
36831
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
36709
36832
|
* scopes: [
|
|
36710
36833
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
36834
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
36711
36835
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
36712
36836
|
* ],
|
|
36713
36837
|
* });
|
|
@@ -38659,7 +38783,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
38659
38783
|
* pageSize: 'placeholder-value',
|
|
38660
38784
|
* // The standard list page token.
|
|
38661
38785
|
* 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
|
|
38786
|
+
* // 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
38787
|
* returnPartialSuccess: 'placeholder-value',
|
|
38664
38788
|
* },
|
|
38665
38789
|
* );
|
|
@@ -38726,7 +38850,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
38726
38850
|
*/
|
|
38727
38851
|
pageToken?: string;
|
|
38728
38852
|
/**
|
|
38729
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
38853
|
+
* 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
38854
|
*/
|
|
38731
38855
|
returnPartialSuccess?: boolean;
|
|
38732
38856
|
}
|
|
@@ -40122,7 +40246,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
40122
40246
|
* pageSize: 'placeholder-value',
|
|
40123
40247
|
* // The standard list page token.
|
|
40124
40248
|
* 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
|
|
40249
|
+
* // 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
40250
|
* returnPartialSuccess: 'placeholder-value',
|
|
40127
40251
|
* });
|
|
40128
40252
|
* console.log(res.data);
|
|
@@ -40178,7 +40302,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
40178
40302
|
*/
|
|
40179
40303
|
pageToken?: string;
|
|
40180
40304
|
/**
|
|
40181
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
40305
|
+
* 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
40306
|
*/
|
|
40183
40307
|
returnPartialSuccess?: boolean;
|
|
40184
40308
|
}
|
|
@@ -40296,7 +40420,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
40296
40420
|
* pageSize: 'placeholder-value',
|
|
40297
40421
|
* // The standard list page token.
|
|
40298
40422
|
* 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
|
|
40423
|
+
* // 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
40424
|
* returnPartialSuccess: 'placeholder-value',
|
|
40301
40425
|
* });
|
|
40302
40426
|
* console.log(res.data);
|
|
@@ -40352,7 +40476,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
40352
40476
|
*/
|
|
40353
40477
|
pageToken?: string;
|
|
40354
40478
|
/**
|
|
40355
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
40479
|
+
* 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
40480
|
*/
|
|
40357
40481
|
returnPartialSuccess?: boolean;
|
|
40358
40482
|
}
|
|
@@ -40807,6 +40931,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
40807
40931
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
40808
40932
|
* scopes: [
|
|
40809
40933
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
40934
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
40810
40935
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
40811
40936
|
* ],
|
|
40812
40937
|
* });
|
|
@@ -40869,6 +40994,68 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
40869
40994
|
answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
40870
40995
|
answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
40871
40996
|
answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
|
|
40997
|
+
/**
|
|
40998
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
40999
|
+
* @example
|
|
41000
|
+
* ```js
|
|
41001
|
+
* // Before running the sample:
|
|
41002
|
+
* // - Enable the API at:
|
|
41003
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
41004
|
+
* // - Login into gcloud by running:
|
|
41005
|
+
* // ```sh
|
|
41006
|
+
* // $ gcloud auth application-default login
|
|
41007
|
+
* // ```
|
|
41008
|
+
* // - Install the npm module by running:
|
|
41009
|
+
* // ```sh
|
|
41010
|
+
* // $ npm install googleapis
|
|
41011
|
+
* // ```
|
|
41012
|
+
*
|
|
41013
|
+
* const {google} = require('googleapis');
|
|
41014
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
41015
|
+
*
|
|
41016
|
+
* async function main() {
|
|
41017
|
+
* const auth = new google.auth.GoogleAuth({
|
|
41018
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
41019
|
+
* scopes: [
|
|
41020
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
41021
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
41022
|
+
* ],
|
|
41023
|
+
* });
|
|
41024
|
+
*
|
|
41025
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
41026
|
+
* const authClient = await auth.getClient();
|
|
41027
|
+
* google.options({auth: authClient});
|
|
41028
|
+
*
|
|
41029
|
+
* // Do the magic
|
|
41030
|
+
* const res =
|
|
41031
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.delete({
|
|
41032
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
41033
|
+
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
41034
|
+
* });
|
|
41035
|
+
* console.log(res.data);
|
|
41036
|
+
*
|
|
41037
|
+
* // Example response
|
|
41038
|
+
* // {}
|
|
41039
|
+
* }
|
|
41040
|
+
*
|
|
41041
|
+
* main().catch(e => {
|
|
41042
|
+
* console.error(e);
|
|
41043
|
+
* throw e;
|
|
41044
|
+
* });
|
|
41045
|
+
*
|
|
41046
|
+
* ```
|
|
41047
|
+
*
|
|
41048
|
+
* @param params - Parameters for request
|
|
41049
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
41050
|
+
* @param callback - Optional callback that handles the response.
|
|
41051
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
41052
|
+
*/
|
|
41053
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
41054
|
+
delete(params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
41055
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
41056
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
41057
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
41058
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
40872
41059
|
/**
|
|
40873
41060
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
40874
41061
|
* @example
|
|
@@ -41277,6 +41464,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41277
41464
|
* // "branch": "my_branch",
|
|
41278
41465
|
* // "canonicalFilter": "my_canonicalFilter",
|
|
41279
41466
|
* // "contentSearchSpec": {},
|
|
41467
|
+
* // "crowdingSpecs": [],
|
|
41280
41468
|
* // "customFineTuningSpec": {},
|
|
41281
41469
|
* // "dataStoreSpecs": [],
|
|
41282
41470
|
* // "displaySpec": {},
|
|
@@ -41289,6 +41477,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41289
41477
|
* // "offset": 0,
|
|
41290
41478
|
* // "oneBoxPageSize": 0,
|
|
41291
41479
|
* // "orderBy": "my_orderBy",
|
|
41480
|
+
* // "pageCategories": [],
|
|
41292
41481
|
* // "pageSize": 0,
|
|
41293
41482
|
* // "pageToken": "my_pageToken",
|
|
41294
41483
|
* // "params": {},
|
|
@@ -41331,6 +41520,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41331
41520
|
* // "redirectUri": "my_redirectUri",
|
|
41332
41521
|
* // "results": [],
|
|
41333
41522
|
* // "searchLinkPromotions": [],
|
|
41523
|
+
* // "semanticState": "my_semanticState",
|
|
41334
41524
|
* // "sessionInfo": {},
|
|
41335
41525
|
* // "suggestedQuery": "my_suggestedQuery",
|
|
41336
41526
|
* // "summary": {},
|
|
@@ -41405,6 +41595,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41405
41595
|
* // "branch": "my_branch",
|
|
41406
41596
|
* // "canonicalFilter": "my_canonicalFilter",
|
|
41407
41597
|
* // "contentSearchSpec": {},
|
|
41598
|
+
* // "crowdingSpecs": [],
|
|
41408
41599
|
* // "customFineTuningSpec": {},
|
|
41409
41600
|
* // "dataStoreSpecs": [],
|
|
41410
41601
|
* // "displaySpec": {},
|
|
@@ -41417,6 +41608,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41417
41608
|
* // "offset": 0,
|
|
41418
41609
|
* // "oneBoxPageSize": 0,
|
|
41419
41610
|
* // "orderBy": "my_orderBy",
|
|
41611
|
+
* // "pageCategories": [],
|
|
41420
41612
|
* // "pageSize": 0,
|
|
41421
41613
|
* // "pageToken": "my_pageToken",
|
|
41422
41614
|
* // "params": {},
|
|
@@ -41460,6 +41652,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41460
41652
|
* // "redirectUri": "my_redirectUri",
|
|
41461
41653
|
* // "results": [],
|
|
41462
41654
|
* // "searchLinkPromotions": [],
|
|
41655
|
+
* // "semanticState": "my_semanticState",
|
|
41463
41656
|
* // "sessionInfo": {},
|
|
41464
41657
|
* // "suggestedQuery": "my_suggestedQuery",
|
|
41465
41658
|
* // "summary": {},
|
|
@@ -41509,6 +41702,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41509
41702
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
41510
41703
|
* scopes: [
|
|
41511
41704
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
41705
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
41512
41706
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
41513
41707
|
* ],
|
|
41514
41708
|
* });
|
|
@@ -41584,6 +41778,12 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
41584
41778
|
*/
|
|
41585
41779
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
|
|
41586
41780
|
}
|
|
41781
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
41782
|
+
/**
|
|
41783
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
41784
|
+
*/
|
|
41785
|
+
name?: string;
|
|
41786
|
+
}
|
|
41587
41787
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
41588
41788
|
/**
|
|
41589
41789
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -44159,6 +44359,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
44159
44359
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
44160
44360
|
* scopes: [
|
|
44161
44361
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
44362
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
44162
44363
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
44163
44364
|
* ],
|
|
44164
44365
|
* });
|
|
@@ -45363,7 +45564,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
45363
45564
|
* pageSize: 'placeholder-value',
|
|
45364
45565
|
* // The standard list page token.
|
|
45365
45566
|
* 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
|
|
45567
|
+
* // 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
45568
|
* returnPartialSuccess: 'placeholder-value',
|
|
45368
45569
|
* },
|
|
45369
45570
|
* );
|
|
@@ -45420,7 +45621,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
45420
45621
|
*/
|
|
45421
45622
|
pageToken?: string;
|
|
45422
45623
|
/**
|
|
45423
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
45624
|
+
* 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
45625
|
*/
|
|
45425
45626
|
returnPartialSuccess?: boolean;
|
|
45426
45627
|
}
|
|
@@ -46318,6 +46519,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
46318
46519
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
46319
46520
|
* scopes: [
|
|
46320
46521
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
46522
|
+
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
46321
46523
|
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
46322
46524
|
* ],
|
|
46323
46525
|
* });
|
|
@@ -46503,83 +46705,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
46503
46705
|
get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
|
|
46504
46706
|
get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
|
|
46505
46707
|
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
46708
|
}
|
|
46584
46709
|
export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate extends StandardParameters {
|
|
46585
46710
|
/**
|
|
@@ -46607,20 +46732,6 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
46607
46732
|
*/
|
|
46608
46733
|
name?: string;
|
|
46609
46734
|
}
|
|
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
46735
|
export class Resource$Projects$Locations$Operations {
|
|
46625
46736
|
context: APIRequestContext;
|
|
46626
46737
|
constructor(context: APIRequestContext);
|
|
@@ -46733,7 +46844,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
46733
46844
|
* pageSize: 'placeholder-value',
|
|
46734
46845
|
* // The standard list page token.
|
|
46735
46846
|
* 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
|
|
46847
|
+
* // 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
46848
|
* returnPartialSuccess: 'placeholder-value',
|
|
46738
46849
|
* });
|
|
46739
46850
|
* console.log(res.data);
|
|
@@ -46789,7 +46900,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
46789
46900
|
*/
|
|
46790
46901
|
pageToken?: string;
|
|
46791
46902
|
/**
|
|
46792
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
46903
|
+
* 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
46904
|
*/
|
|
46794
46905
|
returnPartialSuccess?: boolean;
|
|
46795
46906
|
}
|
|
@@ -48998,7 +49109,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
48998
49109
|
* pageSize: 'placeholder-value',
|
|
48999
49110
|
* // The standard list page token.
|
|
49000
49111
|
* 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
|
|
49112
|
+
* // 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
49113
|
* returnPartialSuccess: 'placeholder-value',
|
|
49003
49114
|
* });
|
|
49004
49115
|
* console.log(res.data);
|
|
@@ -49054,7 +49165,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
49054
49165
|
*/
|
|
49055
49166
|
pageToken?: string;
|
|
49056
49167
|
/**
|
|
49057
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
49168
|
+
* 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
49169
|
*/
|
|
49059
49170
|
returnPartialSuccess?: boolean;
|
|
49060
49171
|
}
|
|
@@ -49096,8 +49207,8 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
49096
49207
|
* // Do the magic
|
|
49097
49208
|
* const res =
|
|
49098
49209
|
* await discoveryengine.projects.locations.userStores.userLicenses.list({
|
|
49099
|
-
* // Optional.
|
|
49100
|
-
*
|
|
49210
|
+
* // 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.
|
|
49211
|
+
* orderBy: 'placeholder-value',
|
|
49101
49212
|
* // 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
49213
|
* pageSize: 'placeholder-value',
|
|
49103
49214
|
* // 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 +49247,9 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
49136
49247
|
}
|
|
49137
49248
|
export interface Params$Resource$Projects$Locations$Userstores$Userlicenses$List extends StandardParameters {
|
|
49138
49249
|
/**
|
|
49139
|
-
* Optional.
|
|
49250
|
+
* 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
49251
|
*/
|
|
49141
|
-
|
|
49252
|
+
orderBy?: string;
|
|
49142
49253
|
/**
|
|
49143
49254
|
* 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
49255
|
*/
|
|
@@ -49264,7 +49375,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
49264
49375
|
* pageSize: 'placeholder-value',
|
|
49265
49376
|
* // The standard list page token.
|
|
49266
49377
|
* 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
|
|
49378
|
+
* // 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
49379
|
* returnPartialSuccess: 'placeholder-value',
|
|
49269
49380
|
* });
|
|
49270
49381
|
* console.log(res.data);
|
|
@@ -49320,7 +49431,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
49320
49431
|
*/
|
|
49321
49432
|
pageToken?: string;
|
|
49322
49433
|
/**
|
|
49323
|
-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
49434
|
+
* 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
49435
|
*/
|
|
49325
49436
|
returnPartialSuccess?: boolean;
|
|
49326
49437
|
}
|