@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20230424 → 0.0.20230503

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.
Files changed (3) hide show
  1. package/index.d.ts +1982 -862
  2. package/package.json +1 -1
  3. package/tests.ts +30 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20230424
12
+ // Revision: 20230503
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,65 +24,85 @@ declare namespace gapi.client {
24
24
  namespace discoveryengine {
25
25
  interface GoogleApiHttpBody {
26
26
  /** The HTTP Content-Type header value specifying the content type of the body. */
27
- contentType?: string;
27
+ contentType?:
28
+ string;
28
29
  /** The HTTP request/response body as raw binary. */
29
- data?: string;
30
+ data?:
31
+ string;
30
32
  /** Application specific response metadata. Must be set in the first response for streaming APIs. */
31
- extensions?: Array<{ [P in string]: any }>;
33
+ extensions?:
34
+ Array<{ [P in string]: any }>;
32
35
  }
33
36
  interface GoogleCloudDiscoveryengineLoggingErrorContext {
34
37
  /** The HTTP request which was processed when the error was triggered. */
35
- httpRequest?: GoogleCloudDiscoveryengineLoggingHttpRequestContext;
38
+ httpRequest?:
39
+ GoogleCloudDiscoveryengineLoggingHttpRequestContext;
36
40
  /** The location in the source code where the decision was made to report the error, usually the place where it was logged. */
37
- reportLocation?: GoogleCloudDiscoveryengineLoggingSourceLocation;
41
+ reportLocation?:
42
+ GoogleCloudDiscoveryengineLoggingSourceLocation;
38
43
  }
39
44
  interface GoogleCloudDiscoveryengineLoggingErrorLog {
40
45
  /** A description of the context in which the error occurred. */
41
- context?: GoogleCloudDiscoveryengineLoggingErrorContext;
46
+ context?:
47
+ GoogleCloudDiscoveryengineLoggingErrorContext;
42
48
  /** The error payload that is populated on LRO import APIs. */
43
- importPayload?: GoogleCloudDiscoveryengineLoggingImportErrorContext;
49
+ importPayload?:
50
+ GoogleCloudDiscoveryengineLoggingImportErrorContext;
44
51
  /** A message describing the error. */
45
- message?: string;
52
+ message?:
53
+ string;
46
54
  /**
47
55
  * The API request payload, represented as a protocol buffer. Most API request types are supported—for example: *
48
56
  * `type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocumentRequest` *
49
57
  * `type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEventRequest`
50
58
  */
51
- requestPayload?: { [P in string]: any };
59
+ requestPayload?:
60
+ { [P in string]: any };
52
61
  /**
53
62
  * The API response payload, represented as a protocol buffer. This is used to log some "soft errors", where the response is valid but we consider there are some quality issues like
54
63
  * unjoined events. The following API responses are supported, and no PII is included: * `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend` *
55
64
  * `google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent` * `google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent`
56
65
  */
57
- responsePayload?: { [P in string]: any };
66
+ responsePayload?:
67
+ { [P in string]: any };
58
68
  /** The service context in which this error has occurred. */
59
- serviceContext?: GoogleCloudDiscoveryengineLoggingServiceContext;
69
+ serviceContext?:
70
+ GoogleCloudDiscoveryengineLoggingServiceContext;
60
71
  /** The RPC status associated with the error log. */
61
- status?: GoogleRpcStatus;
72
+ status?:
73
+ GoogleRpcStatus;
62
74
  }
63
75
  interface GoogleCloudDiscoveryengineLoggingHttpRequestContext {
64
76
  /** The HTTP response status code for the request. */
65
- responseStatusCode?: number;
77
+ responseStatusCode?:
78
+ number;
66
79
  }
67
80
  interface GoogleCloudDiscoveryengineLoggingImportErrorContext {
68
81
  /** The detailed content which caused the error on importing a document. */
69
- document?: string;
82
+ document?:
83
+ string;
70
84
  /** Google Cloud Storage file path of the import source. Can be set for batch operation error. */
71
- gcsPath?: string;
85
+ gcsPath?:
86
+ string;
72
87
  /** Line number of the content in file. Should be empty for permission or batch operation error. */
73
- lineNumber?: string;
88
+ lineNumber?:
89
+ string;
74
90
  /** The operation resource name of the LRO. */
75
- operation?: string;
91
+ operation?:
92
+ string;
76
93
  /** The detailed content which caused the error on importing a user event. */
77
- userEvent?: string;
94
+ userEvent?:
95
+ string;
78
96
  }
79
97
  interface GoogleCloudDiscoveryengineLoggingServiceContext {
80
98
  /** An identifier of the service—for example, `discoveryengine.googleapis.com`. */
81
- service?: string;
99
+ service?:
100
+ string;
82
101
  }
83
102
  interface GoogleCloudDiscoveryengineLoggingSourceLocation {
84
103
  /** Human-readable name of a function or method—for example, `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`. */
85
- functionName?: string;
104
+ functionName?:
105
+ string;
86
106
  }
87
107
  interface GoogleCloudDiscoveryengineV1alphaBigQuerySource {
88
108
  /**
@@ -90,75 +110,95 @@ declare namespace gapi.client {
90
110
  * imports: * `document` (default): One Document format per row. Each document must have a valid Document.id and one of Document.json_data or Document.struct_data. * `custom`: One
91
111
  * custom data per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical.
92
112
  */
93
- dataSchema?: string;
113
+ dataSchema?:
114
+ string;
94
115
  /** Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters. */
95
- datasetId?: string;
116
+ datasetId?:
117
+ string;
96
118
  /**
97
119
  * Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud
98
120
  * Storage directory.
99
121
  */
100
- gcsStagingDir?: string;
122
+ gcsStagingDir?:
123
+ string;
101
124
  /** BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. */
102
- partitionDate?: GoogleTypeDate;
125
+ partitionDate?:
126
+ GoogleTypeDate;
103
127
  /** The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
104
- projectId?: string;
128
+ projectId?:
129
+ string;
105
130
  /** Required. The BigQuery table to copy the data from with a length limit of 1,024 characters. */
106
- tableId?: string;
131
+ tableId?:
132
+ string;
107
133
  }
108
134
  interface GoogleCloudDiscoveryengineV1alphaCompletionInfo {
109
135
  /** End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0. */
110
- selectedPosition?: number;
136
+ selectedPosition?:
137
+ number;
111
138
  /** End user selected CompleteQueryResponse.CompletionResult.suggestion. */
112
- selectedSuggestion?: string;
139
+ selectedSuggestion?:
140
+ string;
113
141
  }
114
142
  interface GoogleCloudDiscoveryengineV1alphaCustomAttribute {
115
143
  /**
116
144
  * The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of CustomAttribute.text or CustomAttribute.numbers should be set.
117
145
  * Otherwise, an `INVALID_ARGUMENT` error is returned.
118
146
  */
119
- numbers?: number[];
147
+ numbers?:
148
+ number[];
120
149
  /**
121
150
  * The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
122
151
  * returned. Exactly one of CustomAttribute.text or CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
123
152
  */
124
- text?: string[];
153
+ text?:
154
+ string[];
125
155
  }
126
156
  interface GoogleCloudDiscoveryengineV1alphaDocument {
127
157
  /** Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. */
128
- id?: string;
158
+ id?:
159
+ string;
129
160
  /** The JSON string representation of the document. It should conform to the registered Schema.schema or an `INVALID_ARGUMENT` error is thrown. */
130
- jsonData?: string;
161
+ jsonData?:
162
+ string;
131
163
  /**
132
164
  * Immutable. The full resource name of the document. Format:
133
165
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string with
134
166
  * a length limit of 1024 characters.
135
167
  */
136
- name?: string;
168
+ name?:
169
+ string;
137
170
  /**
138
171
  * The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a
139
172
  * length limit of 63 characters.
140
173
  */
141
- parentDocumentId?: string;
174
+ parentDocumentId?:
175
+ string;
142
176
  /** The identifier of the schema located in the same data store. */
143
- schemaId?: string;
177
+ schemaId?:
178
+ string;
144
179
  /** The structured JSON data for the document. It should conform to the registered Schema.schema or an `INVALID_ARGUMENT` error is thrown. */
145
- structData?: { [P in string]: any };
180
+ structData?:
181
+ { [P in string]: any };
146
182
  }
147
183
  interface GoogleCloudDiscoveryengineV1alphaDocumentInfo {
148
184
  /** Required. The Document resource ID. */
149
- id?: string;
185
+ id?:
186
+ string;
150
187
  /**
151
188
  * Required. The Document resource full name, of the form:
152
189
  * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
153
190
  */
154
- name?: string;
191
+ name?:
192
+ string;
155
193
  /** The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID. */
156
- promotionIds?: string[];
194
+ promotionIds?:
195
+ string[];
157
196
  /**
158
197
  * Quantity of the Document associated with the user event. Defaults to 1. For example, this field will be 2 if two quantities of the same Document are involved in a `add-to-cart`
159
198
  * event. Required for events of the following event types: * `add-to-cart` * `purchase`
160
199
  */
161
- quantity?: number;
200
+ quantity?:
201
+ number;
162
202
  }
163
203
  interface GoogleCloudDiscoveryengineV1alphaGcsSource {
164
204
  /**
@@ -167,104 +207,136 @@ declare namespace gapi.client {
167
207
  * as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store
168
208
  * vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.
169
209
  */
170
- dataSchema?: string;
210
+ dataSchema?:
211
+ string;
171
212
  /**
172
213
  * Required. Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a
173
214
  * pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files (or 100,000 files if `data_schema` is `content`). Each file can
174
215
  * be up to 2 GB (or 100 MB if `data_schema` is `content`).
175
216
  */
176
- inputUris?: string[];
217
+ inputUris?:
218
+ string[];
177
219
  }
178
220
  interface GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata {
179
221
  /** Operation create time. */
180
- createTime?: string;
222
+ createTime?:
223
+ string;
181
224
  /** Count of entries that encountered errors while processing. */
182
- failureCount?: string;
225
+ failureCount?:
226
+ string;
183
227
  /** Count of entries that were processed successfully. */
184
- successCount?: string;
228
+ successCount?:
229
+ string;
185
230
  /** Operation last update time. If the operation is done, this is also the finish time. */
186
- updateTime?: string;
231
+ updateTime?:
232
+ string;
187
233
  }
188
234
  interface GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest {
189
235
  /** BigQuery input source. */
190
- bigquerySource?: GoogleCloudDiscoveryengineV1alphaBigQuerySource;
236
+ bigquerySource?:
237
+ GoogleCloudDiscoveryengineV1alphaBigQuerySource;
191
238
  /** The desired location of errors incurred during the Import. */
192
- errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
239
+ errorConfig?:
240
+ GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
193
241
  /** Cloud Storage location for the input content. */
194
- gcsSource?: GoogleCloudDiscoveryengineV1alphaGcsSource;
242
+ gcsSource?:
243
+ GoogleCloudDiscoveryengineV1alphaGcsSource;
195
244
  /** The Inline source for the input content for documents. */
196
- inlineSource?: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource;
245
+ inlineSource?:
246
+ GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource;
197
247
  /** The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL. */
198
- reconciliationMode?: string;
248
+ reconciliationMode?:
249
+ string;
199
250
  }
200
251
  interface GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource {
201
252
  /** Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items. */
202
- documents?: GoogleCloudDiscoveryengineV1alphaDocument[];
253
+ documents?:
254
+ GoogleCloudDiscoveryengineV1alphaDocument[];
203
255
  }
204
256
  interface GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse {
205
257
  /** Echoes the destination for the complete errors in the request if set. */
206
- errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
258
+ errorConfig?:
259
+ GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
207
260
  /** A sample of errors encountered while processing the request. */
208
- errorSamples?: GoogleRpcStatus[];
261
+ errorSamples?:
262
+ GoogleRpcStatus[];
209
263
  }
210
264
  interface GoogleCloudDiscoveryengineV1alphaImportErrorConfig {
211
265
  /**
212
266
  * Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a
213
267
  * JSON-encoded `google.rpc.Status` message.
214
268
  */
215
- gcsPrefix?: string;
269
+ gcsPrefix?:
270
+ string;
216
271
  }
217
272
  interface GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata {
218
273
  /** Operation create time. */
219
- createTime?: string;
274
+ createTime?:
275
+ string;
220
276
  /** Count of entries that encountered errors while processing. */
221
- failureCount?: string;
277
+ failureCount?:
278
+ string;
222
279
  /** Count of entries that were processed successfully. */
223
- successCount?: string;
280
+ successCount?:
281
+ string;
224
282
  /** Operation last update time. If the operation is done, this is also the finish time. */
225
- updateTime?: string;
283
+ updateTime?:
284
+ string;
226
285
  }
227
286
  interface GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest {
228
287
  /** Required. BigQuery input source. */
229
- bigquerySource?: GoogleCloudDiscoveryengineV1alphaBigQuerySource;
288
+ bigquerySource?:
289
+ GoogleCloudDiscoveryengineV1alphaBigQuerySource;
230
290
  /** The desired location of errors incurred during the Import. Cannot be set for inline user event imports. */
231
- errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
291
+ errorConfig?:
292
+ GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
232
293
  /** Required. Cloud Storage location for the input content. */
233
- gcsSource?: GoogleCloudDiscoveryengineV1alphaGcsSource;
294
+ gcsSource?:
295
+ GoogleCloudDiscoveryengineV1alphaGcsSource;
234
296
  /** Required. The Inline source for the input content for UserEvents. */
235
- inlineSource?: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource;
297
+ inlineSource?:
298
+ GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource;
236
299
  }
237
300
  interface GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource {
238
301
  /** Required. A list of user events to import. Recommended max of 10k items. */
239
- userEvents?: GoogleCloudDiscoveryengineV1alphaUserEvent[];
302
+ userEvents?:
303
+ GoogleCloudDiscoveryengineV1alphaUserEvent[];
240
304
  }
241
305
  interface GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse {
242
306
  /** Echoes the destination for the complete errors if this field was set in the request. */
243
- errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
307
+ errorConfig?:
308
+ GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
244
309
  /** A sample of errors encountered while processing the request. */
245
- errorSamples?: GoogleRpcStatus[];
310
+ errorSamples?:
311
+ GoogleRpcStatus[];
246
312
  /** Count of user events imported with complete existing Documents. */
247
- joinedEventsCount?: string;
313
+ joinedEventsCount?:
314
+ string;
248
315
  /** Count of user events imported, but with Document information not found in the existing Branch. */
249
- unjoinedEventsCount?: string;
316
+ unjoinedEventsCount?:
317
+ string;
250
318
  }
251
319
  interface GoogleCloudDiscoveryengineV1alphaListDocumentsResponse {
252
320
  /** The Documents. */
253
- documents?: GoogleCloudDiscoveryengineV1alphaDocument[];
321
+ documents?:
322
+ GoogleCloudDiscoveryengineV1alphaDocument[];
254
323
  /** A token that can be sent as ListDocumentsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
255
- nextPageToken?: string;
324
+ nextPageToken?:
325
+ string;
256
326
  }
257
327
  interface GoogleCloudDiscoveryengineV1alphaMediaInfo {
258
328
  /**
259
329
  * The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo.media_progress_duration.seconds should be
260
330
  * set to 90.
261
331
  */
262
- mediaProgressDuration?: string;
332
+ mediaProgressDuration?:
333
+ string;
263
334
  /**
264
335
  * Media progress should be computed using only the media_progress_duration relative to the media total length. This value must be between `[0, 1.0]` inclusive. If this is not a
265
336
  * playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset.
266
337
  */
267
- mediaProgressPercentage?: number;
338
+ mediaProgressPercentage?:
339
+ number;
268
340
  }
269
341
  interface GoogleCloudDiscoveryengineV1alphaPageInfo {
270
342
  /**
@@ -273,33 +345,71 @@ declare namespace gapi.client {
273
345
  * "pageCategory" : "Sales > 2017 Black Friday Deals". Required for `view-category-page` events. Other event types should not set this field. Otherwise, an INVALID_ARGUMENT error is
274
346
  * returned.
275
347
  */
276
- pageCategory?: string;
348
+ pageCategory?:
349
+ string;
277
350
  /**
278
351
  * A unique ID of a web page view. This should be kept the same for all user events triggered from the same pageview. For example, an item detail page view could trigger multiple
279
352
  * events as the user is browsing the page. The `pageViewId` property should be kept the same for all these events so that they can be grouped together properly. When using the client
280
353
  * side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically.
281
354
  */
282
- pageviewId?: string;
355
+ pageviewId?:
356
+ string;
283
357
  /**
284
358
  * The referrer URL of the current page. When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically. However, some
285
359
  * browser privacy restrictions may cause this field to be empty.
286
360
  */
287
- referrerUri?: string;
361
+ referrerUri?:
362
+ string;
288
363
  /**
289
364
  * Complete URL (window.location.href) of the user's current page. When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in
290
365
  * automatically. Maximum length 5,000 characters.
291
366
  */
292
- uri?: string;
367
+ uri?:
368
+ string;
293
369
  }
294
370
  interface GoogleCloudDiscoveryengineV1alphaPanelInfo {
295
371
  /** The display name of the panel. */
296
- displayName?: string;
372
+ displayName?:
373
+ string;
297
374
  /** Required. The panel ID. */
298
- panelId?: string;
375
+ panelId?:
376
+ string;
299
377
  /** The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set. */
300
- panelPosition?: number;
378
+ panelPosition?:
379
+ number;
301
380
  /** The total number of panels, including this one, shown to the user. Must be set if panel_position is set. */
302
- totalPanels?: number;
381
+ totalPanels?:
382
+ number;
383
+ }
384
+ interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata {
385
+ /** Operation create time. */
386
+ createTime?:
387
+ string;
388
+ /** Count of entries that encountered errors while processing. */
389
+ failureCount?:
390
+ string;
391
+ /** Count of entries that were deleted successfully. */
392
+ successCount?:
393
+ string;
394
+ /** Operation last update time. If the operation is done, this is also the finish time. */
395
+ updateTime?:
396
+ string;
397
+ }
398
+ interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest {
399
+ /** Required. Filter matching documents to purge. Only currently supported value is “*” (all items). */
400
+ filter?:
401
+ string;
402
+ /** Actually performs the purge. If `force` is set to false, return the expected purge count without deleting any documents. */
403
+ force?:
404
+ boolean;
405
+ }
406
+ interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse {
407
+ /** The total count of documents purged as a result of the operation. */
408
+ purgeCount?:
409
+ string;
410
+ /** A sample of document names that will be deleted. Only populated if `force` is set to false. A max of 100 names will be returned and the names are chosen at random. */
411
+ purgeSample?:
412
+ string[];
303
413
  }
304
414
  interface GoogleCloudDiscoveryengineV1alphaRecommendRequest {
305
415
  /**
@@ -308,12 +418,14 @@ declare namespace gapi.client {
308
418
  * the API will return generic (unfiltered) popular Documents. If you only want results strictly matching the filters, set `strictFiltering` to True in RecommendRequest.params to
309
419
  * receive empty results instead. Note that the API will never return Documents with `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
310
420
  */
311
- filter?: string;
421
+ filter?:
422
+ string;
312
423
  /**
313
424
  * Maximum number of results to return. Set this property to the number of recommendation results needed. If zero, the service will choose a reasonable default. The maximum allowed
314
425
  * value is 100. Values above 100 will be coerced to 100.
315
426
  */
316
- pageSize?: number;
427
+ pageSize?:
428
+ number;
317
429
  /**
318
430
  * Additional domain specific parameters for the recommendations. Allowed values: * `returnDocument`: Boolean. If set to true, the associated Document object will be returned in
319
431
  * RecommendResponse.RecommendationResult.document. * `returnScore`: Boolean. If set to true, the recommendation 'score' corresponding to each returned Document will be set in
@@ -322,14 +434,16 @@ declare namespace gapi.client {
322
434
  * `diversityLevel`: String. Default empty. If set to be non-empty, then it needs to be one of: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` *
323
435
  * `auto-diversity` This gives request-level control and adjusts recommendation results based on Document category.
324
436
  */
325
- params?: { [P in string]: any };
437
+ params?:
438
+ { [P in string]: any };
326
439
  /**
327
440
  * Required. Context about the user, what they are looking at and what action they took to trigger the Recommend request. Note that this user event detail won't be ingested to
328
441
  * userEvent logs. Thus, a separate userEvent write request is required for event logging. Don't set UserEvent.user_pseudo_id or UserEvent.user_info.user_id to the same fixed ID for
329
442
  * different users. If you are trying to receive non-personalized recommendations (not recommended; this can negatively impact model performance), instead set UserEvent.user_pseudo_id
330
443
  * to a random unique ID and leave UserEvent.user_info.user_id unset.
331
444
  */
332
- userEvent?: GoogleCloudDiscoveryengineV1alphaUserEvent;
445
+ userEvent?:
446
+ GoogleCloudDiscoveryengineV1alphaUserEvent;
333
447
  /**
334
448
  * The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. *
335
449
  * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and
@@ -337,41 +451,53 @@ declare namespace gapi.client {
337
451
  * portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Requirements
338
452
  * for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
339
453
  */
340
- userLabels?: { [P in string]: string };
454
+ userLabels?:
455
+ { [P in string]: string };
341
456
  /**
342
457
  * Use validate only mode for this recommendation query. If set to true, a fake model will be used that returns arbitrary Document IDs. Note that the validate only mode should only be
343
458
  * used for testing the API, or if the model is not ready.
344
459
  */
345
- validateOnly?: boolean;
460
+ validateOnly?:
461
+ boolean;
346
462
  }
347
463
  interface GoogleCloudDiscoveryengineV1alphaRecommendResponse {
348
464
  /** A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance. */
349
- attributionToken?: string;
465
+ attributionToken?:
466
+ string;
350
467
  /** IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig. */
351
- missingIds?: string[];
468
+ missingIds?:
469
+ string[];
352
470
  /** A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least). */
353
- results?: GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult[];
471
+ results?:
472
+ GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult[];
354
473
  /** True if RecommendRequest.validate_only was set. */
355
- validateOnly?: boolean;
474
+ validateOnly?:
475
+ boolean;
356
476
  }
357
477
  interface GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult {
358
478
  /** Set if `returnDocument` is set to true in RecommendRequest.params. */
359
- document?: GoogleCloudDiscoveryengineV1alphaDocument;
479
+ document?:
480
+ GoogleCloudDiscoveryengineV1alphaDocument;
360
481
  /** Resource ID of the recommended Document. */
361
- id?: string;
482
+ id?:
483
+ string;
362
484
  /** Additional Document metadata / annotations. Possible values: * `score`: Recommendation score in double value. Is set if `returnScore` is set to true in RecommendRequest.params. */
363
- metadata?: { [P in string]: any };
485
+ metadata?:
486
+ { [P in string]: any };
364
487
  }
365
488
  interface GoogleCloudDiscoveryengineV1alphaSchema {
366
489
  /** The JSON representation of the schema. */
367
- jsonSchema?: string;
490
+ jsonSchema?:
491
+ string;
368
492
  /**
369
493
  * Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This
370
494
  * field must be a UTF-8 encoded string with a length limit of 1024 characters.
371
495
  */
372
- name?: string;
496
+ name?:
497
+ string;
373
498
  /** The structured representation of the schema. */
374
- structSchema?: { [P in string]: any };
499
+ structSchema?:
500
+ { [P in string]: any };
375
501
  }
376
502
  interface GoogleCloudDiscoveryengineV1alphaSearchInfo {
377
503
  /**
@@ -379,40 +505,49 @@ declare namespace gapi.client {
379
505
  * definition. If this field is negative, an INVALID_ARGUMENT is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an
380
506
  * INVALID_ARGUMENT error is returned.
381
507
  */
382
- offset?: number;
508
+ offset?:
509
+ number;
383
510
  /**
384
511
  * The order in which products are returned, if applicable. See SearchRequest.order_by for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000
385
512
  * characters. Otherwise, an INVALID_ARGUMENT error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an INVALID_ARGUMENT
386
513
  * error is returned.
387
514
  */
388
- orderBy?: string;
515
+ orderBy?:
516
+ string;
389
517
  /**
390
518
  * The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT
391
- * error is returned. At least one of search_query or page_categories is required for `search` events. Other event types should not set this field. Otherwise, an INVALID_ARGUMENT error
392
- * is returned.
519
+ * error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an
520
+ * INVALID_ARGUMENT error is returned.
393
521
  */
394
- searchQuery?: string;
522
+ searchQuery?:
523
+ string;
395
524
  }
396
525
  interface GoogleCloudDiscoveryengineV1alphaTransactionInfo {
397
526
  /**
398
527
  * All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: * Profit = value - tax -
399
528
  * cost
400
529
  */
401
- cost?: number;
530
+ cost?:
531
+ number;
402
532
  /** Required. Currency code. Use three-character ISO-4217 code. */
403
- currency?: string;
533
+ currency?:
534
+ string;
404
535
  /**
405
536
  * The total discount(s) value applied to this transaction. This figure should be excluded from TransactionInfo.value For example, if a user paid TransactionInfo.value amount, then
406
537
  * nominal (pre-discount) value of the transaction is the sum of TransactionInfo.value and TransactionInfo.discount_value This means that profit is calculated the same way, regardless
407
538
  * of the discount value, and that TransactionInfo.discount_value can be larger than TransactionInfo.value: * Profit = value - tax - cost
408
539
  */
409
- discountValue?: number;
540
+ discountValue?:
541
+ number;
410
542
  /** All the taxes associated with the transaction. */
411
- tax?: number;
543
+ tax?:
544
+ number;
412
545
  /** The transaction ID with a length limit of 128 characters. */
413
- transactionId?: string;
546
+ transactionId?:
547
+ string;
414
548
  /** Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include. */
415
- value?: number;
549
+ value?:
550
+ number;
416
551
  }
417
552
  interface GoogleCloudDiscoveryengineV1alphaUserEvent {
418
553
  /**
@@ -424,71 +559,88 @@ declare namespace gapi.client {
424
559
  * string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is `
425
560
  * traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.
426
561
  */
427
- attributes?: { [P in string]: GoogleCloudDiscoveryengineV1alphaCustomAttribute };
562
+ attributes?:
563
+ { [P in string]: GoogleCloudDiscoveryengineV1alphaCustomAttribute };
428
564
  /**
429
- * Token to attribute an API response to user action(s) to trigger the event. Highly recommended for user events that are the result of PredictionService.Predict. This field enables
430
- * accurate attribution of recommendation model performance. The value must be one of: * PredictResponse.attribution_token for events that are the result of PredictionService.Predict.
431
- * * SearchResponse.attribution_token for events that are the result of SearchService.Search. * CompleteQueryResponse.attribution_token for events that are the result of
432
- * SearchService.CompleteQuery. This token enables us to accurately attribute page view or conversion completion back to the event and the particular predict response containing this
433
- * clicked/purchased product. If user clicks on product K in the recommendation results, pass PredictResponse.attribution_token as a URL parameter to product K's page. When recording
434
- * events on product K's page, log the PredictResponse.attribution_token to this field.
565
+ * Token to attribute an API response to user action(s) to trigger the event. Highly recommended for user events that are the result of RecommendationService.Recommend. This field
566
+ * enables accurate attribution of recommendation model performance. The value must be one of: * PredictResponse.attribution_token for events that are the result of
567
+ * RecommendationService.Recommend. * SearchResponse.attribution_token for events that are the result of SearchService.Search. * CompleteQueryResponse.attribution_token for events that
568
+ * are the result of CompletionService.CompleteQuery. This token enables us to accurately attribute page view or conversion completion back to the event and the particular predict
569
+ * response containing this clicked/purchased product. If user clicks on product K in the recommendation results, pass PredictResponse.attribution_token as a URL parameter to product
570
+ * K's page. When recording events on product K's page, log the PredictResponse.attribution_token to this field.
435
571
  */
436
- attributionToken?: string;
572
+ attributionToken?:
573
+ string;
437
574
  /** CompleteQuery API details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search. */
438
- completionInfo?: GoogleCloudDiscoveryengineV1alphaCompletionInfo;
575
+ completionInfo?:
576
+ GoogleCloudDiscoveryengineV1alphaCompletionInfo;
439
577
  /**
440
578
  * Should set to true if the request is made directly from the end user, in which case the UserEvent.user_info.user_agent can be populated from the HTTP request. This flag should be
441
579
  * set only if the API request is made directly from the end user such as a mobile app (and not if a gateway or a server is processing and pushing the user events). This should not be
442
580
  * set when using the JavaScript tag in UserEventService.CollectUserEvent.
443
581
  */
444
- directUserRequest?: boolean;
582
+ directUserRequest?:
583
+ boolean;
445
584
  /**
446
585
  * List of Documents associated with this user event. This field is optional except for the following event types: * `view-item` * `add-to-cart` * `purchase` * `media-play` *
447
586
  * `media-complete` In a `search` event, this field represents the documents returned to the end user on the current page (the end user may have not finished browsing the whole page
448
587
  * yet). When a new page is returned to the end user, after pagination/filtering/ordering even for the same query, a new `search` event with different UserEvent.documents is desired.
449
588
  */
450
- documents?: GoogleCloudDiscoveryengineV1alphaDocumentInfo[];
589
+ documents?:
590
+ GoogleCloudDiscoveryengineV1alphaDocumentInfo[];
451
591
  /** Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened. */
452
- eventTime?: string;
592
+ eventTime?:
593
+ string;
453
594
  /**
454
595
  * Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel
455
596
  * or ordered list of Documents. * `view-home-page`: View of the home page. * `view-category-page`: View of a category page, e.g. Home > Men > Jeans Retail-related values: *
456
597
  * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`: Start/resume watching a video, playing
457
598
  * a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc.
458
599
  */
459
- eventType?: string;
600
+ eventType?:
601
+ string;
460
602
  /**
461
603
  * 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
462
- * associated SearchService.SearchRequest may contain a filter expression in SearchService.SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for
463
- * `view-item-list` events that are generated from a PredictionService.PredictRequest, this field may be populated directly from PredictionService.PredictRequest.filter conforming to
604
+ * 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
605
+ * generated from a RecommendationService.RecommendRequest, this field may be populated directly from RecommendationService.RecommendRequest.filter conforming to
464
606
  * 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.
465
607
  */
466
- filter?: string;
608
+ filter?:
609
+ string;
467
610
  /** Media-specific info. */
468
- mediaInfo?: GoogleCloudDiscoveryengineV1alphaMediaInfo;
611
+ mediaInfo?:
612
+ GoogleCloudDiscoveryengineV1alphaMediaInfo;
469
613
  /** Page metadata such as categories and other critical information for certain event types such as `view-category-page`. */
470
- pageInfo?: GoogleCloudDiscoveryengineV1alphaPageInfo;
614
+ pageInfo?:
615
+ GoogleCloudDiscoveryengineV1alphaPageInfo;
471
616
  /** Panel metadata associated with this user event. */
472
- panel?: GoogleCloudDiscoveryengineV1alphaPanelInfo;
617
+ panel?:
618
+ GoogleCloudDiscoveryengineV1alphaPanelInfo;
473
619
  /** The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID. */
474
- promotionIds?: string[];
620
+ promotionIds?:
621
+ string[];
475
622
  /** Search API details related to the event. This field should be set for `search` event. */
476
- searchInfo?: GoogleCloudDiscoveryengineV1alphaSearchInfo;
623
+ searchInfo?:
624
+ GoogleCloudDiscoveryengineV1alphaSearchInfo;
477
625
  /**
478
626
  * A unique identifier for tracking a visitor session with a length limit of 128 bytes. A session is an aggregation of an end user behavior in a time span. A general guideline to
479
627
  * populate the session_id: 1. If user has no activity for 30 min, a new session_id should be assigned. 2. The session_id should be unique across users, suggest use uuid or add
480
628
  * UserEvent.user_pseudo_id as prefix.
481
629
  */
482
- sessionId?: string;
630
+ sessionId?:
631
+ string;
483
632
  /**
484
633
  * A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups
485
634
  * on the customer end.
486
635
  */
487
- tagIds?: string[];
636
+ tagIds?:
637
+ string[];
488
638
  /** The transaction metadata (if any) associated with this user event. */
489
- transactionInfo?: GoogleCloudDiscoveryengineV1alphaTransactionInfo;
639
+ transactionInfo?:
640
+ GoogleCloudDiscoveryengineV1alphaTransactionInfo;
490
641
  /** Information about the end user. */
491
- userInfo?: GoogleCloudDiscoveryengineV1alphaUserInfo;
642
+ userInfo?:
643
+ GoogleCloudDiscoveryengineV1alphaUserInfo;
492
644
  /**
493
645
  * Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single
494
646
  * device. This unique identifier should not change if the visitor log in/out of the website. Do not set the field to the same fixed ID for different users. This mixes the event
@@ -496,258 +648,365 @@ declare namespace gapi.client {
496
648
  * INVALID_ARGUMENT error is returned. The field should not contain PII or user-data. We recommend to use Google Analytics [Client
497
649
  * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) for this field.
498
650
  */
499
- userPseudoId?: string;
651
+ userPseudoId?:
652
+ string;
500
653
  }
501
654
  interface GoogleCloudDiscoveryengineV1alphaUserInfo {
502
655
  /**
503
656
  * User agent as included in the HTTP header. Required for getting SearchResponse.sponsored_results. The field must be a UTF-8 encoded string with a length limit of 1,000 characters.
504
657
  * Otherwise, an `INVALID_ARGUMENT` error is returned. This should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent
505
- * or if direct_user_request is set.
658
+ * or if UserEvent.direct_user_request is set.
506
659
  */
507
- userAgent?: string;
660
+ userAgent?:
661
+ string;
508
662
  /**
509
663
  * Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set
510
664
  * the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded
511
665
  * string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
512
666
  */
513
- userId?: string;
667
+ userId?:
668
+ string;
514
669
  }
515
670
  interface GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata {
516
671
  /** Operation create time. */
517
- createTime?: string;
672
+ createTime?:
673
+ string;
518
674
  /** Count of entries that encountered errors while processing. */
519
- failureCount?: string;
675
+ failureCount?:
676
+ string;
520
677
  /** Count of entries that were processed successfully. */
521
- successCount?: string;
678
+ successCount?:
679
+ string;
522
680
  /** Operation last update time. If the operation is done, this is also the finish time. */
523
- updateTime?: string;
681
+ updateTime?:
682
+ string;
524
683
  }
525
684
  interface GoogleCloudDiscoveryengineV1betaImportDocumentsResponse {
526
685
  /** Echoes the destination for the complete errors in the request if set. */
527
- errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
686
+ errorConfig?:
687
+ GoogleCloudDiscoveryengineV1betaImportErrorConfig;
528
688
  /** A sample of errors encountered while processing the request. */
529
- errorSamples?: GoogleRpcStatus[];
689
+ errorSamples?:
690
+ GoogleRpcStatus[];
530
691
  }
531
692
  interface GoogleCloudDiscoveryengineV1betaImportErrorConfig {
532
693
  /**
533
694
  * Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors will be written to sharded files in this directory, one per line, as a
534
695
  * JSON-encoded `google.rpc.Status` message.
535
696
  */
536
- gcsPrefix?: string;
697
+ gcsPrefix?:
698
+ string;
537
699
  }
538
700
  interface GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata {
539
701
  /** Operation create time. */
540
- createTime?: string;
702
+ createTime?:
703
+ string;
541
704
  /** Count of entries that encountered errors while processing. */
542
- failureCount?: string;
705
+ failureCount?:
706
+ string;
543
707
  /** Count of entries that were processed successfully. */
544
- successCount?: string;
708
+ successCount?:
709
+ string;
545
710
  /** Operation last update time. If the operation is done, this is also the finish time. */
546
- updateTime?: string;
711
+ updateTime?:
712
+ string;
547
713
  }
548
714
  interface GoogleCloudDiscoveryengineV1betaImportUserEventsResponse {
549
715
  /** Echoes the destination for the complete errors if this field was set in the request. */
550
- errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
716
+ errorConfig?:
717
+ GoogleCloudDiscoveryengineV1betaImportErrorConfig;
551
718
  /** A sample of errors encountered while processing the request. */
552
- errorSamples?: GoogleRpcStatus[];
719
+ errorSamples?:
720
+ GoogleRpcStatus[];
553
721
  /** Count of user events imported with complete existing Documents. */
554
- joinedEventsCount?: string;
722
+ joinedEventsCount?:
723
+ string;
555
724
  /** Count of user events imported, but with Document information not found in the existing Branch. */
556
- unjoinedEventsCount?: string;
725
+ unjoinedEventsCount?:
726
+ string;
727
+ }
728
+ interface GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata {
729
+ /** Operation create time. */
730
+ createTime?:
731
+ string;
732
+ /** Count of entries that encountered errors while processing. */
733
+ failureCount?:
734
+ string;
735
+ /** Count of entries that were deleted successfully. */
736
+ successCount?:
737
+ string;
738
+ /** Operation last update time. If the operation is done, this is also the finish time. */
739
+ updateTime?:
740
+ string;
741
+ }
742
+ interface GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse {
743
+ /** The total count of documents purged as a result of the operation. */
744
+ purgeCount?:
745
+ string;
746
+ /** A sample of document names that will be deleted. Only populated if `force` is set to false. A max of 100 names will be returned and the names are chosen at random. */
747
+ purgeSample?:
748
+ string[];
557
749
  }
558
750
  interface GoogleCloudDiscoveryengineV1betaSchema {
559
751
  /** The JSON representation of the schema. */
560
- jsonSchema?: string;
752
+ jsonSchema?:
753
+ string;
561
754
  /**
562
755
  * Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This
563
756
  * field must be a UTF-8 encoded string with a length limit of 1024 characters.
564
757
  */
565
- name?: string;
758
+ name?:
759
+ string;
566
760
  /** The structured representation of the schema. */
567
- structSchema?: { [P in string]: any };
761
+ structSchema?:
762
+ { [P in string]: any };
568
763
  }
569
764
  interface GoogleLongrunningListOperationsResponse {
570
765
  /** The standard List next-page token. */
571
- nextPageToken?: string;
766
+ nextPageToken?:
767
+ string;
572
768
  /** A list of operations that matches the specified filter in the request. */
573
- operations?: GoogleLongrunningOperation[];
769
+ operations?:
770
+ GoogleLongrunningOperation[];
574
771
  }
575
772
  interface GoogleLongrunningOperation {
576
773
  /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
577
- done?: boolean;
774
+ done?:
775
+ boolean;
578
776
  /** The error result of the operation in case of failure or cancellation. */
579
- error?: GoogleRpcStatus;
777
+ error?:
778
+ GoogleRpcStatus;
580
779
  /**
581
780
  * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
582
781
  * metadata. Any method that returns a long-running operation should document the metadata type, if any.
583
782
  */
584
- metadata?: { [P in string]: any };
783
+ metadata?:
784
+ { [P in string]: any };
585
785
  /**
586
786
  * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
587
787
  * with `operations/{unique_id}`.
588
788
  */
589
- name?: string;
789
+ name?:
790
+ string;
590
791
  /**
591
792
  * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
592
793
  * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
593
794
  * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
594
795
  */
595
- response?: { [P in string]: any };
796
+ response?:
797
+ { [P in string]: any };
596
798
  }
597
799
  // tslint:disable-next-line:no-empty-interface
598
800
  interface GoogleProtobufEmpty {
599
801
  }
600
802
  interface GoogleRpcStatus {
601
803
  /** The status code, which should be an enum value of google.rpc.Code. */
602
- code?: number;
804
+ code?:
805
+ number;
603
806
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
604
- details?: Array<{ [P in string]: any }>;
807
+ details?:
808
+ Array<{ [P in string]: any }>;
605
809
  /**
606
810
  * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
607
811
  * client.
608
812
  */
609
- message?: string;
813
+ message?:
814
+ string;
610
815
  }
611
816
  interface GoogleTypeDate {
612
817
  /** 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. */
613
- day?: number;
818
+ day?:
819
+ number;
614
820
  /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
615
- month?: number;
821
+ month?:
822
+ number;
616
823
  /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
617
- year?: number;
824
+ year?:
825
+ number;
618
826
  }
619
827
  interface DocumentsResource {
620
828
  /** Creates a Document. */
621
829
  create(request: {
622
830
  /** V1 error format. */
623
- "$.xgafv"?: string;
831
+ "$.xgafv"?:
832
+ string;
624
833
  /** OAuth access token. */
625
- access_token?: string;
834
+ access_token?:
835
+ string;
626
836
  /** Data format for response. */
627
- alt?: string;
837
+ alt?:
838
+ string;
628
839
  /** JSONP */
629
- callback?: string;
840
+ callback?:
841
+ string;
630
842
  /**
631
843
  * Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless
632
844
  * of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is
633
845
  * returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
634
846
  * returned.
635
847
  */
636
- documentId?: string;
848
+ documentId?:
849
+ string;
637
850
  /** Selector specifying which fields to include in a partial response. */
638
- fields?: string;
851
+ fields?:
852
+ string;
639
853
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
640
- key?: string;
854
+ key?:
855
+ string;
641
856
  /** OAuth 2.0 token for the current user. */
642
- oauth_token?: string;
857
+ oauth_token?:
858
+ string;
643
859
  /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
644
- parent: string;
860
+ parent:
861
+ string;
645
862
  /** Returns response with indentations and line breaks. */
646
- prettyPrint?: boolean;
863
+ prettyPrint?:
864
+ boolean;
647
865
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
648
- quotaUser?: string;
866
+ quotaUser?:
867
+ string;
649
868
  /** Upload protocol for media (e.g. "raw", "multipart"). */
650
- upload_protocol?: string;
869
+ upload_protocol?:
870
+ string;
651
871
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
652
- uploadType?: string;
872
+ uploadType?:
873
+ string;
653
874
  /** Request body */
654
- resource: GoogleCloudDiscoveryengineV1alphaDocument;
875
+ resource:
876
+ GoogleCloudDiscoveryengineV1alphaDocument;
655
877
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
656
878
  create(request: {
657
879
  /** V1 error format. */
658
- "$.xgafv"?: string;
880
+ "$.xgafv"?:
881
+ string;
659
882
  /** OAuth access token. */
660
- access_token?: string;
883
+ access_token?:
884
+ string;
661
885
  /** Data format for response. */
662
- alt?: string;
886
+ alt?:
887
+ string;
663
888
  /** JSONP */
664
- callback?: string;
889
+ callback?:
890
+ string;
665
891
  /**
666
892
  * Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless
667
893
  * of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is
668
894
  * returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
669
895
  * returned.
670
896
  */
671
- documentId?: string;
897
+ documentId?:
898
+ string;
672
899
  /** Selector specifying which fields to include in a partial response. */
673
- fields?: string;
900
+ fields?:
901
+ string;
674
902
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
675
- key?: string;
903
+ key?:
904
+ string;
676
905
  /** OAuth 2.0 token for the current user. */
677
- oauth_token?: string;
906
+ oauth_token?:
907
+ string;
678
908
  /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
679
- parent: string;
909
+ parent:
910
+ string;
680
911
  /** Returns response with indentations and line breaks. */
681
- prettyPrint?: boolean;
912
+ prettyPrint?:
913
+ boolean;
682
914
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
683
- quotaUser?: string;
915
+ quotaUser?:
916
+ string;
684
917
  /** Upload protocol for media (e.g. "raw", "multipart"). */
685
- upload_protocol?: string;
918
+ upload_protocol?:
919
+ string;
686
920
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
687
- uploadType?: string;
921
+ uploadType?:
922
+ string;
688
923
  },
689
924
  body: GoogleCloudDiscoveryengineV1alphaDocument): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
690
925
  /** Deletes a Document. */
691
926
  delete(request?: {
692
927
  /** V1 error format. */
693
- "$.xgafv"?: string;
928
+ "$.xgafv"?:
929
+ string;
694
930
  /** OAuth access token. */
695
- access_token?: string;
931
+ access_token?:
932
+ string;
696
933
  /** Data format for response. */
697
- alt?: string;
934
+ alt?:
935
+ string;
698
936
  /** JSONP */
699
- callback?: string;
937
+ callback?:
938
+ string;
700
939
  /** Selector specifying which fields to include in a partial response. */
701
- fields?: string;
940
+ fields?:
941
+ string;
702
942
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
703
- key?: string;
943
+ key?:
944
+ string;
704
945
  /**
705
946
  * Required. Full resource name of Document, such as
706
947
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
707
948
  * delete the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the Document to delete does not exist, a `NOT_FOUND` error is returned.
708
949
  */
709
- name: string;
950
+ name:
951
+ string;
710
952
  /** OAuth 2.0 token for the current user. */
711
- oauth_token?: string;
953
+ oauth_token?:
954
+ string;
712
955
  /** Returns response with indentations and line breaks. */
713
- prettyPrint?: boolean;
956
+ prettyPrint?:
957
+ boolean;
714
958
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
715
- quotaUser?: string;
959
+ quotaUser?:
960
+ string;
716
961
  /** Upload protocol for media (e.g. "raw", "multipart"). */
717
- upload_protocol?: string;
962
+ upload_protocol?:
963
+ string;
718
964
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
719
- uploadType?: string;
965
+ uploadType?:
966
+ string;
720
967
  }): Request<{}>;
721
968
  /** Gets a Document. */
722
969
  get(request?: {
723
970
  /** V1 error format. */
724
- "$.xgafv"?: string;
971
+ "$.xgafv"?:
972
+ string;
725
973
  /** OAuth access token. */
726
- access_token?: string;
974
+ access_token?:
975
+ string;
727
976
  /** Data format for response. */
728
- alt?: string;
977
+ alt?:
978
+ string;
729
979
  /** JSONP */
730
- callback?: string;
980
+ callback?:
981
+ string;
731
982
  /** Selector specifying which fields to include in a partial response. */
732
- fields?: string;
983
+ fields?:
984
+ string;
733
985
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
734
- key?: string;
986
+ key?:
987
+ string;
735
988
  /**
736
989
  * Required. Full resource name of Document, such as
737
990
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
738
991
  * access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned.
739
992
  */
740
- name: string;
993
+ name:
994
+ string;
741
995
  /** OAuth 2.0 token for the current user. */
742
- oauth_token?: string;
996
+ oauth_token?:
997
+ string;
743
998
  /** Returns response with indentations and line breaks. */
744
- prettyPrint?: boolean;
999
+ prettyPrint?:
1000
+ boolean;
745
1001
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
746
- quotaUser?: string;
1002
+ quotaUser?:
1003
+ string;
747
1004
  /** Upload protocol for media (e.g. "raw", "multipart"). */
748
- upload_protocol?: string;
1005
+ upload_protocol?:
1006
+ string;
749
1007
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
750
- uploadType?: string;
1008
+ uploadType?:
1009
+ string;
751
1010
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
752
1011
  /**
753
1012
  * Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully
@@ -755,429 +1014,689 @@ declare namespace gapi.client {
755
1014
  */
756
1015
  import(request: {
757
1016
  /** V1 error format. */
758
- "$.xgafv"?: string;
1017
+ "$.xgafv"?:
1018
+ string;
759
1019
  /** OAuth access token. */
760
- access_token?: string;
1020
+ access_token?:
1021
+ string;
761
1022
  /** Data format for response. */
762
- alt?: string;
1023
+ alt?:
1024
+ string;
763
1025
  /** JSONP */
764
- callback?: string;
1026
+ callback?:
1027
+ string;
765
1028
  /** Selector specifying which fields to include in a partial response. */
766
- fields?: string;
1029
+ fields?:
1030
+ string;
767
1031
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
768
- key?: string;
1032
+ key?:
1033
+ string;
769
1034
  /** OAuth 2.0 token for the current user. */
770
- oauth_token?: string;
1035
+ oauth_token?:
1036
+ string;
771
1037
  /**
772
1038
  * Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
773
1039
  * create/update permission.
774
1040
  */
775
- parent: string;
1041
+ parent:
1042
+ string;
776
1043
  /** Returns response with indentations and line breaks. */
777
- prettyPrint?: boolean;
1044
+ prettyPrint?:
1045
+ boolean;
778
1046
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
779
- quotaUser?: string;
1047
+ quotaUser?:
1048
+ string;
780
1049
  /** Upload protocol for media (e.g. "raw", "multipart"). */
781
- upload_protocol?: string;
1050
+ upload_protocol?:
1051
+ string;
782
1052
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
783
- uploadType?: string;
1053
+ uploadType?:
1054
+ string;
784
1055
  /** Request body */
785
- resource: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest;
1056
+ resource:
1057
+ GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest;
786
1058
  }): Request<GoogleLongrunningOperation>;
787
1059
  import(request: {
788
1060
  /** V1 error format. */
789
- "$.xgafv"?: string;
1061
+ "$.xgafv"?:
1062
+ string;
790
1063
  /** OAuth access token. */
791
- access_token?: string;
1064
+ access_token?:
1065
+ string;
792
1066
  /** Data format for response. */
793
- alt?: string;
1067
+ alt?:
1068
+ string;
794
1069
  /** JSONP */
795
- callback?: string;
1070
+ callback?:
1071
+ string;
796
1072
  /** Selector specifying which fields to include in a partial response. */
797
- fields?: string;
1073
+ fields?:
1074
+ string;
798
1075
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
799
- key?: string;
1076
+ key?:
1077
+ string;
800
1078
  /** OAuth 2.0 token for the current user. */
801
- oauth_token?: string;
1079
+ oauth_token?:
1080
+ string;
802
1081
  /**
803
1082
  * Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
804
1083
  * create/update permission.
805
1084
  */
806
- parent: string;
1085
+ parent:
1086
+ string;
807
1087
  /** Returns response with indentations and line breaks. */
808
- prettyPrint?: boolean;
1088
+ prettyPrint?:
1089
+ boolean;
809
1090
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
810
- quotaUser?: string;
1091
+ quotaUser?:
1092
+ string;
811
1093
  /** Upload protocol for media (e.g. "raw", "multipart"). */
812
- upload_protocol?: string;
1094
+ upload_protocol?:
1095
+ string;
813
1096
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
814
- uploadType?: string;
1097
+ uploadType?:
1098
+ string;
815
1099
  },
816
1100
  body: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest): Request<GoogleLongrunningOperation>;
817
1101
  /** Gets a list of Documents. */
818
1102
  list(request?: {
819
1103
  /** V1 error format. */
820
- "$.xgafv"?: string;
1104
+ "$.xgafv"?:
1105
+ string;
821
1106
  /** OAuth access token. */
822
- access_token?: string;
1107
+ access_token?:
1108
+ string;
823
1109
  /** Data format for response. */
824
- alt?: string;
1110
+ alt?:
1111
+ string;
825
1112
  /** JSONP */
826
- callback?: string;
1113
+ callback?:
1114
+ string;
827
1115
  /** Selector specifying which fields to include in a partial response. */
828
- fields?: string;
1116
+ fields?:
1117
+ string;
829
1118
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
830
- key?: string;
1119
+ key?:
1120
+ string;
831
1121
  /** OAuth 2.0 token for the current user. */
832
- oauth_token?: string;
1122
+ oauth_token?:
1123
+ string;
833
1124
  /**
834
1125
  * Maximum number of Documents to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative,
835
1126
  * an `INVALID_ARGUMENT` error is returned.
836
1127
  */
837
- pageSize?: number;
1128
+ pageSize?:
1129
+ number;
838
1130
  /**
839
1131
  * A page token ListDocumentsResponse.next_page_token, received from a previous DocumentService.ListDocuments call. Provide this to retrieve the subsequent page. When paginating,
840
1132
  * all other parameters provided to DocumentService.ListDocuments must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
841
1133
  */
842
- pageToken?: string;
1134
+ pageToken?:
1135
+ string;
843
1136
  /**
844
1137
  * Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Use
845
1138
  * `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list Documentss under this branch, regardless of whether
846
1139
  * or not this branch exists, a `PERMISSION_DENIED` error is returned.
847
1140
  */
848
- parent: string;
1141
+ parent:
1142
+ string;
849
1143
  /** Returns response with indentations and line breaks. */
850
- prettyPrint?: boolean;
1144
+ prettyPrint?:
1145
+ boolean;
851
1146
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
852
- quotaUser?: string;
1147
+ quotaUser?:
1148
+ string;
853
1149
  /** Upload protocol for media (e.g. "raw", "multipart"). */
854
- upload_protocol?: string;
1150
+ upload_protocol?:
1151
+ string;
855
1152
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
856
- uploadType?: string;
1153
+ uploadType?:
1154
+ string;
857
1155
  }): Request<GoogleCloudDiscoveryengineV1alphaListDocumentsResponse>;
858
1156
  /** Updates a Document. */
859
1157
  patch(request: {
860
1158
  /** V1 error format. */
861
- "$.xgafv"?: string;
1159
+ "$.xgafv"?:
1160
+ string;
862
1161
  /** OAuth access token. */
863
- access_token?: string;
1162
+ access_token?:
1163
+ string;
864
1164
  /** If set to true, and the Document is not found, a new Document will be created. */
865
- allowMissing?: boolean;
1165
+ allowMissing?:
1166
+ boolean;
866
1167
  /** Data format for response. */
867
- alt?: string;
1168
+ alt?:
1169
+ string;
868
1170
  /** JSONP */
869
- callback?: string;
1171
+ callback?:
1172
+ string;
870
1173
  /** Selector specifying which fields to include in a partial response. */
871
- fields?: string;
1174
+ fields?:
1175
+ string;
872
1176
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
873
- key?: string;
1177
+ key?:
1178
+ string;
874
1179
  /**
875
1180
  * Immutable. The full resource name of the document. Format:
876
1181
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
877
1182
  * with a length limit of 1024 characters.
878
1183
  */
879
- name: string;
1184
+ name:
1185
+ string;
880
1186
  /** OAuth 2.0 token for the current user. */
881
- oauth_token?: string;
1187
+ oauth_token?:
1188
+ string;
882
1189
  /** Returns response with indentations and line breaks. */
883
- prettyPrint?: boolean;
1190
+ prettyPrint?:
1191
+ boolean;
884
1192
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
885
- quotaUser?: string;
1193
+ quotaUser?:
1194
+ string;
886
1195
  /** Upload protocol for media (e.g. "raw", "multipart"). */
887
- upload_protocol?: string;
1196
+ upload_protocol?:
1197
+ string;
888
1198
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
889
- uploadType?: string;
1199
+ uploadType?:
1200
+ string;
890
1201
  /** Request body */
891
- resource: GoogleCloudDiscoveryengineV1alphaDocument;
1202
+ resource:
1203
+ GoogleCloudDiscoveryengineV1alphaDocument;
892
1204
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
893
1205
  patch(request: {
894
1206
  /** V1 error format. */
895
- "$.xgafv"?: string;
1207
+ "$.xgafv"?:
1208
+ string;
896
1209
  /** OAuth access token. */
897
- access_token?: string;
1210
+ access_token?:
1211
+ string;
898
1212
  /** If set to true, and the Document is not found, a new Document will be created. */
899
- allowMissing?: boolean;
1213
+ allowMissing?:
1214
+ boolean;
900
1215
  /** Data format for response. */
901
- alt?: string;
1216
+ alt?:
1217
+ string;
902
1218
  /** JSONP */
903
- callback?: string;
1219
+ callback?:
1220
+ string;
904
1221
  /** Selector specifying which fields to include in a partial response. */
905
- fields?: string;
1222
+ fields?:
1223
+ string;
906
1224
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
907
- key?: string;
1225
+ key?:
1226
+ string;
908
1227
  /**
909
1228
  * Immutable. The full resource name of the document. Format:
910
1229
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
911
1230
  * with a length limit of 1024 characters.
912
1231
  */
913
- name: string;
1232
+ name:
1233
+ string;
914
1234
  /** OAuth 2.0 token for the current user. */
915
- oauth_token?: string;
1235
+ oauth_token?:
1236
+ string;
916
1237
  /** Returns response with indentations and line breaks. */
917
- prettyPrint?: boolean;
1238
+ prettyPrint?:
1239
+ boolean;
918
1240
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
919
- quotaUser?: string;
1241
+ quotaUser?:
1242
+ string;
920
1243
  /** Upload protocol for media (e.g. "raw", "multipart"). */
921
- upload_protocol?: string;
1244
+ upload_protocol?:
1245
+ string;
922
1246
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
923
- uploadType?: string;
1247
+ uploadType?:
1248
+ string;
924
1249
  },
925
1250
  body: GoogleCloudDiscoveryengineV1alphaDocument): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
1251
+ /**
1252
+ * Permanently deletes all selected Documents under a branch. This process is asynchronous. If the request is valid, the removal will be enquired and processed offlines. Depending on
1253
+ * the number of Documents, this operation could take hours to complete. Before the operation completes, some Documents may still be returned by DocumentService.GetDocument or
1254
+ * DocumentService.ListDocuments. To get a sample of Documents that would be deleted, set PurgeDocumentsRequest.force to false.
1255
+ */
1256
+ purge(request: {
1257
+ /** V1 error format. */
1258
+ "$.xgafv"?:
1259
+ string;
1260
+ /** OAuth access token. */
1261
+ access_token?:
1262
+ string;
1263
+ /** Data format for response. */
1264
+ alt?:
1265
+ string;
1266
+ /** JSONP */
1267
+ callback?:
1268
+ string;
1269
+ /** Selector specifying which fields to include in a partial response. */
1270
+ fields?:
1271
+ string;
1272
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1273
+ key?:
1274
+ string;
1275
+ /** OAuth 2.0 token for the current user. */
1276
+ oauth_token?:
1277
+ string;
1278
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
1279
+ parent:
1280
+ string;
1281
+ /** Returns response with indentations and line breaks. */
1282
+ prettyPrint?:
1283
+ boolean;
1284
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1285
+ quotaUser?:
1286
+ string;
1287
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1288
+ upload_protocol?:
1289
+ string;
1290
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1291
+ uploadType?:
1292
+ string;
1293
+ /** Request body */
1294
+ resource:
1295
+ GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest;
1296
+ }): Request<GoogleLongrunningOperation>;
1297
+ purge(request: {
1298
+ /** V1 error format. */
1299
+ "$.xgafv"?:
1300
+ string;
1301
+ /** OAuth access token. */
1302
+ access_token?:
1303
+ string;
1304
+ /** Data format for response. */
1305
+ alt?:
1306
+ string;
1307
+ /** JSONP */
1308
+ callback?:
1309
+ string;
1310
+ /** Selector specifying which fields to include in a partial response. */
1311
+ fields?:
1312
+ string;
1313
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1314
+ key?:
1315
+ string;
1316
+ /** OAuth 2.0 token for the current user. */
1317
+ oauth_token?:
1318
+ string;
1319
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
1320
+ parent:
1321
+ string;
1322
+ /** Returns response with indentations and line breaks. */
1323
+ prettyPrint?:
1324
+ boolean;
1325
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1326
+ quotaUser?:
1327
+ string;
1328
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1329
+ upload_protocol?:
1330
+ string;
1331
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1332
+ uploadType?:
1333
+ string;
1334
+ },
1335
+ body: GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest): Request<GoogleLongrunningOperation>;
926
1336
  }
927
1337
  interface OperationsResource {
928
1338
  /** 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. */
929
1339
  get(request?: {
930
1340
  /** V1 error format. */
931
- "$.xgafv"?: string;
1341
+ "$.xgafv"?:
1342
+ string;
932
1343
  /** OAuth access token. */
933
- access_token?: string;
1344
+ access_token?:
1345
+ string;
934
1346
  /** Data format for response. */
935
- alt?: string;
1347
+ alt?:
1348
+ string;
936
1349
  /** JSONP */
937
- callback?: string;
1350
+ callback?:
1351
+ string;
938
1352
  /** Selector specifying which fields to include in a partial response. */
939
- fields?: string;
1353
+ fields?:
1354
+ string;
940
1355
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
941
- key?: string;
1356
+ key?:
1357
+ string;
942
1358
  /** The name of the operation resource. */
943
- name: string;
1359
+ name:
1360
+ string;
944
1361
  /** OAuth 2.0 token for the current user. */
945
- oauth_token?: string;
1362
+ oauth_token?:
1363
+ string;
946
1364
  /** Returns response with indentations and line breaks. */
947
- prettyPrint?: boolean;
1365
+ prettyPrint?:
1366
+ boolean;
948
1367
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
949
- quotaUser?: string;
1368
+ quotaUser?:
1369
+ string;
950
1370
  /** Upload protocol for media (e.g. "raw", "multipart"). */
951
- upload_protocol?: string;
1371
+ upload_protocol?:
1372
+ string;
952
1373
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
953
- uploadType?: string;
1374
+ uploadType?:
1375
+ string;
954
1376
  }): Request<GoogleLongrunningOperation>;
955
1377
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
956
1378
  list(request?: {
957
1379
  /** V1 error format. */
958
- "$.xgafv"?: string;
1380
+ "$.xgafv"?:
1381
+ string;
959
1382
  /** OAuth access token. */
960
- access_token?: string;
1383
+ access_token?:
1384
+ string;
961
1385
  /** Data format for response. */
962
- alt?: string;
1386
+ alt?:
1387
+ string;
963
1388
  /** JSONP */
964
- callback?: string;
1389
+ callback?:
1390
+ string;
965
1391
  /** Selector specifying which fields to include in a partial response. */
966
- fields?: string;
1392
+ fields?:
1393
+ string;
967
1394
  /** The standard list filter. */
968
- filter?: string;
1395
+ filter?:
1396
+ string;
969
1397
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
970
- key?: string;
1398
+ key?:
1399
+ string;
971
1400
  /** The name of the operation's parent resource. */
972
- name: string;
1401
+ name:
1402
+ string;
973
1403
  /** OAuth 2.0 token for the current user. */
974
- oauth_token?: string;
1404
+ oauth_token?:
1405
+ string;
975
1406
  /** The standard list page size. */
976
- pageSize?: number;
1407
+ pageSize?:
1408
+ number;
977
1409
  /** The standard list page token. */
978
- pageToken?: string;
1410
+ pageToken?:
1411
+ string;
979
1412
  /** Returns response with indentations and line breaks. */
980
- prettyPrint?: boolean;
1413
+ prettyPrint?:
1414
+ boolean;
981
1415
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
982
- quotaUser?: string;
1416
+ quotaUser?:
1417
+ string;
983
1418
  /** Upload protocol for media (e.g. "raw", "multipart"). */
984
- upload_protocol?: string;
1419
+ upload_protocol?:
1420
+ string;
985
1421
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
986
- uploadType?: string;
1422
+ uploadType?:
1423
+ string;
987
1424
  }): Request<GoogleLongrunningListOperationsResponse>;
988
1425
  }
989
1426
  interface BranchesResource {
990
- documents: DocumentsResource;
991
- operations: OperationsResource;
1427
+ documents:
1428
+ DocumentsResource;
1429
+ operations:
1430
+ OperationsResource;
992
1431
  }
993
1432
  interface OperationsResource {
994
1433
  /** 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. */
995
1434
  get(request?: {
996
1435
  /** V1 error format. */
997
- "$.xgafv"?: string;
1436
+ "$.xgafv"?:
1437
+ string;
998
1438
  /** OAuth access token. */
999
- access_token?: string;
1439
+ access_token?:
1440
+ string;
1000
1441
  /** Data format for response. */
1001
- alt?: string;
1442
+ alt?:
1443
+ string;
1002
1444
  /** JSONP */
1003
- callback?: string;
1445
+ callback?:
1446
+ string;
1004
1447
  /** Selector specifying which fields to include in a partial response. */
1005
- fields?: string;
1448
+ fields?:
1449
+ string;
1006
1450
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1007
- key?: string;
1451
+ key?:
1452
+ string;
1008
1453
  /** The name of the operation resource. */
1009
- name: string;
1454
+ name:
1455
+ string;
1010
1456
  /** OAuth 2.0 token for the current user. */
1011
- oauth_token?: string;
1457
+ oauth_token?:
1458
+ string;
1012
1459
  /** Returns response with indentations and line breaks. */
1013
- prettyPrint?: boolean;
1460
+ prettyPrint?:
1461
+ boolean;
1014
1462
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1015
- quotaUser?: string;
1463
+ quotaUser?:
1464
+ string;
1016
1465
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1017
- upload_protocol?: string;
1466
+ upload_protocol?:
1467
+ string;
1018
1468
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1019
- uploadType?: string;
1469
+ uploadType?:
1470
+ string;
1020
1471
  }): Request<GoogleLongrunningOperation>;
1021
1472
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1022
1473
  list(request?: {
1023
1474
  /** V1 error format. */
1024
- "$.xgafv"?: string;
1475
+ "$.xgafv"?:
1476
+ string;
1025
1477
  /** OAuth access token. */
1026
- access_token?: string;
1478
+ access_token?:
1479
+ string;
1027
1480
  /** Data format for response. */
1028
- alt?: string;
1481
+ alt?:
1482
+ string;
1029
1483
  /** JSONP */
1030
- callback?: string;
1484
+ callback?:
1485
+ string;
1031
1486
  /** Selector specifying which fields to include in a partial response. */
1032
- fields?: string;
1487
+ fields?:
1488
+ string;
1033
1489
  /** The standard list filter. */
1034
- filter?: string;
1490
+ filter?:
1491
+ string;
1035
1492
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1036
- key?: string;
1493
+ key?:
1494
+ string;
1037
1495
  /** The name of the operation's parent resource. */
1038
- name: string;
1496
+ name:
1497
+ string;
1039
1498
  /** OAuth 2.0 token for the current user. */
1040
- oauth_token?: string;
1499
+ oauth_token?:
1500
+ string;
1041
1501
  /** The standard list page size. */
1042
- pageSize?: number;
1502
+ pageSize?:
1503
+ number;
1043
1504
  /** The standard list page token. */
1044
- pageToken?: string;
1505
+ pageToken?:
1506
+ string;
1045
1507
  /** Returns response with indentations and line breaks. */
1046
- prettyPrint?: boolean;
1508
+ prettyPrint?:
1509
+ boolean;
1047
1510
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1048
- quotaUser?: string;
1511
+ quotaUser?:
1512
+ string;
1049
1513
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1050
- upload_protocol?: string;
1514
+ upload_protocol?:
1515
+ string;
1051
1516
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1052
- uploadType?: string;
1517
+ uploadType?:
1518
+ string;
1053
1519
  }): Request<GoogleLongrunningListOperationsResponse>;
1054
1520
  }
1055
1521
  interface ModelsResource {
1056
- operations: OperationsResource;
1522
+ operations:
1523
+ OperationsResource;
1057
1524
  }
1058
1525
  interface OperationsResource {
1059
1526
  /** 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. */
1060
1527
  get(request?: {
1061
1528
  /** V1 error format. */
1062
- "$.xgafv"?: string;
1529
+ "$.xgafv"?:
1530
+ string;
1063
1531
  /** OAuth access token. */
1064
- access_token?: string;
1532
+ access_token?:
1533
+ string;
1065
1534
  /** Data format for response. */
1066
- alt?: string;
1535
+ alt?:
1536
+ string;
1067
1537
  /** JSONP */
1068
- callback?: string;
1538
+ callback?:
1539
+ string;
1069
1540
  /** Selector specifying which fields to include in a partial response. */
1070
- fields?: string;
1541
+ fields?:
1542
+ string;
1071
1543
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1072
- key?: string;
1544
+ key?:
1545
+ string;
1073
1546
  /** The name of the operation resource. */
1074
- name: string;
1547
+ name:
1548
+ string;
1075
1549
  /** OAuth 2.0 token for the current user. */
1076
- oauth_token?: string;
1550
+ oauth_token?:
1551
+ string;
1077
1552
  /** Returns response with indentations and line breaks. */
1078
- prettyPrint?: boolean;
1553
+ prettyPrint?:
1554
+ boolean;
1079
1555
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1080
- quotaUser?: string;
1556
+ quotaUser?:
1557
+ string;
1081
1558
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1082
- upload_protocol?: string;
1559
+ upload_protocol?:
1560
+ string;
1083
1561
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1084
- uploadType?: string;
1562
+ uploadType?:
1563
+ string;
1085
1564
  }): Request<GoogleLongrunningOperation>;
1086
1565
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1087
1566
  list(request?: {
1088
1567
  /** V1 error format. */
1089
- "$.xgafv"?: string;
1568
+ "$.xgafv"?:
1569
+ string;
1090
1570
  /** OAuth access token. */
1091
- access_token?: string;
1571
+ access_token?:
1572
+ string;
1092
1573
  /** Data format for response. */
1093
- alt?: string;
1574
+ alt?:
1575
+ string;
1094
1576
  /** JSONP */
1095
- callback?: string;
1577
+ callback?:
1578
+ string;
1096
1579
  /** Selector specifying which fields to include in a partial response. */
1097
- fields?: string;
1580
+ fields?:
1581
+ string;
1098
1582
  /** The standard list filter. */
1099
- filter?: string;
1583
+ filter?:
1584
+ string;
1100
1585
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1101
- key?: string;
1586
+ key?:
1587
+ string;
1102
1588
  /** The name of the operation's parent resource. */
1103
- name: string;
1589
+ name:
1590
+ string;
1104
1591
  /** OAuth 2.0 token for the current user. */
1105
- oauth_token?: string;
1592
+ oauth_token?:
1593
+ string;
1106
1594
  /** The standard list page size. */
1107
- pageSize?: number;
1595
+ pageSize?:
1596
+ number;
1108
1597
  /** The standard list page token. */
1109
- pageToken?: string;
1598
+ pageToken?:
1599
+ string;
1110
1600
  /** Returns response with indentations and line breaks. */
1111
- prettyPrint?: boolean;
1601
+ prettyPrint?:
1602
+ boolean;
1112
1603
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1113
- quotaUser?: string;
1604
+ quotaUser?:
1605
+ string;
1114
1606
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1115
- upload_protocol?: string;
1607
+ upload_protocol?:
1608
+ string;
1116
1609
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1117
- uploadType?: string;
1610
+ uploadType?:
1611
+ string;
1118
1612
  }): Request<GoogleLongrunningListOperationsResponse>;
1119
1613
  }
1120
1614
  interface ServingConfigsResource {
1121
1615
  /** Makes a recommendation, which requires a contextual user event. */
1122
1616
  recommend(request: {
1123
1617
  /** V1 error format. */
1124
- "$.xgafv"?: string;
1618
+ "$.xgafv"?:
1619
+ string;
1125
1620
  /** OAuth access token. */
1126
- access_token?: string;
1621
+ access_token?:
1622
+ string;
1127
1623
  /** Data format for response. */
1128
- alt?: string;
1624
+ alt?:
1625
+ string;
1129
1626
  /** JSONP */
1130
- callback?: string;
1627
+ callback?:
1628
+ string;
1131
1629
  /** Selector specifying which fields to include in a partial response. */
1132
- fields?: string;
1630
+ fields?:
1631
+ string;
1133
1632
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1134
- key?: string;
1633
+ key?:
1634
+ string;
1135
1635
  /** OAuth 2.0 token for the current user. */
1136
- oauth_token?: string;
1636
+ oauth_token?:
1637
+ string;
1137
1638
  /** Returns response with indentations and line breaks. */
1138
- prettyPrint?: boolean;
1639
+ prettyPrint?:
1640
+ boolean;
1139
1641
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1140
- quotaUser?: string;
1642
+ quotaUser?:
1643
+ string;
1141
1644
  /**
1142
1645
  * Required. Full resource name of the format: `projects/*‍/locations/global/collections/*‍/dataStores/*‍/servingConfigs/*` Before you can request recommendations from your model,
1143
1646
  * you must create at least one serving config for it.
1144
1647
  */
1145
- servingConfig: string;
1648
+ servingConfig:
1649
+ string;
1146
1650
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1147
- upload_protocol?: string;
1651
+ upload_protocol?:
1652
+ string;
1148
1653
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1149
- uploadType?: string;
1654
+ uploadType?:
1655
+ string;
1150
1656
  /** Request body */
1151
- resource: GoogleCloudDiscoveryengineV1alphaRecommendRequest;
1657
+ resource:
1658
+ GoogleCloudDiscoveryengineV1alphaRecommendRequest;
1152
1659
  }): Request<GoogleCloudDiscoveryengineV1alphaRecommendResponse>;
1153
1660
  recommend(request: {
1154
1661
  /** V1 error format. */
1155
- "$.xgafv"?: string;
1662
+ "$.xgafv"?:
1663
+ string;
1156
1664
  /** OAuth access token. */
1157
- access_token?: string;
1665
+ access_token?:
1666
+ string;
1158
1667
  /** Data format for response. */
1159
- alt?: string;
1668
+ alt?:
1669
+ string;
1160
1670
  /** JSONP */
1161
- callback?: string;
1671
+ callback?:
1672
+ string;
1162
1673
  /** Selector specifying which fields to include in a partial response. */
1163
- fields?: string;
1674
+ fields?:
1675
+ string;
1164
1676
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1165
- key?: string;
1677
+ key?:
1678
+ string;
1166
1679
  /** OAuth 2.0 token for the current user. */
1167
- oauth_token?: string;
1680
+ oauth_token?:
1681
+ string;
1168
1682
  /** Returns response with indentations and line breaks. */
1169
- prettyPrint?: boolean;
1683
+ prettyPrint?:
1684
+ boolean;
1170
1685
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1171
- quotaUser?: string;
1686
+ quotaUser?:
1687
+ string;
1172
1688
  /**
1173
1689
  * Required. Full resource name of the format: `projects/*‍/locations/global/collections/*‍/dataStores/*‍/servingConfigs/*` Before you can request recommendations from your model,
1174
1690
  * you must create at least one serving config for it.
1175
1691
  */
1176
- servingConfig: string;
1692
+ servingConfig:
1693
+ string;
1177
1694
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1178
- upload_protocol?: string;
1695
+ upload_protocol?:
1696
+ string;
1179
1697
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1180
- uploadType?: string;
1698
+ uploadType?:
1699
+ string;
1181
1700
  },
1182
1701
  body: GoogleCloudDiscoveryengineV1alphaRecommendRequest): Request<GoogleCloudDiscoveryengineV1alphaRecommendResponse>;
1183
1702
  }
@@ -1188,38 +1707,53 @@ declare namespace gapi.client {
1188
1707
  */
1189
1708
  collect(request?: {
1190
1709
  /** V1 error format. */
1191
- "$.xgafv"?: string;
1710
+ "$.xgafv"?:
1711
+ string;
1192
1712
  /** OAuth access token. */
1193
- access_token?: string;
1713
+ access_token?:
1714
+ string;
1194
1715
  /** Data format for response. */
1195
- alt?: string;
1716
+ alt?:
1717
+ string;
1196
1718
  /** JSONP */
1197
- callback?: string;
1719
+ callback?:
1720
+ string;
1198
1721
  /** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
1199
- ets?: string;
1722
+ ets?:
1723
+ string;
1200
1724
  /** Selector specifying which fields to include in a partial response. */
1201
- fields?: string;
1725
+ fields?:
1726
+ string;
1202
1727
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1203
- key?: string;
1728
+ key?:
1729
+ string;
1204
1730
  /** OAuth 2.0 token for the current user. */
1205
- oauth_token?: string;
1731
+ oauth_token?:
1732
+ string;
1206
1733
  /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
1207
- parent: string;
1734
+ parent:
1735
+ string;
1208
1736
  /** Returns response with indentations and line breaks. */
1209
- prettyPrint?: boolean;
1737
+ prettyPrint?:
1738
+ boolean;
1210
1739
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1211
- quotaUser?: string;
1740
+ quotaUser?:
1741
+ string;
1212
1742
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1213
- upload_protocol?: string;
1743
+ upload_protocol?:
1744
+ string;
1214
1745
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1215
- uploadType?: string;
1746
+ uploadType?:
1747
+ string;
1216
1748
  /**
1217
1749
  * The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers
1218
1750
  * only send the domain for 3rd party requests.
1219
1751
  */
1220
- uri?: string;
1752
+ uri?:
1753
+ string;
1221
1754
  /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
1222
- userEvent?: string;
1755
+ userEvent?:
1756
+ string;
1223
1757
  }): Request<GoogleApiHttpBody>;
1224
1758
  /**
1225
1759
  * Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events.
@@ -1227,354 +1761,551 @@ declare namespace gapi.client {
1227
1761
  */
1228
1762
  import(request: {
1229
1763
  /** V1 error format. */
1230
- "$.xgafv"?: string;
1764
+ "$.xgafv"?:
1765
+ string;
1231
1766
  /** OAuth access token. */
1232
- access_token?: string;
1767
+ access_token?:
1768
+ string;
1233
1769
  /** Data format for response. */
1234
- alt?: string;
1770
+ alt?:
1771
+ string;
1235
1772
  /** JSONP */
1236
- callback?: string;
1773
+ callback?:
1774
+ string;
1237
1775
  /** Selector specifying which fields to include in a partial response. */
1238
- fields?: string;
1776
+ fields?:
1777
+ string;
1239
1778
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1240
- key?: string;
1779
+ key?:
1780
+ string;
1241
1781
  /** OAuth 2.0 token for the current user. */
1242
- oauth_token?: string;
1782
+ oauth_token?:
1783
+ string;
1243
1784
  /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
1244
- parent: string;
1785
+ parent:
1786
+ string;
1245
1787
  /** Returns response with indentations and line breaks. */
1246
- prettyPrint?: boolean;
1788
+ prettyPrint?:
1789
+ boolean;
1247
1790
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1248
- quotaUser?: string;
1791
+ quotaUser?:
1792
+ string;
1249
1793
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1250
- upload_protocol?: string;
1794
+ upload_protocol?:
1795
+ string;
1251
1796
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1252
- uploadType?: string;
1797
+ uploadType?:
1798
+ string;
1253
1799
  /** Request body */
1254
- resource: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest;
1800
+ resource:
1801
+ GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest;
1255
1802
  }): Request<GoogleLongrunningOperation>;
1256
1803
  import(request: {
1257
1804
  /** V1 error format. */
1258
- "$.xgafv"?: string;
1805
+ "$.xgafv"?:
1806
+ string;
1259
1807
  /** OAuth access token. */
1260
- access_token?: string;
1808
+ access_token?:
1809
+ string;
1261
1810
  /** Data format for response. */
1262
- alt?: string;
1811
+ alt?:
1812
+ string;
1263
1813
  /** JSONP */
1264
- callback?: string;
1814
+ callback?:
1815
+ string;
1265
1816
  /** Selector specifying which fields to include in a partial response. */
1266
- fields?: string;
1817
+ fields?:
1818
+ string;
1267
1819
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1268
- key?: string;
1820
+ key?:
1821
+ string;
1269
1822
  /** OAuth 2.0 token for the current user. */
1270
- oauth_token?: string;
1823
+ oauth_token?:
1824
+ string;
1271
1825
  /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
1272
- parent: string;
1826
+ parent:
1827
+ string;
1273
1828
  /** Returns response with indentations and line breaks. */
1274
- prettyPrint?: boolean;
1829
+ prettyPrint?:
1830
+ boolean;
1275
1831
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1276
- quotaUser?: string;
1832
+ quotaUser?:
1833
+ string;
1277
1834
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1278
- upload_protocol?: string;
1835
+ upload_protocol?:
1836
+ string;
1279
1837
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1280
- uploadType?: string;
1838
+ uploadType?:
1839
+ string;
1281
1840
  },
1282
1841
  body: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest): Request<GoogleLongrunningOperation>;
1283
1842
  /** Writes a single user event. */
1284
1843
  write(request: {
1285
1844
  /** V1 error format. */
1286
- "$.xgafv"?: string;
1845
+ "$.xgafv"?:
1846
+ string;
1287
1847
  /** OAuth access token. */
1288
- access_token?: string;
1848
+ access_token?:
1849
+ string;
1289
1850
  /** Data format for response. */
1290
- alt?: string;
1851
+ alt?:
1852
+ string;
1291
1853
  /** JSONP */
1292
- callback?: string;
1854
+ callback?:
1855
+ string;
1293
1856
  /** Selector specifying which fields to include in a partial response. */
1294
- fields?: string;
1857
+ fields?:
1858
+ string;
1295
1859
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1296
- key?: string;
1860
+ key?:
1861
+ string;
1297
1862
  /** OAuth 2.0 token for the current user. */
1298
- oauth_token?: string;
1863
+ oauth_token?:
1864
+ string;
1299
1865
  /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
1300
- parent: string;
1866
+ parent:
1867
+ string;
1301
1868
  /** Returns response with indentations and line breaks. */
1302
- prettyPrint?: boolean;
1869
+ prettyPrint?:
1870
+ boolean;
1303
1871
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1304
- quotaUser?: string;
1872
+ quotaUser?:
1873
+ string;
1305
1874
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1306
- upload_protocol?: string;
1875
+ upload_protocol?:
1876
+ string;
1307
1877
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1308
- uploadType?: string;
1878
+ uploadType?:
1879
+ string;
1309
1880
  /** Request body */
1310
- resource: GoogleCloudDiscoveryengineV1alphaUserEvent;
1881
+ resource:
1882
+ GoogleCloudDiscoveryengineV1alphaUserEvent;
1311
1883
  }): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
1312
1884
  write(request: {
1313
1885
  /** V1 error format. */
1314
- "$.xgafv"?: string;
1886
+ "$.xgafv"?:
1887
+ string;
1315
1888
  /** OAuth access token. */
1316
- access_token?: string;
1889
+ access_token?:
1890
+ string;
1317
1891
  /** Data format for response. */
1318
- alt?: string;
1892
+ alt?:
1893
+ string;
1319
1894
  /** JSONP */
1320
- callback?: string;
1895
+ callback?:
1896
+ string;
1321
1897
  /** Selector specifying which fields to include in a partial response. */
1322
- fields?: string;
1898
+ fields?:
1899
+ string;
1323
1900
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1324
- key?: string;
1901
+ key?:
1902
+ string;
1325
1903
  /** OAuth 2.0 token for the current user. */
1326
- oauth_token?: string;
1904
+ oauth_token?:
1905
+ string;
1327
1906
  /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
1328
- parent: string;
1907
+ parent:
1908
+ string;
1329
1909
  /** Returns response with indentations and line breaks. */
1330
- prettyPrint?: boolean;
1910
+ prettyPrint?:
1911
+ boolean;
1331
1912
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1332
- quotaUser?: string;
1913
+ quotaUser?:
1914
+ string;
1333
1915
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1334
- upload_protocol?: string;
1916
+ upload_protocol?:
1917
+ string;
1335
1918
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1336
- uploadType?: string;
1919
+ uploadType?:
1920
+ string;
1337
1921
  },
1338
1922
  body: GoogleCloudDiscoveryengineV1alphaUserEvent): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
1339
1923
  }
1340
1924
  interface DataStoresResource {
1341
- branches: BranchesResource;
1342
- models: ModelsResource;
1343
- operations: OperationsResource;
1344
- servingConfigs: ServingConfigsResource;
1345
- userEvents: UserEventsResource;
1925
+ branches:
1926
+ BranchesResource;
1927
+ models:
1928
+ ModelsResource;
1929
+ operations:
1930
+ OperationsResource;
1931
+ servingConfigs:
1932
+ ServingConfigsResource;
1933
+ userEvents:
1934
+ UserEventsResource;
1346
1935
  }
1347
1936
  interface OperationsResource {
1348
1937
  /** 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. */
1349
1938
  get(request?: {
1350
1939
  /** V1 error format. */
1351
- "$.xgafv"?: string;
1940
+ "$.xgafv"?:
1941
+ string;
1352
1942
  /** OAuth access token. */
1353
- access_token?: string;
1943
+ access_token?:
1944
+ string;
1354
1945
  /** Data format for response. */
1355
- alt?: string;
1946
+ alt?:
1947
+ string;
1356
1948
  /** JSONP */
1357
- callback?: string;
1949
+ callback?:
1950
+ string;
1358
1951
  /** Selector specifying which fields to include in a partial response. */
1359
- fields?: string;
1952
+ fields?:
1953
+ string;
1360
1954
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1361
- key?: string;
1955
+ key?:
1956
+ string;
1362
1957
  /** The name of the operation resource. */
1363
- name: string;
1958
+ name:
1959
+ string;
1364
1960
  /** OAuth 2.0 token for the current user. */
1365
- oauth_token?: string;
1961
+ oauth_token?:
1962
+ string;
1366
1963
  /** Returns response with indentations and line breaks. */
1367
- prettyPrint?: boolean;
1964
+ prettyPrint?:
1965
+ boolean;
1368
1966
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1369
- quotaUser?: string;
1967
+ quotaUser?:
1968
+ string;
1370
1969
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1371
- upload_protocol?: string;
1970
+ upload_protocol?:
1971
+ string;
1372
1972
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1373
- uploadType?: string;
1973
+ uploadType?:
1974
+ string;
1374
1975
  }): Request<GoogleLongrunningOperation>;
1976
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1977
+ list(request?: {
1978
+ /** V1 error format. */
1979
+ "$.xgafv"?:
1980
+ string;
1981
+ /** OAuth access token. */
1982
+ access_token?:
1983
+ string;
1984
+ /** Data format for response. */
1985
+ alt?:
1986
+ string;
1987
+ /** JSONP */
1988
+ callback?:
1989
+ string;
1990
+ /** Selector specifying which fields to include in a partial response. */
1991
+ fields?:
1992
+ string;
1993
+ /** The standard list filter. */
1994
+ filter?:
1995
+ string;
1996
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1997
+ key?:
1998
+ string;
1999
+ /** The name of the operation's parent resource. */
2000
+ name:
2001
+ string;
2002
+ /** OAuth 2.0 token for the current user. */
2003
+ oauth_token?:
2004
+ string;
2005
+ /** The standard list page size. */
2006
+ pageSize?:
2007
+ number;
2008
+ /** The standard list page token. */
2009
+ pageToken?:
2010
+ string;
2011
+ /** Returns response with indentations and line breaks. */
2012
+ prettyPrint?:
2013
+ boolean;
2014
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2015
+ quotaUser?:
2016
+ string;
2017
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2018
+ upload_protocol?:
2019
+ string;
2020
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2021
+ uploadType?:
2022
+ string;
2023
+ }): Request<GoogleLongrunningListOperationsResponse>;
1375
2024
  }
1376
2025
  interface EnginesResource {
1377
- operations: OperationsResource;
2026
+ operations:
2027
+ OperationsResource;
1378
2028
  }
1379
2029
  interface OperationsResource {
1380
2030
  /** 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. */
1381
2031
  get(request?: {
1382
2032
  /** V1 error format. */
1383
- "$.xgafv"?: string;
2033
+ "$.xgafv"?:
2034
+ string;
1384
2035
  /** OAuth access token. */
1385
- access_token?: string;
2036
+ access_token?:
2037
+ string;
1386
2038
  /** Data format for response. */
1387
- alt?: string;
2039
+ alt?:
2040
+ string;
1388
2041
  /** JSONP */
1389
- callback?: string;
2042
+ callback?:
2043
+ string;
1390
2044
  /** Selector specifying which fields to include in a partial response. */
1391
- fields?: string;
2045
+ fields?:
2046
+ string;
1392
2047
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1393
- key?: string;
2048
+ key?:
2049
+ string;
1394
2050
  /** The name of the operation resource. */
1395
- name: string;
2051
+ name:
2052
+ string;
1396
2053
  /** OAuth 2.0 token for the current user. */
1397
- oauth_token?: string;
2054
+ oauth_token?:
2055
+ string;
1398
2056
  /** Returns response with indentations and line breaks. */
1399
- prettyPrint?: boolean;
2057
+ prettyPrint?:
2058
+ boolean;
1400
2059
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1401
- quotaUser?: string;
2060
+ quotaUser?:
2061
+ string;
1402
2062
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1403
- upload_protocol?: string;
2063
+ upload_protocol?:
2064
+ string;
1404
2065
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1405
- uploadType?: string;
2066
+ uploadType?:
2067
+ string;
1406
2068
  }): Request<GoogleLongrunningOperation>;
1407
2069
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1408
2070
  list(request?: {
1409
2071
  /** V1 error format. */
1410
- "$.xgafv"?: string;
2072
+ "$.xgafv"?:
2073
+ string;
1411
2074
  /** OAuth access token. */
1412
- access_token?: string;
2075
+ access_token?:
2076
+ string;
1413
2077
  /** Data format for response. */
1414
- alt?: string;
2078
+ alt?:
2079
+ string;
1415
2080
  /** JSONP */
1416
- callback?: string;
2081
+ callback?:
2082
+ string;
1417
2083
  /** Selector specifying which fields to include in a partial response. */
1418
- fields?: string;
2084
+ fields?:
2085
+ string;
1419
2086
  /** The standard list filter. */
1420
- filter?: string;
2087
+ filter?:
2088
+ string;
1421
2089
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1422
- key?: string;
2090
+ key?:
2091
+ string;
1423
2092
  /** The name of the operation's parent resource. */
1424
- name: string;
2093
+ name:
2094
+ string;
1425
2095
  /** OAuth 2.0 token for the current user. */
1426
- oauth_token?: string;
2096
+ oauth_token?:
2097
+ string;
1427
2098
  /** The standard list page size. */
1428
- pageSize?: number;
2099
+ pageSize?:
2100
+ number;
1429
2101
  /** The standard list page token. */
1430
- pageToken?: string;
2102
+ pageToken?:
2103
+ string;
1431
2104
  /** Returns response with indentations and line breaks. */
1432
- prettyPrint?: boolean;
2105
+ prettyPrint?:
2106
+ boolean;
1433
2107
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1434
- quotaUser?: string;
2108
+ quotaUser?:
2109
+ string;
1435
2110
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1436
- upload_protocol?: string;
2111
+ upload_protocol?:
2112
+ string;
1437
2113
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1438
- uploadType?: string;
2114
+ uploadType?:
2115
+ string;
1439
2116
  }): Request<GoogleLongrunningListOperationsResponse>;
1440
2117
  }
1441
2118
  interface CollectionsResource {
1442
- dataStores: DataStoresResource;
1443
- engines: EnginesResource;
1444
- operations: OperationsResource;
2119
+ dataStores:
2120
+ DataStoresResource;
2121
+ engines:
2122
+ EnginesResource;
2123
+ operations:
2124
+ OperationsResource;
1445
2125
  }
1446
2126
  interface DocumentsResource {
1447
2127
  /** Creates a Document. */
1448
2128
  create(request: {
1449
2129
  /** V1 error format. */
1450
- "$.xgafv"?: string;
2130
+ "$.xgafv"?:
2131
+ string;
1451
2132
  /** OAuth access token. */
1452
- access_token?: string;
2133
+ access_token?:
2134
+ string;
1453
2135
  /** Data format for response. */
1454
- alt?: string;
2136
+ alt?:
2137
+ string;
1455
2138
  /** JSONP */
1456
- callback?: string;
2139
+ callback?:
2140
+ string;
1457
2141
  /**
1458
2142
  * Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless
1459
2143
  * of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is
1460
2144
  * returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
1461
2145
  * returned.
1462
2146
  */
1463
- documentId?: string;
2147
+ documentId?:
2148
+ string;
1464
2149
  /** Selector specifying which fields to include in a partial response. */
1465
- fields?: string;
2150
+ fields?:
2151
+ string;
1466
2152
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1467
- key?: string;
2153
+ key?:
2154
+ string;
1468
2155
  /** OAuth 2.0 token for the current user. */
1469
- oauth_token?: string;
2156
+ oauth_token?:
2157
+ string;
1470
2158
  /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
1471
- parent: string;
2159
+ parent:
2160
+ string;
1472
2161
  /** Returns response with indentations and line breaks. */
1473
- prettyPrint?: boolean;
2162
+ prettyPrint?:
2163
+ boolean;
1474
2164
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1475
- quotaUser?: string;
2165
+ quotaUser?:
2166
+ string;
1476
2167
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1477
- upload_protocol?: string;
2168
+ upload_protocol?:
2169
+ string;
1478
2170
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1479
- uploadType?: string;
2171
+ uploadType?:
2172
+ string;
1480
2173
  /** Request body */
1481
- resource: GoogleCloudDiscoveryengineV1alphaDocument;
2174
+ resource:
2175
+ GoogleCloudDiscoveryengineV1alphaDocument;
1482
2176
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
1483
2177
  create(request: {
1484
2178
  /** V1 error format. */
1485
- "$.xgafv"?: string;
2179
+ "$.xgafv"?:
2180
+ string;
1486
2181
  /** OAuth access token. */
1487
- access_token?: string;
2182
+ access_token?:
2183
+ string;
1488
2184
  /** Data format for response. */
1489
- alt?: string;
2185
+ alt?:
2186
+ string;
1490
2187
  /** JSONP */
1491
- callback?: string;
2188
+ callback?:
2189
+ string;
1492
2190
  /**
1493
2191
  * Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless
1494
2192
  * of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is
1495
2193
  * returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
1496
2194
  * returned.
1497
2195
  */
1498
- documentId?: string;
2196
+ documentId?:
2197
+ string;
1499
2198
  /** Selector specifying which fields to include in a partial response. */
1500
- fields?: string;
2199
+ fields?:
2200
+ string;
1501
2201
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1502
- key?: string;
2202
+ key?:
2203
+ string;
1503
2204
  /** OAuth 2.0 token for the current user. */
1504
- oauth_token?: string;
2205
+ oauth_token?:
2206
+ string;
1505
2207
  /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
1506
- parent: string;
2208
+ parent:
2209
+ string;
1507
2210
  /** Returns response with indentations and line breaks. */
1508
- prettyPrint?: boolean;
2211
+ prettyPrint?:
2212
+ boolean;
1509
2213
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1510
- quotaUser?: string;
2214
+ quotaUser?:
2215
+ string;
1511
2216
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1512
- upload_protocol?: string;
2217
+ upload_protocol?:
2218
+ string;
1513
2219
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1514
- uploadType?: string;
2220
+ uploadType?:
2221
+ string;
1515
2222
  },
1516
2223
  body: GoogleCloudDiscoveryengineV1alphaDocument): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
1517
2224
  /** Deletes a Document. */
1518
2225
  delete(request?: {
1519
2226
  /** V1 error format. */
1520
- "$.xgafv"?: string;
2227
+ "$.xgafv"?:
2228
+ string;
1521
2229
  /** OAuth access token. */
1522
- access_token?: string;
2230
+ access_token?:
2231
+ string;
1523
2232
  /** Data format for response. */
1524
- alt?: string;
2233
+ alt?:
2234
+ string;
1525
2235
  /** JSONP */
1526
- callback?: string;
2236
+ callback?:
2237
+ string;
1527
2238
  /** Selector specifying which fields to include in a partial response. */
1528
- fields?: string;
2239
+ fields?:
2240
+ string;
1529
2241
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1530
- key?: string;
2242
+ key?:
2243
+ string;
1531
2244
  /**
1532
2245
  * Required. Full resource name of Document, such as
1533
2246
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
1534
2247
  * delete the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the Document to delete does not exist, a `NOT_FOUND` error is returned.
1535
2248
  */
1536
- name: string;
2249
+ name:
2250
+ string;
1537
2251
  /** OAuth 2.0 token for the current user. */
1538
- oauth_token?: string;
2252
+ oauth_token?:
2253
+ string;
1539
2254
  /** Returns response with indentations and line breaks. */
1540
- prettyPrint?: boolean;
2255
+ prettyPrint?:
2256
+ boolean;
1541
2257
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1542
- quotaUser?: string;
2258
+ quotaUser?:
2259
+ string;
1543
2260
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1544
- upload_protocol?: string;
2261
+ upload_protocol?:
2262
+ string;
1545
2263
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1546
- uploadType?: string;
2264
+ uploadType?:
2265
+ string;
1547
2266
  }): Request<{}>;
1548
2267
  /** Gets a Document. */
1549
2268
  get(request?: {
1550
2269
  /** V1 error format. */
1551
- "$.xgafv"?: string;
2270
+ "$.xgafv"?:
2271
+ string;
1552
2272
  /** OAuth access token. */
1553
- access_token?: string;
2273
+ access_token?:
2274
+ string;
1554
2275
  /** Data format for response. */
1555
- alt?: string;
2276
+ alt?:
2277
+ string;
1556
2278
  /** JSONP */
1557
- callback?: string;
2279
+ callback?:
2280
+ string;
1558
2281
  /** Selector specifying which fields to include in a partial response. */
1559
- fields?: string;
2282
+ fields?:
2283
+ string;
1560
2284
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1561
- key?: string;
2285
+ key?:
2286
+ string;
1562
2287
  /**
1563
2288
  * Required. Full resource name of Document, such as
1564
2289
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to
1565
2290
  * access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned.
1566
2291
  */
1567
- name: string;
2292
+ name:
2293
+ string;
1568
2294
  /** OAuth 2.0 token for the current user. */
1569
- oauth_token?: string;
2295
+ oauth_token?:
2296
+ string;
1570
2297
  /** Returns response with indentations and line breaks. */
1571
- prettyPrint?: boolean;
2298
+ prettyPrint?:
2299
+ boolean;
1572
2300
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1573
- quotaUser?: string;
2301
+ quotaUser?:
2302
+ string;
1574
2303
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1575
- upload_protocol?: string;
2304
+ upload_protocol?:
2305
+ string;
1576
2306
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1577
- uploadType?: string;
2307
+ uploadType?:
2308
+ string;
1578
2309
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
1579
2310
  /**
1580
2311
  * Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully
@@ -1582,429 +2313,689 @@ declare namespace gapi.client {
1582
2313
  */
1583
2314
  import(request: {
1584
2315
  /** V1 error format. */
1585
- "$.xgafv"?: string;
2316
+ "$.xgafv"?:
2317
+ string;
1586
2318
  /** OAuth access token. */
1587
- access_token?: string;
2319
+ access_token?:
2320
+ string;
1588
2321
  /** Data format for response. */
1589
- alt?: string;
2322
+ alt?:
2323
+ string;
1590
2324
  /** JSONP */
1591
- callback?: string;
2325
+ callback?:
2326
+ string;
1592
2327
  /** Selector specifying which fields to include in a partial response. */
1593
- fields?: string;
2328
+ fields?:
2329
+ string;
1594
2330
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1595
- key?: string;
2331
+ key?:
2332
+ string;
1596
2333
  /** OAuth 2.0 token for the current user. */
1597
- oauth_token?: string;
2334
+ oauth_token?:
2335
+ string;
1598
2336
  /**
1599
2337
  * Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
1600
2338
  * create/update permission.
1601
2339
  */
1602
- parent: string;
2340
+ parent:
2341
+ string;
1603
2342
  /** Returns response with indentations and line breaks. */
1604
- prettyPrint?: boolean;
2343
+ prettyPrint?:
2344
+ boolean;
1605
2345
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1606
- quotaUser?: string;
2346
+ quotaUser?:
2347
+ string;
1607
2348
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1608
- upload_protocol?: string;
2349
+ upload_protocol?:
2350
+ string;
1609
2351
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1610
- uploadType?: string;
2352
+ uploadType?:
2353
+ string;
1611
2354
  /** Request body */
1612
- resource: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest;
2355
+ resource:
2356
+ GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest;
1613
2357
  }): Request<GoogleLongrunningOperation>;
1614
2358
  import(request: {
1615
2359
  /** V1 error format. */
1616
- "$.xgafv"?: string;
2360
+ "$.xgafv"?:
2361
+ string;
1617
2362
  /** OAuth access token. */
1618
- access_token?: string;
2363
+ access_token?:
2364
+ string;
1619
2365
  /** Data format for response. */
1620
- alt?: string;
2366
+ alt?:
2367
+ string;
1621
2368
  /** JSONP */
1622
- callback?: string;
2369
+ callback?:
2370
+ string;
1623
2371
  /** Selector specifying which fields to include in a partial response. */
1624
- fields?: string;
2372
+ fields?:
2373
+ string;
1625
2374
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1626
- key?: string;
2375
+ key?:
2376
+ string;
1627
2377
  /** OAuth 2.0 token for the current user. */
1628
- oauth_token?: string;
2378
+ oauth_token?:
2379
+ string;
1629
2380
  /**
1630
2381
  * Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Requires
1631
2382
  * create/update permission.
1632
2383
  */
1633
- parent: string;
2384
+ parent:
2385
+ string;
1634
2386
  /** Returns response with indentations and line breaks. */
1635
- prettyPrint?: boolean;
2387
+ prettyPrint?:
2388
+ boolean;
1636
2389
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1637
- quotaUser?: string;
2390
+ quotaUser?:
2391
+ string;
1638
2392
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1639
- upload_protocol?: string;
2393
+ upload_protocol?:
2394
+ string;
1640
2395
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1641
- uploadType?: string;
2396
+ uploadType?:
2397
+ string;
1642
2398
  },
1643
2399
  body: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest): Request<GoogleLongrunningOperation>;
1644
2400
  /** Gets a list of Documents. */
1645
2401
  list(request?: {
1646
2402
  /** V1 error format. */
1647
- "$.xgafv"?: string;
2403
+ "$.xgafv"?:
2404
+ string;
1648
2405
  /** OAuth access token. */
1649
- access_token?: string;
2406
+ access_token?:
2407
+ string;
1650
2408
  /** Data format for response. */
1651
- alt?: string;
2409
+ alt?:
2410
+ string;
1652
2411
  /** JSONP */
1653
- callback?: string;
2412
+ callback?:
2413
+ string;
1654
2414
  /** Selector specifying which fields to include in a partial response. */
1655
- fields?: string;
2415
+ fields?:
2416
+ string;
1656
2417
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1657
- key?: string;
2418
+ key?:
2419
+ string;
1658
2420
  /** OAuth 2.0 token for the current user. */
1659
- oauth_token?: string;
2421
+ oauth_token?:
2422
+ string;
1660
2423
  /**
1661
2424
  * Maximum number of Documents to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative,
1662
2425
  * an `INVALID_ARGUMENT` error is returned.
1663
2426
  */
1664
- pageSize?: number;
2427
+ pageSize?:
2428
+ number;
1665
2429
  /**
1666
2430
  * A page token ListDocumentsResponse.next_page_token, received from a previous DocumentService.ListDocuments call. Provide this to retrieve the subsequent page. When paginating,
1667
2431
  * all other parameters provided to DocumentService.ListDocuments must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
1668
2432
  */
1669
- pageToken?: string;
2433
+ pageToken?:
2434
+ string;
1670
2435
  /**
1671
2436
  * Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Use
1672
2437
  * `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list Documentss under this branch, regardless of whether
1673
2438
  * or not this branch exists, a `PERMISSION_DENIED` error is returned.
1674
2439
  */
1675
- parent: string;
2440
+ parent:
2441
+ string;
1676
2442
  /** Returns response with indentations and line breaks. */
1677
- prettyPrint?: boolean;
2443
+ prettyPrint?:
2444
+ boolean;
1678
2445
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1679
- quotaUser?: string;
2446
+ quotaUser?:
2447
+ string;
1680
2448
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1681
- upload_protocol?: string;
2449
+ upload_protocol?:
2450
+ string;
1682
2451
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1683
- uploadType?: string;
2452
+ uploadType?:
2453
+ string;
1684
2454
  }): Request<GoogleCloudDiscoveryengineV1alphaListDocumentsResponse>;
1685
2455
  /** Updates a Document. */
1686
2456
  patch(request: {
1687
2457
  /** V1 error format. */
1688
- "$.xgafv"?: string;
2458
+ "$.xgafv"?:
2459
+ string;
1689
2460
  /** OAuth access token. */
1690
- access_token?: string;
2461
+ access_token?:
2462
+ string;
1691
2463
  /** If set to true, and the Document is not found, a new Document will be created. */
1692
- allowMissing?: boolean;
2464
+ allowMissing?:
2465
+ boolean;
1693
2466
  /** Data format for response. */
1694
- alt?: string;
2467
+ alt?:
2468
+ string;
1695
2469
  /** JSONP */
1696
- callback?: string;
2470
+ callback?:
2471
+ string;
1697
2472
  /** Selector specifying which fields to include in a partial response. */
1698
- fields?: string;
2473
+ fields?:
2474
+ string;
1699
2475
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1700
- key?: string;
2476
+ key?:
2477
+ string;
1701
2478
  /**
1702
2479
  * Immutable. The full resource name of the document. Format:
1703
2480
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
1704
2481
  * with a length limit of 1024 characters.
1705
2482
  */
1706
- name: string;
2483
+ name:
2484
+ string;
1707
2485
  /** OAuth 2.0 token for the current user. */
1708
- oauth_token?: string;
2486
+ oauth_token?:
2487
+ string;
1709
2488
  /** Returns response with indentations and line breaks. */
1710
- prettyPrint?: boolean;
2489
+ prettyPrint?:
2490
+ boolean;
1711
2491
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1712
- quotaUser?: string;
2492
+ quotaUser?:
2493
+ string;
1713
2494
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1714
- upload_protocol?: string;
2495
+ upload_protocol?:
2496
+ string;
1715
2497
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1716
- uploadType?: string;
2498
+ uploadType?:
2499
+ string;
1717
2500
  /** Request body */
1718
- resource: GoogleCloudDiscoveryengineV1alphaDocument;
2501
+ resource:
2502
+ GoogleCloudDiscoveryengineV1alphaDocument;
1719
2503
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
1720
2504
  patch(request: {
1721
2505
  /** V1 error format. */
1722
- "$.xgafv"?: string;
2506
+ "$.xgafv"?:
2507
+ string;
1723
2508
  /** OAuth access token. */
1724
- access_token?: string;
2509
+ access_token?:
2510
+ string;
1725
2511
  /** If set to true, and the Document is not found, a new Document will be created. */
1726
- allowMissing?: boolean;
2512
+ allowMissing?:
2513
+ boolean;
1727
2514
  /** Data format for response. */
1728
- alt?: string;
2515
+ alt?:
2516
+ string;
1729
2517
  /** JSONP */
1730
- callback?: string;
2518
+ callback?:
2519
+ string;
1731
2520
  /** Selector specifying which fields to include in a partial response. */
1732
- fields?: string;
2521
+ fields?:
2522
+ string;
1733
2523
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1734
- key?: string;
2524
+ key?:
2525
+ string;
1735
2526
  /**
1736
2527
  * Immutable. The full resource name of the document. Format:
1737
2528
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string
1738
2529
  * with a length limit of 1024 characters.
1739
2530
  */
1740
- name: string;
2531
+ name:
2532
+ string;
1741
2533
  /** OAuth 2.0 token for the current user. */
1742
- oauth_token?: string;
2534
+ oauth_token?:
2535
+ string;
1743
2536
  /** Returns response with indentations and line breaks. */
1744
- prettyPrint?: boolean;
2537
+ prettyPrint?:
2538
+ boolean;
1745
2539
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1746
- quotaUser?: string;
2540
+ quotaUser?:
2541
+ string;
1747
2542
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1748
- upload_protocol?: string;
2543
+ upload_protocol?:
2544
+ string;
1749
2545
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1750
- uploadType?: string;
2546
+ uploadType?:
2547
+ string;
1751
2548
  },
1752
2549
  body: GoogleCloudDiscoveryengineV1alphaDocument): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
2550
+ /**
2551
+ * Permanently deletes all selected Documents under a branch. This process is asynchronous. If the request is valid, the removal will be enquired and processed offlines. Depending on
2552
+ * the number of Documents, this operation could take hours to complete. Before the operation completes, some Documents may still be returned by DocumentService.GetDocument or
2553
+ * DocumentService.ListDocuments. To get a sample of Documents that would be deleted, set PurgeDocumentsRequest.force to false.
2554
+ */
2555
+ purge(request: {
2556
+ /** V1 error format. */
2557
+ "$.xgafv"?:
2558
+ string;
2559
+ /** OAuth access token. */
2560
+ access_token?:
2561
+ string;
2562
+ /** Data format for response. */
2563
+ alt?:
2564
+ string;
2565
+ /** JSONP */
2566
+ callback?:
2567
+ string;
2568
+ /** Selector specifying which fields to include in a partial response. */
2569
+ fields?:
2570
+ string;
2571
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2572
+ key?:
2573
+ string;
2574
+ /** OAuth 2.0 token for the current user. */
2575
+ oauth_token?:
2576
+ string;
2577
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
2578
+ parent:
2579
+ string;
2580
+ /** Returns response with indentations and line breaks. */
2581
+ prettyPrint?:
2582
+ boolean;
2583
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2584
+ quotaUser?:
2585
+ string;
2586
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2587
+ upload_protocol?:
2588
+ string;
2589
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2590
+ uploadType?:
2591
+ string;
2592
+ /** Request body */
2593
+ resource:
2594
+ GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest;
2595
+ }): Request<GoogleLongrunningOperation>;
2596
+ purge(request: {
2597
+ /** V1 error format. */
2598
+ "$.xgafv"?:
2599
+ string;
2600
+ /** OAuth access token. */
2601
+ access_token?:
2602
+ string;
2603
+ /** Data format for response. */
2604
+ alt?:
2605
+ string;
2606
+ /** JSONP */
2607
+ callback?:
2608
+ string;
2609
+ /** Selector specifying which fields to include in a partial response. */
2610
+ fields?:
2611
+ string;
2612
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2613
+ key?:
2614
+ string;
2615
+ /** OAuth 2.0 token for the current user. */
2616
+ oauth_token?:
2617
+ string;
2618
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
2619
+ parent:
2620
+ string;
2621
+ /** Returns response with indentations and line breaks. */
2622
+ prettyPrint?:
2623
+ boolean;
2624
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2625
+ quotaUser?:
2626
+ string;
2627
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2628
+ upload_protocol?:
2629
+ string;
2630
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2631
+ uploadType?:
2632
+ string;
2633
+ },
2634
+ body: GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest): Request<GoogleLongrunningOperation>;
1753
2635
  }
1754
2636
  interface OperationsResource {
1755
2637
  /** 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. */
1756
2638
  get(request?: {
1757
2639
  /** V1 error format. */
1758
- "$.xgafv"?: string;
2640
+ "$.xgafv"?:
2641
+ string;
1759
2642
  /** OAuth access token. */
1760
- access_token?: string;
2643
+ access_token?:
2644
+ string;
1761
2645
  /** Data format for response. */
1762
- alt?: string;
2646
+ alt?:
2647
+ string;
1763
2648
  /** JSONP */
1764
- callback?: string;
2649
+ callback?:
2650
+ string;
1765
2651
  /** Selector specifying which fields to include in a partial response. */
1766
- fields?: string;
2652
+ fields?:
2653
+ string;
1767
2654
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1768
- key?: string;
2655
+ key?:
2656
+ string;
1769
2657
  /** The name of the operation resource. */
1770
- name: string;
2658
+ name:
2659
+ string;
1771
2660
  /** OAuth 2.0 token for the current user. */
1772
- oauth_token?: string;
2661
+ oauth_token?:
2662
+ string;
1773
2663
  /** Returns response with indentations and line breaks. */
1774
- prettyPrint?: boolean;
2664
+ prettyPrint?:
2665
+ boolean;
1775
2666
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1776
- quotaUser?: string;
2667
+ quotaUser?:
2668
+ string;
1777
2669
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1778
- upload_protocol?: string;
2670
+ upload_protocol?:
2671
+ string;
1779
2672
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1780
- uploadType?: string;
2673
+ uploadType?:
2674
+ string;
1781
2675
  }): Request<GoogleLongrunningOperation>;
1782
2676
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1783
2677
  list(request?: {
1784
2678
  /** V1 error format. */
1785
- "$.xgafv"?: string;
2679
+ "$.xgafv"?:
2680
+ string;
1786
2681
  /** OAuth access token. */
1787
- access_token?: string;
2682
+ access_token?:
2683
+ string;
1788
2684
  /** Data format for response. */
1789
- alt?: string;
2685
+ alt?:
2686
+ string;
1790
2687
  /** JSONP */
1791
- callback?: string;
2688
+ callback?:
2689
+ string;
1792
2690
  /** Selector specifying which fields to include in a partial response. */
1793
- fields?: string;
2691
+ fields?:
2692
+ string;
1794
2693
  /** The standard list filter. */
1795
- filter?: string;
2694
+ filter?:
2695
+ string;
1796
2696
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1797
- key?: string;
2697
+ key?:
2698
+ string;
1798
2699
  /** The name of the operation's parent resource. */
1799
- name: string;
2700
+ name:
2701
+ string;
1800
2702
  /** OAuth 2.0 token for the current user. */
1801
- oauth_token?: string;
2703
+ oauth_token?:
2704
+ string;
1802
2705
  /** The standard list page size. */
1803
- pageSize?: number;
2706
+ pageSize?:
2707
+ number;
1804
2708
  /** The standard list page token. */
1805
- pageToken?: string;
2709
+ pageToken?:
2710
+ string;
1806
2711
  /** Returns response with indentations and line breaks. */
1807
- prettyPrint?: boolean;
2712
+ prettyPrint?:
2713
+ boolean;
1808
2714
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1809
- quotaUser?: string;
2715
+ quotaUser?:
2716
+ string;
1810
2717
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1811
- upload_protocol?: string;
2718
+ upload_protocol?:
2719
+ string;
1812
2720
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1813
- uploadType?: string;
2721
+ uploadType?:
2722
+ string;
1814
2723
  }): Request<GoogleLongrunningListOperationsResponse>;
1815
2724
  }
1816
2725
  interface BranchesResource {
1817
- documents: DocumentsResource;
1818
- operations: OperationsResource;
2726
+ documents:
2727
+ DocumentsResource;
2728
+ operations:
2729
+ OperationsResource;
1819
2730
  }
1820
2731
  interface OperationsResource {
1821
2732
  /** 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. */
1822
2733
  get(request?: {
1823
2734
  /** V1 error format. */
1824
- "$.xgafv"?: string;
2735
+ "$.xgafv"?:
2736
+ string;
1825
2737
  /** OAuth access token. */
1826
- access_token?: string;
2738
+ access_token?:
2739
+ string;
1827
2740
  /** Data format for response. */
1828
- alt?: string;
2741
+ alt?:
2742
+ string;
1829
2743
  /** JSONP */
1830
- callback?: string;
2744
+ callback?:
2745
+ string;
1831
2746
  /** Selector specifying which fields to include in a partial response. */
1832
- fields?: string;
2747
+ fields?:
2748
+ string;
1833
2749
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1834
- key?: string;
2750
+ key?:
2751
+ string;
1835
2752
  /** The name of the operation resource. */
1836
- name: string;
2753
+ name:
2754
+ string;
1837
2755
  /** OAuth 2.0 token for the current user. */
1838
- oauth_token?: string;
2756
+ oauth_token?:
2757
+ string;
1839
2758
  /** Returns response with indentations and line breaks. */
1840
- prettyPrint?: boolean;
2759
+ prettyPrint?:
2760
+ boolean;
1841
2761
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1842
- quotaUser?: string;
2762
+ quotaUser?:
2763
+ string;
1843
2764
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1844
- upload_protocol?: string;
2765
+ upload_protocol?:
2766
+ string;
1845
2767
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1846
- uploadType?: string;
2768
+ uploadType?:
2769
+ string;
1847
2770
  }): Request<GoogleLongrunningOperation>;
1848
2771
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1849
2772
  list(request?: {
1850
2773
  /** V1 error format. */
1851
- "$.xgafv"?: string;
2774
+ "$.xgafv"?:
2775
+ string;
1852
2776
  /** OAuth access token. */
1853
- access_token?: string;
2777
+ access_token?:
2778
+ string;
1854
2779
  /** Data format for response. */
1855
- alt?: string;
2780
+ alt?:
2781
+ string;
1856
2782
  /** JSONP */
1857
- callback?: string;
2783
+ callback?:
2784
+ string;
1858
2785
  /** Selector specifying which fields to include in a partial response. */
1859
- fields?: string;
2786
+ fields?:
2787
+ string;
1860
2788
  /** The standard list filter. */
1861
- filter?: string;
2789
+ filter?:
2790
+ string;
1862
2791
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1863
- key?: string;
2792
+ key?:
2793
+ string;
1864
2794
  /** The name of the operation's parent resource. */
1865
- name: string;
2795
+ name:
2796
+ string;
1866
2797
  /** OAuth 2.0 token for the current user. */
1867
- oauth_token?: string;
2798
+ oauth_token?:
2799
+ string;
1868
2800
  /** The standard list page size. */
1869
- pageSize?: number;
2801
+ pageSize?:
2802
+ number;
1870
2803
  /** The standard list page token. */
1871
- pageToken?: string;
2804
+ pageToken?:
2805
+ string;
1872
2806
  /** Returns response with indentations and line breaks. */
1873
- prettyPrint?: boolean;
2807
+ prettyPrint?:
2808
+ boolean;
1874
2809
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1875
- quotaUser?: string;
2810
+ quotaUser?:
2811
+ string;
1876
2812
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1877
- upload_protocol?: string;
2813
+ upload_protocol?:
2814
+ string;
1878
2815
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1879
- uploadType?: string;
2816
+ uploadType?:
2817
+ string;
1880
2818
  }): Request<GoogleLongrunningListOperationsResponse>;
1881
2819
  }
1882
2820
  interface ModelsResource {
1883
- operations: OperationsResource;
2821
+ operations:
2822
+ OperationsResource;
1884
2823
  }
1885
2824
  interface OperationsResource {
1886
2825
  /** 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. */
1887
2826
  get(request?: {
1888
2827
  /** V1 error format. */
1889
- "$.xgafv"?: string;
2828
+ "$.xgafv"?:
2829
+ string;
1890
2830
  /** OAuth access token. */
1891
- access_token?: string;
2831
+ access_token?:
2832
+ string;
1892
2833
  /** Data format for response. */
1893
- alt?: string;
2834
+ alt?:
2835
+ string;
1894
2836
  /** JSONP */
1895
- callback?: string;
2837
+ callback?:
2838
+ string;
1896
2839
  /** Selector specifying which fields to include in a partial response. */
1897
- fields?: string;
2840
+ fields?:
2841
+ string;
1898
2842
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1899
- key?: string;
2843
+ key?:
2844
+ string;
1900
2845
  /** The name of the operation resource. */
1901
- name: string;
2846
+ name:
2847
+ string;
1902
2848
  /** OAuth 2.0 token for the current user. */
1903
- oauth_token?: string;
2849
+ oauth_token?:
2850
+ string;
1904
2851
  /** Returns response with indentations and line breaks. */
1905
- prettyPrint?: boolean;
2852
+ prettyPrint?:
2853
+ boolean;
1906
2854
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1907
- quotaUser?: string;
2855
+ quotaUser?:
2856
+ string;
1908
2857
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1909
- upload_protocol?: string;
2858
+ upload_protocol?:
2859
+ string;
1910
2860
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1911
- uploadType?: string;
2861
+ uploadType?:
2862
+ string;
1912
2863
  }): Request<GoogleLongrunningOperation>;
1913
2864
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1914
2865
  list(request?: {
1915
2866
  /** V1 error format. */
1916
- "$.xgafv"?: string;
2867
+ "$.xgafv"?:
2868
+ string;
1917
2869
  /** OAuth access token. */
1918
- access_token?: string;
2870
+ access_token?:
2871
+ string;
1919
2872
  /** Data format for response. */
1920
- alt?: string;
2873
+ alt?:
2874
+ string;
1921
2875
  /** JSONP */
1922
- callback?: string;
2876
+ callback?:
2877
+ string;
1923
2878
  /** Selector specifying which fields to include in a partial response. */
1924
- fields?: string;
2879
+ fields?:
2880
+ string;
1925
2881
  /** The standard list filter. */
1926
- filter?: string;
2882
+ filter?:
2883
+ string;
1927
2884
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1928
- key?: string;
2885
+ key?:
2886
+ string;
1929
2887
  /** The name of the operation's parent resource. */
1930
- name: string;
2888
+ name:
2889
+ string;
1931
2890
  /** OAuth 2.0 token for the current user. */
1932
- oauth_token?: string;
2891
+ oauth_token?:
2892
+ string;
1933
2893
  /** The standard list page size. */
1934
- pageSize?: number;
2894
+ pageSize?:
2895
+ number;
1935
2896
  /** The standard list page token. */
1936
- pageToken?: string;
2897
+ pageToken?:
2898
+ string;
1937
2899
  /** Returns response with indentations and line breaks. */
1938
- prettyPrint?: boolean;
2900
+ prettyPrint?:
2901
+ boolean;
1939
2902
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1940
- quotaUser?: string;
2903
+ quotaUser?:
2904
+ string;
1941
2905
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1942
- upload_protocol?: string;
2906
+ upload_protocol?:
2907
+ string;
1943
2908
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1944
- uploadType?: string;
2909
+ uploadType?:
2910
+ string;
1945
2911
  }): Request<GoogleLongrunningListOperationsResponse>;
1946
2912
  }
1947
2913
  interface ServingConfigsResource {
1948
2914
  /** Makes a recommendation, which requires a contextual user event. */
1949
2915
  recommend(request: {
1950
2916
  /** V1 error format. */
1951
- "$.xgafv"?: string;
2917
+ "$.xgafv"?:
2918
+ string;
1952
2919
  /** OAuth access token. */
1953
- access_token?: string;
2920
+ access_token?:
2921
+ string;
1954
2922
  /** Data format for response. */
1955
- alt?: string;
2923
+ alt?:
2924
+ string;
1956
2925
  /** JSONP */
1957
- callback?: string;
2926
+ callback?:
2927
+ string;
1958
2928
  /** Selector specifying which fields to include in a partial response. */
1959
- fields?: string;
2929
+ fields?:
2930
+ string;
1960
2931
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1961
- key?: string;
2932
+ key?:
2933
+ string;
1962
2934
  /** OAuth 2.0 token for the current user. */
1963
- oauth_token?: string;
2935
+ oauth_token?:
2936
+ string;
1964
2937
  /** Returns response with indentations and line breaks. */
1965
- prettyPrint?: boolean;
2938
+ prettyPrint?:
2939
+ boolean;
1966
2940
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1967
- quotaUser?: string;
2941
+ quotaUser?:
2942
+ string;
1968
2943
  /**
1969
2944
  * Required. Full resource name of the format: `projects/*‍/locations/global/collections/*‍/dataStores/*‍/servingConfigs/*` Before you can request recommendations from your model,
1970
2945
  * you must create at least one serving config for it.
1971
2946
  */
1972
- servingConfig: string;
2947
+ servingConfig:
2948
+ string;
1973
2949
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1974
- upload_protocol?: string;
2950
+ upload_protocol?:
2951
+ string;
1975
2952
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1976
- uploadType?: string;
2953
+ uploadType?:
2954
+ string;
1977
2955
  /** Request body */
1978
- resource: GoogleCloudDiscoveryengineV1alphaRecommendRequest;
2956
+ resource:
2957
+ GoogleCloudDiscoveryengineV1alphaRecommendRequest;
1979
2958
  }): Request<GoogleCloudDiscoveryengineV1alphaRecommendResponse>;
1980
2959
  recommend(request: {
1981
2960
  /** V1 error format. */
1982
- "$.xgafv"?: string;
2961
+ "$.xgafv"?:
2962
+ string;
1983
2963
  /** OAuth access token. */
1984
- access_token?: string;
2964
+ access_token?:
2965
+ string;
1985
2966
  /** Data format for response. */
1986
- alt?: string;
2967
+ alt?:
2968
+ string;
1987
2969
  /** JSONP */
1988
- callback?: string;
2970
+ callback?:
2971
+ string;
1989
2972
  /** Selector specifying which fields to include in a partial response. */
1990
- fields?: string;
2973
+ fields?:
2974
+ string;
1991
2975
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1992
- key?: string;
2976
+ key?:
2977
+ string;
1993
2978
  /** OAuth 2.0 token for the current user. */
1994
- oauth_token?: string;
2979
+ oauth_token?:
2980
+ string;
1995
2981
  /** Returns response with indentations and line breaks. */
1996
- prettyPrint?: boolean;
2982
+ prettyPrint?:
2983
+ boolean;
1997
2984
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1998
- quotaUser?: string;
2985
+ quotaUser?:
2986
+ string;
1999
2987
  /**
2000
2988
  * Required. Full resource name of the format: `projects/*‍/locations/global/collections/*‍/dataStores/*‍/servingConfigs/*` Before you can request recommendations from your model,
2001
2989
  * you must create at least one serving config for it.
2002
2990
  */
2003
- servingConfig: string;
2991
+ servingConfig:
2992
+ string;
2004
2993
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2005
- upload_protocol?: string;
2994
+ upload_protocol?:
2995
+ string;
2006
2996
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2007
- uploadType?: string;
2997
+ uploadType?:
2998
+ string;
2008
2999
  },
2009
3000
  body: GoogleCloudDiscoveryengineV1alphaRecommendRequest): Request<GoogleCloudDiscoveryengineV1alphaRecommendResponse>;
2010
3001
  }
@@ -2015,38 +3006,53 @@ declare namespace gapi.client {
2015
3006
  */
2016
3007
  collect(request?: {
2017
3008
  /** V1 error format. */
2018
- "$.xgafv"?: string;
3009
+ "$.xgafv"?:
3010
+ string;
2019
3011
  /** OAuth access token. */
2020
- access_token?: string;
3012
+ access_token?:
3013
+ string;
2021
3014
  /** Data format for response. */
2022
- alt?: string;
3015
+ alt?:
3016
+ string;
2023
3017
  /** JSONP */
2024
- callback?: string;
3018
+ callback?:
3019
+ string;
2025
3020
  /** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
2026
- ets?: string;
3021
+ ets?:
3022
+ string;
2027
3023
  /** Selector specifying which fields to include in a partial response. */
2028
- fields?: string;
3024
+ fields?:
3025
+ string;
2029
3026
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2030
- key?: string;
3027
+ key?:
3028
+ string;
2031
3029
  /** OAuth 2.0 token for the current user. */
2032
- oauth_token?: string;
3030
+ oauth_token?:
3031
+ string;
2033
3032
  /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
2034
- parent: string;
3033
+ parent:
3034
+ string;
2035
3035
  /** Returns response with indentations and line breaks. */
2036
- prettyPrint?: boolean;
3036
+ prettyPrint?:
3037
+ boolean;
2037
3038
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2038
- quotaUser?: string;
3039
+ quotaUser?:
3040
+ string;
2039
3041
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2040
- upload_protocol?: string;
3042
+ upload_protocol?:
3043
+ string;
2041
3044
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2042
- uploadType?: string;
3045
+ uploadType?:
3046
+ string;
2043
3047
  /**
2044
3048
  * The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers
2045
3049
  * only send the domain for 3rd party requests.
2046
3050
  */
2047
- uri?: string;
3051
+ uri?:
3052
+ string;
2048
3053
  /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
2049
- userEvent?: string;
3054
+ userEvent?:
3055
+ string;
2050
3056
  }): Request<GoogleApiHttpBody>;
2051
3057
  /**
2052
3058
  * Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events.
@@ -2054,255 +3060,369 @@ declare namespace gapi.client {
2054
3060
  */
2055
3061
  import(request: {
2056
3062
  /** V1 error format. */
2057
- "$.xgafv"?: string;
3063
+ "$.xgafv"?:
3064
+ string;
2058
3065
  /** OAuth access token. */
2059
- access_token?: string;
3066
+ access_token?:
3067
+ string;
2060
3068
  /** Data format for response. */
2061
- alt?: string;
3069
+ alt?:
3070
+ string;
2062
3071
  /** JSONP */
2063
- callback?: string;
3072
+ callback?:
3073
+ string;
2064
3074
  /** Selector specifying which fields to include in a partial response. */
2065
- fields?: string;
3075
+ fields?:
3076
+ string;
2066
3077
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2067
- key?: string;
3078
+ key?:
3079
+ string;
2068
3080
  /** OAuth 2.0 token for the current user. */
2069
- oauth_token?: string;
3081
+ oauth_token?:
3082
+ string;
2070
3083
  /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
2071
- parent: string;
3084
+ parent:
3085
+ string;
2072
3086
  /** Returns response with indentations and line breaks. */
2073
- prettyPrint?: boolean;
3087
+ prettyPrint?:
3088
+ boolean;
2074
3089
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2075
- quotaUser?: string;
3090
+ quotaUser?:
3091
+ string;
2076
3092
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2077
- upload_protocol?: string;
3093
+ upload_protocol?:
3094
+ string;
2078
3095
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2079
- uploadType?: string;
3096
+ uploadType?:
3097
+ string;
2080
3098
  /** Request body */
2081
- resource: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest;
3099
+ resource:
3100
+ GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest;
2082
3101
  }): Request<GoogleLongrunningOperation>;
2083
3102
  import(request: {
2084
3103
  /** V1 error format. */
2085
- "$.xgafv"?: string;
3104
+ "$.xgafv"?:
3105
+ string;
2086
3106
  /** OAuth access token. */
2087
- access_token?: string;
3107
+ access_token?:
3108
+ string;
2088
3109
  /** Data format for response. */
2089
- alt?: string;
3110
+ alt?:
3111
+ string;
2090
3112
  /** JSONP */
2091
- callback?: string;
3113
+ callback?:
3114
+ string;
2092
3115
  /** Selector specifying which fields to include in a partial response. */
2093
- fields?: string;
3116
+ fields?:
3117
+ string;
2094
3118
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2095
- key?: string;
3119
+ key?:
3120
+ string;
2096
3121
  /** OAuth 2.0 token for the current user. */
2097
- oauth_token?: string;
3122
+ oauth_token?:
3123
+ string;
2098
3124
  /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
2099
- parent: string;
3125
+ parent:
3126
+ string;
2100
3127
  /** Returns response with indentations and line breaks. */
2101
- prettyPrint?: boolean;
3128
+ prettyPrint?:
3129
+ boolean;
2102
3130
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2103
- quotaUser?: string;
3131
+ quotaUser?:
3132
+ string;
2104
3133
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2105
- upload_protocol?: string;
3134
+ upload_protocol?:
3135
+ string;
2106
3136
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2107
- uploadType?: string;
3137
+ uploadType?:
3138
+ string;
2108
3139
  },
2109
3140
  body: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest): Request<GoogleLongrunningOperation>;
2110
3141
  /** Writes a single user event. */
2111
3142
  write(request: {
2112
3143
  /** V1 error format. */
2113
- "$.xgafv"?: string;
3144
+ "$.xgafv"?:
3145
+ string;
2114
3146
  /** OAuth access token. */
2115
- access_token?: string;
3147
+ access_token?:
3148
+ string;
2116
3149
  /** Data format for response. */
2117
- alt?: string;
3150
+ alt?:
3151
+ string;
2118
3152
  /** JSONP */
2119
- callback?: string;
3153
+ callback?:
3154
+ string;
2120
3155
  /** Selector specifying which fields to include in a partial response. */
2121
- fields?: string;
3156
+ fields?:
3157
+ string;
2122
3158
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2123
- key?: string;
3159
+ key?:
3160
+ string;
2124
3161
  /** OAuth 2.0 token for the current user. */
2125
- oauth_token?: string;
3162
+ oauth_token?:
3163
+ string;
2126
3164
  /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
2127
- parent: string;
3165
+ parent:
3166
+ string;
2128
3167
  /** Returns response with indentations and line breaks. */
2129
- prettyPrint?: boolean;
3168
+ prettyPrint?:
3169
+ boolean;
2130
3170
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2131
- quotaUser?: string;
3171
+ quotaUser?:
3172
+ string;
2132
3173
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2133
- upload_protocol?: string;
3174
+ upload_protocol?:
3175
+ string;
2134
3176
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2135
- uploadType?: string;
3177
+ uploadType?:
3178
+ string;
2136
3179
  /** Request body */
2137
- resource: GoogleCloudDiscoveryengineV1alphaUserEvent;
3180
+ resource:
3181
+ GoogleCloudDiscoveryengineV1alphaUserEvent;
2138
3182
  }): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
2139
3183
  write(request: {
2140
3184
  /** V1 error format. */
2141
- "$.xgafv"?: string;
3185
+ "$.xgafv"?:
3186
+ string;
2142
3187
  /** OAuth access token. */
2143
- access_token?: string;
3188
+ access_token?:
3189
+ string;
2144
3190
  /** Data format for response. */
2145
- alt?: string;
3191
+ alt?:
3192
+ string;
2146
3193
  /** JSONP */
2147
- callback?: string;
3194
+ callback?:
3195
+ string;
2148
3196
  /** Selector specifying which fields to include in a partial response. */
2149
- fields?: string;
3197
+ fields?:
3198
+ string;
2150
3199
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2151
- key?: string;
3200
+ key?:
3201
+ string;
2152
3202
  /** OAuth 2.0 token for the current user. */
2153
- oauth_token?: string;
3203
+ oauth_token?:
3204
+ string;
2154
3205
  /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
2155
- parent: string;
3206
+ parent:
3207
+ string;
2156
3208
  /** Returns response with indentations and line breaks. */
2157
- prettyPrint?: boolean;
3209
+ prettyPrint?:
3210
+ boolean;
2158
3211
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2159
- quotaUser?: string;
3212
+ quotaUser?:
3213
+ string;
2160
3214
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2161
- upload_protocol?: string;
3215
+ upload_protocol?:
3216
+ string;
2162
3217
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2163
- uploadType?: string;
3218
+ uploadType?:
3219
+ string;
2164
3220
  },
2165
3221
  body: GoogleCloudDiscoveryengineV1alphaUserEvent): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
2166
3222
  }
2167
3223
  interface DataStoresResource {
2168
- branches: BranchesResource;
2169
- models: ModelsResource;
2170
- operations: OperationsResource;
2171
- servingConfigs: ServingConfigsResource;
2172
- userEvents: UserEventsResource;
3224
+ branches:
3225
+ BranchesResource;
3226
+ models:
3227
+ ModelsResource;
3228
+ operations:
3229
+ OperationsResource;
3230
+ servingConfigs:
3231
+ ServingConfigsResource;
3232
+ userEvents:
3233
+ UserEventsResource;
2173
3234
  }
2174
3235
  interface OperationsResource {
2175
3236
  /** 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. */
2176
3237
  get(request?: {
2177
3238
  /** V1 error format. */
2178
- "$.xgafv"?: string;
3239
+ "$.xgafv"?:
3240
+ string;
2179
3241
  /** OAuth access token. */
2180
- access_token?: string;
3242
+ access_token?:
3243
+ string;
2181
3244
  /** Data format for response. */
2182
- alt?: string;
3245
+ alt?:
3246
+ string;
2183
3247
  /** JSONP */
2184
- callback?: string;
3248
+ callback?:
3249
+ string;
2185
3250
  /** Selector specifying which fields to include in a partial response. */
2186
- fields?: string;
3251
+ fields?:
3252
+ string;
2187
3253
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2188
- key?: string;
3254
+ key?:
3255
+ string;
2189
3256
  /** The name of the operation resource. */
2190
- name: string;
3257
+ name:
3258
+ string;
2191
3259
  /** OAuth 2.0 token for the current user. */
2192
- oauth_token?: string;
3260
+ oauth_token?:
3261
+ string;
2193
3262
  /** Returns response with indentations and line breaks. */
2194
- prettyPrint?: boolean;
3263
+ prettyPrint?:
3264
+ boolean;
2195
3265
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2196
- quotaUser?: string;
3266
+ quotaUser?:
3267
+ string;
2197
3268
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2198
- upload_protocol?: string;
3269
+ upload_protocol?:
3270
+ string;
2199
3271
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2200
- uploadType?: string;
3272
+ uploadType?:
3273
+ string;
2201
3274
  }): Request<GoogleLongrunningOperation>;
2202
3275
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2203
3276
  list(request?: {
2204
3277
  /** V1 error format. */
2205
- "$.xgafv"?: string;
3278
+ "$.xgafv"?:
3279
+ string;
2206
3280
  /** OAuth access token. */
2207
- access_token?: string;
3281
+ access_token?:
3282
+ string;
2208
3283
  /** Data format for response. */
2209
- alt?: string;
3284
+ alt?:
3285
+ string;
2210
3286
  /** JSONP */
2211
- callback?: string;
3287
+ callback?:
3288
+ string;
2212
3289
  /** Selector specifying which fields to include in a partial response. */
2213
- fields?: string;
3290
+ fields?:
3291
+ string;
2214
3292
  /** The standard list filter. */
2215
- filter?: string;
3293
+ filter?:
3294
+ string;
2216
3295
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2217
- key?: string;
3296
+ key?:
3297
+ string;
2218
3298
  /** The name of the operation's parent resource. */
2219
- name: string;
3299
+ name:
3300
+ string;
2220
3301
  /** OAuth 2.0 token for the current user. */
2221
- oauth_token?: string;
3302
+ oauth_token?:
3303
+ string;
2222
3304
  /** The standard list page size. */
2223
- pageSize?: number;
3305
+ pageSize?:
3306
+ number;
2224
3307
  /** The standard list page token. */
2225
- pageToken?: string;
3308
+ pageToken?:
3309
+ string;
2226
3310
  /** Returns response with indentations and line breaks. */
2227
- prettyPrint?: boolean;
3311
+ prettyPrint?:
3312
+ boolean;
2228
3313
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2229
- quotaUser?: string;
3314
+ quotaUser?:
3315
+ string;
2230
3316
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2231
- upload_protocol?: string;
3317
+ upload_protocol?:
3318
+ string;
2232
3319
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2233
- uploadType?: string;
3320
+ uploadType?:
3321
+ string;
2234
3322
  }): Request<GoogleLongrunningListOperationsResponse>;
2235
3323
  }
2236
3324
  interface LocationsResource {
2237
- collections: CollectionsResource;
2238
- dataStores: DataStoresResource;
2239
- operations: OperationsResource;
3325
+ collections:
3326
+ CollectionsResource;
3327
+ dataStores:
3328
+ DataStoresResource;
3329
+ operations:
3330
+ OperationsResource;
2240
3331
  }
2241
3332
  interface OperationsResource {
2242
3333
  /** 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. */
2243
3334
  get(request?: {
2244
3335
  /** V1 error format. */
2245
- "$.xgafv"?: string;
3336
+ "$.xgafv"?:
3337
+ string;
2246
3338
  /** OAuth access token. */
2247
- access_token?: string;
3339
+ access_token?:
3340
+ string;
2248
3341
  /** Data format for response. */
2249
- alt?: string;
3342
+ alt?:
3343
+ string;
2250
3344
  /** JSONP */
2251
- callback?: string;
3345
+ callback?:
3346
+ string;
2252
3347
  /** Selector specifying which fields to include in a partial response. */
2253
- fields?: string;
3348
+ fields?:
3349
+ string;
2254
3350
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2255
- key?: string;
3351
+ key?:
3352
+ string;
2256
3353
  /** The name of the operation resource. */
2257
- name: string;
3354
+ name:
3355
+ string;
2258
3356
  /** OAuth 2.0 token for the current user. */
2259
- oauth_token?: string;
3357
+ oauth_token?:
3358
+ string;
2260
3359
  /** Returns response with indentations and line breaks. */
2261
- prettyPrint?: boolean;
3360
+ prettyPrint?:
3361
+ boolean;
2262
3362
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2263
- quotaUser?: string;
3363
+ quotaUser?:
3364
+ string;
2264
3365
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2265
- upload_protocol?: string;
3366
+ upload_protocol?:
3367
+ string;
2266
3368
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2267
- uploadType?: string;
3369
+ uploadType?:
3370
+ string;
2268
3371
  }): Request<GoogleLongrunningOperation>;
2269
3372
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2270
3373
  list(request?: {
2271
3374
  /** V1 error format. */
2272
- "$.xgafv"?: string;
3375
+ "$.xgafv"?:
3376
+ string;
2273
3377
  /** OAuth access token. */
2274
- access_token?: string;
3378
+ access_token?:
3379
+ string;
2275
3380
  /** Data format for response. */
2276
- alt?: string;
3381
+ alt?:
3382
+ string;
2277
3383
  /** JSONP */
2278
- callback?: string;
3384
+ callback?:
3385
+ string;
2279
3386
  /** Selector specifying which fields to include in a partial response. */
2280
- fields?: string;
3387
+ fields?:
3388
+ string;
2281
3389
  /** The standard list filter. */
2282
- filter?: string;
3390
+ filter?:
3391
+ string;
2283
3392
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2284
- key?: string;
3393
+ key?:
3394
+ string;
2285
3395
  /** The name of the operation's parent resource. */
2286
- name: string;
3396
+ name:
3397
+ string;
2287
3398
  /** OAuth 2.0 token for the current user. */
2288
- oauth_token?: string;
3399
+ oauth_token?:
3400
+ string;
2289
3401
  /** The standard list page size. */
2290
- pageSize?: number;
3402
+ pageSize?:
3403
+ number;
2291
3404
  /** The standard list page token. */
2292
- pageToken?: string;
3405
+ pageToken?:
3406
+ string;
2293
3407
  /** Returns response with indentations and line breaks. */
2294
- prettyPrint?: boolean;
3408
+ prettyPrint?:
3409
+ boolean;
2295
3410
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2296
- quotaUser?: string;
3411
+ quotaUser?:
3412
+ string;
2297
3413
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2298
- upload_protocol?: string;
3414
+ upload_protocol?:
3415
+ string;
2299
3416
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2300
- uploadType?: string;
3417
+ uploadType?:
3418
+ string;
2301
3419
  }): Request<GoogleLongrunningListOperationsResponse>;
2302
3420
  }
2303
3421
  interface ProjectsResource {
2304
- locations: LocationsResource;
2305
- operations: OperationsResource;
3422
+ locations:
3423
+ LocationsResource;
3424
+ operations:
3425
+ OperationsResource;
2306
3426
  }
2307
3427
 
2308
3428
  const projects: ProjectsResource;