@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20230102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,1415 @@
1
+ /* Type definitions for non-npm package Discovery Engine API v1beta 0.0 */
2
+ // Project: https://cloud.google.com/discovery-engine/docs
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+
8
+ // IMPORTANT
9
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
+ // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
12
+ // Revision: 20230102
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Discovery Engine API v1beta */
18
+ function load(urlOrObject: "https://discoveryengine.googleapis.com/$discovery/rest?version=v1beta"): Promise<void>;
19
+ /** @deprecated Please load APIs with discovery documents. */
20
+ function load(name: "discoveryengine", version: "v1beta"): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: "discoveryengine", version: "v1beta", callback: () => any): void;
23
+
24
+ namespace discoveryengine {
25
+ interface GoogleApiHttpBody {
26
+ /** The HTTP Content-Type header value specifying the content type of the body. */
27
+ contentType?: string;
28
+ /** The HTTP request/response body as raw binary. */
29
+ data?: string;
30
+ /** Application specific response metadata. Must be set in the first response for streaming APIs. */
31
+ extensions?: Array<{ [P in string]: any }>;
32
+ }
33
+ interface GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata {
34
+ /** Operation create time. */
35
+ createTime?: string;
36
+ /** Count of entries that encountered errors while processing. */
37
+ failureCount?: string;
38
+ /** Count of entries that were processed successfully. */
39
+ successCount?: string;
40
+ /** Operation last update time. If the operation is done, this is also the finish time. */
41
+ updateTime?: string;
42
+ }
43
+ interface GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse {
44
+ /** Echoes the destination for the complete errors in the request if set. */
45
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
46
+ /** A sample of errors encountered while processing the request. */
47
+ errorSamples?: GoogleRpcStatus[];
48
+ }
49
+ interface GoogleCloudDiscoveryengineV1alphaImportErrorConfig {
50
+ /**
51
+ * 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
52
+ * JSON-encoded `google.rpc.Status` message.
53
+ */
54
+ gcsPrefix?: string;
55
+ }
56
+ interface GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata {
57
+ /** Operation create time. */
58
+ createTime?: string;
59
+ /** Count of entries that encountered errors while processing. */
60
+ failureCount?: string;
61
+ /** Count of entries that were processed successfully. */
62
+ successCount?: string;
63
+ /** Operation last update time. If the operation is done, this is also the finish time. */
64
+ updateTime?: string;
65
+ }
66
+ interface GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse {
67
+ /** Echoes the destination for the complete errors if this field was set in the request. */
68
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
69
+ /** A sample of errors encountered while processing the request. */
70
+ errorSamples?: GoogleRpcStatus[];
71
+ /** Count of user events imported with complete existing Documents. */
72
+ joinedEventsCount?: string;
73
+ /** Count of user events imported, but with Document information not found in the existing Branch. */
74
+ unjoinedEventsCount?: string;
75
+ }
76
+ interface GoogleCloudDiscoveryengineV1betaBigQuerySource {
77
+ /**
78
+ * The schema to use when parsing the data from the source. Supported values for imports: * `user_event` (default): One JSON UserEvent per line. * `document` (default): One JSON
79
+ * Document per line. Each document must have a valid document.id.
80
+ */
81
+ dataSchema?: string;
82
+ /** Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters. */
83
+ datasetId?: string;
84
+ /**
85
+ * 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
86
+ * Storage directory.
87
+ */
88
+ gcsStagingDir?: string;
89
+ /** BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. */
90
+ partitionDate?: GoogleTypeDate;
91
+ /** 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. */
92
+ projectId?: string;
93
+ /** Required. The BigQuery table to copy the data from with a length limit of 1,024 characters. */
94
+ tableId?: string;
95
+ }
96
+ interface GoogleCloudDiscoveryengineV1betaCompletionInfo {
97
+ /** End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0. */
98
+ selectedPosition?: number;
99
+ /** End user selected CompleteQueryResponse.CompletionResult.suggestion. */
100
+ selectedSuggestion?: string;
101
+ }
102
+ interface GoogleCloudDiscoveryengineV1betaCustomAttribute {
103
+ /**
104
+ * The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT
105
+ * error is returned.
106
+ */
107
+ numbers?: number[];
108
+ /**
109
+ * 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
110
+ * returned. Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.
111
+ */
112
+ text?: string[];
113
+ }
114
+ interface GoogleCloudDiscoveryengineV1betaDocument {
115
+ /** 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. */
116
+ id?: string;
117
+ /** The JSON string representation of the document. It should conform to the registered schema or an INVALID_ARGUMENT error is thrown. */
118
+ jsonData?: string;
119
+ /**
120
+ * Immutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field
121
+ * must be a UTF-8 encoded string with a length limit of 1024 characters.
122
+ */
123
+ name?: string;
124
+ /**
125
+ * 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
126
+ * length limit of 63 characters.
127
+ */
128
+ parentDocumentId?: string;
129
+ /** Required. The identifier of the schema located in the same data store. */
130
+ schemaId?: string;
131
+ /** The structured JSON data for the document. It should conform to the registered schema or an INVALID_ARGUMENT error is thrown. */
132
+ structData?: { [P in string]: any };
133
+ }
134
+ interface GoogleCloudDiscoveryengineV1betaDocumentInfo {
135
+ /** Required. The Document resource ID. */
136
+ id?: string;
137
+ /** Required. The Document resource full name, of the form: projects//locations//dataStores//branches//documents/ */
138
+ name?: string;
139
+ /** The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID. */
140
+ promotionIds?: string[];
141
+ /**
142
+ * 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`
143
+ * event. Required for events of the following event types: * `add-to-cart` * `purchase`
144
+ */
145
+ quantity?: number;
146
+ }
147
+ interface GoogleCloudDiscoveryengineV1betaGcsSource {
148
+ /**
149
+ * The schema to use when parsing the data from the source. Supported values for imports: * `user_event` (default): One JSON UserEvent per line. * `document` (default): One JSON
150
+ * Document per line. Each document must have a valid Document.id.
151
+ */
152
+ dataSchema?: string;
153
+ /**
154
+ * 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
155
+ * pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB.
156
+ */
157
+ inputUris?: string[];
158
+ }
159
+ interface GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata {
160
+ /** Operation create time. */
161
+ createTime?: string;
162
+ /** Count of entries that encountered errors while processing. */
163
+ failureCount?: string;
164
+ /** Count of entries that were processed successfully. */
165
+ successCount?: string;
166
+ /** Operation last update time. If the operation is done, this is also the finish time. */
167
+ updateTime?: string;
168
+ }
169
+ interface GoogleCloudDiscoveryengineV1betaImportDocumentsRequest {
170
+ /** BigQuery input source. */
171
+ bigquerySource?: GoogleCloudDiscoveryengineV1betaBigQuerySource;
172
+ /** The desired location of errors incurred during the Import. */
173
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
174
+ /** Cloud Storage location for the input content. */
175
+ gcsSource?: GoogleCloudDiscoveryengineV1betaGcsSource;
176
+ /** The Inline source for the input content for documents. */
177
+ inlineSource?: GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource;
178
+ /** The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL. */
179
+ reconciliationMode?: string;
180
+ }
181
+ interface GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource {
182
+ /** Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items. */
183
+ documents?: GoogleCloudDiscoveryengineV1betaDocument[];
184
+ }
185
+ interface GoogleCloudDiscoveryengineV1betaImportDocumentsResponse {
186
+ /** Echoes the destination for the complete errors in the request if set. */
187
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
188
+ /** A sample of errors encountered while processing the request. */
189
+ errorSamples?: GoogleRpcStatus[];
190
+ }
191
+ interface GoogleCloudDiscoveryengineV1betaImportErrorConfig {
192
+ /**
193
+ * 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
194
+ * JSON-encoded `google.rpc.Status` message.
195
+ */
196
+ gcsPrefix?: string;
197
+ }
198
+ interface GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata {
199
+ /** Operation create time. */
200
+ createTime?: string;
201
+ /** Count of entries that encountered errors while processing. */
202
+ failureCount?: string;
203
+ /** Count of entries that were processed successfully. */
204
+ successCount?: string;
205
+ /** Operation last update time. If the operation is done, this is also the finish time. */
206
+ updateTime?: string;
207
+ }
208
+ interface GoogleCloudDiscoveryengineV1betaImportUserEventsRequest {
209
+ /** Required. BigQuery input source. */
210
+ bigquerySource?: GoogleCloudDiscoveryengineV1betaBigQuerySource;
211
+ /** The desired location of errors incurred during the Import. Cannot be set for inline user event imports. */
212
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
213
+ /** Required. Cloud Storage location for the input content. */
214
+ gcsSource?: GoogleCloudDiscoveryengineV1betaGcsSource;
215
+ /** Required. The Inline source for the input content for UserEvents. */
216
+ inlineSource?: GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource;
217
+ }
218
+ interface GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource {
219
+ /** Required. A list of user events to import. Recommended max of 10k items. */
220
+ userEvents?: GoogleCloudDiscoveryengineV1betaUserEvent[];
221
+ }
222
+ interface GoogleCloudDiscoveryengineV1betaImportUserEventsResponse {
223
+ /** Echoes the destination for the complete errors if this field was set in the request. */
224
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
225
+ /** A sample of errors encountered while processing the request. */
226
+ errorSamples?: GoogleRpcStatus[];
227
+ /** Count of user events imported with complete existing Documents. */
228
+ joinedEventsCount?: string;
229
+ /** Count of user events imported, but with Document information not found in the existing Branch. */
230
+ unjoinedEventsCount?: string;
231
+ }
232
+ interface GoogleCloudDiscoveryengineV1betaListDocumentsResponse {
233
+ /** The Documents. */
234
+ documents?: GoogleCloudDiscoveryengineV1betaDocument[];
235
+ /** 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. */
236
+ nextPageToken?: string;
237
+ }
238
+ interface GoogleCloudDiscoveryengineV1betaMediaInfo {
239
+ /**
240
+ * 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
241
+ * set to 90.
242
+ */
243
+ mediaProgressDuration?: string;
244
+ /**
245
+ * 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 playback
246
+ * or the progress cannot be computed (e.g. ongoing livestream), this field should be unset.
247
+ */
248
+ mediaProgressPercentage?: number;
249
+ }
250
+ interface GoogleCloudDiscoveryengineV1betaPageInfo {
251
+ /**
252
+ * The most specific category associated with a category page. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name,
253
+ * please replace it with other character(s). Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy:
254
+ * "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
255
+ * returned.
256
+ */
257
+ pageCategory?: string;
258
+ /**
259
+ * 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
260
+ * 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
261
+ * side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically.
262
+ */
263
+ pageviewId?: string;
264
+ /**
265
+ * 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
266
+ * browser privacy restrictions may cause this field to be empty.
267
+ */
268
+ referrerUri?: string;
269
+ /**
270
+ * 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
271
+ * automatically. Maximum length 5,000 characters.
272
+ */
273
+ uri?: string;
274
+ }
275
+ interface GoogleCloudDiscoveryengineV1betaPanelInfo {
276
+ /** The display name of the panel. */
277
+ displayName?: string;
278
+ /** Required. The panel ID. */
279
+ panelId?: string;
280
+ /** The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set. */
281
+ panelPosition?: number;
282
+ /** The total number of panels, including this one, shown to the user. Must be set if panel_position is set. */
283
+ totalPanels?: number;
284
+ }
285
+ interface GoogleCloudDiscoveryengineV1betaRecommendRequest {
286
+ /**
287
+ * Filter for restricting recommendation results with a length limit of 5,000 characters. Currently, only filter expressions on the `filter_tags` attribute is supported. Examples: *
288
+ * (filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold")) * (filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green")) If your filter blocks all results, the
289
+ * API will return generic (unfiltered) popular Documents. If you only want results strictly matching the filters, set `strictFiltering` to True in RecommendRequest.params to receive
290
+ * empty results instead. Note that the API will never return Documents with storageStatus of "EXPIRED" or "DELETED" regardless of filter choices.
291
+ */
292
+ filter?: string;
293
+ /**
294
+ * 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
295
+ * value is 100. Values above 100 will be coerced to 100.
296
+ */
297
+ pageSize?: number;
298
+ /**
299
+ * Additional domain specific parameters for the recommendations. Allowed values: * `returnDocument`: Boolean. If set to true, the associated Document object will be returned in
300
+ * RecommendResponse.results.document. * `returnScore`: Boolean. If set to true, the recommendation 'score' corresponding to each returned Document will be set in
301
+ * RecommendResponse.results.metadata. The given 'score' indicates the probability of a Document conversion given the user's context and history. * `strictFiltering`: Boolean. True by
302
+ * default. If set to false, the service will return generic (unfiltered) popular Documents instead of empty if your filter blocks all recommendation results. * `diversityLevel`:
303
+ * String. Default empty. If set to be non-empty, then it needs to be one of: * 'no-diversity' * 'low-diversity' * 'medium-diversity' * 'high-diversity' * 'auto-diversity' This gives
304
+ * request-level control and adjusts recommendation results based on Document category.
305
+ */
306
+ params?: { [P in string]: any };
307
+ /**
308
+ * 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
309
+ * 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
310
+ * 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
311
+ * to a random unique ID and leave UserEvent.user_info.user_id unset.
312
+ */
313
+ userEvent?: GoogleCloudDiscoveryengineV1betaUserEvent;
314
+ /**
315
+ * 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. *
316
+ * 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
317
+ * values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key
318
+ * 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
319
+ * for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
320
+ */
321
+ userLabels?: { [P in string]: string };
322
+ /**
323
+ * 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
324
+ * used for testing the API, or if the model is not ready.
325
+ */
326
+ validateOnly?: boolean;
327
+ }
328
+ interface GoogleCloudDiscoveryengineV1betaRecommendResponse {
329
+ /** A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance. */
330
+ attributionToken?: string;
331
+ /** IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig. */
332
+ missingIds?: string[];
333
+ /** A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least). */
334
+ results?: GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult[];
335
+ /** True if RecommendRequest.validate_only was set. */
336
+ validateOnly?: boolean;
337
+ }
338
+ interface GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult {
339
+ /** Set if `returnDocument` is set to true in RecommendRequest.params. */
340
+ document?: GoogleCloudDiscoveryengineV1betaDocument;
341
+ /** Resource ID of the recommended Document. */
342
+ id?: string;
343
+ /** Additional Document metadata / annotations. Possible values: * `score`: Recommendation score in double value. Is set if `returnScore` is set to true in RecommendRequest.params. */
344
+ metadata?: { [P in string]: any };
345
+ }
346
+ interface GoogleCloudDiscoveryengineV1betaSearchInfo {
347
+ /**
348
+ * An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant). See SearchRequest.offset for
349
+ * 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
350
+ * INVALID_ARGUMENT error is returned.
351
+ */
352
+ offset?: number;
353
+ /**
354
+ * 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
355
+ * 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
356
+ * error is returned.
357
+ */
358
+ orderBy?: string;
359
+ /**
360
+ * 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
361
+ * 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
362
+ * is returned.
363
+ */
364
+ searchQuery?: string;
365
+ }
366
+ interface GoogleCloudDiscoveryengineV1betaTransactionInfo {
367
+ /**
368
+ * 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 -
369
+ * cost
370
+ */
371
+ cost?: number;
372
+ /** Required. Currency code. Use three-character ISO-4217 code. */
373
+ currency?: string;
374
+ /**
375
+ * 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
376
+ * 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
377
+ * of the discount value, and that TransactionInfo.discount_value can be larger than TransactionInfo.value: * Profit = value - tax - cost
378
+ */
379
+ discountValue?: number;
380
+ /** All the taxes associated with the transaction. */
381
+ tax?: number;
382
+ /** The transaction ID with a length limit of 128 characters. */
383
+ transactionId?: string;
384
+ /** 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. */
385
+ value?: number;
386
+ }
387
+ interface GoogleCloudDiscoveryengineV1betaUserEvent {
388
+ /**
389
+ * Extra user event features to include in the recommendation model. These attributes must NOT contain data that needs to be parsed or processed further, e.g. JSON or other encodings.
390
+ * If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be
391
+ * consistent between imported events and events provided with prediction requests. This lets the Discovery Engine API use those custom attributes when training models and serving
392
+ * predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * The key must be a UTF-8
393
+ * encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded
394
+ * 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
395
+ * 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.
396
+ */
397
+ attributes?: { [P in string]: GoogleCloudDiscoveryengineV1betaCustomAttribute };
398
+ /**
399
+ * 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
400
+ * accurate attribution of recommendation model performance. The value must be one of: * PredictResponse.attribution_token for events that are the result of PredictionService.Predict.
401
+ * * SearchResponse.attribution_token for events that are the result of SearchService.Search. * CompleteQueryResponse.attribution_token for events that are the result of
402
+ * 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
403
+ * 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
404
+ * events on product K's page, log the PredictResponse.attribution_token to this field.
405
+ */
406
+ attributionToken?: string;
407
+ /** 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. */
408
+ completionInfo?: GoogleCloudDiscoveryengineV1betaCompletionInfo;
409
+ /**
410
+ * 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
411
+ * 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
412
+ * set when using the JavaScript tag in UserEventService.CollectUserEvent.
413
+ */
414
+ directUserRequest?: boolean;
415
+ /**
416
+ * 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` *
417
+ * `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
418
+ * 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.
419
+ */
420
+ documents?: GoogleCloudDiscoveryengineV1betaDocumentInfo[];
421
+ /** Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened. */
422
+ eventTime?: string;
423
+ /**
424
+ * 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
425
+ * 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: *
426
+ * `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
427
+ * a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc.
428
+ */
429
+ eventType?: string;
430
+ /**
431
+ * 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
432
+ * associated SearchService.SearchRequest may contain a filter expression in SearchService.SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for
433
+ * `view-item-list` events that are generated from a PredictionService.PredictRequest, this field may be populated directly from PredictionService.PredictRequest.filter conforming to
434
+ * 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.
435
+ */
436
+ filter?: string;
437
+ /** Media-specific info. */
438
+ mediaInfo?: GoogleCloudDiscoveryengineV1betaMediaInfo;
439
+ /** Page metadata such as categories and other critical information for certain event types such as `view-category-page`. */
440
+ pageInfo?: GoogleCloudDiscoveryengineV1betaPageInfo;
441
+ /** Panel metadata associated with this user event. */
442
+ panel?: GoogleCloudDiscoveryengineV1betaPanelInfo;
443
+ /** The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID. */
444
+ promotionIds?: string[];
445
+ /** Search API details related to the event. This field should be set for `search` event. */
446
+ searchInfo?: GoogleCloudDiscoveryengineV1betaSearchInfo;
447
+ /**
448
+ * 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
449
+ * 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
450
+ * UserEvent.user_pseudo_id as prefix.
451
+ */
452
+ sessionId?: string;
453
+ /**
454
+ * 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
455
+ * on the customer end.
456
+ */
457
+ tagIds?: string[];
458
+ /** The transaction metadata (if any) associated with this user event. */
459
+ transactionInfo?: GoogleCloudDiscoveryengineV1betaTransactionInfo;
460
+ /** Information about the end user. */
461
+ userInfo?: GoogleCloudDiscoveryengineV1betaUserInfo;
462
+ /**
463
+ * 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
464
+ * 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
465
+ * history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
466
+ * INVALID_ARGUMENT error is returned. The field should not contain PII or user-data. We recommend to use Google Analytics [Client
467
+ * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) for this field.
468
+ */
469
+ userPseudoId?: string;
470
+ }
471
+ interface GoogleCloudDiscoveryengineV1betaUserInfo {
472
+ /**
473
+ * 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.
474
+ * 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
475
+ * or if direct_user_request is set.
476
+ */
477
+ userAgent?: string;
478
+ /**
479
+ * 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
480
+ * 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
481
+ * string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
482
+ */
483
+ userId?: string;
484
+ }
485
+ interface GoogleLongrunningListOperationsResponse {
486
+ /** The standard List next-page token. */
487
+ nextPageToken?: string;
488
+ /** A list of operations that matches the specified filter in the request. */
489
+ operations?: GoogleLongrunningOperation[];
490
+ }
491
+ interface GoogleLongrunningOperation {
492
+ /** 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. */
493
+ done?: boolean;
494
+ /** The error result of the operation in case of failure or cancellation. */
495
+ error?: GoogleRpcStatus;
496
+ /**
497
+ * 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
498
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
499
+ */
500
+ metadata?: { [P in string]: any };
501
+ /**
502
+ * 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
503
+ * with `operations/{unique_id}`.
504
+ */
505
+ name?: string;
506
+ /**
507
+ * 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
508
+ * 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
509
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
510
+ */
511
+ response?: { [P in string]: any };
512
+ }
513
+ // tslint:disable-next-line:no-empty-interface
514
+ interface GoogleProtobufEmpty {
515
+ }
516
+ interface GoogleRpcStatus {
517
+ /** The status code, which should be an enum value of google.rpc.Code. */
518
+ code?: number;
519
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
520
+ details?: Array<{ [P in string]: any }>;
521
+ /**
522
+ * 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
523
+ * client.
524
+ */
525
+ message?: string;
526
+ }
527
+ interface GoogleTypeDate {
528
+ /** 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. */
529
+ day?: number;
530
+ /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
531
+ month?: number;
532
+ /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
533
+ year?: number;
534
+ }
535
+ interface DocumentsResource {
536
+ /** Creates a Document. */
537
+ create(request: {
538
+ /** V1 error format. */
539
+ "$.xgafv"?: string;
540
+ /** OAuth access token. */
541
+ access_token?: string;
542
+ /** Data format for response. */
543
+ alt?: string;
544
+ /** JSONP */
545
+ callback?: string;
546
+ /**
547
+ * 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
548
+ * 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
549
+ * 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
550
+ * returned.
551
+ */
552
+ documentId?: string;
553
+ /** Selector specifying which fields to include in a partial response. */
554
+ fields?: string;
555
+ /** 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. */
556
+ key?: string;
557
+ /** OAuth 2.0 token for the current user. */
558
+ oauth_token?: string;
559
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. */
560
+ parent: string;
561
+ /** Returns response with indentations and line breaks. */
562
+ prettyPrint?: boolean;
563
+ /** 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. */
564
+ quotaUser?: string;
565
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
566
+ upload_protocol?: string;
567
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
568
+ uploadType?: string;
569
+ /** Request body */
570
+ resource: GoogleCloudDiscoveryengineV1betaDocument;
571
+ }): Request<GoogleCloudDiscoveryengineV1betaDocument>;
572
+ create(request: {
573
+ /** V1 error format. */
574
+ "$.xgafv"?: string;
575
+ /** OAuth access token. */
576
+ access_token?: string;
577
+ /** Data format for response. */
578
+ alt?: string;
579
+ /** JSONP */
580
+ callback?: string;
581
+ /**
582
+ * 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
583
+ * 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
584
+ * 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
585
+ * returned.
586
+ */
587
+ documentId?: string;
588
+ /** Selector specifying which fields to include in a partial response. */
589
+ fields?: string;
590
+ /** 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. */
591
+ key?: string;
592
+ /** OAuth 2.0 token for the current user. */
593
+ oauth_token?: string;
594
+ /** Required. The parent resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. */
595
+ parent: string;
596
+ /** Returns response with indentations and line breaks. */
597
+ prettyPrint?: boolean;
598
+ /** 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. */
599
+ quotaUser?: string;
600
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
601
+ upload_protocol?: string;
602
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
603
+ uploadType?: string;
604
+ },
605
+ body: GoogleCloudDiscoveryengineV1betaDocument): Request<GoogleCloudDiscoveryengineV1betaDocument>;
606
+ /** Deletes a Document. */
607
+ delete(request?: {
608
+ /** V1 error format. */
609
+ "$.xgafv"?: string;
610
+ /** OAuth access token. */
611
+ access_token?: string;
612
+ /** Data format for response. */
613
+ alt?: string;
614
+ /** JSONP */
615
+ callback?: string;
616
+ /** Selector specifying which fields to include in a partial response. */
617
+ fields?: string;
618
+ /** 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. */
619
+ key?: string;
620
+ /**
621
+ * Required. Full resource name of Document, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does
622
+ * not have permission to 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
623
+ * error is returned.
624
+ */
625
+ name: string;
626
+ /** OAuth 2.0 token for the current user. */
627
+ oauth_token?: string;
628
+ /** Returns response with indentations and line breaks. */
629
+ prettyPrint?: boolean;
630
+ /** 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. */
631
+ quotaUser?: string;
632
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
633
+ upload_protocol?: string;
634
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
635
+ uploadType?: string;
636
+ }): Request<{}>;
637
+ /** Gets a Document. */
638
+ get(request?: {
639
+ /** V1 error format. */
640
+ "$.xgafv"?: string;
641
+ /** OAuth access token. */
642
+ access_token?: string;
643
+ /** Data format for response. */
644
+ alt?: string;
645
+ /** JSONP */
646
+ callback?: string;
647
+ /** Selector specifying which fields to include in a partial response. */
648
+ fields?: string;
649
+ /** 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. */
650
+ key?: string;
651
+ /**
652
+ * Required. Full resource name of Document, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does
653
+ * not have permission to 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
654
+ * error is returned.
655
+ */
656
+ name: string;
657
+ /** OAuth 2.0 token for the current user. */
658
+ oauth_token?: string;
659
+ /** Returns response with indentations and line breaks. */
660
+ prettyPrint?: boolean;
661
+ /** 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. */
662
+ quotaUser?: string;
663
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
664
+ upload_protocol?: string;
665
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
666
+ uploadType?: string;
667
+ }): Request<GoogleCloudDiscoveryengineV1betaDocument>;
668
+ /**
669
+ * 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
670
+ * updated.
671
+ */
672
+ import(request: {
673
+ /** V1 error format. */
674
+ "$.xgafv"?: string;
675
+ /** OAuth access token. */
676
+ access_token?: string;
677
+ /** Data format for response. */
678
+ alt?: string;
679
+ /** JSONP */
680
+ callback?: string;
681
+ /** Selector specifying which fields to include in a partial response. */
682
+ fields?: string;
683
+ /** 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. */
684
+ key?: string;
685
+ /** OAuth 2.0 token for the current user. */
686
+ oauth_token?: string;
687
+ /** Required. The parent branch resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. Requires create/update permission. */
688
+ parent: string;
689
+ /** Returns response with indentations and line breaks. */
690
+ prettyPrint?: boolean;
691
+ /** 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. */
692
+ quotaUser?: string;
693
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
694
+ upload_protocol?: string;
695
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
696
+ uploadType?: string;
697
+ /** Request body */
698
+ resource: GoogleCloudDiscoveryengineV1betaImportDocumentsRequest;
699
+ }): Request<GoogleLongrunningOperation>;
700
+ import(request: {
701
+ /** V1 error format. */
702
+ "$.xgafv"?: string;
703
+ /** OAuth access token. */
704
+ access_token?: string;
705
+ /** Data format for response. */
706
+ alt?: string;
707
+ /** JSONP */
708
+ callback?: string;
709
+ /** Selector specifying which fields to include in a partial response. */
710
+ fields?: string;
711
+ /** 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. */
712
+ key?: string;
713
+ /** OAuth 2.0 token for the current user. */
714
+ oauth_token?: string;
715
+ /** Required. The parent branch resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. Requires create/update permission. */
716
+ parent: string;
717
+ /** Returns response with indentations and line breaks. */
718
+ prettyPrint?: boolean;
719
+ /** 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. */
720
+ quotaUser?: string;
721
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
722
+ upload_protocol?: string;
723
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
724
+ uploadType?: string;
725
+ },
726
+ body: GoogleCloudDiscoveryengineV1betaImportDocumentsRequest): Request<GoogleLongrunningOperation>;
727
+ /** Gets a list of Documents. */
728
+ list(request?: {
729
+ /** V1 error format. */
730
+ "$.xgafv"?: string;
731
+ /** OAuth access token. */
732
+ access_token?: string;
733
+ /** Data format for response. */
734
+ alt?: string;
735
+ /** JSONP */
736
+ callback?: string;
737
+ /** Selector specifying which fields to include in a partial response. */
738
+ fields?: string;
739
+ /** 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. */
740
+ key?: string;
741
+ /** OAuth 2.0 token for the current user. */
742
+ oauth_token?: string;
743
+ /**
744
+ * 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,
745
+ * an INVALID_ARGUMENT error is returned.
746
+ */
747
+ pageSize?: number;
748
+ /**
749
+ * A page token ListDocumentsResponse.next_page_token, received from a previous DocumentService.ListDocuments call. Provide this to retrieve the subsequent page. When paginating,
750
+ * all other parameters provided to DocumentService.ListDocuments must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
751
+ */
752
+ pageToken?: string;
753
+ /**
754
+ * Required. The parent branch resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`. Use `default_branch` as the branch ID, to
755
+ * list documents under the default branch. If the caller does not have permission to list Documentss under this branch, regardless of whether or not this branch exists, a
756
+ * PERMISSION_DENIED error is returned.
757
+ */
758
+ parent: string;
759
+ /** Returns response with indentations and line breaks. */
760
+ prettyPrint?: boolean;
761
+ /** 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. */
762
+ quotaUser?: string;
763
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
764
+ upload_protocol?: string;
765
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
766
+ uploadType?: string;
767
+ }): Request<GoogleCloudDiscoveryengineV1betaListDocumentsResponse>;
768
+ /** Updates a Document. */
769
+ patch(request: {
770
+ /** V1 error format. */
771
+ "$.xgafv"?: string;
772
+ /** OAuth access token. */
773
+ access_token?: string;
774
+ /** If set to true, and the Document is not found, a new Document will be created. */
775
+ allowMissing?: boolean;
776
+ /** Data format for response. */
777
+ alt?: string;
778
+ /** JSONP */
779
+ callback?: string;
780
+ /** Selector specifying which fields to include in a partial response. */
781
+ fields?: string;
782
+ /** 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. */
783
+ key?: string;
784
+ /**
785
+ * Immutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This
786
+ * field must be a UTF-8 encoded string with a length limit of 1024 characters.
787
+ */
788
+ name: string;
789
+ /** OAuth 2.0 token for the current user. */
790
+ oauth_token?: string;
791
+ /** Returns response with indentations and line breaks. */
792
+ prettyPrint?: boolean;
793
+ /** 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. */
794
+ quotaUser?: string;
795
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
796
+ upload_protocol?: string;
797
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
798
+ uploadType?: string;
799
+ /** Request body */
800
+ resource: GoogleCloudDiscoveryengineV1betaDocument;
801
+ }): Request<GoogleCloudDiscoveryengineV1betaDocument>;
802
+ patch(request: {
803
+ /** V1 error format. */
804
+ "$.xgafv"?: string;
805
+ /** OAuth access token. */
806
+ access_token?: string;
807
+ /** If set to true, and the Document is not found, a new Document will be created. */
808
+ allowMissing?: boolean;
809
+ /** Data format for response. */
810
+ alt?: string;
811
+ /** JSONP */
812
+ callback?: string;
813
+ /** Selector specifying which fields to include in a partial response. */
814
+ fields?: string;
815
+ /** 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. */
816
+ key?: string;
817
+ /**
818
+ * Immutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This
819
+ * field must be a UTF-8 encoded string with a length limit of 1024 characters.
820
+ */
821
+ name: string;
822
+ /** OAuth 2.0 token for the current user. */
823
+ oauth_token?: string;
824
+ /** Returns response with indentations and line breaks. */
825
+ prettyPrint?: boolean;
826
+ /** 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. */
827
+ quotaUser?: string;
828
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
829
+ upload_protocol?: string;
830
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
831
+ uploadType?: string;
832
+ },
833
+ body: GoogleCloudDiscoveryengineV1betaDocument): Request<GoogleCloudDiscoveryengineV1betaDocument>;
834
+ }
835
+ interface OperationsResource {
836
+ /** 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. */
837
+ get(request?: {
838
+ /** V1 error format. */
839
+ "$.xgafv"?: string;
840
+ /** OAuth access token. */
841
+ access_token?: string;
842
+ /** Data format for response. */
843
+ alt?: string;
844
+ /** JSONP */
845
+ callback?: string;
846
+ /** Selector specifying which fields to include in a partial response. */
847
+ fields?: string;
848
+ /** 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. */
849
+ key?: string;
850
+ /** The name of the operation resource. */
851
+ name: string;
852
+ /** OAuth 2.0 token for the current user. */
853
+ oauth_token?: string;
854
+ /** Returns response with indentations and line breaks. */
855
+ prettyPrint?: boolean;
856
+ /** 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. */
857
+ quotaUser?: string;
858
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
859
+ upload_protocol?: string;
860
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
861
+ uploadType?: string;
862
+ }): Request<GoogleLongrunningOperation>;
863
+ /**
864
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
865
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
866
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
867
+ * ensure the name binding is the parent resource, without the operations collection id.
868
+ */
869
+ list(request?: {
870
+ /** V1 error format. */
871
+ "$.xgafv"?: string;
872
+ /** OAuth access token. */
873
+ access_token?: string;
874
+ /** Data format for response. */
875
+ alt?: string;
876
+ /** JSONP */
877
+ callback?: string;
878
+ /** Selector specifying which fields to include in a partial response. */
879
+ fields?: string;
880
+ /** The standard list filter. */
881
+ filter?: string;
882
+ /** 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. */
883
+ key?: string;
884
+ /** The name of the operation's parent resource. */
885
+ name: string;
886
+ /** OAuth 2.0 token for the current user. */
887
+ oauth_token?: string;
888
+ /** The standard list page size. */
889
+ pageSize?: number;
890
+ /** The standard list page token. */
891
+ pageToken?: string;
892
+ /** Returns response with indentations and line breaks. */
893
+ prettyPrint?: boolean;
894
+ /** 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. */
895
+ quotaUser?: string;
896
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
897
+ upload_protocol?: string;
898
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
899
+ uploadType?: string;
900
+ }): Request<GoogleLongrunningListOperationsResponse>;
901
+ }
902
+ interface BranchesResource {
903
+ documents: DocumentsResource;
904
+ operations: OperationsResource;
905
+ }
906
+ interface OperationsResource {
907
+ /** 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. */
908
+ get(request?: {
909
+ /** V1 error format. */
910
+ "$.xgafv"?: string;
911
+ /** OAuth access token. */
912
+ access_token?: string;
913
+ /** Data format for response. */
914
+ alt?: string;
915
+ /** JSONP */
916
+ callback?: string;
917
+ /** Selector specifying which fields to include in a partial response. */
918
+ fields?: string;
919
+ /** 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. */
920
+ key?: string;
921
+ /** The name of the operation resource. */
922
+ name: string;
923
+ /** OAuth 2.0 token for the current user. */
924
+ oauth_token?: string;
925
+ /** Returns response with indentations and line breaks. */
926
+ prettyPrint?: boolean;
927
+ /** 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. */
928
+ quotaUser?: string;
929
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
930
+ upload_protocol?: string;
931
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
932
+ uploadType?: string;
933
+ }): Request<GoogleLongrunningOperation>;
934
+ /**
935
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
936
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
937
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
938
+ * ensure the name binding is the parent resource, without the operations collection id.
939
+ */
940
+ list(request?: {
941
+ /** V1 error format. */
942
+ "$.xgafv"?: string;
943
+ /** OAuth access token. */
944
+ access_token?: string;
945
+ /** Data format for response. */
946
+ alt?: string;
947
+ /** JSONP */
948
+ callback?: string;
949
+ /** Selector specifying which fields to include in a partial response. */
950
+ fields?: string;
951
+ /** The standard list filter. */
952
+ filter?: string;
953
+ /** 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. */
954
+ key?: string;
955
+ /** The name of the operation's parent resource. */
956
+ name: string;
957
+ /** OAuth 2.0 token for the current user. */
958
+ oauth_token?: string;
959
+ /** The standard list page size. */
960
+ pageSize?: number;
961
+ /** The standard list page token. */
962
+ pageToken?: string;
963
+ /** Returns response with indentations and line breaks. */
964
+ prettyPrint?: boolean;
965
+ /** 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. */
966
+ quotaUser?: string;
967
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
968
+ upload_protocol?: string;
969
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
970
+ uploadType?: string;
971
+ }): Request<GoogleLongrunningListOperationsResponse>;
972
+ }
973
+ interface ModelsResource {
974
+ operations: OperationsResource;
975
+ }
976
+ interface OperationsResource {
977
+ /** 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. */
978
+ get(request?: {
979
+ /** V1 error format. */
980
+ "$.xgafv"?: string;
981
+ /** OAuth access token. */
982
+ access_token?: string;
983
+ /** Data format for response. */
984
+ alt?: string;
985
+ /** JSONP */
986
+ callback?: string;
987
+ /** Selector specifying which fields to include in a partial response. */
988
+ fields?: string;
989
+ /** 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. */
990
+ key?: string;
991
+ /** The name of the operation resource. */
992
+ name: string;
993
+ /** OAuth 2.0 token for the current user. */
994
+ oauth_token?: string;
995
+ /** Returns response with indentations and line breaks. */
996
+ prettyPrint?: boolean;
997
+ /** 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. */
998
+ quotaUser?: string;
999
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1000
+ upload_protocol?: string;
1001
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1002
+ uploadType?: string;
1003
+ }): Request<GoogleLongrunningOperation>;
1004
+ /**
1005
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1006
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1007
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1008
+ * ensure the name binding is the parent resource, without the operations collection id.
1009
+ */
1010
+ list(request?: {
1011
+ /** V1 error format. */
1012
+ "$.xgafv"?: string;
1013
+ /** OAuth access token. */
1014
+ access_token?: string;
1015
+ /** Data format for response. */
1016
+ alt?: string;
1017
+ /** JSONP */
1018
+ callback?: string;
1019
+ /** Selector specifying which fields to include in a partial response. */
1020
+ fields?: string;
1021
+ /** The standard list filter. */
1022
+ filter?: string;
1023
+ /** 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. */
1024
+ key?: string;
1025
+ /** The name of the operation's parent resource. */
1026
+ name: string;
1027
+ /** OAuth 2.0 token for the current user. */
1028
+ oauth_token?: string;
1029
+ /** The standard list page size. */
1030
+ pageSize?: number;
1031
+ /** The standard list page token. */
1032
+ pageToken?: string;
1033
+ /** Returns response with indentations and line breaks. */
1034
+ prettyPrint?: boolean;
1035
+ /** 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. */
1036
+ quotaUser?: string;
1037
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1038
+ upload_protocol?: string;
1039
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1040
+ uploadType?: string;
1041
+ }): Request<GoogleLongrunningListOperationsResponse>;
1042
+ }
1043
+ interface ServingConfigsResource {
1044
+ /** Makes a recommendation, which requires a contextual user event. */
1045
+ recommend(request: {
1046
+ /** V1 error format. */
1047
+ "$.xgafv"?: string;
1048
+ /** OAuth access token. */
1049
+ access_token?: string;
1050
+ /** Data format for response. */
1051
+ alt?: string;
1052
+ /** JSONP */
1053
+ callback?: string;
1054
+ /** Selector specifying which fields to include in a partial response. */
1055
+ fields?: string;
1056
+ /** 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. */
1057
+ key?: string;
1058
+ /** OAuth 2.0 token for the current user. */
1059
+ oauth_token?: string;
1060
+ /** Returns response with indentations and line breaks. */
1061
+ prettyPrint?: boolean;
1062
+ /** 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. */
1063
+ quotaUser?: string;
1064
+ /**
1065
+ * Required. Full resource name of the format: projects/*‍/locations/global/dataStores/*‍/servingConfigs/* Before you can request recommendations from your model, you must create
1066
+ * at least one serving config for it.
1067
+ */
1068
+ servingConfig: string;
1069
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1070
+ upload_protocol?: string;
1071
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1072
+ uploadType?: string;
1073
+ /** Request body */
1074
+ resource: GoogleCloudDiscoveryengineV1betaRecommendRequest;
1075
+ }): Request<GoogleCloudDiscoveryengineV1betaRecommendResponse>;
1076
+ recommend(request: {
1077
+ /** V1 error format. */
1078
+ "$.xgafv"?: string;
1079
+ /** OAuth access token. */
1080
+ access_token?: string;
1081
+ /** Data format for response. */
1082
+ alt?: string;
1083
+ /** JSONP */
1084
+ callback?: string;
1085
+ /** Selector specifying which fields to include in a partial response. */
1086
+ fields?: string;
1087
+ /** 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. */
1088
+ key?: string;
1089
+ /** OAuth 2.0 token for the current user. */
1090
+ oauth_token?: string;
1091
+ /** Returns response with indentations and line breaks. */
1092
+ prettyPrint?: boolean;
1093
+ /** 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. */
1094
+ quotaUser?: string;
1095
+ /**
1096
+ * Required. Full resource name of the format: projects/*‍/locations/global/dataStores/*‍/servingConfigs/* Before you can request recommendations from your model, you must create
1097
+ * at least one serving config for it.
1098
+ */
1099
+ servingConfig: string;
1100
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1101
+ upload_protocol?: string;
1102
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1103
+ uploadType?: string;
1104
+ },
1105
+ body: GoogleCloudDiscoveryengineV1betaRecommendRequest): Request<GoogleCloudDiscoveryengineV1betaRecommendResponse>;
1106
+ }
1107
+ interface UserEventsResource {
1108
+ /**
1109
+ * Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Discovery
1110
+ * Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
1111
+ */
1112
+ collect(request?: {
1113
+ /** V1 error format. */
1114
+ "$.xgafv"?: string;
1115
+ /** OAuth access token. */
1116
+ access_token?: string;
1117
+ /** Data format for response. */
1118
+ alt?: string;
1119
+ /** JSONP */
1120
+ callback?: string;
1121
+ /** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
1122
+ ets?: string;
1123
+ /** Selector specifying which fields to include in a partial response. */
1124
+ fields?: string;
1125
+ /** 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. */
1126
+ key?: string;
1127
+ /** OAuth 2.0 token for the current user. */
1128
+ oauth_token?: string;
1129
+ /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}`. */
1130
+ parent: string;
1131
+ /** Returns response with indentations and line breaks. */
1132
+ prettyPrint?: boolean;
1133
+ /** 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. */
1134
+ quotaUser?: string;
1135
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1136
+ upload_protocol?: string;
1137
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1138
+ uploadType?: string;
1139
+ /**
1140
+ * 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
1141
+ * only send the domain for 3rd party requests.
1142
+ */
1143
+ uri?: string;
1144
+ /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
1145
+ userEvent?: string;
1146
+ }): Request<GoogleApiHttpBody>;
1147
+ /**
1148
+ * Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events.
1149
+ * Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.
1150
+ */
1151
+ import(request: {
1152
+ /** V1 error format. */
1153
+ "$.xgafv"?: string;
1154
+ /** OAuth access token. */
1155
+ access_token?: string;
1156
+ /** Data format for response. */
1157
+ alt?: string;
1158
+ /** JSONP */
1159
+ callback?: string;
1160
+ /** Selector specifying which fields to include in a partial response. */
1161
+ fields?: string;
1162
+ /** 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. */
1163
+ key?: string;
1164
+ /** OAuth 2.0 token for the current user. */
1165
+ oauth_token?: string;
1166
+ /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/dataStores/{data_store}` */
1167
+ parent: string;
1168
+ /** Returns response with indentations and line breaks. */
1169
+ prettyPrint?: boolean;
1170
+ /** 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;
1172
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1173
+ upload_protocol?: string;
1174
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1175
+ uploadType?: string;
1176
+ /** Request body */
1177
+ resource: GoogleCloudDiscoveryengineV1betaImportUserEventsRequest;
1178
+ }): Request<GoogleLongrunningOperation>;
1179
+ import(request: {
1180
+ /** V1 error format. */
1181
+ "$.xgafv"?: string;
1182
+ /** OAuth access token. */
1183
+ access_token?: string;
1184
+ /** Data format for response. */
1185
+ alt?: string;
1186
+ /** JSONP */
1187
+ callback?: string;
1188
+ /** Selector specifying which fields to include in a partial response. */
1189
+ fields?: string;
1190
+ /** 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. */
1191
+ key?: string;
1192
+ /** OAuth 2.0 token for the current user. */
1193
+ oauth_token?: string;
1194
+ /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/dataStores/{data_store}` */
1195
+ parent: string;
1196
+ /** Returns response with indentations and line breaks. */
1197
+ prettyPrint?: boolean;
1198
+ /** 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. */
1199
+ quotaUser?: string;
1200
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1201
+ upload_protocol?: string;
1202
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1203
+ uploadType?: string;
1204
+ },
1205
+ body: GoogleCloudDiscoveryengineV1betaImportUserEventsRequest): Request<GoogleLongrunningOperation>;
1206
+ /** Writes a single user event. */
1207
+ write(request: {
1208
+ /** V1 error format. */
1209
+ "$.xgafv"?: string;
1210
+ /** OAuth access token. */
1211
+ access_token?: string;
1212
+ /** Data format for response. */
1213
+ alt?: string;
1214
+ /** JSONP */
1215
+ callback?: string;
1216
+ /** Selector specifying which fields to include in a partial response. */
1217
+ fields?: string;
1218
+ /** 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. */
1219
+ key?: string;
1220
+ /** OAuth 2.0 token for the current user. */
1221
+ oauth_token?: string;
1222
+ /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}`. */
1223
+ parent: string;
1224
+ /** Returns response with indentations and line breaks. */
1225
+ prettyPrint?: boolean;
1226
+ /** 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. */
1227
+ quotaUser?: string;
1228
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1229
+ upload_protocol?: string;
1230
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1231
+ uploadType?: string;
1232
+ /** Request body */
1233
+ resource: GoogleCloudDiscoveryengineV1betaUserEvent;
1234
+ }): Request<GoogleCloudDiscoveryengineV1betaUserEvent>;
1235
+ write(request: {
1236
+ /** V1 error format. */
1237
+ "$.xgafv"?: string;
1238
+ /** OAuth access token. */
1239
+ access_token?: string;
1240
+ /** Data format for response. */
1241
+ alt?: string;
1242
+ /** JSONP */
1243
+ callback?: string;
1244
+ /** Selector specifying which fields to include in a partial response. */
1245
+ fields?: string;
1246
+ /** 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. */
1247
+ key?: string;
1248
+ /** OAuth 2.0 token for the current user. */
1249
+ oauth_token?: string;
1250
+ /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/dataStores/{data_store}`. */
1251
+ parent: string;
1252
+ /** Returns response with indentations and line breaks. */
1253
+ prettyPrint?: boolean;
1254
+ /** 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. */
1255
+ quotaUser?: string;
1256
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1257
+ upload_protocol?: string;
1258
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1259
+ uploadType?: string;
1260
+ },
1261
+ body: GoogleCloudDiscoveryengineV1betaUserEvent): Request<GoogleCloudDiscoveryengineV1betaUserEvent>;
1262
+ }
1263
+ interface DataStoresResource {
1264
+ branches: BranchesResource;
1265
+ models: ModelsResource;
1266
+ operations: OperationsResource;
1267
+ servingConfigs: ServingConfigsResource;
1268
+ userEvents: UserEventsResource;
1269
+ }
1270
+ interface OperationsResource {
1271
+ /** 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. */
1272
+ get(request?: {
1273
+ /** V1 error format. */
1274
+ "$.xgafv"?: string;
1275
+ /** OAuth access token. */
1276
+ access_token?: string;
1277
+ /** Data format for response. */
1278
+ alt?: string;
1279
+ /** JSONP */
1280
+ callback?: string;
1281
+ /** Selector specifying which fields to include in a partial response. */
1282
+ fields?: string;
1283
+ /** 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. */
1284
+ key?: string;
1285
+ /** The name of the operation resource. */
1286
+ name: string;
1287
+ /** OAuth 2.0 token for the current user. */
1288
+ oauth_token?: string;
1289
+ /** Returns response with indentations and line breaks. */
1290
+ prettyPrint?: boolean;
1291
+ /** 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. */
1292
+ quotaUser?: string;
1293
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1294
+ upload_protocol?: string;
1295
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1296
+ uploadType?: string;
1297
+ }): Request<GoogleLongrunningOperation>;
1298
+ /**
1299
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1300
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1301
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1302
+ * ensure the name binding is the parent resource, without the operations collection id.
1303
+ */
1304
+ list(request?: {
1305
+ /** V1 error format. */
1306
+ "$.xgafv"?: string;
1307
+ /** OAuth access token. */
1308
+ access_token?: string;
1309
+ /** Data format for response. */
1310
+ alt?: string;
1311
+ /** JSONP */
1312
+ callback?: string;
1313
+ /** Selector specifying which fields to include in a partial response. */
1314
+ fields?: string;
1315
+ /** The standard list filter. */
1316
+ filter?: string;
1317
+ /** 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. */
1318
+ key?: string;
1319
+ /** The name of the operation's parent resource. */
1320
+ name: string;
1321
+ /** OAuth 2.0 token for the current user. */
1322
+ oauth_token?: string;
1323
+ /** The standard list page size. */
1324
+ pageSize?: number;
1325
+ /** The standard list page token. */
1326
+ pageToken?: string;
1327
+ /** Returns response with indentations and line breaks. */
1328
+ prettyPrint?: boolean;
1329
+ /** 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. */
1330
+ quotaUser?: string;
1331
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1332
+ upload_protocol?: string;
1333
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1334
+ uploadType?: string;
1335
+ }): Request<GoogleLongrunningListOperationsResponse>;
1336
+ }
1337
+ interface LocationsResource {
1338
+ dataStores: DataStoresResource;
1339
+ operations: OperationsResource;
1340
+ }
1341
+ interface OperationsResource {
1342
+ /** 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. */
1343
+ get(request?: {
1344
+ /** V1 error format. */
1345
+ "$.xgafv"?: string;
1346
+ /** OAuth access token. */
1347
+ access_token?: string;
1348
+ /** Data format for response. */
1349
+ alt?: string;
1350
+ /** JSONP */
1351
+ callback?: string;
1352
+ /** Selector specifying which fields to include in a partial response. */
1353
+ fields?: string;
1354
+ /** 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. */
1355
+ key?: string;
1356
+ /** The name of the operation resource. */
1357
+ name: string;
1358
+ /** OAuth 2.0 token for the current user. */
1359
+ oauth_token?: string;
1360
+ /** Returns response with indentations and line breaks. */
1361
+ prettyPrint?: boolean;
1362
+ /** 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. */
1363
+ quotaUser?: string;
1364
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1365
+ upload_protocol?: string;
1366
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1367
+ uploadType?: string;
1368
+ }): Request<GoogleLongrunningOperation>;
1369
+ /**
1370
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1371
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1372
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1373
+ * ensure the name binding is the parent resource, without the operations collection id.
1374
+ */
1375
+ list(request?: {
1376
+ /** V1 error format. */
1377
+ "$.xgafv"?: string;
1378
+ /** OAuth access token. */
1379
+ access_token?: string;
1380
+ /** Data format for response. */
1381
+ alt?: string;
1382
+ /** JSONP */
1383
+ callback?: string;
1384
+ /** Selector specifying which fields to include in a partial response. */
1385
+ fields?: string;
1386
+ /** The standard list filter. */
1387
+ filter?: string;
1388
+ /** 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. */
1389
+ key?: string;
1390
+ /** The name of the operation's parent resource. */
1391
+ name: string;
1392
+ /** OAuth 2.0 token for the current user. */
1393
+ oauth_token?: string;
1394
+ /** The standard list page size. */
1395
+ pageSize?: number;
1396
+ /** The standard list page token. */
1397
+ pageToken?: string;
1398
+ /** Returns response with indentations and line breaks. */
1399
+ prettyPrint?: boolean;
1400
+ /** 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;
1402
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1403
+ upload_protocol?: string;
1404
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1405
+ uploadType?: string;
1406
+ }): Request<GoogleLongrunningListOperationsResponse>;
1407
+ }
1408
+ interface ProjectsResource {
1409
+ locations: LocationsResource;
1410
+ operations: OperationsResource;
1411
+ }
1412
+
1413
+ const projects: ProjectsResource;
1414
+ }
1415
+ }