@maxim_mazurok/gapi.client.bigquery-v2 0.0.20240105 → 0.0.20240203

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 +1466 -754
  2. package/package.json +1 -1
  3. package/readme.md +18 -10
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://bigquery.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20240105
12
+ // Revision: 20240203
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -157,70 +157,73 @@ declare namespace gapi.client {
157
157
  logType?: string;
158
158
  }
159
159
  interface AvroOptions {
160
- /** [Optional] If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). */
160
+ /** Optional. If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). */
161
161
  useAvroLogicalTypes?: boolean;
162
162
  }
163
163
  interface BiEngineReason {
164
- /** [Output-only] High-level BI Engine reason for partial or disabled acceleration. */
164
+ /** Output only. High-level BI Engine reason for partial or disabled acceleration */
165
165
  code?: string;
166
- /** [Output-only] Free form human-readable reason for partial or disabled acceleration. */
166
+ /** Output only. Free form human-readable reason for partial or disabled acceleration. */
167
167
  message?: string;
168
168
  }
169
169
  interface BiEngineStatistics {
170
- /** [Output-only] Specifies which mode of BI Engine acceleration was performed (if any). */
170
+ /** Output only. Specifies which mode of BI Engine acceleration was performed (if any). */
171
171
  accelerationMode?: string;
172
- /** [Output-only] Specifies which mode of BI Engine acceleration was performed (if any). */
172
+ /** Output only. Specifies which mode of BI Engine acceleration was performed (if any). */
173
173
  biEngineMode?: string;
174
174
  /** In case of DISABLED or PARTIAL bi_engine_mode, these contain the explanatory reasons as to why BI Engine could not accelerate. In case the full query was accelerated, this field is not populated. */
175
175
  biEngineReasons?: BiEngineReason[];
176
176
  }
177
177
  interface BigLakeConfiguration {
178
- /** [Required] Required and immutable. Credential reference for accessing external storage system. Normalized as project_id.location_id.connection_id. */
178
+ /** Required. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection_id can have the form "<project\_id>.<location\_id>.<connection\_id>" or "projects/<project\_id>/locations/<location\_id>/connections/<connection\_id>". */
179
179
  connectionId?: string;
180
- /** [Required] Required and immutable. Open source file format that the table data is stored in. Currently only PARQUET is supported. */
180
+ /** Required. The file format the table data is stored in. */
181
181
  fileFormat?: string;
182
- /** [Required] Required and immutable. Fully qualified location prefix of the external folder where data is stored. Normalized to standard format: "gs:////". Starts with "gs://" rather than "/bigstore/". Ends with "/". Does not contain "*". See also BigLakeStorageMetadata on how it is used. */
182
+ /** Required. The fully qualified location prefix of the external folder where table data is stored. The '*' wildcard character is not allowed. The URI should be in the format "gs://bucket/path_to_table/" */
183
183
  storageUri?: string;
184
- /** [Required] Required and immutable. Open source file format that the table data is stored in. Currently only PARQUET is supported. */
184
+ /** Required. The table format the metadata only snapshots are stored in. */
185
185
  tableFormat?: string;
186
186
  }
187
187
  interface BigQueryModelTraining {
188
- /** [Output-only, Beta] Index of current ML training iteration. Updated during create model query job to show job progress. */
188
+ /** Deprecated. */
189
189
  currentIteration?: number;
190
- /** [Output-only, Beta] Expected number of iterations for the create model query job specified as num_iterations in the input query. The actual total number of iterations may be less than this number due to early stop. */
190
+ /** Deprecated. */
191
191
  expectedTotalIterations?: string;
192
192
  }
193
193
  interface BigtableColumn {
194
- /** [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. 'encoding' can also be set at the column family level. However, the setting at this level takes precedence if 'encoding' is set at both levels. */
194
+ /** Optional. The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. 'encoding' can also be set at the column family level. However, the setting at this level takes precedence if 'encoding' is set at both levels. */
195
195
  encoding?: string;
196
- /** [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries. */
196
+ /** Optional. If the qualifier is not a valid BigQuery field identifier i.e. does not match a-zA-Z*, a valid identifier must be provided as the column field name and is used as field name in queries. */
197
197
  fieldName?: string;
198
- /** [Optional] If this is set, only the latest version of value in this column are exposed. 'onlyReadLatest' can also be set at the column family level. However, the setting at this level takes precedence if 'onlyReadLatest' is set at both levels. */
198
+ /** Optional. If this is set, only the latest version of value in this column are exposed. 'onlyReadLatest' can also be set at the column family level. However, the setting at this level takes precedence if 'onlyReadLatest' is set at both levels. */
199
199
  onlyReadLatest?: boolean;
200
- /** [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name. */
200
+ /** [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match a-zA-Z*, a valid identifier must be provided as field_name. */
201
201
  qualifierEncoded?: string;
202
+ /** Qualifier string. */
202
203
  qualifierString?: string;
203
- /** [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels. */
204
+ /** Optional. The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON Default type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels. */
204
205
  type?: string;
205
206
  }
206
207
  interface BigtableColumnFamily {
207
- /** [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field. */
208
+ /** Optional. Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field. */
208
209
  columns?: BigtableColumn[];
209
- /** [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in 'columns' and specifying an encoding for it. */
210
+ /** Optional. The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in 'columns' and specifying an encoding for it. */
210
211
  encoding?: string;
211
212
  /** Identifier of the column family. */
212
213
  familyId?: string;
213
- /** [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in 'columns' and specifying a different setting for that column. */
214
+ /** Optional. If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in 'columns' and specifying a different setting for that column. */
214
215
  onlyReadLatest?: boolean;
215
- /** [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it. */
216
+ /** Optional. The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON Default type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it. */
216
217
  type?: string;
217
218
  }
218
219
  interface BigtableOptions {
219
- /** [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the 'type' field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable. */
220
+ /** Optional. List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the 'type' field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable. */
220
221
  columnFamilies?: BigtableColumnFamily[];
221
- /** [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false. */
222
+ /** Optional. If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false. */
222
223
  ignoreUnspecifiedColumnFamilies?: boolean;
223
- /** [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false. */
224
+ /** Optional. If field is true, then each column family will be read as a single JSON column. Otherwise they are read as a repeated cell structure containing timestamp/value tuples. The default value is false. */
225
+ outputColumnFamiliesAsJson?: boolean;
226
+ /** Optional. If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false. */
224
227
  readRowkeyAsString?: boolean;
225
228
  }
226
229
  interface BinaryClassificationMetrics {
@@ -258,29 +261,29 @@ declare namespace gapi.client {
258
261
  condition?: Expr;
259
262
  /** Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. */
260
263
  members?: string[];
261
- /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
264
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). */
262
265
  role?: string;
263
266
  }
264
267
  interface BqmlIterationResult {
265
- /** [Output-only, Beta] Time taken to run the training iteration in milliseconds. */
268
+ /** Deprecated. */
266
269
  durationMs?: string;
267
- /** [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows. */
270
+ /** Deprecated. */
268
271
  evalLoss?: number;
269
- /** [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run. */
272
+ /** Deprecated. */
270
273
  index?: number;
271
- /** [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant. */
274
+ /** Deprecated. */
272
275
  learnRate?: number;
273
- /** [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type. */
276
+ /** Deprecated. */
274
277
  trainingLoss?: number;
275
278
  }
276
279
  interface BqmlTrainingRun {
277
- /** [Output-only, Beta] List of each iteration results. */
280
+ /** Deprecated. */
278
281
  iterationResults?: BqmlIterationResult[];
279
- /** [Output-only, Beta] Training run start time in milliseconds since the epoch. */
282
+ /** Deprecated. */
280
283
  startTime?: string;
281
- /** [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user. */
284
+ /** Deprecated. */
282
285
  state?: string;
283
- /** [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run. */
286
+ /** Deprecated. */
284
287
  trainingOptions?: {
285
288
  earlyStop?: boolean;
286
289
  l1Reg?: number;
@@ -304,9 +307,9 @@ declare namespace gapi.client {
304
307
  count?: string;
305
308
  }
306
309
  interface CloneDefinition {
307
- /** [Required] Reference describing the ID of the table that was cloned. */
310
+ /** Required. Reference describing the ID of the table that was cloned. */
308
311
  baseTableReference?: TableReference;
309
- /** [Required] The time at which the base table was cloned. This value is reported in the JSON response using RFC3339 format. */
312
+ /** Required. The time at which the base table was cloned. This value is reported in the JSON response using RFC3339 format. */
310
313
  cloneTime?: string;
311
314
  }
312
315
  interface Cluster {
@@ -326,7 +329,7 @@ declare namespace gapi.client {
326
329
  clusterSize?: string;
327
330
  }
328
331
  interface Clustering {
329
- /** [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data. */
332
+ /** One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. The ordering of the clustering fields should be prioritized from most to least important for filtering purposes. Additional information on limitations can be found here: https://cloud.google.com/bigquery/docs/creating-clustered-tables#limitations */
330
333
  fields?: string[];
331
334
  }
332
335
  interface ClusteringMetrics {
@@ -344,35 +347,39 @@ declare namespace gapi.client {
344
347
  rows?: Row[];
345
348
  }
346
349
  interface ConnectionProperty {
347
- /** [Required] Name of the connection property to set. */
350
+ /** The key of the property to set. */
348
351
  key?: string;
349
- /** [Required] Value of the connection property. */
352
+ /** The value of the property to set. */
350
353
  value?: string;
351
354
  }
352
355
  interface CsvOptions {
353
- /** [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. */
356
+ /** Optional. Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. */
354
357
  allowJaggedRows?: boolean;
355
- /** [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. */
358
+ /** Optional. Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. */
356
359
  allowQuotedNewlines?: boolean;
357
- /** [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties. */
360
+ /** Optional. The character encoding of the data. The supported values are UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties. */
358
361
  encoding?: string;
359
- /** [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (','). */
362
+ /** Optional. The separator character for fields in a CSV file. The separator is interpreted as a single byte. For files encoded in ISO-8859-1, any single character can be used as a separator. For files encoded in UTF-8, characters represented in decimal range 1-127 (U+0001-U+007F) can be used without any modification. UTF-8 characters encoded with multiple bytes (i.e. U+0080 and above) will have only the first byte used for separating fields. The remaining bytes will be treated as a part of the field. BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab separator. The default value is comma (",", U+002C). */
360
363
  fieldDelimiter?: string;
361
- /** [Optional] An custom string that will represent a NULL value in CSV import data. */
364
+ /** [Optional] A custom string that will represent a NULL value in CSV import data. */
362
365
  nullMarker?: string;
363
- /** [Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\x00' to '\x1F') when loading from CSV. Only applicable to CSV, ignored for other formats. */
366
+ /** Optional. Indicates if the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\x00' to '\x1F') are preserved. */
364
367
  preserveAsciiControlCharacters?: boolean;
365
- /** [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. */
368
+ /** Optional. The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ("). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. To include the specific quote character within a quoted value, precede it with an additional matching quote character. For example, if you want to escape the default character ' " ', use ' "" '. */
366
369
  quote?: string;
367
- /** [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. */
370
+ /** Optional. The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. */
368
371
  skipLeadingRows?: string;
369
372
  }
373
+ interface DataFormatOptions {
374
+ /** Optional. Output timestamp as usec int64. Default is false. */
375
+ useInt64Timestamp?: boolean;
376
+ }
370
377
  interface DataMaskingStatistics {
371
- /** [Output-only] [Preview] Whether any accessed data was protected by data masking. The actual evaluation is done by accessStats.masked_field_count > 0. Since this is only used for the discovery_doc generation purpose, as long as the type (boolean) matches, client library can leverage this. The actual evaluation of the variable is done else-where. */
378
+ /** Whether any accessed data was protected by the data masking. */
372
379
  dataMaskingApplied?: boolean;
373
380
  }
374
381
  interface Dataset {
375
- /** [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; */
382
+ /** Optional. An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; */
376
383
  access?: Array<{
377
384
  /** [Pick one] A grant authorizing all resources of a particular type in a particular dataset access to this dataset. Only views are supported for now. The role field is not required when this field is set. If that dataset is deleted and re-created, its access needs to be granted again via an update operation. */
378
385
  dataset?: DatasetAccessEntry;
@@ -382,7 +389,7 @@ declare namespace gapi.client {
382
389
  groupByEmail?: string;
383
390
  /** [Pick one] Some other type of member that appears in the IAM Policy but isn't a user, group, domain, or special group. */
384
391
  iamMember?: string;
385
- /** [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to "roles/bigquery.dataOwner", it will be returned back as "OWNER". */
392
+ /** An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER <=> roles/bigquery.dataOwner WRITER <=> roles/bigquery.dataEditor READER <=> roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to "roles/bigquery.dataOwner", it will be returned back as "OWNER". */
386
393
  role?: string;
387
394
  /** [Pick one] A routine from a different dataset to grant access to. Queries executed against that routine will have read access to views/tables/routines in this dataset. Only UDF is supported for now. The role field is not required when this field is set. If that routine is updated by any user, access to the routine needs to be granted again via an update operation. */
388
395
  routine?: RoutineReference;
@@ -390,61 +397,69 @@ declare namespace gapi.client {
390
397
  specialGroup?: string;
391
398
  /** [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member "user:EMAIL" or "serviceAccount:EMAIL". */
392
399
  userByEmail?: string;
393
- /** [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation. */
400
+ /** [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to views/tables/routines in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation. */
394
401
  view?: TableReference;
395
402
  }>;
396
- /** [Output-only] The time when this dataset was created, in milliseconds since the epoch. */
403
+ /** Output only. The time when this dataset was created, in milliseconds since the epoch. */
397
404
  creationTime?: string;
398
- /** [Required] A reference that identifies the dataset. */
405
+ /** Required. A reference that identifies the dataset. */
399
406
  datasetReference?: DatasetReference;
400
- /** [Output-only] The default collation of the dataset. */
407
+ /** Optional. Defines the default collation specification of future tables created in the dataset. If a table is created in this dataset without table-level default collation, then the table inherits the dataset default collation, which is applied to the string fields that do not have explicit collation specified. A change to this field affects only tables created afterwards, and does not alter the existing tables. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. */
401
408
  defaultCollation?: string;
409
+ /** The default encryption key for all tables in the dataset. Once this property is set, all newly-created partitioned tables in the dataset will have encryption key set to this value, unless table creation request (or query) overrides the key. */
402
410
  defaultEncryptionConfiguration?: EncryptionConfiguration;
403
- /** [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property. */
411
+ /** This default partition expiration, expressed in milliseconds. When new time-partitioned tables are created in a dataset where this property is set, the table will inherit this value, propagated as the `TimePartitioning.expirationMs` property on the new table. If you set `TimePartitioning.expirationMs` explicitly when creating a table, the `defaultPartitionExpirationMs` of the containing dataset is ignored. When creating a partitioned table, if `defaultPartitionExpirationMs` is set, the `defaultTableExpirationMs` value is ignored and the table will not be inherit a table expiration deadline. */
404
412
  defaultPartitionExpirationMs?: string;
405
- /** [Output-only] The default rounding mode of the dataset. */
413
+ /** Optional. Defines the default rounding mode specification of new tables created within this dataset. During table creation, if this field is specified, the table within this dataset will inherit the default rounding mode of the dataset. Setting the default rounding mode on a table overrides this option. Existing tables in the dataset are unaffected. If columns are defined during that table creation, they will immediately inherit the table's default rounding mode, unless otherwise specified. */
406
414
  defaultRoundingMode?: string;
407
- /** [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property. */
415
+ /** Optional. The default lifetime of all tables in the dataset, in milliseconds. The minimum lifetime value is 3600000 milliseconds (one hour). To clear an existing default expiration with a PATCH request, set to 0. Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property. */
408
416
  defaultTableExpirationMs?: string;
409
- /** [Optional] A user-friendly description of the dataset. */
417
+ /** Optional. A user-friendly description of the dataset. */
410
418
  description?: string;
411
- /** [Output-only] A hash of the resource. */
419
+ /** Output only. A hash of the resource. */
412
420
  etag?: string;
413
- /** [Optional] Information about the external metadata storage where the dataset is defined. Filled out when the dataset type is EXTERNAL. */
421
+ /** Optional. Information about the external metadata storage where the dataset is defined. Filled out when the dataset type is EXTERNAL. */
414
422
  externalDatasetReference?: ExternalDatasetReference;
415
- /** [Optional] A descriptive name for the dataset. */
423
+ /** Optional. A descriptive name for the dataset. */
416
424
  friendlyName?: string;
417
- /** [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field. */
425
+ /** Output only. The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field. */
418
426
  id?: string;
419
- /** [Optional] Indicates if table names are case insensitive in the dataset. */
427
+ /** Optional. TRUE if the dataset and its table names are case-insensitive, otherwise FALSE. By default, this is FALSE, which means the dataset and its table names are case-sensitive. This field does not affect routine references. */
420
428
  isCaseInsensitive?: boolean;
421
- /** [Output-only] The resource type. */
429
+ /** Output only. The resource type. */
422
430
  kind?: string;
423
431
  /** The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information. */
424
432
  labels?: {[P in string]: string};
425
- /** [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch. */
433
+ /** Output only. The date when this dataset was last modified, in milliseconds since the epoch. */
426
434
  lastModifiedTime?: string;
427
- /** The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations. */
435
+ /** Optional. The source dataset reference when the dataset is of type LINKED. For all other dataset types it is not set. This field cannot be updated once it is set. Any attempt to update this field using Update and Patch API Operations will be ignored. */
436
+ linkedDatasetSource?: LinkedDatasetSource;
437
+ /** The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations. */
428
438
  location?: string;
429
- /** [Optional] Number of hours for the max time travel for all tables in the dataset. */
439
+ /** Optional. Defines the time travel window in hours. The value can be from 48 to 168 hours (2 to 7 days). The default value is 168 hours if this is not set. */
430
440
  maxTimeTravelHours?: string;
431
- /** [Output-only] Reserved for future use. */
441
+ /** Output only. Reserved for future use. */
442
+ satisfiesPzi?: boolean;
443
+ /** Output only. Reserved for future use. */
432
444
  satisfiesPzs?: boolean;
433
- /** [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource. */
445
+ /** Output only. A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource. */
434
446
  selfLink?: string;
435
- /** [Optional] Storage billing model to be used for all tables in the dataset. Can be set to PHYSICAL. Default is LOGICAL. */
447
+ /** Optional. Updates storage_billing_model for the dataset. */
436
448
  storageBillingModel?: string;
437
- /** [Optional]The tags associated with this dataset. Tag keys are globally unique. */
449
+ /** Output only. Tags for the Dataset. */
438
450
  tags?: Array<{
439
- /** [Required] The namespaced friendly name of the tag key, e.g. "12345/environment" where 12345 is org id. */
451
+ /** Required. The namespaced friendly name of the tag key, e.g. "12345/environment" where 12345 is org id. */
440
452
  tagKey?: string;
441
- /** [Required] Friendly short name of the tag value, e.g. "production". */
453
+ /** Required. The friendly short name of the tag value, e.g. "production". */
442
454
  tagValue?: string;
443
455
  }>;
456
+ /** Output only. Same as `type` in `ListFormatDataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog. -- *BIGLAKE_METASTORE - dataset that references a database created in BigLakeMetastore service. -- */
457
+ type?: string;
444
458
  }
445
459
  interface DatasetAccessEntry {
446
- /** [Required] The dataset this entry applies to. */
460
+ /** The dataset this entry applies to */
447
461
  dataset?: DatasetReference;
462
+ /** Which resources in the dataset this entry applies to. Currently, only views are supported, but additional target types may be added in the future. */
448
463
  targetTypes?: string[];
449
464
  }
450
465
  interface DatasetList {
@@ -452,28 +467,30 @@ declare namespace gapi.client {
452
467
  datasets?: Array<{
453
468
  /** The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID. */
454
469
  datasetReference?: DatasetReference;
455
- /** A descriptive name for the dataset, if one exists. */
470
+ /** An alternate name for the dataset. The friendly name is purely decorative in nature. */
456
471
  friendlyName?: string;
457
472
  /** The fully-qualified, unique, opaque ID of the dataset. */
458
473
  id?: string;
459
- /** The resource type. This property always returns the value "bigquery#dataset". */
474
+ /** The resource type. This property always returns the value "bigquery#dataset" */
460
475
  kind?: string;
461
476
  /** The labels associated with this dataset. You can use these to organize and group your datasets. */
462
477
  labels?: {[P in string]: string};
463
- /** The geographic location where the data resides. */
478
+ /** The geographic location where the dataset resides. */
464
479
  location?: string;
465
480
  }>;
466
- /** A hash value of the results page. You can use this property to determine if the page has changed since the last request. */
481
+ /** Output only. A hash value of the results page. You can use this property to determine if the page has changed since the last request. */
467
482
  etag?: string;
468
- /** The list type. This property always returns the value "bigquery#datasetList". */
483
+ /** Output only. The resource type. This property always returns the value "bigquery#datasetList" */
469
484
  kind?: string;
470
485
  /** A token that can be used to request the next results page. This property is omitted on the final results page. */
471
486
  nextPageToken?: string;
487
+ /** A list of skipped locations that were unreachable. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5" */
488
+ unreachable?: string[];
472
489
  }
473
490
  interface DatasetReference {
474
- /** [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. */
491
+ /** Required. A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. */
475
492
  datasetId?: string;
476
- /** [Optional] The ID of the project containing this dataset. */
493
+ /** Optional. The ID of the project containing this dataset. */
477
494
  projectId?: string;
478
495
  }
479
496
  interface DataSplitResult {
@@ -485,13 +502,13 @@ declare namespace gapi.client {
485
502
  trainingTable?: TableReference;
486
503
  }
487
504
  interface DestinationTableProperties {
488
- /** [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail. */
505
+ /** Optional. The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail. */
489
506
  description?: string;
490
- /** [Internal] This field is for Google internal use only. */
507
+ /** Internal use only. */
491
508
  expirationTime?: string;
492
- /** [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail. */
509
+ /** Optional. Friendly name for the destination table. If the table already exists, it should be same as the existing friendly name. */
493
510
  friendlyName?: string;
494
- /** [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail. */
511
+ /** Optional. The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail. */
495
512
  labels?: {[P in string]: string};
496
513
  }
497
514
  interface DimensionalityReductionMetrics {
@@ -499,11 +516,11 @@ declare namespace gapi.client {
499
516
  totalExplainedVarianceRatio?: number;
500
517
  }
501
518
  interface DmlStatistics {
502
- /** Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements. */
519
+ /** Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements. */
503
520
  deletedRowCount?: string;
504
- /** Number of inserted Rows. Populated by DML INSERT and MERGE statements. */
521
+ /** Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements */
505
522
  insertedRowCount?: string;
506
- /** Number of updated Rows. Populated by DML UPDATE and MERGE statements. */
523
+ /** Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements. */
507
524
  updatedRowCount?: string;
508
525
  }
509
526
  interface DoubleCandidates {
@@ -561,6 +578,8 @@ declare namespace gapi.client {
561
578
  interface ExplainQueryStage {
562
579
  /** Number of parallel input segments completed. */
563
580
  completedParallelInputs?: string;
581
+ /** Output only. Compute mode for this stage. */
582
+ computeMode?: string;
564
583
  /** Milliseconds the average shard spent on CPU-bound tasks. */
565
584
  computeMsAvg?: string;
566
585
  /** Milliseconds the slowest shard spent on CPU-bound tasks. */
@@ -569,15 +588,15 @@ declare namespace gapi.client {
569
588
  computeRatioAvg?: number;
570
589
  /** Relative amount of time the slowest shard spent on CPU-bound tasks. */
571
590
  computeRatioMax?: number;
572
- /** Stage end time represented as milliseconds since epoch. */
591
+ /** Stage end time represented as milliseconds since the epoch. */
573
592
  endMs?: string;
574
- /** Unique ID for stage within plan. */
593
+ /** Unique ID for the stage within the plan. */
575
594
  id?: string;
576
595
  /** IDs for stages that are inputs to this stage. */
577
596
  inputStages?: string[];
578
- /** Human-readable name for stage. */
597
+ /** Human-readable name for the stage. */
579
598
  name?: string;
580
- /** Number of parallel input segments to be processed. */
599
+ /** Number of parallel input segments to be processed */
581
600
  parallelInputs?: string;
582
601
  /** Milliseconds the average shard spent reading input. */
583
602
  readMsAvg?: string;
@@ -597,9 +616,9 @@ declare namespace gapi.client {
597
616
  shuffleOutputBytesSpilled?: string;
598
617
  /** Slot-milliseconds used by the stage. */
599
618
  slotMs?: string;
600
- /** Stage start time represented as milliseconds since epoch. */
619
+ /** Stage start time represented as milliseconds since the epoch. */
601
620
  startMs?: string;
602
- /** Current status for the stage. */
621
+ /** Current status for this stage. */
603
622
  status?: string;
604
623
  /** List of operations within the stage in dependency order (approximately chronological). */
605
624
  steps?: ExplainQueryStep[];
@@ -623,7 +642,7 @@ declare namespace gapi.client {
623
642
  interface ExplainQueryStep {
624
643
  /** Machine-readable operation type. */
625
644
  kind?: string;
626
- /** Human-readable stage descriptions. */
645
+ /** Human-readable description of the step(s). */
627
646
  substeps?: string[];
628
647
  }
629
648
  interface Explanation {
@@ -632,6 +651,12 @@ declare namespace gapi.client {
632
651
  /** The full feature name. For non-numerical features, will be formatted like `.`. Overall size of feature name will always be truncated to first 120 characters. */
633
652
  featureName?: string;
634
653
  }
654
+ interface ExportDataStatistics {
655
+ /** Number of destination files generated in case of EXPORT DATA statement only. */
656
+ fileCount?: string;
657
+ /** [Alpha] Number of destination rows generated in case of EXPORT DATA statement only. */
658
+ rowCount?: string;
659
+ }
635
660
  interface Expr {
636
661
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
637
662
  description?: string;
@@ -645,51 +670,65 @@ declare namespace gapi.client {
645
670
  interface ExternalDataConfiguration {
646
671
  /** Try to detect schema and format options automatically. Any option specified explicitly will be honored. */
647
672
  autodetect?: boolean;
648
- /** Additional properties to set if sourceFormat is set to Avro. */
673
+ /** Optional. Additional properties to set if sourceFormat is set to AVRO. */
649
674
  avroOptions?: AvroOptions;
650
- /** [Optional] Additional options if sourceFormat is set to BIGTABLE. */
675
+ /** Optional. Additional options if sourceFormat is set to BIGTABLE. */
651
676
  bigtableOptions?: BigtableOptions;
652
- /** [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats. */
677
+ /** Optional. The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats. An empty string is an invalid value. */
653
678
  compression?: string;
654
- /** [Optional, Trusted Tester] Connection for external data source. */
679
+ /** Optional. The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connection_id can have the form "<project\_id>.<location\_id>.<connection\_id>" or "projects/<project\_id>/locations/<location\_id>/connections/<connection\_id>". */
655
680
  connectionId?: string;
656
- /** Additional properties to set if sourceFormat is set to CSV. */
681
+ /** Optional. Additional properties to set if sourceFormat is set to CSV. */
657
682
  csvOptions?: CsvOptions;
658
- /** [Optional] Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: (38,9) -> NUMERIC; (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); (76,38) -> BIGNUMERIC; (77,38) -> BIGNUMERIC (error if value exeeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats. */
683
+ /** Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exeeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats. */
659
684
  decimalTargetTypes?: string[];
660
- /** [Optional] Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include specifying manifest files. Only applicable to object storage systems. */
685
+ /** Optional. Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include specifying manifest files. Only applicable to object storage systems. */
661
686
  fileSetSpecType?: string;
662
- /** [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS. */
687
+ /** Optional. Additional options if sourceFormat is set to GOOGLE_SHEETS. */
663
688
  googleSheetsOptions?: GoogleSheetsOptions;
664
- /** [Optional] Options to configure hive partitioning support. */
689
+ /** Optional. When set, configures hive partitioning support. Not all storage formats support hive partitioning -- requesting hive partitioning on an unsupported format will lead to an error, as will providing an invalid specification. */
665
690
  hivePartitioningOptions?: HivePartitioningOptions;
666
- /** [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored. */
691
+ /** Optional. Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored. ORC: This setting is ignored. Parquet: This setting is ignored. */
667
692
  ignoreUnknownValues?: boolean;
668
- /** Additional properties to set if `sourceFormat` is set to `NEWLINE_DELIMITED_JSON`. */
693
+ /** Optional. Load option to be used together with source_format newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and source_format must be set to NEWLINE_DELIMITED_JSON). */
694
+ jsonExtension?: string;
695
+ /** Optional. Additional properties to set if sourceFormat is set to JSON. */
669
696
  jsonOptions?: JsonOptions;
670
- /** [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats. */
697
+ /** Optional. The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats. */
671
698
  maxBadRecords?: number;
672
- /** [Optional] Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. */
699
+ /** Optional. Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. */
673
700
  metadataCacheMode?: string;
674
- /** ObjectMetadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the source_uris. If ObjectMetadata is set, source_format should be omitted. Currently SIMPLE is the only supported Object Metadata type. */
701
+ /** Optional. ObjectMetadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the source_uris. If ObjectMetadata is set, source_format should be omitted. Currently SIMPLE is the only supported Object Metadata type. */
675
702
  objectMetadata?: string;
676
- /** Additional properties to set if sourceFormat is set to Parquet. */
703
+ /** Optional. Additional properties to set if sourceFormat is set to PARQUET. */
677
704
  parquetOptions?: ParquetOptions;
678
- /** [Optional] Provide a referencing file with the expected table schema. Enabled for the format: AVRO, PARQUET, ORC. */
705
+ /** Optional. When creating an external table, the user can provide a reference file with the table schema. This is enabled for the following formats: AVRO, PARQUET, ORC. */
679
706
  referenceFileSchemaUri?: string;
680
- /** [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats. */
707
+ /** Optional. The schema for the data. Schema is required for CSV and JSON formats if autodetect is not on. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, Avro, ORC and Parquet formats. */
681
708
  schema?: TableSchema;
682
- /** [Required] The data format. For CSV files, specify "CSV". For Google sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". [Beta] For Google Cloud Bigtable, specify "BIGTABLE". */
709
+ /** [Required] The data format. For CSV files, specify "CSV". For Google sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". For Apache Iceberg tables, specify "ICEBERG". For ORC files, specify "ORC". For Parquet files, specify "PARQUET". [Beta] For Google Cloud Bigtable, specify "BIGTABLE". */
683
710
  sourceFormat?: string;
684
711
  /** [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the '*' wildcard character is not allowed. */
685
712
  sourceUris?: string[];
686
713
  }
687
714
  interface ExternalDatasetReference {
688
- /** [Required] The connection id that is used to access the external_source. Format: projects/{project_id}/locations/{location_id}/connections/{connection_id} */
715
+ /** Required. The connection id that is used to access the external_source. Format: projects/{project_id}/locations/{location_id}/connections/{connection_id} */
689
716
  connection?: string;
690
- /** [Required] External source that backs this dataset. */
717
+ /** Required. External source that backs this dataset. */
691
718
  externalSource?: string;
692
719
  }
720
+ interface ExternalServiceCost {
721
+ /** External service cost in terms of bigquery bytes billed. */
722
+ bytesBilled?: string;
723
+ /** External service cost in terms of bigquery bytes processed. */
724
+ bytesProcessed?: string;
725
+ /** External service name. */
726
+ externalService?: string;
727
+ /** Non-preemptable reserved slots used for external job. For example, reserved slots for Cloua AI Platform job are the VM usages converted to BigQuery slot with equivalent mount of price. */
728
+ reservedSlotCount?: string;
729
+ /** External service cost in terms of bigquery slot milliseconds. */
730
+ slotMs?: string;
731
+ }
693
732
  interface FeatureValue {
694
733
  /** The categorical feature value. */
695
734
  categoricalValue?: CategoricalValue;
@@ -709,7 +748,7 @@ declare namespace gapi.client {
709
748
  interface GetQueryResultsResponse {
710
749
  /** Whether the query result was fetched from the query cache. */
711
750
  cacheHit?: boolean;
712
- /** [Output-only] The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. */
751
+ /** Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages). */
713
752
  errors?: ErrorProto[];
714
753
  /** A hash of this response. */
715
754
  etag?: string;
@@ -719,11 +758,11 @@ declare namespace gapi.client {
719
758
  jobReference?: JobReference;
720
759
  /** The resource type of the response. */
721
760
  kind?: string;
722
- /** [Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
761
+ /** Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
723
762
  numDmlAffectedRows?: string;
724
- /** A token used for paging results. */
763
+ /** A token used for paging results. When this token is non-empty, it indicates additional results are available. */
725
764
  pageToken?: string;
726
- /** An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. Present only when the query completes successfully. */
765
+ /** An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. Present only when the query completes successfully. The REST-based representation of this data leverages a series of JSON f,v objects for indicating fields and values. */
727
766
  rows?: TableRow[];
728
767
  /** The schema of the results. Present only when the query completes successfully. */
729
768
  schema?: TableSchema;
@@ -745,19 +784,29 @@ declare namespace gapi.client {
745
784
  explanations?: Explanation[];
746
785
  }
747
786
  interface GoogleSheetsOptions {
748
- /** [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20 */
787
+ /** Optional. Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20 */
749
788
  range?: string;
750
- /** [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. */
789
+ /** Optional. The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. */
751
790
  skipLeadingRows?: string;
752
791
  }
792
+ interface HighCardinalityJoin {
793
+ /** Output only. Count of left input rows. */
794
+ leftRows?: string;
795
+ /** Output only. Count of the output rows. */
796
+ outputRows?: string;
797
+ /** Output only. Count of right input rows. */
798
+ rightRows?: string;
799
+ /** Output only. The index of the join operator in the ExplainQueryStep lists. */
800
+ stepIndex?: number;
801
+ }
753
802
  interface HivePartitioningOptions {
754
- /** [Output-only] For permanent external tables, this field is populated with the hive partition keys in the order they were inferred. The types of the partition keys can be deduced by checking the table schema (which will include the partition keys). Not every API will populate this field in the output. For example, Tables.Get will populate it, but Tables.List will not contain this field. */
803
+ /** Output only. For permanent external tables, this field is populated with the hive partition keys in the order they were inferred. The types of the partition keys can be deduced by checking the table schema (which will include the partition keys). Not every API will populate this field in the output. For example, Tables.Get will populate it, but Tables.List will not contain this field. */
755
804
  fields?: string[];
756
- /** [Optional] When set, what mode of hive partitioning to use when reading data. The following modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. (3) CUSTOM: partition key schema is encoded in the source URI prefix. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet. */
805
+ /** Optional. When set, what mode of hive partitioning to use when reading data. The following modes are supported: * AUTO: automatically infer partition key name(s) and type(s). * STRINGS: automatically infer partition key name(s). All types are strings. * CUSTOM: partition key schema is encoded in the source URI prefix. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported formats are: JSON, CSV, ORC, Avro and Parquet. */
757
806
  mode?: string;
758
- /** [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Note that this field should only be true when creating a permanent external table or querying a temporary external table. Hive-partitioned loads with requirePartitionFilter explicitly set to true will fail. */
807
+ /** Optional. If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Note that this field should only be true when creating a permanent external table or querying a temporary external table. Hive-partitioned loads with require_partition_filter explicitly set to true will fail. */
759
808
  requirePartitionFilter?: boolean;
760
- /** [Optional] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter). */
809
+ /** Optional. When hive partition detection is requested, a common prefix for all source uris must be required. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout: gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/. CUSTOM detection requires encoding the partitioning schema immediately after the common prefix. For CUSTOM, any of * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:INTEGER} * gs://bucket/path_to_table/{dt:STRING}/{country:STRING}/{id:INTEGER} * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:STRING} would all be valid source URI prefixes. */
761
810
  sourceUriPrefix?: string;
762
811
  }
763
812
  interface HparamSearchSpaces {
@@ -829,15 +878,19 @@ declare namespace gapi.client {
829
878
  trialId?: string;
830
879
  }
831
880
  interface IndexUnusedReason {
832
- /** [Output-only] Specifies the base table involved in the reason that no search index was used. */
881
+ /** Specifies the base table involved in the reason that no search index was used. */
833
882
  baseTable?: TableReference;
834
- /** [Output-only] Specifies the high-level reason for the scenario when no search index was used. */
883
+ /** Specifies the high-level reason for the scenario when no search index was used. */
835
884
  code?: string;
836
- /** [Output-only] Specifies the name of the unused search index, if available. */
885
+ /** Specifies the name of the unused search index, if available. */
837
886
  indexName?: string;
838
- /** [Output-only] Free form human-readable reason for the scenario when no search index was used. */
887
+ /** Free form human-readable reason for the scenario when no search index was used. */
839
888
  message?: string;
840
889
  }
890
+ interface InputDataChange {
891
+ /** Output only. Records read difference percentage compared to a previous run. */
892
+ recordsReadDiffPercentage?: number;
893
+ }
841
894
  interface IntArray {
842
895
  /** Elements in the int array. */
843
896
  elements?: string[];
@@ -863,6 +916,10 @@ declare namespace gapi.client {
863
916
  min?: string;
864
917
  }
865
918
  interface IterationResult {
919
+ /** Arima result. */
920
+ arimaResult?: ArimaResult;
921
+ /** Information about top clusters for clustering models. */
922
+ clusterInfos?: ClusterInfo[];
866
923
  /** Time taken to run the iteration in milliseconds. */
867
924
  durationMs?: string;
868
925
  /** Loss computed on the eval data at the end of iteration. */
@@ -871,29 +928,33 @@ declare namespace gapi.client {
871
928
  index?: number;
872
929
  /** Learn rate used for this iteration. */
873
930
  learnRate?: number;
931
+ /** The information of the principal components. */
932
+ principalComponentInfos?: PrincipalComponentInfo[];
874
933
  /** Loss computed on the training data at the end of iteration. */
875
934
  trainingLoss?: number;
876
935
  }
877
936
  interface Job {
878
- /** [Required] Describes the job configuration. */
937
+ /** Required. Describes the job configuration. */
879
938
  configuration?: JobConfiguration;
880
- /** [Output-only] A hash of this resource. */
939
+ /** Output only. A hash of this resource. */
881
940
  etag?: string;
882
- /** [Output-only] Opaque ID field of the job */
941
+ /** Output only. Opaque ID field of the job. */
883
942
  id?: string;
884
- /** [Output-only] If set, it provides the reason why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always be created. */
885
- jobCreationReason?: any;
886
- /** [Optional] Reference describing the unique-per-user name of the job. */
943
+ /** Output only. If set, it provides the reason why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always be created. */
944
+ jobCreationReason?: JobCreationReason;
945
+ /** Optional. Reference describing the unique-per-user name of the job. */
887
946
  jobReference?: JobReference;
888
- /** [Output-only] The type of the resource. */
947
+ /** Output only. The type of the resource. */
889
948
  kind?: string;
890
- /** [Output-only] A URL that can be used to access this resource again. */
949
+ /** Output only. [Full-projection-only] String representation of identity of requesting party. Populated for both first- and third-party identities. Only present for APIs that support third-party identities. */
950
+ principal_subject?: string;
951
+ /** Output only. A URL that can be used to access the resource again. */
891
952
  selfLink?: string;
892
- /** [Output-only] Information about the job, including starting time and ending time of the job. */
953
+ /** Output only. Information about the job, including starting time and ending time of the job. */
893
954
  statistics?: JobStatistics;
894
- /** [Output-only] The status of this job. Examine this value when polling an asynchronous job to see if the job is complete. */
955
+ /** Output only. The status of this job. Examine this value when polling an asynchronous job to see if the job is complete. */
895
956
  status?: JobStatus;
896
- /** [Output-only] Email address of the user who ran the job. */
957
+ /** Output only. Email address of the user who ran the job. */
897
958
  user_email?: string;
898
959
  }
899
960
  interface JobCancelResponse {
@@ -905,13 +966,13 @@ declare namespace gapi.client {
905
966
  interface JobConfiguration {
906
967
  /** [Pick one] Copies a table. */
907
968
  copy?: JobConfigurationTableCopy;
908
- /** [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined. */
969
+ /** Optional. If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined. */
909
970
  dryRun?: boolean;
910
971
  /** [Pick one] Configures an extract job. */
911
972
  extract?: JobConfigurationExtract;
912
- /** [Optional] Job timeout in milliseconds. If this time limit is exceeded, BigQuery may attempt to terminate the job. */
973
+ /** Optional. Job timeout in milliseconds. If this time limit is exceeded, BigQuery might attempt to stop the job. */
913
974
  jobTimeoutMs?: string;
914
- /** [Output-only] The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or UNKNOWN. */
975
+ /** Output only. The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or UNKNOWN. */
915
976
  jobType?: string;
916
977
  /** The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. */
917
978
  labels?: {[P in string]: string};
@@ -921,165 +982,173 @@ declare namespace gapi.client {
921
982
  query?: JobConfigurationQuery;
922
983
  }
923
984
  interface JobConfigurationExtract {
924
- /** [Optional] The compression type to use for exported files. Possible values include GZIP, DEFLATE, SNAPPY, and NONE. The default value is NONE. DEFLATE and SNAPPY are only supported for Avro. Not applicable when extracting models. */
985
+ /** Optional. The compression type to use for exported files. Possible values include DEFLATE, GZIP, NONE, SNAPPY, and ZSTD. The default value is NONE. Not all compression formats are support for all file formats. DEFLATE is only supported for Avro. ZSTD is only supported for Parquet. Not applicable when extracting models. */
925
986
  compression?: string;
926
- /** [Optional] The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON, PARQUET or AVRO for tables and ML_TF_SAVED_MODEL or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV. The default value for models is ML_TF_SAVED_MODEL. */
987
+ /** Optional. The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON, PARQUET, or AVRO for tables and ML_TF_SAVED_MODEL or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV. The default value for models is ML_TF_SAVED_MODEL. */
927
988
  destinationFormat?: string;
928
989
  /** [Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as necessary. The fully-qualified Google Cloud Storage URI where the extracted table should be written. */
929
990
  destinationUri?: string;
930
991
  /** [Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should be written. */
931
992
  destinationUris?: string[];
932
- /** [Optional] Delimiter to use between fields in the exported data. Default is ','. Not applicable when extracting models. */
993
+ /** Optional. When extracting data in CSV format, this defines the delimiter to use between fields in the exported data. Default is ','. Not applicable when extracting models. */
933
994
  fieldDelimiter?: string;
934
- /** [Optional] Whether to print out a header row in the results. Default is true. Not applicable when extracting models. */
995
+ /** Optional. Model extract options only applicable when extracting models. */
996
+ modelExtractOptions?: ModelExtractOptions;
997
+ /** Optional. Whether to print out a header row in the results. Default is true. Not applicable when extracting models. */
935
998
  printHeader?: boolean;
936
999
  /** A reference to the model being exported. */
937
1000
  sourceModel?: ModelReference;
938
1001
  /** A reference to the table being exported. */
939
1002
  sourceTable?: TableReference;
940
- /** [Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long). Not applicable when extracting models. */
1003
+ /** Whether to use logical types when extracting to AVRO format. Not applicable when extracting models. */
941
1004
  useAvroLogicalTypes?: boolean;
942
1005
  }
943
1006
  interface JobConfigurationLoad {
944
- /** [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Only applicable to CSV, ignored for other formats. */
1007
+ /** Optional. Accept rows that are missing trailing optional columns. The missing values are treated as nulls. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Only applicable to CSV, ignored for other formats. */
945
1008
  allowJaggedRows?: boolean;
946
1009
  /** Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. */
947
1010
  allowQuotedNewlines?: boolean;
948
- /** [Optional] Indicates if we should automatically infer the options and schema for CSV and JSON sources. */
1011
+ /** Optional. Indicates if we should automatically infer the options and schema for CSV and JSON sources. */
949
1012
  autodetect?: boolean;
950
- /** [Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered. */
1013
+ /** Clustering specification for the destination table. */
951
1014
  clustering?: Clustering;
952
- /** Connection properties. */
1015
+ /** Optional. Connection properties which can modify the load job behavior. Currently, only the 'session_id' connection property is supported, and is used to resolve _SESSION appearing as the dataset id. */
953
1016
  connectionProperties?: ConnectionProperty[];
954
- /** [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
1017
+ /** Optional. [Experimental] Configures the load job to only copy files to the destination BigLake managed table with an external storage_uri, without reading file content and writing them to new files. Copying files only is supported when: * source_uris are in the same external storage system as the destination table but they do not overlap with storage_uri of the destination table. * source_format is the same file format as the destination table. * destination_table is an existing BigLake managed table. Its schema does not have default value expression. It schema does not have type parameters other than precision and scale. * No options other than the above are specified. */
1018
+ copyFilesOnly?: boolean;
1019
+ /** Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
955
1020
  createDisposition?: string;
956
- /** If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs the load job in non-session mode. */
1021
+ /** Optional. If this property is true, the job creates a new session using a randomly generated session_id. To continue using a created session with subsequent queries, pass the existing session identifier as a `ConnectionProperty` value. The session identifier is returned as part of the `SessionInfo` message within the query statistics. The new session's location will be set to `Job.JobReference.location` if it is present, otherwise it's set to the default location based on existing routing logic. */
957
1022
  createSession?: boolean;
958
- /** [Optional] Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: (38,9) -> NUMERIC; (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); (76,38) -> BIGNUMERIC; (77,38) -> BIGNUMERIC (error if value exeeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats. */
1023
+ /** Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exeeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats. */
959
1024
  decimalTargetTypes?: string[];
960
- /** Custom encryption configuration (e.g., Cloud KMS keys). */
1025
+ /** Custom encryption configuration (e.g., Cloud KMS keys) */
961
1026
  destinationEncryptionConfiguration?: EncryptionConfiguration;
962
1027
  /** [Required] The destination table to load the data into. */
963
1028
  destinationTable?: TableReference;
964
- /** [Beta] [Optional] Properties with which to create the destination table if it is new. */
1029
+ /** Optional. [Experimental] Properties with which to create the destination table if it is new. */
965
1030
  destinationTableProperties?: DestinationTableProperties;
966
- /** [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties. */
1031
+ /** Optional. The character encoding of the data. The supported values are UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the `quote` and `fieldDelimiter` properties. If you don't specify an encoding, or if you specify a UTF-8 encoding when the CSV file is not UTF-8 encoded, BigQuery attempts to convert the data to UTF-8. Generally, your data loads successfully, but it may not match byte-for-byte what you expect. To avoid this, specify the correct encoding by using the `--encoding` flag. If BigQuery can't convert a character other than the ASCII `0` character, BigQuery converts the character to the standard Unicode replacement character: �. */
967
1032
  encoding?: string;
968
- /** [Optional] The separator for fields in a CSV file. The separator can be any ISO-8859-1 single-byte character. To use a character in the range 128-255, you must encode the character as UTF8. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (','). */
1033
+ /** Optional. The separator character for fields in a CSV file. The separator is interpreted as a single byte. For files encoded in ISO-8859-1, any single character can be used as a separator. For files encoded in UTF-8, characters represented in decimal range 1-127 (U+0001-U+007F) can be used without any modification. UTF-8 characters encoded with multiple bytes (i.e. U+0080 and above) will have only the first byte used for separating fields. The remaining bytes will be treated as a part of the field. BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab separator. The default value is comma (",", U+002C). */
969
1034
  fieldDelimiter?: string;
970
- /** [Optional] Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include specifying manifest files. Only applicable to object storage systems. */
1035
+ /** Optional. Specifies how source URIs are interpreted for constructing the file set to load. By default, source URIs are expanded against the underlying storage. You can also specify manifest files to control how the file set is constructed. This option is only applicable to object storage systems. */
971
1036
  fileSetSpecType?: string;
972
- /** [Optional] Options to configure hive partitioning support. */
1037
+ /** Optional. When set, configures hive partitioning support. Not all storage formats support hive partitioning -- requesting hive partitioning on an unsupported format will lead to an error, as will providing an invalid specification. */
973
1038
  hivePartitioningOptions?: HivePartitioningOptions;
974
- /** [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names */
1039
+ /** Optional. Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names in the table schema Avro, Parquet, ORC: Fields in the file schema that don't exist in the table schema. */
975
1040
  ignoreUnknownValues?: boolean;
976
- /** [Optional] If sourceFormat is set to newline-delimited JSON, indicates whether it should be processed as a JSON variant such as GeoJSON. For a sourceFormat other than JSON, omit this field. If the sourceFormat is newline-delimited JSON: - for newline-delimited GeoJSON: set to GEOJSON. */
1041
+ /** Optional. Load option to be used together with source_format newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and source_format must be set to NEWLINE_DELIMITED_JSON). */
977
1042
  jsonExtension?: string;
978
- /** [Optional] The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV and JSON. The default value is 0, which requires that all records are valid. */
1043
+ /** Optional. The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. This is only supported for CSV and NEWLINE_DELIMITED_JSON file formats. */
979
1044
  maxBadRecords?: number;
980
- /** [Optional] Specifies a string that represents a null value in a CSV file. For example, if you specify "\N", BigQuery interprets "\N" as a null value when loading a CSV file. The default value is the empty string. If you set this property to a custom value, BigQuery throws an error if an empty string is present for all data types except for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the empty string as an empty value. */
1045
+ /** Optional. Specifies a string that represents a null value in a CSV file. For example, if you specify "\N", BigQuery interprets "\N" as a null value when loading a CSV file. The default value is the empty string. If you set this property to a custom value, BigQuery throws an error if an empty string is present for all data types except for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the empty string as an empty value. */
981
1046
  nullMarker?: string;
982
- /** [Optional] Options to configure parquet support. */
1047
+ /** Optional. Additional properties to set if sourceFormat is set to PARQUET. */
983
1048
  parquetOptions?: ParquetOptions;
984
- /** [Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\x00' to '\x1F') when loading from CSV. Only applicable to CSV, ignored for other formats. */
1049
+ /** Optional. When sourceFormat is set to "CSV", this indicates whether the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\x00' to '\x1F') are preserved. */
985
1050
  preserveAsciiControlCharacters?: boolean;
986
1051
  /** If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity properties to load into BigQuery from a Cloud Datastore backup. Property names are case sensitive and must be top-level properties. If no properties are specified, BigQuery loads all properties. If any named property isn't found in the Cloud Datastore backup, an invalid error is returned in the job result. */
987
1052
  projectionFields?: string[];
988
- /** [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. */
1053
+ /** Optional. The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. To include the specific quote character within a quoted value, precede it with an additional matching quote character. For example, if you want to escape the default character ' " ', use ' "" '. @default " */
989
1054
  quote?: string;
990
- /** [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. */
1055
+ /** Range partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. */
991
1056
  rangePartitioning?: RangePartitioning;
992
- /** User provided referencing file with the expected reader schema, Available for the format: AVRO, PARQUET, ORC. */
1057
+ /** Optional. The user can provide a reference file with the reader schema. This file is only loaded if it is part of source URIs, but is not loaded otherwise. It is enabled for the following formats: AVRO, PARQUET, ORC. */
993
1058
  referenceFileSchemaUri?: string;
994
- /** [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists, or if you're loading data from Google Cloud Datastore. */
1059
+ /** Optional. The schema for the destination table. The schema can be omitted if the destination table already exists, or if you're loading data from Google Cloud Datastore. */
995
1060
  schema?: TableSchema;
996
1061
  /** [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT". */
997
1062
  schemaInline?: string;
998
1063
  /** [Deprecated] The format of the schemaInline property. */
999
1064
  schemaInlineFormat?: string;
1000
- /** Allows the schema of the destination table to be updated as a side effect of the load job if a schema is autodetected or supplied in the job configuration. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. */
1065
+ /** Allows the schema of the destination table to be updated as a side effect of the load job if a schema is autodetected or supplied in the job configuration. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: * ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. */
1001
1066
  schemaUpdateOptions?: string[];
1002
- /** [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. */
1067
+ /** Optional. The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. */
1003
1068
  skipLeadingRows?: number;
1004
- /** [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet, specify "PARQUET". For orc, specify "ORC". The default value is CSV. */
1069
+ /** Optional. The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet, specify "PARQUET". For orc, specify "ORC". The default value is CSV. */
1005
1070
  sourceFormat?: string;
1006
1071
  /** [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups: Exactly one URI can be specified. Also, the '*' wildcard character is not allowed. */
1007
1072
  sourceUris?: string[];
1008
1073
  /** Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. */
1009
1074
  timePartitioning?: TimePartitioning;
1010
- /** [Optional] If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). */
1075
+ /** Optional. If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). */
1011
1076
  useAvroLogicalTypes?: boolean;
1012
- /** [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
1077
+ /** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints and uses the schema from the load job. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
1013
1078
  writeDisposition?: string;
1014
1079
  }
1015
1080
  interface JobConfigurationQuery {
1016
- /** [Optional] If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For standard SQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size. */
1081
+ /** Optional. If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For GoogleSQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size. */
1017
1082
  allowLargeResults?: boolean;
1018
- /** [Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered. */
1083
+ /** Clustering specification for the destination table. */
1019
1084
  clustering?: Clustering;
1020
- /** Connection properties. */
1085
+ /** Connection properties which can modify the query behavior. */
1021
1086
  connectionProperties?: ConnectionProperty[];
1022
1087
  /** [Optional] Specifies whether the query should be executed as a continuous query. The default value is false. */
1023
1088
  continuous?: boolean;
1024
- /** [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
1089
+ /** Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
1025
1090
  createDisposition?: string;
1026
- /** If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode. */
1091
+ /** If this property is true, the job creates a new session using a randomly generated session_id. To continue using a created session with subsequent queries, pass the existing session identifier as a `ConnectionProperty` value. The session identifier is returned as part of the `SessionInfo` message within the query statistics. The new session's location will be set to `Job.JobReference.location` if it is present, otherwise it's set to the default location based on existing routing logic. */
1027
1092
  createSession?: boolean;
1028
- /** [Optional] Specifies the default dataset to use for unqualified table names in the query. Note that this does not alter behavior of unqualified dataset names. */
1093
+ /** Optional. Specifies the default dataset to use for unqualified table names in the query. This setting does not alter behavior of unqualified dataset names. Setting the system variable `@@dataset_id` achieves the same behavior. See https://cloud.google.com/bigquery/docs/reference/system-variables for more information on system variables. */
1029
1094
  defaultDataset?: DatasetReference;
1030
- /** Custom encryption configuration (e.g., Cloud KMS keys). */
1095
+ /** Custom encryption configuration (e.g., Cloud KMS keys) */
1031
1096
  destinationEncryptionConfiguration?: EncryptionConfiguration;
1032
- /** [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results. This property must be set for large results that exceed the maximum response size. */
1097
+ /** Optional. Describes the table where the query results should be stored. This property must be set for large results that exceed the maximum response size. For queries that produce anonymous (cached) results, this field will be populated by BigQuery. */
1033
1098
  destinationTable?: TableReference;
1034
- /** [Optional] If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. allowLargeResults must be true if this is set to false. For standard SQL queries, this flag is ignored and results are never flattened. */
1099
+ /** Optional. If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. allowLargeResults must be true if this is set to false. For GoogleSQL queries, this flag is ignored and results are never flattened. */
1035
1100
  flattenResults?: boolean;
1036
- /** [Optional] Limits the billing tier for this job. Queries that have resource usage beyond this tier will fail (without incurring a charge). If unspecified, this will be set to your project default. */
1101
+ /** Optional. [Deprecated] Maximum billing tier allowed for this query. The billing tier controls the amount of compute resources allotted to the query, and multiplies the on-demand cost of the query accordingly. A query that runs within its allotted resources will succeed and indicate its billing tier in statistics.query.billingTier, but if the query exceeds its allotted resources, it will fail with billingTierLimitExceeded. WARNING: The billed byte amount can be multiplied by an amount up to this number! Most users should not need to alter this setting, and we recommend that you avoid introducing new uses of it. */
1037
1102
  maximumBillingTier?: number;
1038
- /** [Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default. */
1103
+ /** Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default. */
1039
1104
  maximumBytesBilled?: string;
1040
- /** Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. */
1105
+ /** GoogleSQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. */
1041
1106
  parameterMode?: string;
1042
1107
  /** [Deprecated] This property is deprecated. */
1043
1108
  preserveNulls?: boolean;
1044
- /** [Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE. */
1109
+ /** Optional. Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE. */
1045
1110
  priority?: string;
1046
- /** [Required] SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or standard SQL. */
1111
+ /** [Required] SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or GoogleSQL. */
1047
1112
  query?: string;
1048
- /** Query parameters for standard SQL queries. */
1113
+ /** Query parameters for GoogleSQL queries. */
1049
1114
  queryParameters?: QueryParameter[];
1050
- /** [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. */
1115
+ /** Range partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. */
1051
1116
  rangePartitioning?: RangePartitioning;
1052
- /** Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. */
1117
+ /** Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: * ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. */
1053
1118
  schemaUpdateOptions?: string[];
1054
- /** [Optional] If querying an external data source outside of BigQuery, describes the data format, location and other properties of the data source. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. */
1119
+ /** Options controlling the execution of scripts. */
1120
+ scriptOptions?: ScriptOptions;
1121
+ /** Output only. System variables for GoogleSQL queries. A system variable is output if the variable is settable and its value differs from the system default. "@@" prefix is not included in the name of the System variables. */
1122
+ systemVariables?: SystemVariables;
1123
+ /** Optional. You can specify external table definitions, which operate as ephemeral tables that can be queried. These definitions are configured using a JSON map, where the string key represents the table identifier, and the value is the corresponding external data configuration object. */
1055
1124
  tableDefinitions?: {[P in string]: ExternalDataConfiguration};
1056
1125
  /** Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. */
1057
1126
  timePartitioning?: TimePartitioning;
1058
- /** Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false. */
1127
+ /** Optional. Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's GoogleSQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false. */
1059
1128
  useLegacySql?: boolean;
1060
- /** [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. The default value is true. */
1129
+ /** Optional. Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. The default value is true. */
1061
1130
  useQueryCache?: boolean;
1062
1131
  /** Describes user-defined function resources used in the query. */
1063
1132
  userDefinedFunctionResources?: UserDefinedFunctionResource[];
1064
- /** [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema from the query result. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
1133
+ /** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
1065
1134
  writeDisposition?: string;
1066
1135
  }
1067
1136
  interface JobConfigurationTableCopy {
1068
- /** [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
1137
+ /** Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
1069
1138
  createDisposition?: string;
1070
1139
  /** Custom encryption configuration (e.g., Cloud KMS keys). */
1071
1140
  destinationEncryptionConfiguration?: EncryptionConfiguration;
1072
- /** [Optional] The time when the destination table expires. Expired tables will be deleted and their storage reclaimed. */
1073
- destinationExpirationTime?: any;
1074
- /** [Required] The destination table */
1141
+ /** Optional. The time when the destination table expires. Expired tables will be deleted and their storage reclaimed. */
1142
+ destinationExpirationTime?: string;
1143
+ /** [Required] The destination table. */
1075
1144
  destinationTable?: TableReference;
1076
- /** [Optional] Supported operation types in table copy job. */
1145
+ /** Optional. Supported operation types in table copy job. */
1077
1146
  operationType?: string;
1078
1147
  /** [Pick one] Source table to copy. */
1079
1148
  sourceTable?: TableReference;
1080
1149
  /** [Pick one] Source tables to copy. */
1081
1150
  sourceTables?: TableReference[];
1082
- /** [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
1151
+ /** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema and table constraints from the source table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
1083
1152
  writeDisposition?: string;
1084
1153
  }
1085
1154
  interface JobCreationReason {
@@ -1091,21 +1160,23 @@ declare namespace gapi.client {
1091
1160
  etag?: string;
1092
1161
  /** List of jobs that were requested. */
1093
1162
  jobs?: Array<{
1094
- /** [Full-projection-only] Specifies the job configuration. */
1163
+ /** Required. Describes the job configuration. */
1095
1164
  configuration?: JobConfiguration;
1096
1165
  /** A result object that will be present only if the job has failed. */
1097
1166
  errorResult?: ErrorProto;
1098
1167
  /** Unique opaque ID of the job. */
1099
1168
  id?: string;
1100
- /** Job reference uniquely identifying the job. */
1169
+ /** Unique opaque ID of the job. */
1101
1170
  jobReference?: JobReference;
1102
1171
  /** The resource type. */
1103
1172
  kind?: string;
1173
+ /** [Full-projection-only] String representation of identity of requesting party. Populated for both first- and third-party identities. Only present for APIs that support third-party identities. */
1174
+ principal_subject?: string;
1104
1175
  /** Running state of the job. When the state is DONE, errorResult can be checked to determine whether the job succeeded or failed. */
1105
1176
  state?: string;
1106
- /** [Output-only] Information about the job, including starting time and ending time of the job. */
1177
+ /** Output only. Information about the job, including starting time and ending time of the job. */
1107
1178
  statistics?: JobStatistics;
1108
- /** [Full-projection-only] Describes the state of the job. */
1179
+ /** [Full-projection-only] Describes the status of this job. */
1109
1180
  status?: JobStatus;
1110
1181
  /** [Full-projection-only] Email address of the user who ran the job. */
1111
1182
  user_email?: string;
@@ -1114,175 +1185,209 @@ declare namespace gapi.client {
1114
1185
  kind?: string;
1115
1186
  /** A token to request the next page of results. */
1116
1187
  nextPageToken?: string;
1188
+ /** A list of skipped locations that were unreachable. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5" */
1189
+ unreachable?: string[];
1117
1190
  }
1118
1191
  interface JobReference {
1119
- /** [Required] The ID of the job. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024 characters. */
1192
+ /** Required. The ID of the job. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024 characters. */
1120
1193
  jobId?: string;
1121
- /** The geographic location of the job. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
1194
+ /** Optional. The geographic location of the job. The default value is US. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations */
1122
1195
  location?: string;
1123
- /** [Required] The ID of the project containing this job. */
1196
+ /** Required. The ID of the project containing this job. */
1124
1197
  projectId?: string;
1125
1198
  }
1126
1199
  interface JobStatistics {
1127
- /** [TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs. */
1200
+ /** Output only. [TrustedTester] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs. */
1128
1201
  completionRatio?: number;
1129
- /** [Output-only] Statistics for a copy job. */
1202
+ /** Output only. Statistics for a copy job. */
1130
1203
  copy?: JobStatistics5;
1131
- /** [Output-only] Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs. */
1204
+ /** Output only. Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs. */
1132
1205
  creationTime?: string;
1133
- /** [Output-only] Statistics for data masking. Present only for query and extract jobs. */
1206
+ /** Output only. Statistics for data-masking. Present only for query and extract jobs. */
1134
1207
  dataMaskingStatistics?: DataMaskingStatistics;
1135
- /** [Output-only] End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state. */
1208
+ /** Output only. End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state. */
1136
1209
  endTime?: string;
1137
- /** [Output-only] Statistics for an extract job. */
1210
+ /** Output only. Statistics for an extract job. */
1138
1211
  extract?: JobStatistics4;
1139
- /** [Output-only] Statistics for a load job. */
1212
+ /** Output only. The duration in milliseconds of the execution of the final attempt of this job, as BigQuery may internally re-attempt to execute the job. */
1213
+ finalExecutionDurationMs?: string;
1214
+ /** Output only. Statistics for a load job. */
1140
1215
  load?: JobStatistics3;
1141
- /** [Output-only] Number of child jobs executed. */
1216
+ /** Output only. Number of child jobs executed. */
1142
1217
  numChildJobs?: string;
1143
- /** [Output-only] If this is a child job, the id of the parent. */
1218
+ /** Output only. If this is a child job, specifies the job ID of the parent. */
1144
1219
  parentJobId?: string;
1145
- /** [Output-only] Statistics for a query job. */
1220
+ /** Output only. Statistics for a query job. */
1146
1221
  query?: JobStatistics2;
1147
- /** [Output-only] Quotas which delayed this job's start time. */
1222
+ /** Output only. Quotas which delayed this job's start time. */
1148
1223
  quotaDeferments?: string[];
1149
- /** [Output-only] Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job. */
1224
+ /** Output only. Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job. */
1150
1225
  reservation_id?: string;
1151
- /** [Output-only] Job resource usage breakdown by reservation. */
1226
+ /** Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. */
1152
1227
  reservationUsage?: Array<{
1153
- /** [Output-only] Reservation name or "unreserved" for on-demand resources usage. */
1228
+ /** Reservation name or "unreserved" for on-demand resources usage. */
1154
1229
  name?: string;
1155
- /** [Output-only] Slot-milliseconds the job spent in the given reservation. */
1230
+ /** Total slot milliseconds used by the reservation for a particular job. */
1156
1231
  slotMs?: string;
1157
1232
  }>;
1158
- /** [Output-only] [Preview] Statistics for row-level security. Present only for query and extract jobs. */
1233
+ /** Output only. Statistics for row-level security. Present only for query and extract jobs. */
1159
1234
  rowLevelSecurityStatistics?: RowLevelSecurityStatistics;
1160
- /** [Output-only] Statistics for a child job of a script. */
1235
+ /** Output only. If this a child job of a script, specifies information about the context of this job within the script. */
1161
1236
  scriptStatistics?: ScriptStatistics;
1162
- /** [Output-only] [Preview] Information of the session if this job is part of one. */
1237
+ /** Output only. Information of the session if this job is part of one. */
1163
1238
  sessionInfo?: SessionInfo;
1164
- /** [Output-only] Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE. */
1239
+ /** Output only. Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE. */
1165
1240
  startTime?: string;
1166
- /** [Output-only] [Deprecated] Use the bytes processed in the query statistics instead. */
1241
+ /** Output only. Total bytes processed for the job. */
1167
1242
  totalBytesProcessed?: string;
1168
- /** [Output-only] Slot-milliseconds for the job. */
1243
+ /** Output only. Slot-milliseconds for the job. */
1169
1244
  totalSlotMs?: string;
1170
- /** [Output-only] [Alpha] Information of the multi-statement transaction if this job is part of one. */
1245
+ /** Output only. [Alpha] Information of the multi-statement transaction if this job is part of one. This property is only expected on a child job or a job that is in a session. A script parent job is not part of the transaction started in the script. */
1171
1246
  transactionInfo?: TransactionInfo;
1172
1247
  }
1173
1248
  interface JobStatistics2 {
1174
- /** BI Engine specific Statistics. [Output only] BI Engine specific Statistics. */
1249
+ /** Output only. BI Engine specific Statistics. */
1175
1250
  biEngineStatistics?: BiEngineStatistics;
1176
- /** [Output only] Billing tier for the job. */
1251
+ /** Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related to the Google Cloud notion of "free tier". The value here is a measure of the query's resource consumption relative to the amount of data scanned. For on-demand queries, the limit is 100, and all queries within this limit are billed at the standard on-demand rates. On-demand queries that exceed this limit will fail with a billingTierLimitExceeded error. */
1177
1252
  billingTier?: number;
1178
- /** [Output only] Whether the query result was fetched from the query cache. */
1253
+ /** Output only. Whether the query result was fetched from the query cache. */
1179
1254
  cacheHit?: boolean;
1180
- /** [Output only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. */
1255
+ /** Output only. Referenced dataset for DCL statement. */
1256
+ dclTargetDataset?: DatasetReference;
1257
+ /** Output only. Referenced table for DCL statement. */
1258
+ dclTargetTable?: TableReference;
1259
+ /** Output only. Referenced view for DCL statement. */
1260
+ dclTargetView?: TableReference;
1261
+ /** Output only. The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. */
1181
1262
  ddlAffectedRowAccessPolicyCount?: string;
1182
- /** [Output only] The DDL destination table. Present only for ALTER TABLE RENAME TO queries. Note that ddl_target_table is used just for its type information. */
1263
+ /** Output only. The table after rename. Present only for ALTER TABLE RENAME TO query. */
1183
1264
  ddlDestinationTable?: TableReference;
1184
- /** The DDL operation performed, possibly dependent on the pre-existence of the DDL target. Possible values (new values might be added in the future): "CREATE": The query created the DDL target. "SKIP": No-op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists, or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE": The query replaced the DDL target. Example case: the query is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL target. */
1265
+ /** Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL target. */
1185
1266
  ddlOperationPerformed?: string;
1186
- /** [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP/UNDROP SCHEMA queries. */
1267
+ /** Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset) queries. */
1187
1268
  ddlTargetDataset?: DatasetReference;
1188
- /** The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. */
1269
+ /** Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. */
1189
1270
  ddlTargetRoutine?: RoutineReference;
1190
- /** [Output only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. */
1271
+ /** Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. */
1191
1272
  ddlTargetRowAccessPolicy?: RowAccessPolicyReference;
1192
- /** [Output only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. */
1273
+ /** Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. */
1193
1274
  ddlTargetTable?: TableReference;
1194
- /** [Output only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE. */
1275
+ /** Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE. */
1195
1276
  dmlStats?: DmlStatistics;
1196
- /** [Output only] The original estimate of bytes processed for the job. */
1277
+ /** Output only. The original estimate of bytes processed for the job. */
1197
1278
  estimatedBytesProcessed?: string;
1198
- /** [Output only] Statistics of a BigQuery ML training job. */
1279
+ /** Output only. Stats for EXPORT DATA statement. */
1280
+ exportDataStatistics?: ExportDataStatistics;
1281
+ /** Output only. Job cost breakdown as bigquery internal cost and external service costs. */
1282
+ externalServiceCosts?: ExternalServiceCost[];
1283
+ /** Output only. Statistics for a LOAD query. */
1284
+ loadQueryStatistics?: LoadQueryStatistics;
1285
+ /** Output only. Statistics of materialized views of a query job. */
1286
+ materializedViewStatistics?: MaterializedViewStatistics;
1287
+ /** Output only. Statistics of metadata cache usage in a query for BigLake tables. */
1288
+ metadataCacheStatistics?: MetadataCacheStatistics;
1289
+ /** Output only. Statistics of a BigQuery ML training job. */
1199
1290
  mlStatistics?: MlStatistics;
1200
- /** [Output only, Beta] Information about create model query job progress. */
1291
+ /** Deprecated. */
1201
1292
  modelTraining?: BigQueryModelTraining;
1202
- /** [Output only, Beta] Deprecated; do not use. */
1293
+ /** Deprecated. */
1203
1294
  modelTrainingCurrentIteration?: number;
1204
- /** [Output only, Beta] Deprecated; do not use. */
1295
+ /** Deprecated. */
1205
1296
  modelTrainingExpectedTotalIteration?: string;
1206
- /** [Output only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
1297
+ /** Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
1207
1298
  numDmlAffectedRows?: string;
1208
- /** [Output only] Describes execution plan for the query. */
1299
+ /** Output only. Performance insights. */
1300
+ performanceInsights?: PerformanceInsights;
1301
+ /** Output only. Query optimization information for a QUERY job. */
1302
+ queryInfo?: QueryInfo;
1303
+ /** Output only. Describes execution plan for the query. */
1209
1304
  queryPlan?: ExplainQueryStage[];
1210
- /** [Output only] Referenced routines (persistent user-defined functions and stored procedures) for the job. */
1305
+ /** Output only. Referenced routines for the job. */
1211
1306
  referencedRoutines?: RoutineReference[];
1212
- /** [Output only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. */
1307
+ /** Output only. Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. */
1213
1308
  referencedTables?: TableReference[];
1214
- /** [Output only] Job resource usage breakdown by reservation. */
1309
+ /** Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. */
1215
1310
  reservationUsage?: Array<{
1216
- /** [Output only] Reservation name or "unreserved" for on-demand resources usage. */
1311
+ /** Reservation name or "unreserved" for on-demand resources usage. */
1217
1312
  name?: string;
1218
- /** [Output only] Slot-milliseconds the job spent in the given reservation. */
1313
+ /** Total slot milliseconds used by the reservation for a particular job. */
1219
1314
  slotMs?: string;
1220
1315
  }>;
1221
- /** [Output only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. */
1316
+ /** Output only. The schema of the results. Present only for successful dry run of non-legacy SQL queries. */
1222
1317
  schema?: TableSchema;
1223
- /** [Output only] Search query specific statistics. */
1318
+ /** Output only. Search query specific statistics. */
1224
1319
  searchStatistics?: SearchStatistics;
1225
- /** [Output only] Statistics of a Spark procedure job. */
1320
+ /** Output only. Statistics of a Spark procedure job. */
1226
1321
  sparkStatistics?: SparkStatistics;
1227
- /** The type of query statement, if valid. Possible values (new values might be added in the future): "SELECT": SELECT query. "INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "UPDATE": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. "ASSERT": ASSERT condition AS 'description'. "CREATE_FUNCTION": CREATE FUNCTION query. "CREATE_MODEL": CREATE [OR REPLACE] MODEL ... AS SELECT ... . "CREATE_PROCEDURE": CREATE PROCEDURE query. "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" : DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE": DROP TABLE query. "DROP_VIEW": DROP VIEW query. */
1322
+ /** Output only. The type of query statement, if valid. Possible values: * `SELECT`: [`SELECT`](/bigquery/docs/reference/standard-sql/query-syntax#select_list) statement. * `ASSERT`: [`ASSERT`](/bigquery/docs/reference/standard-sql/debugging-statements#assert) statement. * `INSERT`: [`INSERT`](/bigquery/docs/reference/standard-sql/dml-syntax#insert_statement) statement. * `UPDATE`: [`UPDATE`](/bigquery/docs/reference/standard-sql/query-syntax#update_statement) statement. * `DELETE`: [`DELETE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. * `MERGE`: [`MERGE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. * `CREATE_TABLE`: [`CREATE TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_table_statement) statement, without `AS SELECT`. * `CREATE_TABLE_AS_SELECT`: [`CREATE TABLE AS SELECT`](/bigquery/docs/reference/standard-sql/data-definition-language#query_statement) statement. * `CREATE_VIEW`: [`CREATE VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement) statement. * `CREATE_MODEL`: [`CREATE MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`: [`CREATE MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_materialized_view_statement) statement. * `CREATE_FUNCTION`: [`CREATE FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#create_function_statement) statement. * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#create_table_function_statement) statement. * `CREATE_PROCEDURE`: [`CREATE PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure) statement. * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS POLICY`](/bigquery/docs/reference/standard-sql/data-definition-language#create_row_access_policy_statement) statement. * `CREATE_SCHEMA`: [`CREATE SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-language#create_schema_statement) statement. * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_snapshot_table_statement) statement. * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#create_search_index_statement) statement. * `DROP_TABLE`: [`DROP TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement) statement. * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_external_table_statement) statement. * `DROP_VIEW`: [`DROP VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement) statement. * `DROP_MODEL`: [`DROP MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-drop-model) statement. * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_materialized_view_statement) statement. * `DROP_FUNCTION` : [`DROP FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_function_statement) statement. * `DROP_TABLE_FUNCTION` : [`DROP TABLE FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function) statement. * `DROP_PROCEDURE`: [`DROP PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_procedure_statement) statement. * `DROP_SEARCH_INDEX`: [`DROP SEARCH INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index) statement. * `DROP_SCHEMA`: [`DROP SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_schema_statement) statement. * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_snapshot_table_statement) statement. * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW ACCESS POLICY|POLICIES`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_row_access_policy_statement) statement. * `ALTER_TABLE`: [`ALTER TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#alter_table_set_options_statement) statement. * `ALTER_VIEW`: [`ALTER VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#alter_view_set_options_statement) statement. * `ALTER_MATERIALIZED_VIEW`: [`ALTER MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`ALTER SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-language#aalter_schema_set_options_statement) statement. * `SCRIPT`: [`SCRIPT`](/bigquery/docs/reference/standard-sql/procedural-language). * `TRUNCATE_TABLE`: [`TRUNCATE TABLE`](/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement) statement. * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_external_table_statement) statement. * `EXPORT_DATA`: [`EXPORT DATA`](/bigquery/docs/reference/standard-sql/other-statements#export_data_statement) statement. * `EXPORT_MODEL`: [`EXPORT MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-export-model) statement. * `LOAD_DATA`: [`LOAD DATA`](/bigquery/docs/reference/standard-sql/other-statements#load_data_statement) statement. * `CALL`: [`CALL`](/bigquery/docs/reference/standard-sql/procedural-language#call) statement. */
1228
1323
  statementType?: string;
1229
- /** [Output only] [Beta] Describes a timeline of job execution. */
1324
+ /** Output only. Describes a timeline of job execution. */
1230
1325
  timeline?: QueryTimelineSample[];
1231
- /** [Output only] Total bytes billed for the job. */
1326
+ /** Output only. If the project is configured to use on-demand pricing, then this field contains the total bytes billed for the job. If the project is configured to use flat-rate pricing, then you are not billed for bytes and this field is informational only. */
1232
1327
  totalBytesBilled?: string;
1233
- /** [Output only] Total bytes processed for the job. */
1328
+ /** Output only. Total bytes processed for the job. */
1234
1329
  totalBytesProcessed?: string;
1235
- /** [Output only] For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown. PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would cost. UPPER_BOUND: estimate is upper bound of what the query would cost. */
1330
+ /** Output only. For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown. PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would cost. UPPER_BOUND: estimate is upper bound of what the query would cost. */
1236
1331
  totalBytesProcessedAccuracy?: string;
1237
- /** [Output only] Total number of partitions processed from all partitioned tables referenced in the job. */
1332
+ /** Output only. Total number of partitions processed from all partitioned tables referenced in the job. */
1238
1333
  totalPartitionsProcessed?: string;
1239
- /** [Output only] Slot-milliseconds for the job. */
1334
+ /** Output only. Slot-milliseconds for the job. */
1240
1335
  totalSlotMs?: string;
1241
- /** [Output-only] Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and CREATE TABLE AS SELECT (CTAS). */
1336
+ /** Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and CREATE TABLE AS SELECT (CTAS). */
1242
1337
  transferredBytes?: string;
1243
- /** Standard SQL only: list of undeclared query parameters detected during a dry run validation. */
1338
+ /** Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run validation. */
1244
1339
  undeclaredQueryParameters?: QueryParameter[];
1340
+ /** Output only. Vector Search query specific statistics. */
1341
+ vectorSearchStatistics?: VectorSearchStatistics;
1245
1342
  }
1246
1343
  interface JobStatistics3 {
1247
- /** [Output-only] The number of bad records encountered. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data. */
1344
+ /** Output only. The number of bad records encountered. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data. */
1248
1345
  badRecords?: string;
1249
- /** [Output-only] Number of bytes of source data in a load job. */
1346
+ /** Output only. Number of bytes of source data in a load job. */
1250
1347
  inputFileBytes?: string;
1251
- /** [Output-only] Number of source files in a load job. */
1348
+ /** Output only. Number of source files in a load job. */
1252
1349
  inputFiles?: string;
1253
- /** [Output-only] Size of the loaded data in bytes. Note that while a load job is in the running state, this value may change. */
1350
+ /** Output only. Size of the loaded data in bytes. Note that while a load job is in the running state, this value may change. */
1254
1351
  outputBytes?: string;
1255
- /** [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change. */
1352
+ /** Output only. Number of rows imported in a load job. Note that while an import job is in the running state, this value may change. */
1256
1353
  outputRows?: string;
1354
+ /** Output only. Describes a timeline of job execution. */
1355
+ timeline?: QueryTimelineSample[];
1257
1356
  }
1258
1357
  interface JobStatistics4 {
1259
- /** [Output-only] Number of files per destination URI or URI pattern specified in the extract configuration. These values will be in the same order as the URIs specified in the 'destinationUris' field. */
1358
+ /** Output only. Number of files per destination URI or URI pattern specified in the extract configuration. These values will be in the same order as the URIs specified in the 'destinationUris' field. */
1260
1359
  destinationUriFileCounts?: string[];
1261
- /** [Output-only] Number of user bytes extracted into the result. This is the byte count as computed by BigQuery for billing purposes. */
1360
+ /** Output only. Number of user bytes extracted into the result. This is the byte count as computed by BigQuery for billing purposes and doesn't have any relationship with the number of actual result bytes extracted in the desired format. */
1262
1361
  inputBytes?: string;
1362
+ /** Output only. Describes a timeline of job execution. */
1363
+ timeline?: QueryTimelineSample[];
1263
1364
  }
1264
1365
  interface JobStatistics5 {
1265
- /** [Output-only] Number of logical bytes copied to the destination table. */
1366
+ /** Output only. Number of logical bytes copied to the destination table. */
1266
1367
  copiedLogicalBytes?: string;
1267
- /** [Output-only] Number of rows copied to the destination table. */
1368
+ /** Output only. Number of rows copied to the destination table. */
1268
1369
  copiedRows?: string;
1269
1370
  }
1270
1371
  interface JobStatus {
1271
- /** [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful. */
1372
+ /** Output only. Final error result of the job. If present, indicates that the job has completed and was unsuccessful. */
1272
1373
  errorResult?: ErrorProto;
1273
- /** [Output-only] The first errors encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. */
1374
+ /** Output only. The first errors encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has not completed or was unsuccessful. */
1274
1375
  errors?: ErrorProto[];
1275
- /** [Output-only] Running state of the job. */
1376
+ /** Output only. Running state of the job. Valid states include 'PENDING', 'RUNNING', and 'DONE'. */
1276
1377
  state?: string;
1277
1378
  }
1278
1379
  interface JsonObject {
1279
1380
  [key: string]: any;
1280
1381
  }
1281
1382
  interface JsonOptions {
1282
- /** [Optional] The character encoding of the data. The supported values are UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. */
1383
+ /** Optional. The character encoding of the data. The supported values are UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. */
1283
1384
  encoding?: string;
1284
1385
  }
1285
1386
  interface JsonValue {}
1387
+ interface LinkedDatasetSource {
1388
+ /** The source dataset reference contains project numbers and not project ids. */
1389
+ sourceDataset?: DatasetReference;
1390
+ }
1286
1391
  interface ListModelsResponse {
1287
1392
  /** Models in the requested dataset. Only the following fields are populated: model_reference, model_type, creation_time, last_modified_time and labels. */
1288
1393
  models?: Model[];
@@ -1301,29 +1406,73 @@ declare namespace gapi.client {
1301
1406
  /** Row access policies on the requested table. */
1302
1407
  rowAccessPolicies?: RowAccessPolicy[];
1303
1408
  }
1409
+ interface LoadQueryStatistics {
1410
+ /** Output only. The number of bad records encountered while processing a LOAD query. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data. */
1411
+ badRecords?: string;
1412
+ /** Output only. This field is deprecated. The number of bytes of source data copied over the network for a `LOAD` query. `transferred_bytes` has the canonical value for physical transferred bytes, which is used for BigQuery Omni billing. */
1413
+ bytesTransferred?: string;
1414
+ /** Output only. Number of bytes of source data in a LOAD query. */
1415
+ inputFileBytes?: string;
1416
+ /** Output only. Number of source files in a LOAD query. */
1417
+ inputFiles?: string;
1418
+ /** Output only. Size of the loaded data in bytes. Note that while a LOAD query is in the running state, this value may change. */
1419
+ outputBytes?: string;
1420
+ /** Output only. Number of rows imported in a LOAD query. Note that while a LOAD query is in the running state, this value may change. */
1421
+ outputRows?: string;
1422
+ }
1304
1423
  interface LocationMetadata {
1305
1424
  /** The legacy BigQuery location ID, e.g. “EU” for the “europe” location. This is for any API consumers that need the legacy “US” and “EU” locations. */
1306
1425
  legacyLocationId?: string;
1307
1426
  }
1427
+ interface MaterializedView {
1428
+ /** Whether the materialized view is chosen for the query. A materialized view can be chosen to rewrite multiple parts of the same query. If a materialized view is chosen to rewrite any part of the query, then this field is true, even if the materialized view was not chosen to rewrite others parts. */
1429
+ chosen?: boolean;
1430
+ /** If present, specifies a best-effort estimation of the bytes saved by using the materialized view rather than its base tables. */
1431
+ estimatedBytesSaved?: string;
1432
+ /** If present, specifies the reason why the materialized view was not chosen for the query. */
1433
+ rejectedReason?: string;
1434
+ /** The candidate materialized view. */
1435
+ tableReference?: TableReference;
1436
+ }
1308
1437
  interface MaterializedViewDefinition {
1309
- /** [Optional] Allow non incremental materialized view definition. The default value is "false". */
1438
+ /** Optional. This option declares authors intention to construct a materialized view that will not be refreshed incrementally. */
1310
1439
  allowNonIncrementalDefinition?: boolean;
1311
- /** [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". */
1440
+ /** Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". */
1312
1441
  enableRefresh?: boolean;
1313
- /** [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch. */
1442
+ /** Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch. */
1314
1443
  lastRefreshTime?: string;
1315
1444
  /** [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type). */
1316
1445
  maxStaleness?: string;
1317
- /** [Required] A query whose result is persisted. */
1446
+ /** Required. A query whose results are persisted. */
1318
1447
  query?: string;
1319
- /** [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes). */
1448
+ /** Optional. The maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes). */
1320
1449
  refreshIntervalMs?: string;
1321
1450
  }
1451
+ interface MaterializedViewStatistics {
1452
+ /** Materialized views considered for the query job. Only certain materialized views are used. For a detailed list, see the child message. If many materialized views are considered, then the list might be incomplete. */
1453
+ materializedView?: MaterializedView[];
1454
+ }
1455
+ interface MaterializedViewStatus {
1456
+ /** Output only. Error result of the last automatic refresh. If present, indicates that the last automatic refresh was unsuccessful. */
1457
+ lastRefreshStatus?: ErrorProto;
1458
+ /** Output only. Refresh watermark of materialized view. The base tables' data were collected into the materialized view cache until this time. */
1459
+ refreshWatermark?: string;
1460
+ }
1461
+ interface MetadataCacheStatistics {
1462
+ /** Set for the Metadata caching eligible tables referenced in the query. */
1463
+ tableMetadataCacheUsage?: TableMetadataCacheUsage[];
1464
+ }
1322
1465
  interface MlStatistics {
1323
- /** Results for all completed iterations. */
1466
+ /** Output only. Trials of a [hyperparameter tuning job](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) sorted by trial_id. */
1467
+ hparamTrials?: HparamTuningTrial[];
1468
+ /** Results for all completed iterations. Empty for [hyperparameter tuning jobs](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview). */
1324
1469
  iterationResults?: IterationResult[];
1325
- /** Maximum number of iterations specified as max_iterations in the 'CREATE MODEL' query. The actual number of iterations may be less than this number due to early stop. */
1470
+ /** Output only. Maximum number of iterations specified as max_iterations in the 'CREATE MODEL' query. The actual number of iterations may be less than this number due to early stop. */
1326
1471
  maxIterations?: string;
1472
+ /** Output only. The type of the model that is being trained. */
1473
+ modelType?: string;
1474
+ /** Output only. Training type of the job. */
1475
+ trainingType?: string;
1327
1476
  }
1328
1477
  interface Model {
1329
1478
  /** The best trial_id across all training runs. */
@@ -1370,15 +1519,19 @@ declare namespace gapi.client {
1370
1519
  transformColumns?: TransformColumn[];
1371
1520
  }
1372
1521
  interface ModelDefinition {
1373
- /** [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query. */
1522
+ /** Deprecated. */
1374
1523
  modelOptions?: {
1375
1524
  labels?: string[];
1376
1525
  lossType?: string;
1377
1526
  modelType?: string;
1378
1527
  };
1379
- /** [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query. */
1528
+ /** Deprecated. */
1380
1529
  trainingRuns?: BqmlTrainingRun[];
1381
1530
  }
1531
+ interface ModelExtractOptions {
1532
+ /** The 1-based ID of the trial to be exported from a hyperparameter tuning model. If not specified, the trial with id = [Model](/bigquery/docs/reference/rest/v2/models#resource:-model).defaultTrialId is exported. This field is ignored for models not trained with hyperparameter tuning. */
1533
+ trialId?: string;
1534
+ }
1382
1535
  interface ModelReference {
1383
1536
  /** Required. The ID of the dataset containing this model. */
1384
1537
  datasetId?: string;
@@ -1394,11 +1547,19 @@ declare namespace gapi.client {
1394
1547
  confusionMatrixList?: ConfusionMatrix[];
1395
1548
  }
1396
1549
  interface ParquetOptions {
1397
- /** [Optional] Indicates whether to use schema inference specifically for Parquet LIST logical type. */
1550
+ /** Optional. Indicates whether to use schema inference specifically for Parquet LIST logical type. */
1398
1551
  enableListInference?: boolean;
1399
- /** [Optional] Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. */
1552
+ /** Optional. Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. */
1400
1553
  enumAsString?: boolean;
1401
1554
  }
1555
+ interface PerformanceInsights {
1556
+ /** Output only. Average execution ms of previous runs. Indicates the job ran slow compared to previous executions. To find previous executions, use INFORMATION_SCHEMA tables and filter jobs with same query hash. */
1557
+ avgPreviousExecutionMs?: string;
1558
+ /** Output only. Query stage performance insights compared to previous runs, for diagnosing performance regression. */
1559
+ stagePerformanceChangeInsights?: StagePerformanceChangeInsight[];
1560
+ /** Output only. Standalone query stage performance insights, for exploring potential improvements. */
1561
+ stagePerformanceStandaloneInsights?: StagePerformanceStandaloneInsight[];
1562
+ }
1402
1563
  interface Policy {
1403
1564
  /** Specifies cloud audit logging configuration for this policy. */
1404
1565
  auditConfigs?: AuditConfig[];
@@ -1424,15 +1585,15 @@ declare namespace gapi.client {
1424
1585
  aggregationThresholdPolicy?: AggregationThresholdPolicy;
1425
1586
  }
1426
1587
  interface ProjectList {
1427
- /** A hash of the page of results */
1588
+ /** A hash of the page of results. */
1428
1589
  etag?: string;
1429
- /** The type of list. */
1590
+ /** The resource type of the response. */
1430
1591
  kind?: string;
1431
- /** A token to request the next page of results. */
1592
+ /** Use this token to request the next page of results. */
1432
1593
  nextPageToken?: string;
1433
- /** Projects to which you have at least READ access. */
1594
+ /** Projects to which the user has at least READ access. */
1434
1595
  projects?: Array<{
1435
- /** A descriptive name for this project. */
1596
+ /** A descriptive name for this project. A wrapper is used here because friendlyName can be set to the empty string. */
1436
1597
  friendlyName?: string;
1437
1598
  /** An opaque ID of this project. */
1438
1599
  id?: string;
@@ -1443,109 +1604,112 @@ declare namespace gapi.client {
1443
1604
  /** A unique reference to this project. */
1444
1605
  projectReference?: ProjectReference;
1445
1606
  }>;
1446
- /** The total number of projects in the list. */
1607
+ /** The total number of projects in the page. A wrapper is used here because the field should still be in the response when the value is 0. */
1447
1608
  totalItems?: number;
1448
1609
  }
1449
1610
  interface ProjectReference {
1450
- /** [Required] ID of the project. Can be either the numeric ID or the assigned ID of the project. */
1611
+ /** Required. ID of the project. Can be either the numeric ID or the assigned ID of the project. */
1451
1612
  projectId?: string;
1452
1613
  }
1614
+ interface QueryInfo {
1615
+ /** Output only. Information about query optimizations. */
1616
+ optimizationDetails?: {[P in string]: any};
1617
+ }
1453
1618
  interface QueryParameter {
1454
- /** [Optional] If unset, this is a positional parameter. Otherwise, should be unique within a query. */
1619
+ /** Optional. If unset, this is a positional parameter. Otherwise, should be unique within a query. */
1455
1620
  name?: string;
1456
- /** [Required] The type of this parameter. */
1621
+ /** Required. The type of this parameter. */
1457
1622
  parameterType?: QueryParameterType;
1458
- /** [Required] The value of this parameter. */
1623
+ /** Required. The value of this parameter. */
1459
1624
  parameterValue?: QueryParameterValue;
1460
1625
  }
1461
1626
  interface QueryParameterType {
1462
- /** [Optional] The type of the array's elements, if this is an array. */
1627
+ /** Optional. The type of the array's elements, if this is an array. */
1463
1628
  arrayType?: QueryParameterType;
1464
- /** [Optional] The element type of the range, if this is a range. */
1629
+ /** Optional. The element type of the range, if this is a range. */
1465
1630
  rangeElementType?: QueryParameterType;
1466
- /** [Optional] The types of the fields of this struct, in order, if this is a struct. */
1631
+ /** Optional. The types of the fields of this struct, in order, if this is a struct. */
1467
1632
  structTypes?: Array<{
1468
- /** [Optional] Human-oriented description of the field. */
1633
+ /** Optional. Human-oriented description of the field. */
1469
1634
  description?: string;
1470
- /** [Optional] The name of this field. */
1635
+ /** Optional. The name of this field. */
1471
1636
  name?: string;
1472
- /** [Required] The type of this field. */
1637
+ /** Required. The type of this field. */
1473
1638
  type?: QueryParameterType;
1474
1639
  }>;
1475
- /** [Required] The top level type of this field. */
1640
+ /** Required. The top level type of this field. */
1476
1641
  type?: string;
1477
1642
  }
1478
1643
  interface QueryParameterValue {
1479
- /** [Optional] The array values, if this is an array type. */
1644
+ /** Optional. The array values, if this is an array type. */
1480
1645
  arrayValues?: QueryParameterValue[];
1481
- /** [Optional] The range value, if this is a range type. */
1482
- rangeValue?: {
1483
- end?: QueryParameterValue;
1484
- start?: QueryParameterValue;
1485
- };
1486
- /** [Optional] The struct field values, in order of the struct type's declaration. */
1646
+ /** Optional. The range value, if this is a range type. */
1647
+ rangeValue?: RangeValue;
1648
+ /** The struct field values. */
1487
1649
  structValues?: {[P in string]: QueryParameterValue};
1488
- /** [Optional] The value of this value, if a simple scalar type. */
1650
+ /** Optional. The value of this value, if a simple scalar type. */
1489
1651
  value?: string;
1490
1652
  }
1491
1653
  interface QueryRequest {
1492
- /** Connection properties. */
1654
+ /** Optional. Connection properties which can modify the query behavior. */
1493
1655
  connectionProperties?: ConnectionProperty[];
1494
1656
  /** [Optional] Specifies whether the query should be executed as a continuous query. The default value is false. */
1495
1657
  continuous?: boolean;
1496
- /** If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode. */
1658
+ /** Optional. If true, creates a new session using a randomly generated session_id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode. The session location will be set to QueryRequest.location if it is present, otherwise it's set to the default location based on existing routing logic. */
1497
1659
  createSession?: boolean;
1498
- /** [Optional] Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. */
1660
+ /** Optional. Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. */
1499
1661
  defaultDataset?: DatasetReference;
1500
- /** [Optional] If set to true, BigQuery doesn't run the job. Instead, if the query is valid, BigQuery returns statistics about the job such as how many bytes would be processed. If the query is invalid, an error returns. The default value is false. */
1662
+ /** Optional. If set to true, BigQuery doesn't run the job. Instead, if the query is valid, BigQuery returns statistics about the job such as how many bytes would be processed. If the query is invalid, an error returns. The default value is false. */
1501
1663
  dryRun?: boolean;
1664
+ /** Optional. Output format adjustments. */
1665
+ formatOptions?: DataFormatOptions;
1502
1666
  /** Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. This feature is not yet available. Jobs will always be created. */
1503
1667
  jobCreationMode?: string;
1504
1668
  /** The resource type of the request. */
1505
1669
  kind?: string;
1506
- /** The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. */
1670
+ /** Optional. The labels associated with this query. Labels can be used to organize and group query jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label keys must start with a letter and each label in the list must have a different key. */
1507
1671
  labels?: {[P in string]: string};
1508
1672
  /** The geographic location where the job should run. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
1509
1673
  location?: string;
1510
- /** [Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default. */
1674
+ /** Optional. Limits the bytes billed for this query. Queries with bytes billed above this limit will fail (without incurring a charge). If unspecified, the project default is used. */
1511
1675
  maximumBytesBilled?: string;
1512
- /** [Optional] The maximum number of rows of data to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. In addition to this limit, responses are also limited to 10 MB. By default, there is no maximum row count, and only the byte limit applies. */
1676
+ /** Optional. The maximum number of rows of data to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. In addition to this limit, responses are also limited to 10 MB. By default, there is no maximum row count, and only the byte limit applies. */
1513
1677
  maxResults?: number;
1514
- /** Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. */
1678
+ /** GoogleSQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. */
1515
1679
  parameterMode?: string;
1516
- /** [Deprecated] This property is deprecated. */
1680
+ /** This property is deprecated. */
1517
1681
  preserveNulls?: boolean;
1518
- /** [Required] A query string, following the BigQuery query syntax, of the query to execute. Example: "SELECT count(f1) FROM [myProjectId:myDatasetId.myTableId]". */
1682
+ /** Required. A query string to execute, using Google Standard SQL or legacy SQL syntax. Example: "SELECT COUNT(f1) FROM myProjectId.myDatasetId.myTableId". */
1519
1683
  query?: string;
1520
- /** Query parameters for Standard SQL queries. */
1684
+ /** Query parameters for GoogleSQL queries. */
1521
1685
  queryParameters?: QueryParameter[];
1522
- /** A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of the previous request, all parameters in the request that may affect the behavior are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed. */
1686
+ /** Optional. A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of another request, all parameters in the request that may affect the result are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed. */
1523
1687
  requestId?: string;
1524
- /** [Optional] How long to wait for the query to complete, in milliseconds, before the request times out and returns. Note that this is only a timeout for the request, not the query. If the query takes longer to run than the timeout value, the call returns without any results and with the 'jobComplete' flag set to false. You can call GetQueryResults() to wait for the query to complete and read the results. The default value is 10000 milliseconds (10 seconds). */
1688
+ /** Optional. Optional: Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false. You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true. */
1525
1689
  timeoutMs?: number;
1526
- /** Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false. */
1690
+ /** Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's GoogleSQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false. */
1527
1691
  useLegacySql?: boolean;
1528
- /** [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. The default value is true. */
1692
+ /** Optional. Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. The default value is true. */
1529
1693
  useQueryCache?: boolean;
1530
1694
  }
1531
1695
  interface QueryResponse {
1532
1696
  /** Whether the query result was fetched from the query cache. */
1533
1697
  cacheHit?: boolean;
1534
- /** [Output-only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE. */
1698
+ /** Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE. */
1535
1699
  dmlStats?: DmlStatistics;
1536
- /** [Output-only] The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. */
1700
+ /** Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages). */
1537
1701
  errors?: ErrorProto[];
1538
1702
  /** Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available. */
1539
1703
  jobComplete?: boolean;
1540
1704
  /** Optional. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. When job_reference is present, this field should be interpreted as follows: If set, it will provide the reason of why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always be created. */
1541
- jobCreationReason?: any;
1705
+ jobCreationReason?: JobCreationReason;
1542
1706
  /** Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults). */
1543
1707
  jobReference?: JobReference;
1544
1708
  /** The resource type. */
1545
1709
  kind?: string;
1546
- /** [Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
1710
+ /** Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
1547
1711
  numDmlAffectedRows?: string;
1548
- /** A token used for paging results. */
1712
+ /** A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults) method. For more information, see [Paging through table data](https://cloud.google.com/bigquery/docs/paging-results). */
1549
1713
  pageToken?: string;
1550
1714
  /** Query ID for the completed query. This ID will be auto-generated. This field is not yet available and it is currently not guaranteed to be populated. */
1551
1715
  queryId?: string;
@@ -1553,7 +1717,7 @@ declare namespace gapi.client {
1553
1717
  rows?: TableRow[];
1554
1718
  /** The schema of the results. Present only when the query completes successfully. */
1555
1719
  schema?: TableSchema;
1556
- /** [Output-only] [Preview] Information of the session if this job is part of one. */
1720
+ /** Output only. Information of the session if this job is part of one. */
1557
1721
  sessionInfo?: SessionInfo;
1558
1722
  /** The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run. */
1559
1723
  totalBytesProcessed?: string;
@@ -1561,13 +1725,13 @@ declare namespace gapi.client {
1561
1725
  totalRows?: string;
1562
1726
  }
1563
1727
  interface QueryTimelineSample {
1564
- /** Total number of units currently being processed by workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample. */
1728
+ /** Total number of active workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample. */
1565
1729
  activeUnits?: string;
1566
1730
  /** Total parallel units of work completed by this query. */
1567
1731
  completedUnits?: string;
1568
1732
  /** Milliseconds elapsed since the start of query execution. */
1569
1733
  elapsedMs?: string;
1570
- /** Units of work that can be scheduled immediately. Providing additional slots for these units of work will speed up the query, provided no other query in the reservation needs additional slots. */
1734
+ /** Units of work that can be scheduled immediately. Providing additional slots for these units of work will accelerate the query, if no other query in the reservation needs additional slots. */
1571
1735
  estimatedRunnableUnits?: string;
1572
1736
  /** Total units of work remaining for the query. This number can be revised (increased or decreased) while the query is running. */
1573
1737
  pendingUnits?: string;
@@ -1575,15 +1739,15 @@ declare namespace gapi.client {
1575
1739
  totalSlotMs?: string;
1576
1740
  }
1577
1741
  interface RangePartitioning {
1578
- /** [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64. */
1742
+ /** Required. [Experimental] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64. */
1579
1743
  field?: string;
1580
- /** [TrustedTester] [Required] Defines the ranges for range partitioning. */
1744
+ /** [Experimental] Defines the ranges for range partitioning. */
1581
1745
  range?: {
1582
- /** [TrustedTester] [Required] The end of range partitioning, exclusive. */
1746
+ /** [Experimental] The end of range partitioning, exclusive. */
1583
1747
  end?: string;
1584
- /** [TrustedTester] [Required] The width of each interval. */
1748
+ /** [Experimental] The width of each interval. */
1585
1749
  interval?: string;
1586
- /** [TrustedTester] [Required] The start of range partitioning, inclusive. */
1750
+ /** [Experimental] The start of range partitioning, inclusive. */
1587
1751
  start?: string;
1588
1752
  };
1589
1753
  }
@@ -1714,37 +1878,45 @@ declare namespace gapi.client {
1714
1878
  tableId?: string;
1715
1879
  }
1716
1880
  interface RowLevelSecurityStatistics {
1717
- /** [Output-only] [Preview] Whether any accessed data was protected by row access policies. */
1881
+ /** Whether any accessed data was protected by row access policies. */
1718
1882
  rowLevelSecurityApplied?: boolean;
1719
1883
  }
1884
+ interface ScriptOptions {
1885
+ /** Determines which statement in the script represents the "key result", used to populate the schema and query results of the script job. Default is LAST. */
1886
+ keyResultStatement?: string;
1887
+ /** Limit on the number of bytes billed per statement. Exceeding this budget results in an error. */
1888
+ statementByteBudget?: string;
1889
+ /** Timeout period for each statement in a script. */
1890
+ statementTimeoutMs?: string;
1891
+ }
1720
1892
  interface ScriptStackFrame {
1721
- /** [Output-only] One-based end column. */
1893
+ /** Output only. One-based end column. */
1722
1894
  endColumn?: number;
1723
- /** [Output-only] One-based end line. */
1895
+ /** Output only. One-based end line. */
1724
1896
  endLine?: number;
1725
- /** [Output-only] Name of the active procedure, empty if in a top-level script. */
1897
+ /** Output only. Name of the active procedure, empty if in a top-level script. */
1726
1898
  procedureId?: string;
1727
- /** [Output-only] One-based start column. */
1899
+ /** Output only. One-based start column. */
1728
1900
  startColumn?: number;
1729
- /** [Output-only] One-based start line. */
1901
+ /** Output only. One-based start line. */
1730
1902
  startLine?: number;
1731
- /** [Output-only] Text of the current statement/expression. */
1903
+ /** Output only. Text of the current statement/expression. */
1732
1904
  text?: string;
1733
1905
  }
1734
1906
  interface ScriptStatistics {
1735
- /** [Output-only] Whether this child job was a statement or expression. */
1907
+ /** Whether this child job was a statement or expression. */
1736
1908
  evaluationKind?: string;
1737
1909
  /** Stack trace showing the line/column/procedure name of each frame on the stack at the point where the current evaluation happened. The leaf frame is first, the primary script is last. Never empty. */
1738
1910
  stackFrames?: ScriptStackFrame[];
1739
1911
  }
1740
1912
  interface SearchStatistics {
1741
- /** When index_usage_mode is UNUSED or PARTIALLY_USED, this field explains why index was not used in all or part of the search query. If index_usage_mode is FULLLY_USED, this field is not populated. */
1913
+ /** When `indexUsageMode` is `UNUSED` or `PARTIALLY_USED`, this field explains why indexes were not used in all or part of the search query. If `indexUsageMode` is `FULLY_USED`, this field is not populated. */
1742
1914
  indexUnusedReasons?: IndexUnusedReason[];
1743
- /** Specifies index usage mode for the query. */
1915
+ /** Specifies the index usage mode for the query. */
1744
1916
  indexUsageMode?: string;
1745
1917
  }
1746
1918
  interface SessionInfo {
1747
- /** [Output-only] // [Preview] Id of the session. */
1919
+ /** Output only. The id of the session. */
1748
1920
  sessionId?: string;
1749
1921
  }
1750
1922
  interface SetIamPolicyRequest {
@@ -1754,15 +1926,15 @@ declare namespace gapi.client {
1754
1926
  updateMask?: string;
1755
1927
  }
1756
1928
  interface SnapshotDefinition {
1757
- /** [Required] Reference describing the ID of the table that was snapshot. */
1929
+ /** Required. Reference describing the ID of the table that was snapshot. */
1758
1930
  baseTableReference?: TableReference;
1759
- /** [Required] The time at which the base table was snapshot. This value is reported in the JSON response using RFC3339 format. */
1931
+ /** Required. The time at which the base table was snapshot. This value is reported in the JSON response using RFC3339 format. */
1760
1932
  snapshotTime?: string;
1761
1933
  }
1762
1934
  interface SparkLoggingInfo {
1763
- /** [Output-only] Project ID used for logging */
1935
+ /** Output only. Project ID where the Spark logs were written. */
1764
1936
  projectId?: string;
1765
- /** [Output-only] Resource type used for logging */
1937
+ /** Output only. Resource type used for logging. */
1766
1938
  resourceType?: string;
1767
1939
  }
1768
1940
  interface SparkOptions {
@@ -1788,15 +1960,37 @@ declare namespace gapi.client {
1788
1960
  runtimeVersion?: string;
1789
1961
  }
1790
1962
  interface SparkStatistics {
1791
- /** [Output-only] Endpoints generated for the Spark job. */
1963
+ /** Output only. Endpoints returned from Dataproc. Key list: - history_server_endpoint: A link to Spark job UI. */
1792
1964
  endpoints?: {[P in string]: string};
1793
- /** [Output-only] Logging info is used to generate a link to Cloud Logging. */
1965
+ /** Output only. The Google Cloud Storage bucket that is used as the default filesystem by the Spark application. This fields is only filled when the Spark procedure uses the INVOKER security mode. It is inferred from the system variable @@spark_proc_properties.staging_bucket if it is provided. Otherwise, BigQuery creates a default staging bucket for the job and returns the bucket name in this field. Example: * `gs://[bucket_name]` */
1966
+ gcsStagingBucket?: string;
1967
+ /** Output only. The Cloud KMS encryption key that is used to protect the resources created by the Spark job. If the Spark procedure uses DEFINER security mode, the Cloud KMS key is inferred from the Spark connection associated with the procedure if it is provided. Otherwise the key is inferred from the default key of the Spark connection's project if the CMEK organization policy is enforced. If the Spark procedure uses INVOKER security mode, the Cloud KMS encryption key is inferred from the system variable @@spark_proc_properties.kms_key_name if it is provided. Otherwise, the key is inferred fromt he default key of the BigQuery job's project if the CMEK organization policy is enforced. Example: * `projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]` */
1968
+ kmsKeyName?: string;
1969
+ /** Output only. Logging info is used to generate a link to Cloud Logging. */
1794
1970
  loggingInfo?: SparkLoggingInfo;
1795
- /** [Output-only] Spark job id if a Spark job is created successfully. */
1971
+ /** Output only. Spark job ID if a Spark job is created successfully. */
1796
1972
  sparkJobId?: string;
1797
- /** [Output-only] Location where the Spark job is executed. */
1973
+ /** Output only. Location where the Spark job is executed. A location is selected by BigQueury for jobs configured to run in a multi-region. */
1798
1974
  sparkJobLocation?: string;
1799
1975
  }
1976
+ interface StagePerformanceChangeInsight {
1977
+ /** Output only. Input data change insight of the query stage. */
1978
+ inputDataChange?: InputDataChange;
1979
+ /** Output only. The stage id that the insight mapped to. */
1980
+ stageId?: string;
1981
+ }
1982
+ interface StagePerformanceStandaloneInsight {
1983
+ /** Output only. If present, the stage had the following reasons for being disqualified from BI Engine execution. */
1984
+ biEngineReasons?: BiEngineReason[];
1985
+ /** Output only. High cardinality joins in the stage. */
1986
+ highCardinalityJoins?: HighCardinalityJoin[];
1987
+ /** Output only. True if the stage has insufficient shuffle quota. */
1988
+ insufficientShuffleQuota?: boolean;
1989
+ /** Output only. True if the stage has a slot contention issue. */
1990
+ slotContention?: boolean;
1991
+ /** Output only. The stage id that the insight mapped to. */
1992
+ stageId?: string;
1993
+ }
1800
1994
  interface StandardSqlDataType {
1801
1995
  /** The type of the array's elements, if type_kind = "ARRAY". */
1802
1996
  arrayElementType?: StandardSqlDataType;
@@ -1822,117 +2016,133 @@ declare namespace gapi.client {
1822
2016
  columns?: StandardSqlField[];
1823
2017
  }
1824
2018
  interface Streamingbuffer {
1825
- /** [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer. */
2019
+ /** Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer. */
1826
2020
  estimatedBytes?: string;
1827
- /** [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer. */
2021
+ /** Output only. A lower-bound estimate of the number of rows currently in the streaming buffer. */
1828
2022
  estimatedRows?: string;
1829
- /** [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available. */
2023
+ /** Output only. Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available. */
1830
2024
  oldestEntryTime?: string;
1831
2025
  }
1832
2026
  interface StringHparamSearchSpace {
1833
2027
  /** Canididates for the string or enum parameter in lower case. */
1834
2028
  candidates?: string[];
1835
2029
  }
2030
+ interface SystemVariables {
2031
+ /** Output only. Data type for each system variable. */
2032
+ types?: {[P in string]: StandardSqlDataType};
2033
+ /** Output only. Value for each system variable. */
2034
+ values?: {[P in string]: any};
2035
+ }
1836
2036
  interface Table {
1837
- /** [Optional] Specifies the configuration of a BigLake managed table. */
2037
+ /** Optional. Specifies the configuration of a BigLake managed table. */
1838
2038
  biglakeConfiguration?: BigLakeConfiguration;
1839
- /** [Output-only] Clone definition. */
2039
+ /** Output only. Contains information about the clone. This value is set via the clone operation. */
1840
2040
  cloneDefinition?: CloneDefinition;
1841
- /** [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered. */
2041
+ /** Clustering specification for the table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered. */
1842
2042
  clustering?: Clustering;
1843
- /** [Output-only] The time when this table was created, in milliseconds since the epoch. */
2043
+ /** Output only. The time when this table was created, in milliseconds since the epoch. */
1844
2044
  creationTime?: string;
1845
- /** [Output-only] The default collation of the table. */
2045
+ /** Optional. Defines the default collation specification of new STRING fields in the table. During table creation or update, if a STRING field is added to this table without explicit collation specified, then the table inherits the table default collation. A change to this field affects only fields added afterwards, and does not alter the existing fields. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. */
1846
2046
  defaultCollation?: string;
1847
- /** [Output-only] The default rounding mode of the table. */
2047
+ /** Optional. Defines the default rounding mode specification of new decimal fields (NUMERIC OR BIGNUMERIC) in the table. During table creation or update, if a decimal field is added to this table without an explicit rounding mode specified, then the field inherits the table default rounding mode. Changing this field doesn't affect existing fields. */
1848
2048
  defaultRoundingMode?: string;
1849
- /** [Optional] A user-friendly description of this table. */
2049
+ /** Optional. A user-friendly description of this table. */
1850
2050
  description?: string;
1851
2051
  /** Custom encryption configuration (e.g., Cloud KMS keys). */
1852
2052
  encryptionConfiguration?: EncryptionConfiguration;
1853
- /** [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change. */
2053
+ /** Output only. A hash of this resource. */
1854
2054
  etag?: string;
1855
- /** [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables. */
2055
+ /** Optional. The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables. */
1856
2056
  expirationTime?: string;
1857
- /** [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. */
2057
+ /** Optional. Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. */
1858
2058
  externalDataConfiguration?: ExternalDataConfiguration;
1859
- /** [Optional] A descriptive name for this table. */
2059
+ /** Optional. A descriptive name for this table. */
1860
2060
  friendlyName?: string;
1861
- /** [Output-only] An opaque ID uniquely identifying the table. */
2061
+ /** Output only. An opaque ID uniquely identifying the table. */
1862
2062
  id?: string;
1863
- /** [Output-only] The type of the resource. */
2063
+ /** The type of resource ID. */
1864
2064
  kind?: string;
1865
2065
  /** The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. */
1866
2066
  labels?: {[P in string]: string};
1867
- /** [Output-only] The time when this table was last modified, in milliseconds since the epoch. */
2067
+ /** Output only. The time when this table was last modified, in milliseconds since the epoch. */
1868
2068
  lastModifiedTime?: string;
1869
- /** [Output-only] The geographic location where the table resides. This value is inherited from the dataset. */
2069
+ /** Output only. The geographic location where the table resides. This value is inherited from the dataset. */
1870
2070
  location?: string;
1871
- /** [Optional] Materialized view definition. */
2071
+ /** Optional. The materialized view definition. */
1872
2072
  materializedView?: MaterializedViewDefinition;
1873
- /** [Optional] Max staleness of data that could be returned when table or materialized view is queried (formatted as Google SQL Interval type). */
2073
+ /** Output only. The materialized view status. */
2074
+ materializedViewStatus?: MaterializedViewStatus;
2075
+ /** Optional. The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type. */
1874
2076
  maxStaleness?: string;
1875
- /** [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run 'PREDICT' queries. */
2077
+ /** Deprecated. */
1876
2078
  model?: ModelDefinition;
1877
- /** [Output-only] Number of logical bytes that are less than 90 days old. */
2079
+ /** Output only. Number of logical bytes that are less than 90 days old. */
1878
2080
  numActiveLogicalBytes?: string;
1879
- /** [Output-only] Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
2081
+ /** Output only. Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
1880
2082
  numActivePhysicalBytes?: string;
1881
- /** [Output-only] The size of this table in bytes, excluding any data in the streaming buffer. */
2083
+ /** Output only. The size of this table in logical bytes, excluding any data in the streaming buffer. */
1882
2084
  numBytes?: string;
1883
- /** [Output-only] The number of bytes in the table that are considered "long-term storage". */
2085
+ /** Output only. The number of logical bytes in the table that are considered "long-term storage". */
1884
2086
  numLongTermBytes?: string;
1885
- /** [Output-only] Number of logical bytes that are more than 90 days old. */
2087
+ /** Output only. Number of logical bytes that are more than 90 days old. */
1886
2088
  numLongTermLogicalBytes?: string;
1887
- /** [Output-only] Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
2089
+ /** Output only. Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
1888
2090
  numLongTermPhysicalBytes?: string;
1889
- /** [Output-only] The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
2091
+ /** Output only. The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
1890
2092
  numPartitions?: string;
1891
- /** [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel. */
2093
+ /** Output only. The physical size of this table in bytes. This includes storage used for time travel. */
1892
2094
  numPhysicalBytes?: string;
1893
- /** [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer. */
2095
+ /** Output only. The number of rows of data in this table, excluding any data in the streaming buffer. */
1894
2096
  numRows?: string;
1895
- /** [Output-only] Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
2097
+ /** Output only. Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
1896
2098
  numTimeTravelPhysicalBytes?: string;
1897
- /** [Output-only] Total number of logical bytes in the table or materialized view. */
2099
+ /** Output only. Total number of logical bytes in the table or materialized view. */
1898
2100
  numTotalLogicalBytes?: string;
1899
- /** [Output-only] The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
2101
+ /** Output only. The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
1900
2102
  numTotalPhysicalBytes?: string;
1901
- /** [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. */
2103
+ /** If specified, configures range partitioning for this table. */
1902
2104
  rangePartitioning?: RangePartitioning;
1903
- /** [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. */
2105
+ /** Optional. Output only. Table references of all replicas currently active on the table. */
2106
+ replicas?: TableReference[];
2107
+ /** Optional. If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. */
1904
2108
  requirePartitionFilter?: boolean;
1905
2109
  /** [Optional] The tags associated with this table. Tag keys are globally unique. See additional information on [tags](https://cloud.google.com/iam/docs/tags-access-control#definitions). An object containing a list of "key": value pairs. The key is the namespaced friendly name of the tag key, e.g. "12345/environment" where 12345 is parent id. The value is the friendly short name of the tag value, e.g. "production". */
1906
2110
  resourceTags?: {[P in string]: string};
1907
- /** [Optional] Describes the schema of this table. */
2111
+ /** Optional. Describes the schema of this table. */
1908
2112
  schema?: TableSchema;
1909
- /** [Output-only] A URL that can be used to access this resource again. */
2113
+ /** Output only. A URL that can be used to access this resource again. */
1910
2114
  selfLink?: string;
1911
- /** [Output-only] Snapshot definition. */
2115
+ /** Output only. Contains information about the snapshot. This value is set via snapshot creation. */
1912
2116
  snapshotDefinition?: SnapshotDefinition;
1913
- /** [Output-only] Contains information regarding this table's streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer. */
2117
+ /** Output only. Contains information regarding this table's streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer. */
1914
2118
  streamingBuffer?: Streamingbuffer;
1915
- /** [Optional] The table constraints on the table. */
2119
+ /** Optional. Tables Primary Key and Foreign Key information */
1916
2120
  tableConstraints?: TableConstraints;
1917
- /** [Required] Reference describing the ID of this table. */
2121
+ /** Required. Reference describing the ID of this table. */
1918
2122
  tableReference?: TableReference;
1919
- /** Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. */
2123
+ /** Optional. Table replication info for table created `AS REPLICA` DDL like: `CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv` */
2124
+ tableReplicationInfo?: TableReplicationInfo;
2125
+ /** If specified, configures time-based partitioning for this table. */
1920
2126
  timePartitioning?: TimePartitioning;
1921
- /** [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. SNAPSHOT: An immutable, read-only table that is a copy of another table. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE. */
2127
+ /** Output only. Describes the table type. The following values are supported: * `TABLE`: A normal BigQuery table. * `VIEW`: A virtual table defined by a SQL query. * `EXTERNAL`: A table that references data stored in an external storage system, such as Google Cloud Storage. * `MATERIALIZED_VIEW`: A precomputed view defined by a SQL query. * `SNAPSHOT`: An immutable BigQuery table that preserves the contents of a base table at a particular time. See additional information on [table snapshots](/bigquery/docs/table-snapshots-intro). The default value is `TABLE`. */
1922
2128
  type?: string;
1923
- /** [Optional] The view definition. */
2129
+ /** Optional. The view definition. */
1924
2130
  view?: ViewDefinition;
1925
2131
  }
1926
2132
  interface TableCell {
1927
2133
  v?: any;
1928
2134
  }
1929
2135
  interface TableConstraints {
1930
- /** [Optional] The foreign keys of the tables. */
2136
+ /** Optional. Present only if the table has a foreign key. The foreign key is not enforced. */
1931
2137
  foreignKeys?: Array<{
2138
+ /** Required. The columns that compose the foreign key. */
1932
2139
  columnReferences?: Array<{
2140
+ /** Required. The column in the primary key that are referenced by the referencing_column. */
1933
2141
  referencedColumn?: string;
2142
+ /** Required. The column that composes the foreign key. */
1934
2143
  referencingColumn?: string;
1935
2144
  }>;
2145
+ /** Optional. Set only if the foreign key constraint is named. */
1936
2146
  name?: string;
1937
2147
  referencedTable?: {
1938
2148
  datasetId?: string;
@@ -1940,37 +2150,39 @@ declare namespace gapi.client {
1940
2150
  tableId?: string;
1941
2151
  };
1942
2152
  }>;
1943
- /** [Optional] The primary key of the table. */
2153
+ /** Represents the primary key constraint on a table's columns. */
1944
2154
  primaryKey?: {
2155
+ /** Required. The columns that are composed of the primary key constraint. */
1945
2156
  columns?: string[];
1946
2157
  };
1947
2158
  }
1948
2159
  interface TableDataInsertAllRequest {
1949
- /** [Optional] Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors. */
2160
+ /** Optional. Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors. */
1950
2161
  ignoreUnknownValues?: boolean;
1951
- /** The resource type of the response. */
2162
+ /** Optional. The resource type of the response. The value is not checked at the backend. Historically, it has been set to "bigquery#tableDataInsertAllRequest" but you are not required to set it. */
1952
2163
  kind?: string;
1953
- /** The rows to insert. */
1954
2164
  rows?: Array<{
1955
- /** [Optional] A unique ID for each row. BigQuery uses this property to detect duplicate insertion requests on a best-effort basis. */
2165
+ /** Insertion ID for best-effort deduplication. This feature is not recommended, and users seeking stronger insertion semantics are encouraged to use other mechanisms such as the BigQuery Write API. */
1956
2166
  insertId?: string;
1957
- /** [Required] A JSON object that contains a row of data. The object's properties and values must match the destination table's schema. */
2167
+ /** Data for a single row. */
1958
2168
  json?: JsonObject;
1959
2169
  }>;
1960
- /** [Optional] Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist. */
2170
+ /** Optional. Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist. */
1961
2171
  skipInvalidRows?: boolean;
1962
- /** If specified, treats the destination table as a base template, and inserts the rows into an instance table named "{destination}{templateSuffix}". BigQuery will manage creation of the instance table, using the schema of the base template table. See https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables for considerations when working with templates tables. */
2172
+ /** Optional. If specified, treats the destination table as a base template, and inserts the rows into an instance table named "{destination}{templateSuffix}". BigQuery will manage creation of the instance table, using the schema of the base template table. See https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables for considerations when working with templates tables. */
1963
2173
  templateSuffix?: string;
2174
+ /** Optional. Unique request trace id. Used for debugging purposes only. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. */
2175
+ traceId?: string;
1964
2176
  }
1965
2177
  interface TableDataInsertAllResponse {
1966
- /** An array of errors for rows that were not inserted. */
2178
+ /** Describes specific errors encountered while processing the request. */
1967
2179
  insertErrors?: Array<{
1968
2180
  /** Error information for the row indicated by the index property. */
1969
2181
  errors?: ErrorProto[];
1970
2182
  /** The index of the row that error applies to. */
1971
2183
  index?: number;
1972
2184
  }>;
1973
- /** The resource type of the response. */
2185
+ /** Returns "bigquery#tableDataInsertAllResponse". */
1974
2186
  kind?: string;
1975
2187
  }
1976
2188
  interface TableDataList {
@@ -1982,45 +2194,46 @@ declare namespace gapi.client {
1982
2194
  pageToken?: string;
1983
2195
  /** Rows of results. */
1984
2196
  rows?: TableRow[];
1985
- /** The total number of rows in the complete table. */
2197
+ /** Total rows of the entire table. In order to show default value 0 we have to present it as string. */
1986
2198
  totalRows?: string;
1987
2199
  }
1988
2200
  interface TableFieldSchema {
1989
- /** [Optional] The categories attached to this field, used for field-level access control. */
2201
+ /** Deprecated. */
1990
2202
  categories?: {
1991
- /** A list of category resource names. For example, "projects/1/taxonomies/2/categories/3". At most 5 categories are allowed. */
2203
+ /** Deprecated. */
1992
2204
  names?: string[];
1993
2205
  };
1994
- /** Optional. Collation specification of the field. It only can be set on string type field. */
2206
+ /** Optional. Field collation can be set only when the type of field is STRING. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. */
1995
2207
  collation?: string;
1996
- /** Optional. A SQL expression to specify the default value for this field. It can only be set for top level fields (columns). You can use struct or array expression to specify default value for the entire struct or array. The valid SQL expressions are: - Literals for all data types, including STRUCT and ARRAY. - Following functions: - CURRENT_TIMESTAMP - CURRENT_TIME - CURRENT_DATE - CURRENT_DATETIME - GENERATE_UUID - RAND - SESSION_USER - ST_GEOGPOINT - Struct or array composed with the above allowed functions, for example, [CURRENT_DATE(), DATE '2020-01-01'] */
2208
+ /** Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field. */
1997
2209
  defaultValueExpression?: string;
1998
- /** [Optional] The field description. The maximum length is 1,024 characters. */
2210
+ /** Optional. The field description. The maximum length is 1,024 characters. */
1999
2211
  description?: string;
2000
- /** [Optional] Describes the nested schema fields if the type property is set to RECORD. */
2212
+ /** Optional. Describes the nested schema fields if the type property is set to RECORD. */
2001
2213
  fields?: TableFieldSchema[];
2002
- /** [Optional] Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES". */
2214
+ /** Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES". */
2003
2215
  maxLength?: string;
2004
- /** [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. */
2216
+ /** Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. */
2005
2217
  mode?: string;
2006
- /** [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 300 characters. */
2218
+ /** Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 300 characters. */
2007
2219
  name?: string;
2220
+ /** Optional. The policy tags attached to this field, used for field-level access control. If not set, defaults to empty policy_tags. */
2008
2221
  policyTags?: {
2009
- /** A list of category resource names. For example, "projects/1/location/eu/taxonomies/2/policyTags/3". At most 1 policy tag is allowed. */
2222
+ /** A list of policy tag resource names. For example, "projects/1/locations/eu/taxonomies/2/policyTags/3". At most 1 policy tag is currently allowed. */
2010
2223
  names?: string[];
2011
2224
  };
2012
- /** [Optional] Precision (maximum number of total digits in base 10) and scale (maximum number of digits in the fractional part in base 10) constraints for values of this field for NUMERIC or BIGNUMERIC. It is invalid to set precision or scale if type ≠ "NUMERIC" and ≠ "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: - Precision (P) and scale (S) are specified: [-10P-S + 10-S, 10P-S - 10-S] - Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10P + 1, 10P - 1]. Acceptable values for precision and scale if both are specified: - If type = "NUMERIC": 1 ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9. - If type = "BIGNUMERIC": 1 ≤ precision - scale ≤ 38 and 0 ≤ scale ≤ 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): - If type = "NUMERIC": 1 ≤ precision ≤ 29. - If type = "BIGNUMERIC": 1 ≤ precision ≤ 38. If scale is specified but not precision, then it is invalid. */
2225
+ /** Optional. Precision (maximum number of total digits in base 10) and scale (maximum number of digits in the fractional part in base 10) constraints for values of this field for NUMERIC or BIGNUMERIC. It is invalid to set precision or scale if type ≠ "NUMERIC" and ≠ "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: * Precision (P) and scale (S) are specified: [-10P-S + 10-S, 10P-S - 10-S] * Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10P + 1, 10P - 1]. Acceptable values for precision and scale if both are specified: * If type = "NUMERIC": 1 ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9. * If type = "BIGNUMERIC": 1 ≤ precision - scale ≤ 38 and 0 ≤ scale ≤ 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): * If type = "NUMERIC": 1 ≤ precision ≤ 29. * If type = "BIGNUMERIC": 1 ≤ precision ≤ 38. If scale is specified but not precision, then it is invalid. */
2013
2226
  precision?: string;
2014
- /** Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include: - DATE - DATETIME - TIMESTAMP */
2227
+ /** Represents the type of a field element. */
2015
2228
  rangeElementType?: {
2016
- /** The field element type of a RANGE */
2229
+ /** Required. The type of a field element. See TableFieldSchema.type. */
2017
2230
  type?: string;
2018
2231
  };
2019
- /** Optional. Rounding Mode specification of the field. It only can be set on NUMERIC or BIGNUMERIC type fields. */
2232
+ /** Optional. Specifies the rounding mode to be used when storing values of NUMERIC and BIGNUMERIC type. */
2020
2233
  roundingMode?: string;
2021
- /** [Optional] See documentation for precision. */
2234
+ /** Optional. See documentation for precision. */
2022
2235
  scale?: string;
2023
- /** [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC, BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, INTERVAL, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD). */
2236
+ /** Required. The field data type. Possible values include: * STRING * BYTES * INTEGER (or INT64) * FLOAT (or FLOAT64) * BOOLEAN (or BOOL) * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY * NUMERIC * BIGNUMERIC * JSON * RECORD (or STRUCT) Use of RECORD/STRUCT indicates that the field contains a nested schema. */
2024
2237
  type?: string;
2025
2238
  }
2026
2239
  interface TableList {
@@ -2032,45 +2245,71 @@ declare namespace gapi.client {
2032
2245
  nextPageToken?: string;
2033
2246
  /** Tables in the requested dataset. */
2034
2247
  tables?: Array<{
2035
- /** [Beta] Clustering specification for this table, if configured. */
2248
+ /** Clustering specification for this table, if configured. */
2036
2249
  clustering?: Clustering;
2037
- /** The time when this table was created, in milliseconds since the epoch. */
2250
+ /** Output only. The time when this table was created, in milliseconds since the epoch. */
2038
2251
  creationTime?: string;
2039
- /** [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. */
2252
+ /** The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. */
2040
2253
  expirationTime?: string;
2041
2254
  /** The user-friendly name for this table. */
2042
2255
  friendlyName?: string;
2043
- /** An opaque ID of the table */
2256
+ /** An opaque ID of the table. */
2044
2257
  id?: string;
2045
2258
  /** The resource type. */
2046
2259
  kind?: string;
2047
2260
  /** The labels associated with this table. You can use these to organize and group your tables. */
2048
2261
  labels?: {[P in string]: string};
2049
- /** The range partitioning specification for this table, if configured. */
2262
+ /** The range partitioning for this table. */
2050
2263
  rangePartitioning?: RangePartitioning;
2051
- /** A reference uniquely identifying the table. */
2264
+ /** Optional. If set to true, queries including this table must specify a partition filter. This filter is used for partition elimination. */
2265
+ requirePartitionFilter?: boolean;
2266
+ /** A reference uniquely identifying table. */
2052
2267
  tableReference?: TableReference;
2053
- /** The time-based partitioning specification for this table, if configured. */
2268
+ /** The time-based partitioning for this table. */
2054
2269
  timePartitioning?: TimePartitioning;
2055
- /** The type of table. Possible values are: TABLE, VIEW. */
2270
+ /** The type of table. */
2056
2271
  type?: string;
2057
- /** Additional details for a view. */
2272
+ /** Information about a logical view. */
2058
2273
  view?: {
2059
- /** True if view is defined in legacy SQL dialect, false if in standard SQL. */
2274
+ /** Specifices the privacy policy for the view. */
2275
+ privacyPolicy?: PrivacyPolicy;
2276
+ /** True if view is defined in legacy SQL dialect, false if in GoogleSQL. */
2060
2277
  useLegacySql?: boolean;
2061
2278
  };
2062
2279
  }>;
2063
2280
  /** The total number of tables in the dataset. */
2064
2281
  totalItems?: number;
2065
2282
  }
2283
+ interface TableMetadataCacheUsage {
2284
+ /** Free form human-readable reason metadata caching was unused for the job. */
2285
+ explanation?: string;
2286
+ /** Metadata caching eligible table referenced in the query. */
2287
+ tableReference?: TableReference;
2288
+ /** [Table type](/bigquery/docs/reference/rest/v2/tables#Table.FIELDS.type). */
2289
+ tableType?: string;
2290
+ /** Reason for not using metadata caching for the table. */
2291
+ unusedReason?: string;
2292
+ }
2066
2293
  interface TableReference {
2067
- /** [Required] The ID of the dataset containing this table. */
2294
+ /** Required. The ID of the dataset containing this table. */
2068
2295
  datasetId?: string;
2069
- /** [Required] The ID of the project containing this table. */
2296
+ /** Required. The ID of the project containing this table. */
2070
2297
  projectId?: string;
2071
- /** [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. */
2298
+ /** Required. The ID of the table. The ID can contain Unicode characters in category L (letter), M (mark), N (number), Pc (connector, including underscore), Pd (dash), and Zs (space). For more information, see [General Category](https://wikipedia.org/wiki/Unicode_character_property#General_Category). The maximum length is 1,024 characters. Certain operations allow suffixing of the table ID with a partition decorator, such as `sample_table$20190123`. */
2072
2299
  tableId?: string;
2073
2300
  }
2301
+ interface TableReplicationInfo {
2302
+ /** Optional. Output only. If source is a materialized view, this field signifies the last refresh time of the source. */
2303
+ replicatedSourceLastRefreshTime?: string;
2304
+ /** Optional. Output only. Replication error that will permanently stopped table replication. */
2305
+ replicationError?: ErrorProto;
2306
+ /** Required. Specifies the interval at which the source table is polled for updates. */
2307
+ replicationIntervalMs?: string;
2308
+ /** Optional. Output only. Replication status of configured replication. */
2309
+ replicationStatus?: string;
2310
+ /** Required. Source table reference that is replicated. */
2311
+ sourceTable?: TableReference;
2312
+ }
2074
2313
  interface TableRow {
2075
2314
  /** Represents a single row in the result set, consisting of one or more fields. */
2076
2315
  f?: TableCell[];
@@ -2088,12 +2327,13 @@ declare namespace gapi.client {
2088
2327
  permissions?: string[];
2089
2328
  }
2090
2329
  interface TimePartitioning {
2091
- /** [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value. */
2330
+ /** Optional. Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value. */
2092
2331
  expirationMs?: string;
2093
- /** [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED. */
2332
+ /** Optional. If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED. A wrapper is used here because an empty string is an invalid value. */
2094
2333
  field?: string;
2334
+ /** If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. This field is deprecated; please set the field with the same name on the table itself instead. This field needs a wrapper because we want to output the default value, false, if the user explicitly set it. */
2095
2335
  requirePartitionFilter?: boolean;
2096
- /** [Required] The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. When the type is not specified, the default behavior is DAY. */
2336
+ /** Required. The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. */
2097
2337
  type?: string;
2098
2338
  }
2099
2339
  interface TrainingOptions {
@@ -2293,7 +2533,7 @@ declare namespace gapi.client {
2293
2533
  vertexAiModelVersion?: string;
2294
2534
  }
2295
2535
  interface TransactionInfo {
2296
- /** [Output-only] // [Alpha] Id of the transaction. */
2536
+ /** Output only. [Alpha] Id of the transaction. */
2297
2537
  transactionId?: string;
2298
2538
  }
2299
2539
  interface TransformColumn {
@@ -2304,6 +2544,10 @@ declare namespace gapi.client {
2304
2544
  /** Output only. Data type of the column after the transform. */
2305
2545
  type?: StandardSqlDataType;
2306
2546
  }
2547
+ interface UndeleteDatasetRequest {
2548
+ /** Optional. The exact time when the dataset was deleted. If not specified, it will undelete the most recently deleted version. */
2549
+ deletionTime?: string;
2550
+ }
2307
2551
  interface UserDefinedFunctionResource {
2308
2552
  /** [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code. */
2309
2553
  inlineCode?: string;
@@ -2317,11 +2561,13 @@ declare namespace gapi.client {
2317
2561
  indexUsageMode?: string;
2318
2562
  }
2319
2563
  interface ViewDefinition {
2320
- /** [Required] A query that BigQuery executes when the view is referenced. */
2564
+ /** Optional. Specifices the privacy policy for the view. */
2565
+ privacyPolicy?: PrivacyPolicy;
2566
+ /** Required. A query that BigQuery executes when the view is referenced. */
2321
2567
  query?: string;
2322
- /** True if the column names are explicitly specified. For example by using the 'CREATE VIEW v(c1, c2) AS ...' syntax. Can only be set using BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ */
2568
+ /** True if the column names are explicitly specified. For example by using the 'CREATE VIEW v(c1, c2) AS ...' syntax. Can only be set for GoogleSQL views. */
2323
2569
  useExplicitColumnNames?: boolean;
2324
- /** Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value. */
2570
+ /** Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's GoogleSQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value. A wrapper is used here because the default value is True. */
2325
2571
  useLegacySql?: boolean;
2326
2572
  /** Describes user-defined function resources used in the query. */
2327
2573
  userDefinedFunctionResources?: UserDefinedFunctionResource[];
@@ -2329,9 +2575,15 @@ declare namespace gapi.client {
2329
2575
  interface DatasetsResource {
2330
2576
  /** Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name. */
2331
2577
  delete(request?: {
2332
- /** Data format for the response. */
2578
+ /** V1 error format. */
2579
+ '$.xgafv'?: string;
2580
+ /** OAuth access token. */
2581
+ access_token?: string;
2582
+ /** Data format for response. */
2333
2583
  alt?: string;
2334
- /** Dataset ID of dataset being deleted */
2584
+ /** JSONP */
2585
+ callback?: string;
2586
+ /** Required. Dataset ID of dataset being deleted */
2335
2587
  datasetId: string;
2336
2588
  /** If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False */
2337
2589
  deleteContents?: boolean;
@@ -2343,20 +2595,28 @@ declare namespace gapi.client {
2343
2595
  oauth_token?: string;
2344
2596
  /** Returns response with indentations and line breaks. */
2345
2597
  prettyPrint?: boolean;
2346
- /** Project ID of the dataset being deleted */
2598
+ /** Required. Project ID of the dataset being deleted */
2347
2599
  projectId: string;
2348
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2600
+ /** 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. */
2349
2601
  quotaUser?: string;
2350
- /** Deprecated. Please use quotaUser instead. */
2351
- userIp?: string;
2602
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2603
+ upload_protocol?: string;
2604
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2605
+ uploadType?: string;
2352
2606
  }): Request<void>;
2353
2607
  /** Returns the dataset specified by datasetID. */
2354
2608
  get(request?: {
2355
- /** Data format for the response. */
2609
+ /** V1 error format. */
2610
+ '$.xgafv'?: string;
2611
+ /** OAuth access token. */
2612
+ access_token?: string;
2613
+ /** Data format for response. */
2356
2614
  alt?: string;
2357
- /** Dataset ID of the requested dataset */
2615
+ /** JSONP */
2616
+ callback?: string;
2617
+ /** Required. Dataset ID of the requested dataset */
2358
2618
  datasetId: string;
2359
- /** Specifies the view that determines which dataset information is returned. By default, metadata and ACL information are returned. Allowed values: METADATA, ACL, FULL. */
2619
+ /** Optional. Specifies the view that determines which dataset information is returned. By default, metadata and ACL information are returned. */
2360
2620
  datasetView?: string;
2361
2621
  /** Selector specifying which fields to include in a partial response. */
2362
2622
  fields?: string;
@@ -2366,17 +2626,25 @@ declare namespace gapi.client {
2366
2626
  oauth_token?: string;
2367
2627
  /** Returns response with indentations and line breaks. */
2368
2628
  prettyPrint?: boolean;
2369
- /** Project ID of the requested dataset */
2629
+ /** Required. Project ID of the requested dataset */
2370
2630
  projectId: string;
2371
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2631
+ /** 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. */
2372
2632
  quotaUser?: string;
2373
- /** Deprecated. Please use quotaUser instead. */
2374
- userIp?: string;
2633
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2634
+ upload_protocol?: string;
2635
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2636
+ uploadType?: string;
2375
2637
  }): Request<Dataset>;
2376
2638
  /** Creates a new empty dataset. */
2377
2639
  insert(request: {
2378
- /** Data format for the response. */
2640
+ /** V1 error format. */
2641
+ '$.xgafv'?: string;
2642
+ /** OAuth access token. */
2643
+ access_token?: string;
2644
+ /** Data format for response. */
2379
2645
  alt?: string;
2646
+ /** JSONP */
2647
+ callback?: string;
2380
2648
  /** Selector specifying which fields to include in a partial response. */
2381
2649
  fields?: string;
2382
2650
  /** 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. */
@@ -2385,19 +2653,27 @@ declare namespace gapi.client {
2385
2653
  oauth_token?: string;
2386
2654
  /** Returns response with indentations and line breaks. */
2387
2655
  prettyPrint?: boolean;
2388
- /** Project ID of the new dataset */
2656
+ /** Required. Project ID of the new dataset */
2389
2657
  projectId: string;
2390
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2658
+ /** 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. */
2391
2659
  quotaUser?: string;
2392
- /** Deprecated. Please use quotaUser instead. */
2393
- userIp?: string;
2660
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2661
+ upload_protocol?: string;
2662
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2663
+ uploadType?: string;
2394
2664
  /** Request body */
2395
2665
  resource: Dataset;
2396
2666
  }): Request<Dataset>;
2397
2667
  insert(
2398
2668
  request: {
2399
- /** Data format for the response. */
2669
+ /** V1 error format. */
2670
+ '$.xgafv'?: string;
2671
+ /** OAuth access token. */
2672
+ access_token?: string;
2673
+ /** Data format for response. */
2400
2674
  alt?: string;
2675
+ /** JSONP */
2676
+ callback?: string;
2401
2677
  /** Selector specifying which fields to include in a partial response. */
2402
2678
  fields?: string;
2403
2679
  /** 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. */
@@ -2406,28 +2682,36 @@ declare namespace gapi.client {
2406
2682
  oauth_token?: string;
2407
2683
  /** Returns response with indentations and line breaks. */
2408
2684
  prettyPrint?: boolean;
2409
- /** Project ID of the new dataset */
2685
+ /** Required. Project ID of the new dataset */
2410
2686
  projectId: string;
2411
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2687
+ /** 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. */
2412
2688
  quotaUser?: string;
2413
- /** Deprecated. Please use quotaUser instead. */
2414
- userIp?: string;
2689
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2690
+ upload_protocol?: string;
2691
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2692
+ uploadType?: string;
2415
2693
  },
2416
2694
  body: Dataset
2417
2695
  ): Request<Dataset>;
2418
- /** Lists all datasets in the specified project to which you have been granted the READER dataset role. */
2696
+ /** Lists all datasets in the specified project to which the user has been granted the READER dataset role. */
2419
2697
  list(request?: {
2698
+ /** V1 error format. */
2699
+ '$.xgafv'?: string;
2700
+ /** OAuth access token. */
2701
+ access_token?: string;
2420
2702
  /** Whether to list all datasets, including hidden ones */
2421
2703
  all?: boolean;
2422
- /** Data format for the response. */
2704
+ /** Data format for response. */
2423
2705
  alt?: string;
2706
+ /** JSONP */
2707
+ callback?: string;
2424
2708
  /** Selector specifying which fields to include in a partial response. */
2425
2709
  fields?: string;
2426
- /** An expression for filtering the results of the request by label. The syntax is "labels.<name>[:<value>]". Multiple filters can be ANDed together by connecting with a space. Example: "labels.department:receiving labels.active". See Filtering datasets using labels for details. */
2710
+ /** An expression for filtering the results of the request by label. The syntax is \"labels.<name>[:<value>]\". Multiple filters can be ANDed together by connecting with a space. Example: \"labels.department:receiving labels.active\". See [Filtering datasets using labels](/bigquery/docs/labeling-datasets#filtering_datasets_using_labels) for details. */
2427
2711
  filter?: string;
2428
2712
  /** 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. */
2429
2713
  key?: string;
2430
- /** The maximum number of results to return */
2714
+ /** The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection. */
2431
2715
  maxResults?: number;
2432
2716
  /** OAuth 2.0 token for the current user. */
2433
2717
  oauth_token?: string;
@@ -2435,18 +2719,26 @@ declare namespace gapi.client {
2435
2719
  pageToken?: string;
2436
2720
  /** Returns response with indentations and line breaks. */
2437
2721
  prettyPrint?: boolean;
2438
- /** Project ID of the datasets to be listed */
2722
+ /** Required. Project ID of the datasets to be listed */
2439
2723
  projectId: string;
2440
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2724
+ /** 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. */
2441
2725
  quotaUser?: string;
2442
- /** Deprecated. Please use quotaUser instead. */
2443
- userIp?: string;
2726
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2727
+ upload_protocol?: string;
2728
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2729
+ uploadType?: string;
2444
2730
  }): Request<DatasetList>;
2445
- /** Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics. */
2731
+ /** Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports RFC5789 patch semantics. */
2446
2732
  patch(request: {
2447
- /** Data format for the response. */
2733
+ /** V1 error format. */
2734
+ '$.xgafv'?: string;
2735
+ /** OAuth access token. */
2736
+ access_token?: string;
2737
+ /** Data format for response. */
2448
2738
  alt?: string;
2449
- /** Dataset ID of the dataset being updated */
2739
+ /** JSONP */
2740
+ callback?: string;
2741
+ /** Required. Dataset ID of the dataset being updated */
2450
2742
  datasetId: string;
2451
2743
  /** Selector specifying which fields to include in a partial response. */
2452
2744
  fields?: string;
@@ -2456,20 +2748,28 @@ declare namespace gapi.client {
2456
2748
  oauth_token?: string;
2457
2749
  /** Returns response with indentations and line breaks. */
2458
2750
  prettyPrint?: boolean;
2459
- /** Project ID of the dataset being updated */
2751
+ /** Required. Project ID of the dataset being updated */
2460
2752
  projectId: string;
2461
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2753
+ /** 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. */
2462
2754
  quotaUser?: string;
2463
- /** Deprecated. Please use quotaUser instead. */
2464
- userIp?: string;
2755
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2756
+ upload_protocol?: string;
2757
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2758
+ uploadType?: string;
2465
2759
  /** Request body */
2466
2760
  resource: Dataset;
2467
2761
  }): Request<Dataset>;
2468
2762
  patch(
2469
2763
  request: {
2470
- /** Data format for the response. */
2764
+ /** V1 error format. */
2765
+ '$.xgafv'?: string;
2766
+ /** OAuth access token. */
2767
+ access_token?: string;
2768
+ /** Data format for response. */
2471
2769
  alt?: string;
2472
- /** Dataset ID of the dataset being updated */
2770
+ /** JSONP */
2771
+ callback?: string;
2772
+ /** Required. Dataset ID of the dataset being updated */
2473
2773
  datasetId: string;
2474
2774
  /** Selector specifying which fields to include in a partial response. */
2475
2775
  fields?: string;
@@ -2479,20 +2779,90 @@ declare namespace gapi.client {
2479
2779
  oauth_token?: string;
2480
2780
  /** Returns response with indentations and line breaks. */
2481
2781
  prettyPrint?: boolean;
2482
- /** Project ID of the dataset being updated */
2782
+ /** Required. Project ID of the dataset being updated */
2483
2783
  projectId: string;
2484
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2784
+ /** 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. */
2485
2785
  quotaUser?: string;
2486
- /** Deprecated. Please use quotaUser instead. */
2487
- userIp?: string;
2786
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2787
+ upload_protocol?: string;
2788
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2789
+ uploadType?: string;
2488
2790
  },
2489
2791
  body: Dataset
2490
2792
  ): Request<Dataset>;
2793
+ /** Undeletes a dataset which is within time travel window based on datasetId. If a time is specified, the dataset version deleted at that time is undeleted, else the last live version is undeleted. */
2794
+ undelete(request: {
2795
+ /** V1 error format. */
2796
+ '$.xgafv'?: string;
2797
+ /** OAuth access token. */
2798
+ access_token?: string;
2799
+ /** Data format for response. */
2800
+ alt?: string;
2801
+ /** JSONP */
2802
+ callback?: string;
2803
+ /** Required. Dataset ID of dataset being deleted */
2804
+ datasetId: string;
2805
+ /** Selector specifying which fields to include in a partial response. */
2806
+ fields?: string;
2807
+ /** 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. */
2808
+ key?: string;
2809
+ /** OAuth 2.0 token for the current user. */
2810
+ oauth_token?: string;
2811
+ /** Returns response with indentations and line breaks. */
2812
+ prettyPrint?: boolean;
2813
+ /** Required. Project ID of the dataset to be undeleted */
2814
+ projectId: string;
2815
+ /** 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. */
2816
+ quotaUser?: string;
2817
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2818
+ upload_protocol?: string;
2819
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2820
+ uploadType?: string;
2821
+ /** Request body */
2822
+ resource: UndeleteDatasetRequest;
2823
+ }): Request<Dataset>;
2824
+ undelete(
2825
+ request: {
2826
+ /** V1 error format. */
2827
+ '$.xgafv'?: string;
2828
+ /** OAuth access token. */
2829
+ access_token?: string;
2830
+ /** Data format for response. */
2831
+ alt?: string;
2832
+ /** JSONP */
2833
+ callback?: string;
2834
+ /** Required. Dataset ID of dataset being deleted */
2835
+ datasetId: string;
2836
+ /** Selector specifying which fields to include in a partial response. */
2837
+ fields?: string;
2838
+ /** 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. */
2839
+ key?: string;
2840
+ /** OAuth 2.0 token for the current user. */
2841
+ oauth_token?: string;
2842
+ /** Returns response with indentations and line breaks. */
2843
+ prettyPrint?: boolean;
2844
+ /** Required. Project ID of the dataset to be undeleted */
2845
+ projectId: string;
2846
+ /** 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. */
2847
+ quotaUser?: string;
2848
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2849
+ upload_protocol?: string;
2850
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2851
+ uploadType?: string;
2852
+ },
2853
+ body: UndeleteDatasetRequest
2854
+ ): Request<Dataset>;
2491
2855
  /** Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. */
2492
2856
  update(request: {
2493
- /** Data format for the response. */
2857
+ /** V1 error format. */
2858
+ '$.xgafv'?: string;
2859
+ /** OAuth access token. */
2860
+ access_token?: string;
2861
+ /** Data format for response. */
2494
2862
  alt?: string;
2495
- /** Dataset ID of the dataset being updated */
2863
+ /** JSONP */
2864
+ callback?: string;
2865
+ /** Required. Dataset ID of the dataset being updated */
2496
2866
  datasetId: string;
2497
2867
  /** Selector specifying which fields to include in a partial response. */
2498
2868
  fields?: string;
@@ -2502,20 +2872,28 @@ declare namespace gapi.client {
2502
2872
  oauth_token?: string;
2503
2873
  /** Returns response with indentations and line breaks. */
2504
2874
  prettyPrint?: boolean;
2505
- /** Project ID of the dataset being updated */
2875
+ /** Required. Project ID of the dataset being updated */
2506
2876
  projectId: string;
2507
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2877
+ /** 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. */
2508
2878
  quotaUser?: string;
2509
- /** Deprecated. Please use quotaUser instead. */
2510
- userIp?: string;
2879
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2880
+ upload_protocol?: string;
2881
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2882
+ uploadType?: string;
2511
2883
  /** Request body */
2512
2884
  resource: Dataset;
2513
2885
  }): Request<Dataset>;
2514
2886
  update(
2515
2887
  request: {
2516
- /** Data format for the response. */
2888
+ /** V1 error format. */
2889
+ '$.xgafv'?: string;
2890
+ /** OAuth access token. */
2891
+ access_token?: string;
2892
+ /** Data format for response. */
2517
2893
  alt?: string;
2518
- /** Dataset ID of the dataset being updated */
2894
+ /** JSONP */
2895
+ callback?: string;
2896
+ /** Required. Dataset ID of the dataset being updated */
2519
2897
  datasetId: string;
2520
2898
  /** Selector specifying which fields to include in a partial response. */
2521
2899
  fields?: string;
@@ -2525,12 +2903,14 @@ declare namespace gapi.client {
2525
2903
  oauth_token?: string;
2526
2904
  /** Returns response with indentations and line breaks. */
2527
2905
  prettyPrint?: boolean;
2528
- /** Project ID of the dataset being updated */
2906
+ /** Required. Project ID of the dataset being updated */
2529
2907
  projectId: string;
2530
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2908
+ /** 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. */
2531
2909
  quotaUser?: string;
2532
- /** Deprecated. Please use quotaUser instead. */
2533
- userIp?: string;
2910
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2911
+ upload_protocol?: string;
2912
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2913
+ uploadType?: string;
2534
2914
  },
2535
2915
  body: Dataset
2536
2916
  ): Request<Dataset>;
@@ -2538,31 +2918,45 @@ declare namespace gapi.client {
2538
2918
  interface JobsResource {
2539
2919
  /** Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs. */
2540
2920
  cancel(request?: {
2541
- /** Data format for the response. */
2921
+ /** V1 error format. */
2922
+ '$.xgafv'?: string;
2923
+ /** OAuth access token. */
2924
+ access_token?: string;
2925
+ /** Data format for response. */
2542
2926
  alt?: string;
2927
+ /** JSONP */
2928
+ callback?: string;
2543
2929
  /** Selector specifying which fields to include in a partial response. */
2544
2930
  fields?: string;
2545
- /** [Required] Job ID of the job to cancel */
2931
+ /** Required. Job ID of the job to cancel */
2546
2932
  jobId: string;
2547
2933
  /** 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. */
2548
2934
  key?: string;
2549
- /** The geographic location of the job. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
2935
+ /** The geographic location of the job. You must specify the location to run the job for the following scenarios: - If the location to run a job is not in the `us` or the `eu` multi-regional location - If the job's location is in a single region (for example, `us-central1`) For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
2550
2936
  location?: string;
2551
2937
  /** OAuth 2.0 token for the current user. */
2552
2938
  oauth_token?: string;
2553
2939
  /** Returns response with indentations and line breaks. */
2554
2940
  prettyPrint?: boolean;
2555
- /** [Required] Project ID of the job to cancel */
2941
+ /** Required. Project ID of the job to cancel */
2556
2942
  projectId: string;
2557
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2943
+ /** 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. */
2558
2944
  quotaUser?: string;
2559
- /** Deprecated. Please use quotaUser instead. */
2560
- userIp?: string;
2945
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2946
+ upload_protocol?: string;
2947
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2948
+ uploadType?: string;
2561
2949
  }): Request<JobCancelResponse>;
2562
2950
  /** Requests the deletion of the metadata of a job. This call returns when the job's metadata is deleted. */
2563
2951
  delete(request?: {
2564
- /** Data format for the response. */
2952
+ /** V1 error format. */
2953
+ '$.xgafv'?: string;
2954
+ /** OAuth access token. */
2955
+ access_token?: string;
2956
+ /** Data format for response. */
2565
2957
  alt?: string;
2958
+ /** JSONP */
2959
+ callback?: string;
2566
2960
  /** Selector specifying which fields to include in a partial response. */
2567
2961
  fields?: string;
2568
2962
  /** Required. Job ID of the job for which metadata is to be deleted. If this is a parent job which has child jobs, the metadata from all child jobs will be deleted as well. Direct deletion of the metadata of child jobs is not allowed. */
@@ -2577,69 +2971,95 @@ declare namespace gapi.client {
2577
2971
  prettyPrint?: boolean;
2578
2972
  /** Required. Project ID of the job for which metadata is to be deleted. */
2579
2973
  projectId: string;
2580
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2974
+ /** 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. */
2581
2975
  quotaUser?: string;
2582
- /** Deprecated. Please use quotaUser instead. */
2583
- userIp?: string;
2976
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2977
+ upload_protocol?: string;
2978
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2979
+ uploadType?: string;
2584
2980
  }): Request<void>;
2585
2981
  /** Returns information about a specific job. Job information is available for a six month period after creation. Requires that you're the person who ran the job, or have the Is Owner project role. */
2586
2982
  get(request?: {
2587
- /** Data format for the response. */
2983
+ /** V1 error format. */
2984
+ '$.xgafv'?: string;
2985
+ /** OAuth access token. */
2986
+ access_token?: string;
2987
+ /** Data format for response. */
2588
2988
  alt?: string;
2989
+ /** JSONP */
2990
+ callback?: string;
2589
2991
  /** Selector specifying which fields to include in a partial response. */
2590
2992
  fields?: string;
2591
- /** [Required] Job ID of the requested job */
2993
+ /** Required. Job ID of the requested job. */
2592
2994
  jobId: string;
2593
2995
  /** 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. */
2594
2996
  key?: string;
2595
- /** The geographic location of the job. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
2997
+ /** The geographic location of the job. You must specify the location to run the job for the following scenarios: - If the location to run a job is not in the `us` or the `eu` multi-regional location - If the job's location is in a single region (for example, `us-central1`) For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
2596
2998
  location?: string;
2597
2999
  /** OAuth 2.0 token for the current user. */
2598
3000
  oauth_token?: string;
2599
3001
  /** Returns response with indentations and line breaks. */
2600
3002
  prettyPrint?: boolean;
2601
- /** [Required] Project ID of the requested job */
3003
+ /** Required. Project ID of the requested job. */
2602
3004
  projectId: string;
2603
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3005
+ /** 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. */
2604
3006
  quotaUser?: string;
2605
- /** Deprecated. Please use quotaUser instead. */
2606
- userIp?: string;
3007
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3008
+ upload_protocol?: string;
3009
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3010
+ uploadType?: string;
2607
3011
  }): Request<Job>;
2608
- /** Retrieves the results of a query job. */
3012
+ /** RPC to get the results of a query job. */
2609
3013
  getQueryResults(request?: {
2610
- /** Data format for the response. */
3014
+ /** V1 error format. */
3015
+ '$.xgafv'?: string;
3016
+ /** OAuth access token. */
3017
+ access_token?: string;
3018
+ /** Data format for response. */
2611
3019
  alt?: string;
3020
+ /** JSONP */
3021
+ callback?: string;
2612
3022
  /** Selector specifying which fields to include in a partial response. */
2613
3023
  fields?: string;
2614
- /** [Required] Job ID of the query job */
3024
+ /** Optional. Output timestamp as usec int64. Default is false. */
3025
+ 'formatOptions.useInt64Timestamp'?: boolean;
3026
+ /** Required. Job ID of the query job. */
2615
3027
  jobId: string;
2616
3028
  /** 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. */
2617
3029
  key?: string;
2618
- /** The geographic location where the job should run. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
3030
+ /** The geographic location of the job. You must specify the location to run the job for the following scenarios: - If the location to run a job is not in the `us` or the `eu` multi-regional location - If the job's location is in a single region (for example, `us-central1`) For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location. */
2619
3031
  location?: string;
2620
- /** Maximum number of results to read */
3032
+ /** Maximum number of results to read. */
2621
3033
  maxResults?: number;
2622
3034
  /** OAuth 2.0 token for the current user. */
2623
3035
  oauth_token?: string;
2624
- /** Page token, returned by a previous call, to request the next page of results */
3036
+ /** Page token, returned by a previous call, to request the next page of results. */
2625
3037
  pageToken?: string;
2626
3038
  /** Returns response with indentations and line breaks. */
2627
3039
  prettyPrint?: boolean;
2628
- /** [Required] Project ID of the query job */
3040
+ /** Required. Project ID of the query job. */
2629
3041
  projectId: string;
2630
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3042
+ /** 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. */
2631
3043
  quotaUser?: string;
2632
- /** Zero-based index of the starting row */
3044
+ /** Zero-based index of the starting row. */
2633
3045
  startIndex?: string;
2634
- /** How long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes, the 'jobComplete' field in the response will be false */
3046
+ /** Optional: Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false. You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true. */
2635
3047
  timeoutMs?: number;
2636
- /** Deprecated. Please use quotaUser instead. */
2637
- userIp?: string;
3048
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3049
+ upload_protocol?: string;
3050
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3051
+ uploadType?: string;
2638
3052
  }): Request<GetQueryResultsResponse>;
2639
- /** Starts a new asynchronous job. Requires the Can View project role. */
3053
+ /** Starts a new asynchronous job. This API has two different kinds of endpoint URIs, as this method supports a variety of use cases. * The *Metadata* URI is used for most interactions, as it accepts the job configuration directly. * The *Upload* URI is ONLY for the case when you're sending both a load job configuration and a data stream together. In this case, the Upload URI accepts the job configuration and the data as two distinct multipart MIME parts. */
2640
3054
  insert(request: {
2641
- /** Data format for the response. */
3055
+ /** V1 error format. */
3056
+ '$.xgafv'?: string;
3057
+ /** OAuth access token. */
3058
+ access_token?: string;
3059
+ /** Data format for response. */
2642
3060
  alt?: string;
3061
+ /** JSONP */
3062
+ callback?: string;
2643
3063
  /** Selector specifying which fields to include in a partial response. */
2644
3064
  fields?: string;
2645
3065
  /** 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. */
@@ -2648,19 +3068,27 @@ declare namespace gapi.client {
2648
3068
  oauth_token?: string;
2649
3069
  /** Returns response with indentations and line breaks. */
2650
3070
  prettyPrint?: boolean;
2651
- /** Project ID of the project that will be billed for the job */
3071
+ /** Project ID of project that will be billed for the job. */
2652
3072
  projectId: string;
2653
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3073
+ /** 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. */
2654
3074
  quotaUser?: string;
2655
- /** Deprecated. Please use quotaUser instead. */
2656
- userIp?: string;
3075
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3076
+ upload_protocol?: string;
3077
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3078
+ uploadType?: string;
2657
3079
  /** Request body */
2658
3080
  resource: Job;
2659
3081
  }): Request<Job>;
2660
3082
  insert(
2661
3083
  request: {
2662
- /** Data format for the response. */
3084
+ /** V1 error format. */
3085
+ '$.xgafv'?: string;
3086
+ /** OAuth access token. */
3087
+ access_token?: string;
3088
+ /** Data format for response. */
2663
3089
  alt?: string;
3090
+ /** JSONP */
3091
+ callback?: string;
2664
3092
  /** Selector specifying which fields to include in a partial response. */
2665
3093
  fields?: string;
2666
3094
  /** 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. */
@@ -2669,54 +3097,70 @@ declare namespace gapi.client {
2669
3097
  oauth_token?: string;
2670
3098
  /** Returns response with indentations and line breaks. */
2671
3099
  prettyPrint?: boolean;
2672
- /** Project ID of the project that will be billed for the job */
3100
+ /** Project ID of project that will be billed for the job. */
2673
3101
  projectId: string;
2674
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3102
+ /** 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. */
2675
3103
  quotaUser?: string;
2676
- /** Deprecated. Please use quotaUser instead. */
2677
- userIp?: string;
3104
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3105
+ upload_protocol?: string;
3106
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3107
+ uploadType?: string;
2678
3108
  },
2679
3109
  body: Job
2680
3110
  ): Request<Job>;
2681
3111
  /** Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property. */
2682
3112
  list(request?: {
2683
- /** Whether to display jobs owned by all users in the project. Default false */
3113
+ /** V1 error format. */
3114
+ '$.xgafv'?: string;
3115
+ /** OAuth access token. */
3116
+ access_token?: string;
3117
+ /** Whether to display jobs owned by all users in the project. Default False. */
2684
3118
  allUsers?: boolean;
2685
- /** Data format for the response. */
3119
+ /** Data format for response. */
2686
3120
  alt?: string;
3121
+ /** JSONP */
3122
+ callback?: string;
2687
3123
  /** Selector specifying which fields to include in a partial response. */
2688
3124
  fields?: string;
2689
3125
  /** 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. */
2690
3126
  key?: string;
2691
- /** Max value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created before or at this timestamp are returned */
3127
+ /** Max value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created before or at this timestamp are returned. */
2692
3128
  maxCreationTime?: string;
2693
- /** Maximum number of results to return */
3129
+ /** The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection. */
2694
3130
  maxResults?: number;
2695
- /** Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned */
3131
+ /** Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned. */
2696
3132
  minCreationTime?: string;
2697
3133
  /** OAuth 2.0 token for the current user. */
2698
3134
  oauth_token?: string;
2699
- /** Page token, returned by a previous call, to request the next page of results */
3135
+ /** Page token, returned by a previous call, to request the next page of results. */
2700
3136
  pageToken?: string;
2701
- /** If set, retrieves only jobs whose parent is this job. Otherwise, retrieves only jobs which have no parent */
3137
+ /** If set, show only child jobs of the specified parent. Otherwise, show all top-level jobs. */
2702
3138
  parentJobId?: string;
2703
3139
  /** Returns response with indentations and line breaks. */
2704
3140
  prettyPrint?: boolean;
2705
- /** Project ID of the jobs to list */
3141
+ /** Project ID of the jobs to list. */
2706
3142
  projectId: string;
2707
3143
  /** Restrict information returned to a set of selected fields */
2708
3144
  projection?: string;
2709
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3145
+ /** 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. */
2710
3146
  quotaUser?: string;
2711
3147
  /** Filter for job state */
2712
3148
  stateFilter?: string | string[];
2713
- /** Deprecated. Please use quotaUser instead. */
2714
- userIp?: string;
3149
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3150
+ upload_protocol?: string;
3151
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3152
+ uploadType?: string;
2715
3153
  }): Request<JobList>;
2716
3154
  /** Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout. */
2717
3155
  query(request: {
2718
- /** Data format for the response. */
3156
+ /** V1 error format. */
3157
+ '$.xgafv'?: string;
3158
+ /** OAuth access token. */
3159
+ access_token?: string;
3160
+ /** Data format for response. */
2719
3161
  alt?: string;
3162
+ /** JSONP */
3163
+ callback?: string;
2720
3164
  /** Selector specifying which fields to include in a partial response. */
2721
3165
  fields?: string;
2722
3166
  /** 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. */
@@ -2725,19 +3169,27 @@ declare namespace gapi.client {
2725
3169
  oauth_token?: string;
2726
3170
  /** Returns response with indentations and line breaks. */
2727
3171
  prettyPrint?: boolean;
2728
- /** Project ID of the project billed for the query */
3172
+ /** Required. Project ID of the query request. */
2729
3173
  projectId: string;
2730
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3174
+ /** 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. */
2731
3175
  quotaUser?: string;
2732
- /** Deprecated. Please use quotaUser instead. */
2733
- userIp?: string;
3176
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3177
+ upload_protocol?: string;
3178
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3179
+ uploadType?: string;
2734
3180
  /** Request body */
2735
3181
  resource: QueryRequest;
2736
3182
  }): Request<QueryResponse>;
2737
3183
  query(
2738
3184
  request: {
2739
- /** Data format for the response. */
3185
+ /** V1 error format. */
3186
+ '$.xgafv'?: string;
3187
+ /** OAuth access token. */
3188
+ access_token?: string;
3189
+ /** Data format for response. */
2740
3190
  alt?: string;
3191
+ /** JSONP */
3192
+ callback?: string;
2741
3193
  /** Selector specifying which fields to include in a partial response. */
2742
3194
  fields?: string;
2743
3195
  /** 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. */
@@ -2746,12 +3198,14 @@ declare namespace gapi.client {
2746
3198
  oauth_token?: string;
2747
3199
  /** Returns response with indentations and line breaks. */
2748
3200
  prettyPrint?: boolean;
2749
- /** Project ID of the project billed for the query */
3201
+ /** Required. Project ID of the query request. */
2750
3202
  projectId: string;
2751
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3203
+ /** 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. */
2752
3204
  quotaUser?: string;
2753
- /** Deprecated. Please use quotaUser instead. */
2754
- userIp?: string;
3205
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3206
+ upload_protocol?: string;
3207
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3208
+ uploadType?: string;
2755
3209
  },
2756
3210
  body: QueryRequest
2757
3211
  ): Request<QueryResponse>;
@@ -2759,8 +3213,14 @@ declare namespace gapi.client {
2759
3213
  interface ModelsResource {
2760
3214
  /** Deletes the model specified by modelId from the dataset. */
2761
3215
  delete(request?: {
2762
- /** Data format for the response. */
3216
+ /** V1 error format. */
3217
+ '$.xgafv'?: string;
3218
+ /** OAuth access token. */
3219
+ access_token?: string;
3220
+ /** Data format for response. */
2763
3221
  alt?: string;
3222
+ /** JSONP */
3223
+ callback?: string;
2764
3224
  /** Required. Dataset ID of the model to delete. */
2765
3225
  datasetId: string;
2766
3226
  /** Selector specifying which fields to include in a partial response. */
@@ -2775,15 +3235,23 @@ declare namespace gapi.client {
2775
3235
  prettyPrint?: boolean;
2776
3236
  /** Required. Project ID of the model to delete. */
2777
3237
  projectId: string;
2778
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3238
+ /** 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. */
2779
3239
  quotaUser?: string;
2780
- /** Deprecated. Please use quotaUser instead. */
2781
- userIp?: string;
3240
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3241
+ upload_protocol?: string;
3242
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3243
+ uploadType?: string;
2782
3244
  }): Request<void>;
2783
3245
  /** Gets the specified model resource by model ID. */
2784
3246
  get(request?: {
2785
- /** Data format for the response. */
3247
+ /** V1 error format. */
3248
+ '$.xgafv'?: string;
3249
+ /** OAuth access token. */
3250
+ access_token?: string;
3251
+ /** Data format for response. */
2786
3252
  alt?: string;
3253
+ /** JSONP */
3254
+ callback?: string;
2787
3255
  /** Required. Dataset ID of the requested model. */
2788
3256
  datasetId: string;
2789
3257
  /** Selector specifying which fields to include in a partial response. */
@@ -2798,15 +3266,23 @@ declare namespace gapi.client {
2798
3266
  prettyPrint?: boolean;
2799
3267
  /** Required. Project ID of the requested model. */
2800
3268
  projectId: string;
2801
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3269
+ /** 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. */
2802
3270
  quotaUser?: string;
2803
- /** Deprecated. Please use quotaUser instead. */
2804
- userIp?: string;
3271
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3272
+ upload_protocol?: string;
3273
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3274
+ uploadType?: string;
2805
3275
  }): Request<Model>;
2806
3276
  /** Lists all models in the specified dataset. Requires the READER dataset role. After retrieving the list of models, you can get information about a particular model by calling the models.get method. */
2807
3277
  list(request?: {
2808
- /** Data format for the response. */
3278
+ /** V1 error format. */
3279
+ '$.xgafv'?: string;
3280
+ /** OAuth access token. */
3281
+ access_token?: string;
3282
+ /** Data format for response. */
2809
3283
  alt?: string;
3284
+ /** JSONP */
3285
+ callback?: string;
2810
3286
  /** Required. Dataset ID of the models to list. */
2811
3287
  datasetId: string;
2812
3288
  /** Selector specifying which fields to include in a partial response. */
@@ -2823,15 +3299,23 @@ declare namespace gapi.client {
2823
3299
  prettyPrint?: boolean;
2824
3300
  /** Required. Project ID of the models to list. */
2825
3301
  projectId: string;
2826
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3302
+ /** 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. */
2827
3303
  quotaUser?: string;
2828
- /** Deprecated. Please use quotaUser instead. */
2829
- userIp?: string;
3304
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3305
+ upload_protocol?: string;
3306
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3307
+ uploadType?: string;
2830
3308
  }): Request<ListModelsResponse>;
2831
3309
  /** Patch specific fields in the specified model. */
2832
3310
  patch(request: {
2833
- /** Data format for the response. */
3311
+ /** V1 error format. */
3312
+ '$.xgafv'?: string;
3313
+ /** OAuth access token. */
3314
+ access_token?: string;
3315
+ /** Data format for response. */
2834
3316
  alt?: string;
3317
+ /** JSONP */
3318
+ callback?: string;
2835
3319
  /** Required. Dataset ID of the model to patch. */
2836
3320
  datasetId: string;
2837
3321
  /** Selector specifying which fields to include in a partial response. */
@@ -2846,17 +3330,25 @@ declare namespace gapi.client {
2846
3330
  prettyPrint?: boolean;
2847
3331
  /** Required. Project ID of the model to patch. */
2848
3332
  projectId: string;
2849
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3333
+ /** 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. */
2850
3334
  quotaUser?: string;
2851
- /** Deprecated. Please use quotaUser instead. */
2852
- userIp?: string;
3335
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3336
+ upload_protocol?: string;
3337
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3338
+ uploadType?: string;
2853
3339
  /** Request body */
2854
3340
  resource: Model;
2855
3341
  }): Request<Model>;
2856
3342
  patch(
2857
3343
  request: {
2858
- /** Data format for the response. */
3344
+ /** V1 error format. */
3345
+ '$.xgafv'?: string;
3346
+ /** OAuth access token. */
3347
+ access_token?: string;
3348
+ /** Data format for response. */
2859
3349
  alt?: string;
3350
+ /** JSONP */
3351
+ callback?: string;
2860
3352
  /** Required. Dataset ID of the model to patch. */
2861
3353
  datasetId: string;
2862
3354
  /** Selector specifying which fields to include in a partial response. */
@@ -2871,19 +3363,27 @@ declare namespace gapi.client {
2871
3363
  prettyPrint?: boolean;
2872
3364
  /** Required. Project ID of the model to patch. */
2873
3365
  projectId: string;
2874
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3366
+ /** 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. */
2875
3367
  quotaUser?: string;
2876
- /** Deprecated. Please use quotaUser instead. */
2877
- userIp?: string;
3368
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3369
+ upload_protocol?: string;
3370
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3371
+ uploadType?: string;
2878
3372
  },
2879
3373
  body: Model
2880
3374
  ): Request<Model>;
2881
3375
  }
2882
3376
  interface ProjectsResource {
2883
- /** Returns the email address of the service account for your project used for interactions with Google Cloud KMS. */
3377
+ /** RPC to get the service account for a project used for interactions with Google Cloud KMS */
2884
3378
  getServiceAccount(request?: {
2885
- /** Data format for the response. */
3379
+ /** V1 error format. */
3380
+ '$.xgafv'?: string;
3381
+ /** OAuth access token. */
3382
+ access_token?: string;
3383
+ /** Data format for response. */
2886
3384
  alt?: string;
3385
+ /** JSONP */
3386
+ callback?: string;
2887
3387
  /** Selector specifying which fields to include in a partial response. */
2888
3388
  fields?: string;
2889
3389
  /** 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. */
@@ -2892,40 +3392,56 @@ declare namespace gapi.client {
2892
3392
  oauth_token?: string;
2893
3393
  /** Returns response with indentations and line breaks. */
2894
3394
  prettyPrint?: boolean;
2895
- /** Project ID for which the service account is requested. */
3395
+ /** Required. ID of the project. */
2896
3396
  projectId: string;
2897
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3397
+ /** 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. */
2898
3398
  quotaUser?: string;
2899
- /** Deprecated. Please use quotaUser instead. */
2900
- userIp?: string;
3399
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3400
+ upload_protocol?: string;
3401
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3402
+ uploadType?: string;
2901
3403
  }): Request<GetServiceAccountResponse>;
2902
- /** Lists all projects to which you have been granted any project role. */
3404
+ /** RPC to list projects to which the user has been granted any project role. Users of this method are encouraged to consider the [Resource Manager](https://cloud.google.com/resource-manager/docs/) API, which provides the underlying data for this method and has more capabilities. */
2903
3405
  list(request?: {
2904
- /** Data format for the response. */
3406
+ /** V1 error format. */
3407
+ '$.xgafv'?: string;
3408
+ /** OAuth access token. */
3409
+ access_token?: string;
3410
+ /** Data format for response. */
2905
3411
  alt?: string;
3412
+ /** JSONP */
3413
+ callback?: string;
2906
3414
  /** Selector specifying which fields to include in a partial response. */
2907
3415
  fields?: string;
2908
3416
  /** 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. */
2909
3417
  key?: string;
2910
- /** Maximum number of results to return */
3418
+ /** `maxResults` unset returns all results, up to 50 per page. Additionally, the number of projects in a page may be fewer than `maxResults` because projects are retrieved and then filtered to only projects with the BigQuery API enabled. */
2911
3419
  maxResults?: number;
2912
3420
  /** OAuth 2.0 token for the current user. */
2913
3421
  oauth_token?: string;
2914
- /** Page token, returned by a previous call, to request the next page of results */
3422
+ /** Page token, returned by a previous call, to request the next page of results. If not present, no further pages are present. */
2915
3423
  pageToken?: string;
2916
3424
  /** Returns response with indentations and line breaks. */
2917
3425
  prettyPrint?: boolean;
2918
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3426
+ /** 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. */
2919
3427
  quotaUser?: string;
2920
- /** Deprecated. Please use quotaUser instead. */
2921
- userIp?: string;
3428
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3429
+ upload_protocol?: string;
3430
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3431
+ uploadType?: string;
2922
3432
  }): Request<ProjectList>;
2923
3433
  }
2924
3434
  interface RoutinesResource {
2925
3435
  /** Deletes the routine specified by routineId from the dataset. */
2926
3436
  delete(request?: {
2927
- /** Data format for the response. */
3437
+ /** V1 error format. */
3438
+ '$.xgafv'?: string;
3439
+ /** OAuth access token. */
3440
+ access_token?: string;
3441
+ /** Data format for response. */
2928
3442
  alt?: string;
3443
+ /** JSONP */
3444
+ callback?: string;
2929
3445
  /** Required. Dataset ID of the routine to delete */
2930
3446
  datasetId: string;
2931
3447
  /** Selector specifying which fields to include in a partial response. */
@@ -2938,17 +3454,25 @@ declare namespace gapi.client {
2938
3454
  prettyPrint?: boolean;
2939
3455
  /** Required. Project ID of the routine to delete */
2940
3456
  projectId: string;
2941
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3457
+ /** 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. */
2942
3458
  quotaUser?: string;
2943
3459
  /** Required. Routine ID of the routine to delete */
2944
3460
  routineId: string;
2945
- /** Deprecated. Please use quotaUser instead. */
2946
- userIp?: string;
3461
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3462
+ upload_protocol?: string;
3463
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3464
+ uploadType?: string;
2947
3465
  }): Request<void>;
2948
3466
  /** Gets the specified routine resource by routine ID. */
2949
3467
  get(request?: {
2950
- /** Data format for the response. */
3468
+ /** V1 error format. */
3469
+ '$.xgafv'?: string;
3470
+ /** OAuth access token. */
3471
+ access_token?: string;
3472
+ /** Data format for response. */
2951
3473
  alt?: string;
3474
+ /** JSONP */
3475
+ callback?: string;
2952
3476
  /** Required. Dataset ID of the requested routine */
2953
3477
  datasetId: string;
2954
3478
  /** Selector specifying which fields to include in a partial response. */
@@ -2961,19 +3485,27 @@ declare namespace gapi.client {
2961
3485
  prettyPrint?: boolean;
2962
3486
  /** Required. Project ID of the requested routine */
2963
3487
  projectId: string;
2964
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3488
+ /** 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. */
2965
3489
  quotaUser?: string;
2966
3490
  /** If set, only the Routine fields in the field mask are returned in the response. If unset, all Routine fields are returned. */
2967
3491
  readMask?: string;
2968
3492
  /** Required. Routine ID of the requested routine */
2969
3493
  routineId: string;
2970
- /** Deprecated. Please use quotaUser instead. */
2971
- userIp?: string;
3494
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3495
+ upload_protocol?: string;
3496
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3497
+ uploadType?: string;
2972
3498
  }): Request<Routine>;
2973
3499
  /** Creates a new routine in the dataset. */
2974
3500
  insert(request: {
2975
- /** Data format for the response. */
3501
+ /** V1 error format. */
3502
+ '$.xgafv'?: string;
3503
+ /** OAuth access token. */
3504
+ access_token?: string;
3505
+ /** Data format for response. */
2976
3506
  alt?: string;
3507
+ /** JSONP */
3508
+ callback?: string;
2977
3509
  /** Required. Dataset ID of the new routine */
2978
3510
  datasetId: string;
2979
3511
  /** Selector specifying which fields to include in a partial response. */
@@ -2986,17 +3518,25 @@ declare namespace gapi.client {
2986
3518
  prettyPrint?: boolean;
2987
3519
  /** Required. Project ID of the new routine */
2988
3520
  projectId: string;
2989
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3521
+ /** 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. */
2990
3522
  quotaUser?: string;
2991
- /** Deprecated. Please use quotaUser instead. */
2992
- userIp?: string;
3523
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3524
+ upload_protocol?: string;
3525
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3526
+ uploadType?: string;
2993
3527
  /** Request body */
2994
3528
  resource: Routine;
2995
3529
  }): Request<Routine>;
2996
3530
  insert(
2997
3531
  request: {
2998
- /** Data format for the response. */
3532
+ /** V1 error format. */
3533
+ '$.xgafv'?: string;
3534
+ /** OAuth access token. */
3535
+ access_token?: string;
3536
+ /** Data format for response. */
2999
3537
  alt?: string;
3538
+ /** JSONP */
3539
+ callback?: string;
3000
3540
  /** Required. Dataset ID of the new routine */
3001
3541
  datasetId: string;
3002
3542
  /** Selector specifying which fields to include in a partial response. */
@@ -3009,17 +3549,25 @@ declare namespace gapi.client {
3009
3549
  prettyPrint?: boolean;
3010
3550
  /** Required. Project ID of the new routine */
3011
3551
  projectId: string;
3012
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3552
+ /** 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. */
3013
3553
  quotaUser?: string;
3014
- /** Deprecated. Please use quotaUser instead. */
3015
- userIp?: string;
3554
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3555
+ upload_protocol?: string;
3556
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3557
+ uploadType?: string;
3016
3558
  },
3017
3559
  body: Routine
3018
3560
  ): Request<Routine>;
3019
3561
  /** Lists all routines in the specified dataset. Requires the READER dataset role. */
3020
3562
  list(request?: {
3021
- /** Data format for the response. */
3563
+ /** V1 error format. */
3564
+ '$.xgafv'?: string;
3565
+ /** OAuth access token. */
3566
+ access_token?: string;
3567
+ /** Data format for response. */
3022
3568
  alt?: string;
3569
+ /** JSONP */
3570
+ callback?: string;
3023
3571
  /** Required. Dataset ID of the routines to list */
3024
3572
  datasetId: string;
3025
3573
  /** Selector specifying which fields to include in a partial response. */
@@ -3038,17 +3586,25 @@ declare namespace gapi.client {
3038
3586
  prettyPrint?: boolean;
3039
3587
  /** Required. Project ID of the routines to list */
3040
3588
  projectId: string;
3041
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3589
+ /** 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. */
3042
3590
  quotaUser?: string;
3043
3591
  /** If set, then only the Routine fields in the field mask, as well as project_id, dataset_id and routine_id, are returned in the response. If unset, then the following Routine fields are returned: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language. */
3044
3592
  readMask?: string;
3045
- /** Deprecated. Please use quotaUser instead. */
3046
- userIp?: string;
3593
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3594
+ upload_protocol?: string;
3595
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3596
+ uploadType?: string;
3047
3597
  }): Request<ListRoutinesResponse>;
3048
3598
  /** Updates information in an existing routine. The update method replaces the entire Routine resource. */
3049
3599
  update(request: {
3050
- /** Data format for the response. */
3600
+ /** V1 error format. */
3601
+ '$.xgafv'?: string;
3602
+ /** OAuth access token. */
3603
+ access_token?: string;
3604
+ /** Data format for response. */
3051
3605
  alt?: string;
3606
+ /** JSONP */
3607
+ callback?: string;
3052
3608
  /** Required. Dataset ID of the routine to update */
3053
3609
  datasetId: string;
3054
3610
  /** Selector specifying which fields to include in a partial response. */
@@ -3061,19 +3617,27 @@ declare namespace gapi.client {
3061
3617
  prettyPrint?: boolean;
3062
3618
  /** Required. Project ID of the routine to update */
3063
3619
  projectId: string;
3064
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3620
+ /** 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. */
3065
3621
  quotaUser?: string;
3066
3622
  /** Required. Routine ID of the routine to update */
3067
3623
  routineId: string;
3068
- /** Deprecated. Please use quotaUser instead. */
3069
- userIp?: string;
3624
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3625
+ upload_protocol?: string;
3626
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3627
+ uploadType?: string;
3070
3628
  /** Request body */
3071
3629
  resource: Routine;
3072
3630
  }): Request<Routine>;
3073
3631
  update(
3074
3632
  request: {
3075
- /** Data format for the response. */
3633
+ /** V1 error format. */
3634
+ '$.xgafv'?: string;
3635
+ /** OAuth access token. */
3636
+ access_token?: string;
3637
+ /** Data format for response. */
3076
3638
  alt?: string;
3639
+ /** JSONP */
3640
+ callback?: string;
3077
3641
  /** Required. Dataset ID of the routine to update */
3078
3642
  datasetId: string;
3079
3643
  /** Selector specifying which fields to include in a partial response. */
@@ -3086,12 +3650,14 @@ declare namespace gapi.client {
3086
3650
  prettyPrint?: boolean;
3087
3651
  /** Required. Project ID of the routine to update */
3088
3652
  projectId: string;
3089
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3653
+ /** 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. */
3090
3654
  quotaUser?: string;
3091
3655
  /** Required. Routine ID of the routine to update */
3092
3656
  routineId: string;
3093
- /** Deprecated. Please use quotaUser instead. */
3094
- userIp?: string;
3657
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3658
+ upload_protocol?: string;
3659
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3660
+ uploadType?: string;
3095
3661
  },
3096
3662
  body: Routine
3097
3663
  ): Request<Routine>;
@@ -3100,8 +3666,14 @@ declare namespace gapi.client {
3100
3666
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3101
3667
  getIamPolicy(
3102
3668
  request: {
3103
- /** Data format for the response. */
3669
+ /** V1 error format. */
3670
+ '$.xgafv'?: string;
3671
+ /** OAuth access token. */
3672
+ access_token?: string;
3673
+ /** Data format for response. */
3104
3674
  alt?: string;
3675
+ /** JSONP */
3676
+ callback?: string;
3105
3677
  /** Selector specifying which fields to include in a partial response. */
3106
3678
  fields?: string;
3107
3679
  /** 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. */
@@ -3110,19 +3682,27 @@ declare namespace gapi.client {
3110
3682
  oauth_token?: string;
3111
3683
  /** Returns response with indentations and line breaks. */
3112
3684
  prettyPrint?: boolean;
3113
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3685
+ /** 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. */
3114
3686
  quotaUser?: string;
3115
3687
  /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3116
3688
  resource: string;
3117
- /** Deprecated. Please use quotaUser instead. */
3118
- userIp?: string;
3689
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3690
+ upload_protocol?: string;
3691
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3692
+ uploadType?: string;
3119
3693
  },
3120
3694
  body: GetIamPolicyRequest
3121
3695
  ): Request<Policy>;
3122
3696
  /** Lists all row access policies on the specified table. */
3123
3697
  list(request?: {
3124
- /** Data format for the response. */
3698
+ /** V1 error format. */
3699
+ '$.xgafv'?: string;
3700
+ /** OAuth access token. */
3701
+ access_token?: string;
3702
+ /** Data format for response. */
3125
3703
  alt?: string;
3704
+ /** JSONP */
3705
+ callback?: string;
3126
3706
  /** Required. Dataset ID of row access policies to list. */
3127
3707
  datasetId: string;
3128
3708
  /** Selector specifying which fields to include in a partial response. */
@@ -3139,18 +3719,26 @@ declare namespace gapi.client {
3139
3719
  prettyPrint?: boolean;
3140
3720
  /** Required. Project ID of the row access policies to list. */
3141
3721
  projectId: string;
3142
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3722
+ /** 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. */
3143
3723
  quotaUser?: string;
3144
3724
  /** Required. Table ID of the table to list row access policies. */
3145
3725
  tableId: string;
3146
- /** Deprecated. Please use quotaUser instead. */
3147
- userIp?: string;
3726
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3727
+ upload_protocol?: string;
3728
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3729
+ uploadType?: string;
3148
3730
  }): Request<ListRowAccessPoliciesResponse>;
3149
3731
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
3150
3732
  testIamPermissions(
3151
3733
  request: {
3152
- /** Data format for the response. */
3734
+ /** V1 error format. */
3735
+ '$.xgafv'?: string;
3736
+ /** OAuth access token. */
3737
+ access_token?: string;
3738
+ /** Data format for response. */
3153
3739
  alt?: string;
3740
+ /** JSONP */
3741
+ callback?: string;
3154
3742
  /** Selector specifying which fields to include in a partial response. */
3155
3743
  fields?: string;
3156
3744
  /** 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. */
@@ -3159,22 +3747,30 @@ declare namespace gapi.client {
3159
3747
  oauth_token?: string;
3160
3748
  /** Returns response with indentations and line breaks. */
3161
3749
  prettyPrint?: boolean;
3162
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3750
+ /** 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. */
3163
3751
  quotaUser?: string;
3164
3752
  /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3165
3753
  resource: string;
3166
- /** Deprecated. Please use quotaUser instead. */
3167
- userIp?: string;
3754
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3755
+ upload_protocol?: string;
3756
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3757
+ uploadType?: string;
3168
3758
  },
3169
3759
  body: TestIamPermissionsRequest
3170
3760
  ): Request<TestIamPermissionsResponse>;
3171
3761
  }
3172
3762
  interface TabledataResource {
3173
- /** Streams data into BigQuery one record at a time without needing to run a load job. Requires the WRITER dataset role. */
3763
+ /** Streams data into BigQuery one record at a time without needing to run a load job. */
3174
3764
  insertAll(request: {
3175
- /** Data format for the response. */
3765
+ /** V1 error format. */
3766
+ '$.xgafv'?: string;
3767
+ /** OAuth access token. */
3768
+ access_token?: string;
3769
+ /** Data format for response. */
3176
3770
  alt?: string;
3177
- /** Dataset ID of the destination table. */
3771
+ /** JSONP */
3772
+ callback?: string;
3773
+ /** Required. Dataset ID of the destination. */
3178
3774
  datasetId: string;
3179
3775
  /** Selector specifying which fields to include in a partial response. */
3180
3776
  fields?: string;
@@ -3184,22 +3780,30 @@ declare namespace gapi.client {
3184
3780
  oauth_token?: string;
3185
3781
  /** Returns response with indentations and line breaks. */
3186
3782
  prettyPrint?: boolean;
3187
- /** Project ID of the destination table. */
3783
+ /** Required. Project ID of the destination. */
3188
3784
  projectId: string;
3189
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3785
+ /** 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. */
3190
3786
  quotaUser?: string;
3191
- /** Table ID of the destination table. */
3787
+ /** Required. Table ID of the destination. */
3192
3788
  tableId: string;
3193
- /** Deprecated. Please use quotaUser instead. */
3194
- userIp?: string;
3789
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3790
+ upload_protocol?: string;
3791
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3792
+ uploadType?: string;
3195
3793
  /** Request body */
3196
3794
  resource: TableDataInsertAllRequest;
3197
3795
  }): Request<TableDataInsertAllResponse>;
3198
3796
  insertAll(
3199
3797
  request: {
3200
- /** Data format for the response. */
3798
+ /** V1 error format. */
3799
+ '$.xgafv'?: string;
3800
+ /** OAuth access token. */
3801
+ access_token?: string;
3802
+ /** Data format for response. */
3201
3803
  alt?: string;
3202
- /** Dataset ID of the destination table. */
3804
+ /** JSONP */
3805
+ callback?: string;
3806
+ /** Required. Dataset ID of the destination. */
3203
3807
  datasetId: string;
3204
3808
  /** Selector specifying which fields to include in a partial response. */
3205
3809
  fields?: string;
@@ -3209,55 +3813,73 @@ declare namespace gapi.client {
3209
3813
  oauth_token?: string;
3210
3814
  /** Returns response with indentations and line breaks. */
3211
3815
  prettyPrint?: boolean;
3212
- /** Project ID of the destination table. */
3816
+ /** Required. Project ID of the destination. */
3213
3817
  projectId: string;
3214
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3818
+ /** 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. */
3215
3819
  quotaUser?: string;
3216
- /** Table ID of the destination table. */
3820
+ /** Required. Table ID of the destination. */
3217
3821
  tableId: string;
3218
- /** Deprecated. Please use quotaUser instead. */
3219
- userIp?: string;
3822
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3823
+ upload_protocol?: string;
3824
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3825
+ uploadType?: string;
3220
3826
  },
3221
3827
  body: TableDataInsertAllRequest
3222
3828
  ): Request<TableDataInsertAllResponse>;
3223
- /** Retrieves table data from a specified set of rows. Requires the READER dataset role. */
3829
+ /** List the content of a table in rows. */
3224
3830
  list(request?: {
3225
- /** Data format for the response. */
3831
+ /** V1 error format. */
3832
+ '$.xgafv'?: string;
3833
+ /** OAuth access token. */
3834
+ access_token?: string;
3835
+ /** Data format for response. */
3226
3836
  alt?: string;
3227
- /** Dataset ID of the table to read */
3837
+ /** JSONP */
3838
+ callback?: string;
3839
+ /** Required. Dataset id of the table to list. */
3228
3840
  datasetId: string;
3229
3841
  /** Selector specifying which fields to include in a partial response. */
3230
3842
  fields?: string;
3843
+ /** Optional. Output timestamp as usec int64. Default is false. */
3844
+ 'formatOptions.useInt64Timestamp'?: boolean;
3231
3845
  /** 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. */
3232
3846
  key?: string;
3233
- /** Maximum number of results to return */
3847
+ /** Row limit of the table. */
3234
3848
  maxResults?: number;
3235
3849
  /** OAuth 2.0 token for the current user. */
3236
3850
  oauth_token?: string;
3237
- /** Page token, returned by a previous call, identifying the result set */
3851
+ /** To retrieve the next page of table data, set this field to the string provided in the pageToken field of the response body from your previous call to tabledata.list. */
3238
3852
  pageToken?: string;
3239
3853
  /** Returns response with indentations and line breaks. */
3240
3854
  prettyPrint?: boolean;
3241
- /** Project ID of the table to read */
3855
+ /** Required. Project id of the table to list. */
3242
3856
  projectId: string;
3243
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3857
+ /** 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. */
3244
3858
  quotaUser?: string;
3245
- /** List of fields to return (comma-separated). If unspecified, all fields are returned */
3859
+ /** Subset of fields to return, supports select into sub fields. Example: selected_fields = "a,e.d.f"; */
3246
3860
  selectedFields?: string;
3247
- /** Zero-based index of the starting row to read */
3861
+ /** Start row index of the table. */
3248
3862
  startIndex?: string;
3249
- /** Table ID of the table to read */
3863
+ /** Required. Table id of the table to list. */
3250
3864
  tableId: string;
3251
- /** Deprecated. Please use quotaUser instead. */
3252
- userIp?: string;
3865
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3866
+ upload_protocol?: string;
3867
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3868
+ uploadType?: string;
3253
3869
  }): Request<TableDataList>;
3254
3870
  }
3255
3871
  interface TablesResource {
3256
3872
  /** Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted. */
3257
3873
  delete(request?: {
3258
- /** Data format for the response. */
3874
+ /** V1 error format. */
3875
+ '$.xgafv'?: string;
3876
+ /** OAuth access token. */
3877
+ access_token?: string;
3878
+ /** Data format for response. */
3259
3879
  alt?: string;
3260
- /** Dataset ID of the table to delete */
3880
+ /** JSONP */
3881
+ callback?: string;
3882
+ /** Required. Dataset ID of the table to delete */
3261
3883
  datasetId: string;
3262
3884
  /** Selector specifying which fields to include in a partial response. */
3263
3885
  fields?: string;
@@ -3267,20 +3889,28 @@ declare namespace gapi.client {
3267
3889
  oauth_token?: string;
3268
3890
  /** Returns response with indentations and line breaks. */
3269
3891
  prettyPrint?: boolean;
3270
- /** Project ID of the table to delete */
3892
+ /** Required. Project ID of the table to delete */
3271
3893
  projectId: string;
3272
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3894
+ /** 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. */
3273
3895
  quotaUser?: string;
3274
- /** Table ID of the table to delete */
3896
+ /** Required. Table ID of the table to delete */
3275
3897
  tableId: string;
3276
- /** Deprecated. Please use quotaUser instead. */
3277
- userIp?: string;
3898
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3899
+ upload_protocol?: string;
3900
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3901
+ uploadType?: string;
3278
3902
  }): Request<void>;
3279
3903
  /** Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table. */
3280
3904
  get(request?: {
3281
- /** Data format for the response. */
3905
+ /** V1 error format. */
3906
+ '$.xgafv'?: string;
3907
+ /** OAuth access token. */
3908
+ access_token?: string;
3909
+ /** Data format for response. */
3282
3910
  alt?: string;
3283
- /** Dataset ID of the requested table */
3911
+ /** JSONP */
3912
+ callback?: string;
3913
+ /** Required. Dataset ID of the requested table */
3284
3914
  datasetId: string;
3285
3915
  /** Selector specifying which fields to include in a partial response. */
3286
3916
  fields?: string;
@@ -3290,24 +3920,32 @@ declare namespace gapi.client {
3290
3920
  oauth_token?: string;
3291
3921
  /** Returns response with indentations and line breaks. */
3292
3922
  prettyPrint?: boolean;
3293
- /** Project ID of the requested table */
3923
+ /** Required. Project ID of the requested table */
3294
3924
  projectId: string;
3295
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3925
+ /** 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. */
3296
3926
  quotaUser?: string;
3297
- /** List of fields to return (comma-separated). If unspecified, all fields are returned */
3927
+ /** List of table schema fields to return (comma-separated). If unspecified, all fields are returned. A fieldMask cannot be used here because the fields will automatically be converted from camelCase to snake_case and the conversion will fail if there are underscores. Since these are fields in BigQuery table schemas, underscores are allowed. */
3298
3928
  selectedFields?: string;
3299
- /** Table ID of the requested table */
3929
+ /** Required. Table ID of the requested table */
3300
3930
  tableId: string;
3301
- /** Deprecated. Please use quotaUser instead. */
3302
- userIp?: string;
3303
- /** Specifies the view that determines which table information is returned. By default, basic table information and storage statistics (STORAGE_STATS) are returned. */
3931
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3932
+ upload_protocol?: string;
3933
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3934
+ uploadType?: string;
3935
+ /** Optional. Specifies the view that determines which table information is returned. By default, basic table information and storage statistics (STORAGE_STATS) are returned. */
3304
3936
  view?: string;
3305
3937
  }): Request<Table>;
3306
3938
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3307
3939
  getIamPolicy(
3308
3940
  request: {
3309
- /** Data format for the response. */
3941
+ /** V1 error format. */
3942
+ '$.xgafv'?: string;
3943
+ /** OAuth access token. */
3944
+ access_token?: string;
3945
+ /** Data format for response. */
3310
3946
  alt?: string;
3947
+ /** JSONP */
3948
+ callback?: string;
3311
3949
  /** Selector specifying which fields to include in a partial response. */
3312
3950
  fields?: string;
3313
3951
  /** 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. */
@@ -3316,20 +3954,28 @@ declare namespace gapi.client {
3316
3954
  oauth_token?: string;
3317
3955
  /** Returns response with indentations and line breaks. */
3318
3956
  prettyPrint?: boolean;
3319
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3957
+ /** 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. */
3320
3958
  quotaUser?: string;
3321
3959
  /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3322
3960
  resource: string;
3323
- /** Deprecated. Please use quotaUser instead. */
3324
- userIp?: string;
3961
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3962
+ upload_protocol?: string;
3963
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3964
+ uploadType?: string;
3325
3965
  },
3326
3966
  body: GetIamPolicyRequest
3327
3967
  ): Request<Policy>;
3328
3968
  /** Creates a new, empty table in the dataset. */
3329
3969
  insert(request: {
3330
- /** Data format for the response. */
3970
+ /** V1 error format. */
3971
+ '$.xgafv'?: string;
3972
+ /** OAuth access token. */
3973
+ access_token?: string;
3974
+ /** Data format for response. */
3331
3975
  alt?: string;
3332
- /** Dataset ID of the new table */
3976
+ /** JSONP */
3977
+ callback?: string;
3978
+ /** Required. Dataset ID of the new table */
3333
3979
  datasetId: string;
3334
3980
  /** Selector specifying which fields to include in a partial response. */
3335
3981
  fields?: string;
@@ -3339,20 +3985,28 @@ declare namespace gapi.client {
3339
3985
  oauth_token?: string;
3340
3986
  /** Returns response with indentations and line breaks. */
3341
3987
  prettyPrint?: boolean;
3342
- /** Project ID of the new table */
3988
+ /** Required. Project ID of the new table */
3343
3989
  projectId: string;
3344
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3990
+ /** 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. */
3345
3991
  quotaUser?: string;
3346
- /** Deprecated. Please use quotaUser instead. */
3347
- userIp?: string;
3992
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3993
+ upload_protocol?: string;
3994
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3995
+ uploadType?: string;
3348
3996
  /** Request body */
3349
3997
  resource: Table;
3350
3998
  }): Request<Table>;
3351
3999
  insert(
3352
4000
  request: {
3353
- /** Data format for the response. */
4001
+ /** V1 error format. */
4002
+ '$.xgafv'?: string;
4003
+ /** OAuth access token. */
4004
+ access_token?: string;
4005
+ /** Data format for response. */
3354
4006
  alt?: string;
3355
- /** Dataset ID of the new table */
4007
+ /** JSONP */
4008
+ callback?: string;
4009
+ /** Required. Dataset ID of the new table */
3356
4010
  datasetId: string;
3357
4011
  /** Selector specifying which fields to include in a partial response. */
3358
4012
  fields?: string;
@@ -3362,26 +4016,34 @@ declare namespace gapi.client {
3362
4016
  oauth_token?: string;
3363
4017
  /** Returns response with indentations and line breaks. */
3364
4018
  prettyPrint?: boolean;
3365
- /** Project ID of the new table */
4019
+ /** Required. Project ID of the new table */
3366
4020
  projectId: string;
3367
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4021
+ /** 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. */
3368
4022
  quotaUser?: string;
3369
- /** Deprecated. Please use quotaUser instead. */
3370
- userIp?: string;
4023
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4024
+ upload_protocol?: string;
4025
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4026
+ uploadType?: string;
3371
4027
  },
3372
4028
  body: Table
3373
4029
  ): Request<Table>;
3374
4030
  /** Lists all tables in the specified dataset. Requires the READER dataset role. */
3375
4031
  list(request?: {
3376
- /** Data format for the response. */
4032
+ /** V1 error format. */
4033
+ '$.xgafv'?: string;
4034
+ /** OAuth access token. */
4035
+ access_token?: string;
4036
+ /** Data format for response. */
3377
4037
  alt?: string;
3378
- /** Dataset ID of the tables to list */
4038
+ /** JSONP */
4039
+ callback?: string;
4040
+ /** Required. Dataset ID of the tables to list */
3379
4041
  datasetId: string;
3380
4042
  /** Selector specifying which fields to include in a partial response. */
3381
4043
  fields?: string;
3382
4044
  /** 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. */
3383
4045
  key?: string;
3384
- /** Maximum number of results to return */
4046
+ /** The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection. */
3385
4047
  maxResults?: number;
3386
4048
  /** OAuth 2.0 token for the current user. */
3387
4049
  oauth_token?: string;
@@ -3389,20 +4051,28 @@ declare namespace gapi.client {
3389
4051
  pageToken?: string;
3390
4052
  /** Returns response with indentations and line breaks. */
3391
4053
  prettyPrint?: boolean;
3392
- /** Project ID of the tables to list */
4054
+ /** Required. Project ID of the tables to list */
3393
4055
  projectId: string;
3394
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4056
+ /** 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. */
3395
4057
  quotaUser?: string;
3396
- /** Deprecated. Please use quotaUser instead. */
3397
- userIp?: string;
4058
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4059
+ upload_protocol?: string;
4060
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4061
+ uploadType?: string;
3398
4062
  }): Request<TableList>;
3399
- /** Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics. */
4063
+ /** Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports RFC5789 patch semantics. */
3400
4064
  patch(request: {
3401
- /** Data format for the response. */
4065
+ /** V1 error format. */
4066
+ '$.xgafv'?: string;
4067
+ /** OAuth access token. */
4068
+ access_token?: string;
4069
+ /** Data format for response. */
3402
4070
  alt?: string;
3403
- /** When true will autodetect schema, else will keep original schema */
4071
+ /** Optional. When true will autodetect schema, else will keep original schema */
3404
4072
  autodetect_schema?: boolean;
3405
- /** Dataset ID of the table to update */
4073
+ /** JSONP */
4074
+ callback?: string;
4075
+ /** Required. Dataset ID of the table to update */
3406
4076
  datasetId: string;
3407
4077
  /** Selector specifying which fields to include in a partial response. */
3408
4078
  fields?: string;
@@ -3412,24 +4082,32 @@ declare namespace gapi.client {
3412
4082
  oauth_token?: string;
3413
4083
  /** Returns response with indentations and line breaks. */
3414
4084
  prettyPrint?: boolean;
3415
- /** Project ID of the table to update */
4085
+ /** Required. Project ID of the table to update */
3416
4086
  projectId: string;
3417
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4087
+ /** 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. */
3418
4088
  quotaUser?: string;
3419
- /** Table ID of the table to update */
4089
+ /** Required. Table ID of the table to update */
3420
4090
  tableId: string;
3421
- /** Deprecated. Please use quotaUser instead. */
3422
- userIp?: string;
4091
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4092
+ upload_protocol?: string;
4093
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4094
+ uploadType?: string;
3423
4095
  /** Request body */
3424
4096
  resource: Table;
3425
4097
  }): Request<Table>;
3426
4098
  patch(
3427
4099
  request: {
3428
- /** Data format for the response. */
4100
+ /** V1 error format. */
4101
+ '$.xgafv'?: string;
4102
+ /** OAuth access token. */
4103
+ access_token?: string;
4104
+ /** Data format for response. */
3429
4105
  alt?: string;
3430
- /** When true will autodetect schema, else will keep original schema */
4106
+ /** Optional. When true will autodetect schema, else will keep original schema */
3431
4107
  autodetect_schema?: boolean;
3432
- /** Dataset ID of the table to update */
4108
+ /** JSONP */
4109
+ callback?: string;
4110
+ /** Required. Dataset ID of the table to update */
3433
4111
  datasetId: string;
3434
4112
  /** Selector specifying which fields to include in a partial response. */
3435
4113
  fields?: string;
@@ -3439,22 +4117,30 @@ declare namespace gapi.client {
3439
4117
  oauth_token?: string;
3440
4118
  /** Returns response with indentations and line breaks. */
3441
4119
  prettyPrint?: boolean;
3442
- /** Project ID of the table to update */
4120
+ /** Required. Project ID of the table to update */
3443
4121
  projectId: string;
3444
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4122
+ /** 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. */
3445
4123
  quotaUser?: string;
3446
- /** Table ID of the table to update */
4124
+ /** Required. Table ID of the table to update */
3447
4125
  tableId: string;
3448
- /** Deprecated. Please use quotaUser instead. */
3449
- userIp?: string;
4126
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4127
+ upload_protocol?: string;
4128
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4129
+ uploadType?: string;
3450
4130
  },
3451
4131
  body: Table
3452
4132
  ): Request<Table>;
3453
4133
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
3454
4134
  setIamPolicy(
3455
4135
  request: {
3456
- /** Data format for the response. */
4136
+ /** V1 error format. */
4137
+ '$.xgafv'?: string;
4138
+ /** OAuth access token. */
4139
+ access_token?: string;
4140
+ /** Data format for response. */
3457
4141
  alt?: string;
4142
+ /** JSONP */
4143
+ callback?: string;
3458
4144
  /** Selector specifying which fields to include in a partial response. */
3459
4145
  fields?: string;
3460
4146
  /** 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. */
@@ -3463,20 +4149,28 @@ declare namespace gapi.client {
3463
4149
  oauth_token?: string;
3464
4150
  /** Returns response with indentations and line breaks. */
3465
4151
  prettyPrint?: boolean;
3466
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4152
+ /** 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. */
3467
4153
  quotaUser?: string;
3468
4154
  /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3469
4155
  resource: string;
3470
- /** Deprecated. Please use quotaUser instead. */
3471
- userIp?: string;
4156
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4157
+ upload_protocol?: string;
4158
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4159
+ uploadType?: string;
3472
4160
  },
3473
4161
  body: SetIamPolicyRequest
3474
4162
  ): Request<Policy>;
3475
4163
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
3476
4164
  testIamPermissions(
3477
4165
  request: {
3478
- /** Data format for the response. */
4166
+ /** V1 error format. */
4167
+ '$.xgafv'?: string;
4168
+ /** OAuth access token. */
4169
+ access_token?: string;
4170
+ /** Data format for response. */
3479
4171
  alt?: string;
4172
+ /** JSONP */
4173
+ callback?: string;
3480
4174
  /** Selector specifying which fields to include in a partial response. */
3481
4175
  fields?: string;
3482
4176
  /** 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. */
@@ -3485,22 +4179,30 @@ declare namespace gapi.client {
3485
4179
  oauth_token?: string;
3486
4180
  /** Returns response with indentations and line breaks. */
3487
4181
  prettyPrint?: boolean;
3488
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4182
+ /** 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. */
3489
4183
  quotaUser?: string;
3490
4184
  /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3491
4185
  resource: string;
3492
- /** Deprecated. Please use quotaUser instead. */
3493
- userIp?: string;
4186
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4187
+ upload_protocol?: string;
4188
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4189
+ uploadType?: string;
3494
4190
  },
3495
4191
  body: TestIamPermissionsRequest
3496
4192
  ): Request<TestIamPermissionsResponse>;
3497
- /** Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. */
4193
+ /** Updates information in an existing table. The update method replaces the entire Table resource, whereas the patch method only replaces fields that are provided in the submitted Table resource. */
3498
4194
  update(request: {
3499
- /** Data format for the response. */
4195
+ /** V1 error format. */
4196
+ '$.xgafv'?: string;
4197
+ /** OAuth access token. */
4198
+ access_token?: string;
4199
+ /** Data format for response. */
3500
4200
  alt?: string;
3501
- /** When true will autodetect schema, else will keep original schema */
4201
+ /** Optional. When true will autodetect schema, else will keep original schema */
3502
4202
  autodetect_schema?: boolean;
3503
- /** Dataset ID of the table to update */
4203
+ /** JSONP */
4204
+ callback?: string;
4205
+ /** Required. Dataset ID of the table to update */
3504
4206
  datasetId: string;
3505
4207
  /** Selector specifying which fields to include in a partial response. */
3506
4208
  fields?: string;
@@ -3510,24 +4212,32 @@ declare namespace gapi.client {
3510
4212
  oauth_token?: string;
3511
4213
  /** Returns response with indentations and line breaks. */
3512
4214
  prettyPrint?: boolean;
3513
- /** Project ID of the table to update */
4215
+ /** Required. Project ID of the table to update */
3514
4216
  projectId: string;
3515
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4217
+ /** 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. */
3516
4218
  quotaUser?: string;
3517
- /** Table ID of the table to update */
4219
+ /** Required. Table ID of the table to update */
3518
4220
  tableId: string;
3519
- /** Deprecated. Please use quotaUser instead. */
3520
- userIp?: string;
4221
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4222
+ upload_protocol?: string;
4223
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4224
+ uploadType?: string;
3521
4225
  /** Request body */
3522
4226
  resource: Table;
3523
4227
  }): Request<Table>;
3524
4228
  update(
3525
4229
  request: {
3526
- /** Data format for the response. */
4230
+ /** V1 error format. */
4231
+ '$.xgafv'?: string;
4232
+ /** OAuth access token. */
4233
+ access_token?: string;
4234
+ /** Data format for response. */
3527
4235
  alt?: string;
3528
- /** When true will autodetect schema, else will keep original schema */
4236
+ /** Optional. When true will autodetect schema, else will keep original schema */
3529
4237
  autodetect_schema?: boolean;
3530
- /** Dataset ID of the table to update */
4238
+ /** JSONP */
4239
+ callback?: string;
4240
+ /** Required. Dataset ID of the table to update */
3531
4241
  datasetId: string;
3532
4242
  /** Selector specifying which fields to include in a partial response. */
3533
4243
  fields?: string;
@@ -3537,14 +4247,16 @@ declare namespace gapi.client {
3537
4247
  oauth_token?: string;
3538
4248
  /** Returns response with indentations and line breaks. */
3539
4249
  prettyPrint?: boolean;
3540
- /** Project ID of the table to update */
4250
+ /** Required. Project ID of the table to update */
3541
4251
  projectId: string;
3542
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4252
+ /** 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. */
3543
4253
  quotaUser?: string;
3544
- /** Table ID of the table to update */
4254
+ /** Required. Table ID of the table to update */
3545
4255
  tableId: string;
3546
- /** Deprecated. Please use quotaUser instead. */
3547
- userIp?: string;
4256
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4257
+ upload_protocol?: string;
4258
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4259
+ uploadType?: string;
3548
4260
  },
3549
4261
  body: Table
3550
4262
  ): Request<Table>;