1{
2  "kind": "discovery#restDescription",
3  "discoveryVersion": "v1",
4  "id": "bigquery:v2",
5  "name": "bigquery",
6  "version": "v2",
7  "revision": "0",
8  "title": "BigQuery API",
9  "description": "A data platform for customers to create, manage, share and query data.",
10  "ownerDomain": "google.com",
11  "ownerName": "Google",
12  "icons": {
13    "x16": "http://www.google.com/images/icons/product/search-16.gif",
14    "x32": "http://www.google.com/images/icons/product/search-32.gif"
15   },
16  "documentationLink": "https://developers.google.com/bigquery/",
17  "protocol": "rest",
18  "rootUrl": "https://bigquery.googleapis.com/",
19  "mtlsRootUrl": "https://bigquery.mtls.googleapis.com/",
20  "servicePath": "",
21  "baseUrl": "https://bigquery.googleapis.com/",
22  "batchPath": "batch",
23  "fullyEncodeReservedExpansion": true,
24  "parameters": {
25    "access_token": {
26      "type": "string",
27      "description": "OAuth access token.",
28      "location": "query"
29    },
30    "alt": {
31      "type": "string",
32      "description": "Data format for response.",
33      "default": "json",
34      "enum": [
35        "json",
36        "media",
37        "proto"
38      ],
39      "enumDescriptions": [
40        "Responses with Content-Type of application/json",
41        "Media download with context-dependent Content-Type",
42        "Responses with Content-Type of application/x-protobuf"
43      ],
44      "location": "query"
45    },
46    "callback": {
47      "type": "string",
48      "description": "JSONP",
49      "location": "query"
50    },
51    "fields": {
52      "type": "string",
53      "description": "Selector specifying which fields to include in a partial response.",
54      "location": "query"
55    },
56    "key": {
57      "type": "string",
58      "description": "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.",
59      "location": "query"
60    },
61    "oauth_token": {
62      "type": "string",
63      "description": "OAuth 2.0 token for the current user.",
64      "location": "query"
65    },
66    "prettyPrint": {
67      "type": "boolean",
68      "description": "Returns response with indentations and line breaks.",
69      "default": "true",
70      "location": "query"
71    },
72    "quotaUser": {
73      "type": "string",
74      "description": "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.",
75      "location": "query"
76    },
77    "upload_protocol": {
78      "type": "string",
79      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
80      "location": "query"
81    },
82    "uploadType": {
83      "type": "string",
84      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
85      "location": "query"
86    },
87    "$.xgafv": {
88      "type": "string",
89      "description": "V1 error format.",
90      "enum": [
91        "1",
92        "2"
93      ],
94      "enumDescriptions": [
95        "v1 error format",
96        "v2 error format"
97      ],
98      "location": "query"
99    }
100  },
101  "auth": {
102    "oauth2": {
103      "scopes": {
104        "https://www.googleapis.com/auth/bigquery": {
105          "description": "View and manage your data in Google BigQuery"
106        },
107        "https://www.googleapis.com/auth/bigquery.insertdata": {
108          "description": "Insert data into Google BigQuery"
109        },
110        "https://www.googleapis.com/auth/bigquery.readonly": {
111          "description": "View your data in Google BigQuery"
112        },
113        "https://www.googleapis.com/auth/cloud-platform": {
114          "description": "View and manage your data across Google Cloud Platform services"
115        },
116        "https://www.googleapis.com/auth/cloud-platform.read-only": {
117          "description": "View your data across Google Cloud Platform services"
118        },
119        "https://www.googleapis.com/auth/devstorage.full_control": {
120          "description": "Manage your data and permissions in Google Cloud Storage"
121        },
122        "https://www.googleapis.com/auth/devstorage.read_only": {
123          "description": "View your data in Google Cloud Storage"
124        },
125        "https://www.googleapis.com/auth/devstorage.read_write": {
126          "description": "Manage your data in Google Cloud Storage"
127        }
128      }
129    }
130  },
131  "schemas": {
132    "Dataset": {
133      "id": "Dataset",
134      "type": "object",
135      "properties": {
136        "kind": {
137          "description": "Output only. The resource type.",
138          "readOnly": true,
139          "type": "string"
140        },
141        "etag": {
142          "description": "Output only. A hash of the resource.",
143          "readOnly": true,
144          "type": "string"
145        },
146        "id": {
147          "description": "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.",
148          "readOnly": true,
149          "type": "string"
150        },
151        "selfLink": {
152          "description": "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.",
153          "readOnly": true,
154          "type": "string"
155        },
156        "datasetReference": {
157          "description": "Required. A reference that identifies the dataset.",
158          "$ref": "DatasetReference"
159        },
160        "friendlyName": {
161          "description": "Optional. A descriptive name for the dataset.",
162          "type": "string"
163        },
164        "description": {
165          "description": "Optional. A user-friendly description of the dataset.",
166          "type": "string"
167        },
168        "defaultTableExpirationMs": {
169          "description": "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.",
170          "type": "string",
171          "format": "int64"
172        },
173        "defaultPartitionExpirationMs": {
174          "description": "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.",
175          "type": "string",
176          "format": "int64"
177        },
178        "labels": {
179          "description": "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.",
180          "type": "object",
181          "additionalProperties": {
182            "type": "string"
183          }
184        },
185        "access": {
186          "description": "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;",
187          "type": "array",
188          "items": {
189            "description": "An object that defines dataset access for an entity.",
190            "type": "object",
191            "properties": {
192              "role": {
193                "description": "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\".",
194                "type": "string"
195              },
196              "userByEmail": {
197                "description": "[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\".",
198                "type": "string"
199              },
200              "groupByEmail": {
201                "description": "[Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member \"group:GROUP\".",
202                "type": "string"
203              },
204              "domain": {
205                "description": "[Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: \"example.com\". Maps to IAM policy member \"domain:DOMAIN\".",
206                "type": "string"
207              },
208              "specialGroup": {
209                "description": "[Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.",
210                "type": "string"
211              },
212              "iamMember": {
213                "description": "[Pick one] Some other type of member that appears in the IAM Policy but isn't a user, group, domain, or special group.",
214                "type": "string"
215              },
216              "view": {
217                "description": "[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.",
218                "$ref": "TableReference"
219              },
220              "routine": {
221                "description": "[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.",
222                "$ref": "RoutineReference"
223              }
224            }
225          }
226        },
227        "creationTime": {
228          "description": "Output only. The time when this dataset was created, in milliseconds since the epoch.",
229          "readOnly": true,
230          "type": "string",
231          "format": "int64"
232        },
233        "lastModifiedTime": {
234          "description": "Output only. The date when this dataset was last modified, in milliseconds since the epoch.",
235          "readOnly": true,
236          "type": "string",
237          "format": "int64"
238        },
239        "location": {
240          "description": "The geographic location where the dataset should reside. See https:\/\/cloud.google.com\/bigquery\/docs\/locations for supported locations.",
241          "type": "string"
242        },
243        "defaultEncryptionConfiguration": {
244          "description": "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.",
245          "$ref": "EncryptionConfiguration"
246        },
247        "satisfiesPzs": {
248          "description": "Output only. Reserved for future use.",
249          "readOnly": true,
250          "type": "boolean"
251        }
252      }
253    },
254    "DatasetReference": {
255      "id": "DatasetReference",
256      "type": "object",
257      "properties": {
258        "datasetId": {
259          "description": "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.",
260          "type": "string"
261        },
262        "projectId": {
263          "description": "Optional. The ID of the project containing this dataset.",
264          "type": "string"
265        }
266      }
267    },
268    "TableReference": {
269      "id": "TableReference",
270      "type": "object",
271      "properties": {
272        "projectId": {
273          "description": "Required. The ID of the project containing this table.",
274          "type": "string"
275        },
276        "datasetId": {
277          "description": "Required. The ID of the dataset containing this table.",
278          "type": "string"
279        },
280        "tableId": {
281          "description": "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. Certain operations allow suffixing of the table ID with a partition decorator, such as `sample_table$20190123`.",
282          "type": "string"
283        }
284      }
285    },
286    "RoutineReference": {
287      "id": "RoutineReference",
288      "description": "Id path of a routine.",
289      "type": "object",
290      "properties": {
291        "projectId": {
292          "description": "Required. The ID of the project containing this routine.",
293          "type": "string"
294        },
295        "datasetId": {
296          "description": "Required. The ID of the dataset containing this routine.",
297          "type": "string"
298        },
299        "routineId": {
300          "description": "Required. The ID of the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.",
301          "type": "string"
302        }
303      }
304    },
305    "EncryptionConfiguration": {
306      "id": "EncryptionConfiguration",
307      "type": "object",
308      "properties": {
309        "kmsKeyName": {
310          "description": "Optional. Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.",
311          "type": "string"
312        }
313      }
314    },
315    "DatasetList": {
316      "id": "DatasetList",
317      "type": "object",
318      "properties": {
319        "kind": {
320          "description": "Output only. The resource type. This property always returns the value \"bigquery#datasetList\"",
321          "readOnly": true,
322          "type": "string"
323        },
324        "etag": {
325          "description": "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.",
326          "readOnly": true,
327          "type": "string"
328        },
329        "nextPageToken": {
330          "description": "A token that can be used to request the next results page. This property is omitted on the final results page.",
331          "type": "string"
332        },
333        "datasets": {
334          "description": "An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project.",
335          "type": "array",
336          "items": {
337            "description": "A dataset resource with only a subset of fields, to be returned in a list of datasets.",
338            "type": "object",
339            "properties": {
340              "kind": {
341                "description": "The resource type. This property always returns the value \"bigquery#dataset\"",
342                "type": "string"
343              },
344              "id": {
345                "description": "The fully-qualified, unique, opaque ID of the dataset.",
346                "type": "string"
347              },
348              "datasetReference": {
349                "description": "The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID.",
350                "$ref": "DatasetReference"
351              },
352              "labels": {
353                "description": "The labels associated with this dataset. You can use these to organize and group your datasets.",
354                "type": "object",
355                "additionalProperties": {
356                  "type": "string"
357                }
358              },
359              "friendlyName": {
360                "description": "An alternate name for the dataset. The friendly name is purely decorative in nature.",
361                "type": "string"
362              },
363              "location": {
364                "description": "The geographic location where the dataset resides.",
365                "type": "string"
366              }
367            }
368          }
369        }
370      }
371    },
372    "Model": {
373      "id": "Model",
374      "type": "object",
375      "properties": {
376        "etag": {
377          "description": "Output only. A hash of this resource.",
378          "readOnly": true,
379          "type": "string"
380        },
381        "modelReference": {
382          "description": "Required. Unique identifier for this model.",
383          "$ref": "ModelReference"
384        },
385        "creationTime": {
386          "description": "Output only. The time when this model was created, in millisecs since the epoch.",
387          "readOnly": true,
388          "type": "string",
389          "format": "int64"
390        },
391        "lastModifiedTime": {
392          "description": "Output only. The time when this model was last modified, in millisecs since the epoch.",
393          "readOnly": true,
394          "type": "string",
395          "format": "int64"
396        },
397        "description": {
398          "description": "Optional. A user-friendly description of this model.",
399          "type": "string"
400        },
401        "friendlyName": {
402          "description": "Optional. A descriptive name for this model.",
403          "type": "string"
404        },
405        "labels": {
406          "description": "The labels associated with this model. You can use these to organize and group your models. 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.",
407          "type": "object",
408          "additionalProperties": {
409            "type": "string"
410          }
411        },
412        "expirationTime": {
413          "description": "Optional. The time when this model expires, in milliseconds since the epoch. If not present, the model will persist indefinitely. Expired models 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 models.",
414          "type": "string",
415          "format": "int64"
416        },
417        "location": {
418          "description": "Output only. The geographic location where the model resides. This value is inherited from the dataset.",
419          "readOnly": true,
420          "type": "string"
421        },
422        "encryptionConfiguration": {
423          "description": "Custom encryption configuration (e.g., Cloud KMS keys). This shows the encryption configuration of the model data while stored in BigQuery storage. This field can be used with PatchModel to update encryption key for an already encrypted model.",
424          "$ref": "EncryptionConfiguration"
425        },
426        "modelType": {
427          "description": "Output only. Type of the model resource.",
428          "readOnly": true,
429          "type": "string",
430          "enumDescriptions": [
431            "",
432            "Linear regression model.",
433            "Logistic regression based classification model.",
434            "K-means clustering model.",
435            "Matrix factorization model.",
436            "DNN classifier model.",
437            "An imported TensorFlow model.",
438            "DNN regressor model.",
439            "Boosted tree regressor model.",
440            "Boosted tree classifier model.",
441            "ARIMA model.",
442            "[Beta] AutoML Tables regression model.",
443            "[Beta] AutoML Tables classification model."
444          ],
445          "enum": [
446            "MODEL_TYPE_UNSPECIFIED",
447            "LINEAR_REGRESSION",
448            "LOGISTIC_REGRESSION",
449            "KMEANS",
450            "MATRIX_FACTORIZATION",
451            "DNN_CLASSIFIER",
452            "TENSORFLOW",
453            "DNN_REGRESSOR",
454            "BOOSTED_TREE_REGRESSOR",
455            "BOOSTED_TREE_CLASSIFIER",
456            "ARIMA",
457            "AUTOML_REGRESSOR",
458            "AUTOML_CLASSIFIER"
459          ]
460        },
461        "trainingRuns": {
462          "description": "Output only. Information for all training runs in increasing order of start_time.",
463          "readOnly": true,
464          "type": "array",
465          "items": {
466            "$ref": "TrainingRun"
467          }
468        },
469        "featureColumns": {
470          "description": "Output only. Input feature columns that were used to train this model.",
471          "readOnly": true,
472          "type": "array",
473          "items": {
474            "$ref": "StandardSqlField"
475          }
476        },
477        "labelColumns": {
478          "description": "Output only. Label columns that were used to train this model. The output of the model will have a \"predicted_\" prefix to these columns.",
479          "readOnly": true,
480          "type": "array",
481          "items": {
482            "$ref": "StandardSqlField"
483          }
484        }
485      }
486    },
487    "ModelReference": {
488      "id": "ModelReference",
489      "description": "Id path of a model.",
490      "type": "object",
491      "properties": {
492        "projectId": {
493          "description": "Required. The ID of the project containing this model.",
494          "type": "string"
495        },
496        "datasetId": {
497          "description": "Required. The ID of the dataset containing this model.",
498          "type": "string"
499        },
500        "modelId": {
501          "description": "Required. The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.",
502          "type": "string"
503        }
504      }
505    },
506    "TrainingRun": {
507      "id": "TrainingRun",
508      "description": "Information about a single training query run for the model.",
509      "type": "object",
510      "properties": {
511        "trainingOptions": {
512          "description": "Options that were used for this training run, includes user specified and default options that were used.",
513          "$ref": "TrainingOptions"
514        },
515        "startTime": {
516          "description": "The start time of this training run.",
517          "type": "string",
518          "format": "google-datetime"
519        },
520        "results": {
521          "description": "Output of each iteration run, results.size() <= max_iterations.",
522          "type": "array",
523          "items": {
524            "$ref": "IterationResult"
525          }
526        },
527        "evaluationMetrics": {
528          "description": "The evaluation metrics over training\/eval data that were computed at the end of training.",
529          "$ref": "EvaluationMetrics"
530        },
531        "dataSplitResult": {
532          "description": "Data split result of the training run. Only set when the input data is actually split.",
533          "$ref": "DataSplitResult"
534        },
535        "globalExplanations": {
536          "description": "Global explanations for important features of the model. For multi-class models, there is one entry for each label class. For other models, there is only one entry in the list.",
537          "type": "array",
538          "items": {
539            "$ref": "GlobalExplanation"
540          }
541        }
542      }
543    },
544    "TrainingOptions": {
545      "id": "TrainingOptions",
546      "description": "Options used in model training.",
547      "type": "object",
548      "properties": {
549        "maxIterations": {
550          "description": "The maximum number of iterations in training. Used only for iterative training algorithms.",
551          "type": "string",
552          "format": "int64"
553        },
554        "lossType": {
555          "description": "Type of loss function used during training run.",
556          "type": "string",
557          "enumDescriptions": [
558            "",
559            "Mean squared loss, used for linear regression.",
560            "Mean log loss, used for logistic regression."
561          ],
562          "enum": [
563            "LOSS_TYPE_UNSPECIFIED",
564            "MEAN_SQUARED_LOSS",
565            "MEAN_LOG_LOSS"
566          ]
567        },
568        "learnRate": {
569          "description": "Learning rate in training. Used only for iterative training algorithms.",
570          "type": "number",
571          "format": "double"
572        },
573        "l1Regularization": {
574          "description": "L1 regularization coefficient.",
575          "type": "number",
576          "format": "double"
577        },
578        "l2Regularization": {
579          "description": "L2 regularization coefficient.",
580          "type": "number",
581          "format": "double"
582        },
583        "minRelativeProgress": {
584          "description": "When early_stop is true, stops training when accuracy improvement is less than 'min_relative_progress'. Used only for iterative training algorithms.",
585          "type": "number",
586          "format": "double"
587        },
588        "warmStart": {
589          "description": "Whether to train a model from the last checkpoint.",
590          "type": "boolean"
591        },
592        "earlyStop": {
593          "description": "Whether to stop early when the loss doesn't improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.",
594          "type": "boolean"
595        },
596        "inputLabelColumns": {
597          "description": "Name of input label columns in training data.",
598          "type": "array",
599          "items": {
600            "type": "string"
601          }
602        },
603        "dataSplitMethod": {
604          "description": "The data split type for training and evaluation, e.g. RANDOM.",
605          "type": "string",
606          "enumDescriptions": [
607            "",
608            "Splits data randomly.",
609            "Splits data with the user provided tags.",
610            "Splits data sequentially.",
611            "Data split will be skipped.",
612            "Splits data automatically: Uses NO_SPLIT if the data size is small. Otherwise uses RANDOM."
613          ],
614          "enum": [
615            "DATA_SPLIT_METHOD_UNSPECIFIED",
616            "RANDOM",
617            "CUSTOM",
618            "SEQUENTIAL",
619            "NO_SPLIT",
620            "AUTO_SPLIT"
621          ]
622        },
623        "dataSplitEvalFraction": {
624          "description": "The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2.",
625          "type": "number",
626          "format": "double"
627        },
628        "dataSplitColumn": {
629          "description": "The column to split data with. This column won't be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https:\/\/cloud.google.com\/bigquery\/docs\/reference\/standard-sql\/data-types#data-type-properties",
630          "type": "string"
631        },
632        "learnRateStrategy": {
633          "description": "The strategy to determine learn rate for the current iteration.",
634          "type": "string",
635          "enumDescriptions": [
636            "",
637            "Use line search to determine learning rate.",
638            "Use a constant learning rate."
639          ],
640          "enum": [
641            "LEARN_RATE_STRATEGY_UNSPECIFIED",
642            "LINE_SEARCH",
643            "CONSTANT"
644          ]
645        },
646        "initialLearnRate": {
647          "description": "Specifies the initial learning rate for the line search learn rate strategy.",
648          "type": "number",
649          "format": "double"
650        },
651        "labelClassWeights": {
652          "description": "Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.",
653          "type": "object",
654          "additionalProperties": {
655            "type": "number",
656            "format": "double"
657          }
658        },
659        "userColumn": {
660          "description": "User column specified for matrix factorization models.",
661          "type": "string"
662        },
663        "itemColumn": {
664          "description": "Item column specified for matrix factorization models.",
665          "type": "string"
666        },
667        "distanceType": {
668          "description": "Distance type for clustering models.",
669          "type": "string",
670          "enumDescriptions": [
671            "",
672            "Eculidean distance.",
673            "Cosine distance."
674          ],
675          "enum": [
676            "DISTANCE_TYPE_UNSPECIFIED",
677            "EUCLIDEAN",
678            "COSINE"
679          ]
680        },
681        "numClusters": {
682          "description": "Number of clusters for clustering models.",
683          "type": "string",
684          "format": "int64"
685        },
686        "modelUri": {
687          "description": "Google Cloud Storage URI from which the model was imported. Only applicable for imported models.",
688          "type": "string"
689        },
690        "optimizationStrategy": {
691          "description": "Optimization strategy for training linear regression models.",
692          "type": "string",
693          "enumDescriptions": [
694            "",
695            "Uses an iterative batch gradient descent algorithm.",
696            "Uses a normal equation to solve linear regression problem."
697          ],
698          "enum": [
699            "OPTIMIZATION_STRATEGY_UNSPECIFIED",
700            "BATCH_GRADIENT_DESCENT",
701            "NORMAL_EQUATION"
702          ]
703        },
704        "hiddenUnits": {
705          "description": "Hidden units for dnn models.",
706          "type": "array",
707          "items": {
708            "type": "string",
709            "format": "int64"
710          }
711        },
712        "batchSize": {
713          "description": "Batch size for dnn models.",
714          "type": "string",
715          "format": "int64"
716        },
717        "dropout": {
718          "description": "Dropout probability for dnn models.",
719          "type": "number",
720          "format": "double"
721        },
722        "maxTreeDepth": {
723          "description": "Maximum depth of a tree for boosted tree models.",
724          "type": "string",
725          "format": "int64"
726        },
727        "subsample": {
728          "description": "Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models.",
729          "type": "number",
730          "format": "double"
731        },
732        "minSplitLoss": {
733          "description": "Minimum split loss for boosted tree models.",
734          "type": "number",
735          "format": "double"
736        },
737        "numFactors": {
738          "description": "Num factors specified for matrix factorization models.",
739          "type": "string",
740          "format": "int64"
741        },
742        "feedbackType": {
743          "description": "Feedback type that specifies which algorithm to run for matrix factorization.",
744          "type": "string",
745          "enumDescriptions": [
746            "",
747            "Use weighted-als for implicit feedback problems.",
748            "Use nonweighted-als for explicit feedback problems."
749          ],
750          "enum": [
751            "FEEDBACK_TYPE_UNSPECIFIED",
752            "IMPLICIT",
753            "EXPLICIT"
754          ]
755        },
756        "walsAlpha": {
757          "description": "Hyperparameter for matrix factoration when implicit feedback type is specified.",
758          "type": "number",
759          "format": "double"
760        },
761        "kmeansInitializationMethod": {
762          "description": "The method used to initialize the centroids for kmeans algorithm.",
763          "type": "string",
764          "enumDescriptions": [
765            "Unspecified initialization method.",
766            "Initializes the centroids randomly.",
767            "Initializes the centroids using data specified in kmeans_initialization_column.",
768            "Initializes with kmeans++."
769          ],
770          "enum": [
771            "KMEANS_INITIALIZATION_METHOD_UNSPECIFIED",
772            "RANDOM",
773            "CUSTOM",
774            "KMEANS_PLUS_PLUS"
775          ]
776        },
777        "kmeansInitializationColumn": {
778          "description": "The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.",
779          "type": "string"
780        },
781        "timeSeriesTimestampColumn": {
782          "description": "Column to be designated as time series timestamp for ARIMA model.",
783          "type": "string"
784        },
785        "timeSeriesDataColumn": {
786          "description": "Column to be designated as time series data for ARIMA model.",
787          "type": "string"
788        },
789        "autoArima": {
790          "description": "Whether to enable auto ARIMA or not.",
791          "type": "boolean"
792        },
793        "nonSeasonalOrder": {
794          "description": "A specification of the non-seasonal part of the ARIMA model: the three components (p, d, q) are the AR order, the degree of differencing, and the MA order.",
795          "$ref": "ArimaOrder"
796        },
797        "dataFrequency": {
798          "description": "The data frequency of a time series.",
799          "type": "string",
800          "enumDescriptions": [
801            "",
802            "Automatically inferred from timestamps.",
803            "Yearly data.",
804            "Quarterly data.",
805            "Monthly data.",
806            "Weekly data.",
807            "Daily data.",
808            "Hourly data.",
809            "Per-minute data."
810          ],
811          "enum": [
812            "DATA_FREQUENCY_UNSPECIFIED",
813            "AUTO_FREQUENCY",
814            "YEARLY",
815            "QUARTERLY",
816            "MONTHLY",
817            "WEEKLY",
818            "DAILY",
819            "HOURLY",
820            "PER_MINUTE"
821          ]
822        },
823        "includeDrift": {
824          "description": "Include drift when fitting an ARIMA model.",
825          "type": "boolean"
826        },
827        "holidayRegion": {
828          "description": "The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled.",
829          "type": "string",
830          "enumDescriptions": [
831            "Holiday region unspecified.",
832            "Global.",
833            "North America.",
834            "Japan and Asia Pacific: Korea, Greater China, India, Australia, and New Zealand.",
835            "Europe, the Middle East and Africa.",
836            "Latin America and the Caribbean.",
837            "United Arab Emirates",
838            "Argentina",
839            "Austria",
840            "Australia",
841            "Belgium",
842            "Brazil",
843            "Canada",
844            "Switzerland",
845            "Chile",
846            "China",
847            "Colombia",
848            "Czechoslovakia",
849            "Czech Republic",
850            "Germany",
851            "Denmark",
852            "Algeria",
853            "Ecuador",
854            "Estonia",
855            "Egypt",
856            "Spain",
857            "Finland",
858            "France",
859            "Great Britain (United Kingdom)",
860            "Greece",
861            "Hong Kong",
862            "Hungary",
863            "Indonesia",
864            "Ireland",
865            "Israel",
866            "India",
867            "Iran",
868            "Italy",
869            "Japan",
870            "Korea (South)",
871            "Latvia",
872            "Morocco",
873            "Mexico",
874            "Malaysia",
875            "Nigeria",
876            "Netherlands",
877            "Norway",
878            "New Zealand",
879            "Peru",
880            "Philippines",
881            "Pakistan",
882            "Poland",
883            "Portugal",
884            "Romania",
885            "Serbia",
886            "Russian Federation",
887            "Saudi Arabia",
888            "Sweden",
889            "Singapore",
890            "Slovenia",
891            "Slovakia",
892            "Thailand",
893            "Turkey",
894            "Taiwan",
895            "Ukraine",
896            "United States",
897            "Venezuela",
898            "Viet Nam",
899            "South Africa"
900          ],
901          "enum": [
902            "HOLIDAY_REGION_UNSPECIFIED",
903            "GLOBAL",
904            "NA",
905            "JAPAC",
906            "EMEA",
907            "LAC",
908            "AE",
909            "AR",
910            "AT",
911            "AU",
912            "BE",
913            "BR",
914            "CA",
915            "CH",
916            "CL",
917            "CN",
918            "CO",
919            "CS",
920            "CZ",
921            "DE",
922            "DK",
923            "DZ",
924            "EC",
925            "EE",
926            "EG",
927            "ES",
928            "FI",
929            "FR",
930            "GB",
931            "GR",
932            "HK",
933            "HU",
934            "ID",
935            "IE",
936            "IL",
937            "IN",
938            "IR",
939            "IT",
940            "JP",
941            "KR",
942            "LV",
943            "MA",
944            "MX",
945            "MY",
946            "NG",
947            "NL",
948            "NO",
949            "NZ",
950            "PE",
951            "PH",
952            "PK",
953            "PL",
954            "PT",
955            "RO",
956            "RS",
957            "RU",
958            "SA",
959            "SE",
960            "SG",
961            "SI",
962            "SK",
963            "TH",
964            "TR",
965            "TW",
966            "UA",
967            "US",
968            "VE",
969            "VN",
970            "ZA"
971          ]
972        },
973        "timeSeriesIdColumn": {
974          "description": "The id column that will be used to indicate different time series to forecast in parallel.",
975          "type": "string"
976        },
977        "horizon": {
978          "description": "The number of periods ahead that need to be forecasted.",
979          "type": "string",
980          "format": "int64"
981        },
982        "preserveInputStructs": {
983          "description": "Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b.",
984          "type": "boolean"
985        },
986        "autoArimaMaxOrder": {
987          "description": "The max value of non-seasonal p and q.",
988          "type": "string",
989          "format": "int64"
990        }
991      }
992    },
993    "ArimaOrder": {
994      "id": "ArimaOrder",
995      "description": "Arima order, can be used for both non-seasonal and seasonal parts.",
996      "type": "object",
997      "properties": {
998        "p": {
999          "description": "Order of the autoregressive part.",
1000          "type": "string",
1001          "format": "int64"
1002        },
1003        "d": {
1004          "description": "Order of the differencing part.",
1005          "type": "string",
1006          "format": "int64"
1007        },
1008        "q": {
1009          "description": "Order of the moving-average part.",
1010          "type": "string",
1011          "format": "int64"
1012        }
1013      }
1014    },
1015    "IterationResult": {
1016      "id": "IterationResult",
1017      "description": "Information about a single iteration of the training run.",
1018      "type": "object",
1019      "properties": {
1020        "index": {
1021          "description": "Index of the iteration, 0 based.",
1022          "type": "integer",
1023          "format": "int32"
1024        },
1025        "durationMs": {
1026          "description": "Time taken to run the iteration in milliseconds.",
1027          "type": "string",
1028          "format": "int64"
1029        },
1030        "trainingLoss": {
1031          "description": "Loss computed on the training data at the end of iteration.",
1032          "type": "number",
1033          "format": "double"
1034        },
1035        "evalLoss": {
1036          "description": "Loss computed on the eval data at the end of iteration.",
1037          "type": "number",
1038          "format": "double"
1039        },
1040        "learnRate": {
1041          "description": "Learn rate used for this iteration.",
1042          "type": "number",
1043          "format": "double"
1044        },
1045        "clusterInfos": {
1046          "description": "Information about top clusters for clustering models.",
1047          "type": "array",
1048          "items": {
1049            "$ref": "ClusterInfo"
1050          }
1051        },
1052        "arimaResult": {
1053          "$ref": "ArimaResult"
1054        },
1055        "principalComponentInfos": {
1056          "description": "The information of the principal components.",
1057          "type": "array",
1058          "items": {
1059            "$ref": "PrincipalComponentInfo"
1060          }
1061        }
1062      }
1063    },
1064    "ClusterInfo": {
1065      "id": "ClusterInfo",
1066      "description": "Information about a single cluster for clustering model.",
1067      "type": "object",
1068      "properties": {
1069        "centroidId": {
1070          "description": "Centroid id.",
1071          "type": "string",
1072          "format": "int64"
1073        },
1074        "clusterRadius": {
1075          "description": "Cluster radius, the average distance from centroid to each point assigned to the cluster.",
1076          "type": "number",
1077          "format": "double"
1078        },
1079        "clusterSize": {
1080          "description": "Cluster size, the total number of points assigned to the cluster.",
1081          "type": "string",
1082          "format": "int64"
1083        }
1084      }
1085    },
1086    "ArimaResult": {
1087      "id": "ArimaResult",
1088      "description": "(Auto-)arima fitting result. Wrap everything in ArimaResult for easier refactoring if we want to use model-specific iteration results.",
1089      "type": "object",
1090      "properties": {
1091        "arimaModelInfo": {
1092          "description": "This message is repeated because there are multiple arima models fitted in auto-arima. For non-auto-arima model, its size is one.",
1093          "type": "array",
1094          "items": {
1095            "$ref": "ArimaModelInfo"
1096          }
1097        },
1098        "seasonalPeriods": {
1099          "description": "Seasonal periods. Repeated because multiple periods are supported for one time series.",
1100          "type": "array",
1101          "items": {
1102            "type": "string",
1103            "enumDescriptions": [
1104              "",
1105              "No seasonality",
1106              "Daily period, 24 hours.",
1107              "Weekly period, 7 days.",
1108              "Monthly period, 30 days or irregular.",
1109              "Quarterly period, 90 days or irregular.",
1110              "Yearly period, 365 days or irregular."
1111            ],
1112            "enum": [
1113              "SEASONAL_PERIOD_TYPE_UNSPECIFIED",
1114              "NO_SEASONALITY",
1115              "DAILY",
1116              "WEEKLY",
1117              "MONTHLY",
1118              "QUARTERLY",
1119              "YEARLY"
1120            ]
1121          }
1122        }
1123      }
1124    },
1125    "ArimaModelInfo": {
1126      "id": "ArimaModelInfo",
1127      "description": "Arima model information.",
1128      "type": "object",
1129      "properties": {
1130        "nonSeasonalOrder": {
1131          "description": "Non-seasonal order.",
1132          "$ref": "ArimaOrder"
1133        },
1134        "arimaCoefficients": {
1135          "description": "Arima coefficients.",
1136          "$ref": "ArimaCoefficients"
1137        },
1138        "arimaFittingMetrics": {
1139          "description": "Arima fitting metrics.",
1140          "$ref": "ArimaFittingMetrics"
1141        },
1142        "hasDrift": {
1143          "description": "Whether Arima model fitted with drift or not. It is always false when d is not 1.",
1144          "type": "boolean"
1145        },
1146        "timeSeriesId": {
1147          "description": "The id to indicate different time series.",
1148          "type": "string"
1149        },
1150        "seasonalPeriods": {
1151          "description": "Seasonal periods. Repeated because multiple periods are supported for one time series.",
1152          "type": "array",
1153          "items": {
1154            "type": "string",
1155            "enumDescriptions": [
1156              "",
1157              "No seasonality",
1158              "Daily period, 24 hours.",
1159              "Weekly period, 7 days.",
1160              "Monthly period, 30 days or irregular.",
1161              "Quarterly period, 90 days or irregular.",
1162              "Yearly period, 365 days or irregular."
1163            ],
1164            "enum": [
1165              "SEASONAL_PERIOD_TYPE_UNSPECIFIED",
1166              "NO_SEASONALITY",
1167              "DAILY",
1168              "WEEKLY",
1169              "MONTHLY",
1170              "QUARTERLY",
1171              "YEARLY"
1172            ]
1173          }
1174        }
1175      }
1176    },
1177    "ArimaCoefficients": {
1178      "id": "ArimaCoefficients",
1179      "description": "Arima coefficients.",
1180      "type": "object",
1181      "properties": {
1182        "autoRegressiveCoefficients": {
1183          "description": "Auto-regressive coefficients, an array of double.",
1184          "type": "array",
1185          "items": {
1186            "type": "number",
1187            "format": "double"
1188          }
1189        },
1190        "movingAverageCoefficients": {
1191          "description": "Moving-average coefficients, an array of double.",
1192          "type": "array",
1193          "items": {
1194            "type": "number",
1195            "format": "double"
1196          }
1197        },
1198        "interceptCoefficient": {
1199          "description": "Intercept coefficient, just a double not an array.",
1200          "type": "number",
1201          "format": "double"
1202        }
1203      }
1204    },
1205    "ArimaFittingMetrics": {
1206      "id": "ArimaFittingMetrics",
1207      "description": "ARIMA model fitting metrics.",
1208      "type": "object",
1209      "properties": {
1210        "logLikelihood": {
1211          "description": "Log-likelihood.",
1212          "type": "number",
1213          "format": "double"
1214        },
1215        "aic": {
1216          "description": "AIC.",
1217          "type": "number",
1218          "format": "double"
1219        },
1220        "variance": {
1221          "description": "Variance.",
1222          "type": "number",
1223          "format": "double"
1224        }
1225      }
1226    },
1227    "PrincipalComponentInfo": {
1228      "id": "PrincipalComponentInfo",
1229      "description": "Principal component infos, used only for eigen decomposition based models, e.g., PCA. Ordered by explained_variance in the descending order.",
1230      "type": "object",
1231      "properties": {
1232        "principalComponentId": {
1233          "description": "Id of the principal component.",
1234          "type": "string",
1235          "format": "int64"
1236        },
1237        "explainedVariance": {
1238          "description": "Explained variance by this principal component, which is simply the eigenvalue.",
1239          "type": "number",
1240          "format": "double"
1241        },
1242        "explainedVarianceRatio": {
1243          "description": "Explained_variance over the total explained variance.",
1244          "type": "number",
1245          "format": "double"
1246        },
1247        "cumulativeExplainedVarianceRatio": {
1248          "description": "The explained_variance is pre-ordered in the descending order to compute the cumulative explained variance ratio.",
1249          "type": "number",
1250          "format": "double"
1251        }
1252      }
1253    },
1254    "EvaluationMetrics": {
1255      "id": "EvaluationMetrics",
1256      "description": "Evaluation metrics of a model. These are either computed on all training data or just the eval data based on whether eval data was used during training. These are not present for imported models.",
1257      "type": "object",
1258      "properties": {
1259        "regressionMetrics": {
1260          "description": "Populated for regression models and explicit feedback type matrix factorization models.",
1261          "$ref": "RegressionMetrics"
1262        },
1263        "binaryClassificationMetrics": {
1264          "description": "Populated for binary classification\/classifier models.",
1265          "$ref": "BinaryClassificationMetrics"
1266        },
1267        "multiClassClassificationMetrics": {
1268          "description": "Populated for multi-class classification\/classifier models.",
1269          "$ref": "MultiClassClassificationMetrics"
1270        },
1271        "clusteringMetrics": {
1272          "description": "Populated for clustering models.",
1273          "$ref": "ClusteringMetrics"
1274        },
1275        "rankingMetrics": {
1276          "description": "Populated for implicit feedback type matrix factorization models.",
1277          "$ref": "RankingMetrics"
1278        },
1279        "arimaForecastingMetrics": {
1280          "description": "Populated for ARIMA models.",
1281          "$ref": "ArimaForecastingMetrics"
1282        },
1283        "dimensionalityReductionMetrics": {
1284          "description": "Evaluation metrics when the model is a dimensionality reduction model, which currently includes PCA.",
1285          "$ref": "DimensionalityReductionMetrics"
1286        }
1287      }
1288    },
1289    "RegressionMetrics": {
1290      "id": "RegressionMetrics",
1291      "description": "Evaluation metrics for regression and explicit feedback type matrix factorization models.",
1292      "type": "object",
1293      "properties": {
1294        "meanAbsoluteError": {
1295          "description": "Mean absolute error.",
1296          "type": "number",
1297          "format": "double"
1298        },
1299        "meanSquaredError": {
1300          "description": "Mean squared error.",
1301          "type": "number",
1302          "format": "double"
1303        },
1304        "meanSquaredLogError": {
1305          "description": "Mean squared log error.",
1306          "type": "number",
1307          "format": "double"
1308        },
1309        "medianAbsoluteError": {
1310          "description": "Median absolute error.",
1311          "type": "number",
1312          "format": "double"
1313        },
1314        "rSquared": {
1315          "description": "R^2 score. This corresponds to r2_score in ML.EVALUATE.",
1316          "type": "number",
1317          "format": "double"
1318        }
1319      }
1320    },
1321    "BinaryClassificationMetrics": {
1322      "id": "BinaryClassificationMetrics",
1323      "description": "Evaluation metrics for binary classification\/classifier models.",
1324      "type": "object",
1325      "properties": {
1326        "aggregateClassificationMetrics": {
1327          "description": "Aggregate classification metrics.",
1328          "$ref": "AggregateClassificationMetrics"
1329        },
1330        "binaryConfusionMatrixList": {
1331          "description": "Binary confusion matrix at multiple thresholds.",
1332          "type": "array",
1333          "items": {
1334            "$ref": "BinaryConfusionMatrix"
1335          }
1336        },
1337        "positiveLabel": {
1338          "description": "Label representing the positive class.",
1339          "type": "string"
1340        },
1341        "negativeLabel": {
1342          "description": "Label representing the negative class.",
1343          "type": "string"
1344        }
1345      }
1346    },
1347    "AggregateClassificationMetrics": {
1348      "id": "AggregateClassificationMetrics",
1349      "description": "Aggregate metrics for classification\/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows.",
1350      "type": "object",
1351      "properties": {
1352        "precision": {
1353          "description": "Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.",
1354          "type": "number",
1355          "format": "double"
1356        },
1357        "recall": {
1358          "description": "Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.",
1359          "type": "number",
1360          "format": "double"
1361        },
1362        "accuracy": {
1363          "description": "Accuracy is the fraction of predictions given the correct label. For multiclass this is a micro-averaged metric.",
1364          "type": "number",
1365          "format": "double"
1366        },
1367        "threshold": {
1368          "description": "Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.",
1369          "type": "number",
1370          "format": "double"
1371        },
1372        "f1Score": {
1373          "description": "The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.",
1374          "type": "number",
1375          "format": "double"
1376        },
1377        "logLoss": {
1378          "description": "Logarithmic Loss. For multiclass this is a macro-averaged metric.",
1379          "type": "number",
1380          "format": "double"
1381        },
1382        "rocAuc": {
1383          "description": "Area Under a ROC Curve. For multiclass this is a macro-averaged metric.",
1384          "type": "number",
1385          "format": "double"
1386        }
1387      }
1388    },
1389    "BinaryConfusionMatrix": {
1390      "id": "BinaryConfusionMatrix",
1391      "description": "Confusion matrix for binary classification models.",
1392      "type": "object",
1393      "properties": {
1394        "positiveClassThreshold": {
1395          "description": "Threshold value used when computing each of the following metric.",
1396          "type": "number",
1397          "format": "double"
1398        },
1399        "truePositives": {
1400          "description": "Number of true samples predicted as true.",
1401          "type": "string",
1402          "format": "int64"
1403        },
1404        "falsePositives": {
1405          "description": "Number of false samples predicted as true.",
1406          "type": "string",
1407          "format": "int64"
1408        },
1409        "trueNegatives": {
1410          "description": "Number of true samples predicted as false.",
1411          "type": "string",
1412          "format": "int64"
1413        },
1414        "falseNegatives": {
1415          "description": "Number of false samples predicted as false.",
1416          "type": "string",
1417          "format": "int64"
1418        },
1419        "precision": {
1420          "description": "The fraction of actual positive predictions that had positive actual labels.",
1421          "type": "number",
1422          "format": "double"
1423        },
1424        "recall": {
1425          "description": "The fraction of actual positive labels that were given a positive prediction.",
1426          "type": "number",
1427          "format": "double"
1428        },
1429        "f1Score": {
1430          "description": "The equally weighted average of recall and precision.",
1431          "type": "number",
1432          "format": "double"
1433        },
1434        "accuracy": {
1435          "description": "The fraction of predictions given the correct label.",
1436          "type": "number",
1437          "format": "double"
1438        }
1439      }
1440    },
1441    "MultiClassClassificationMetrics": {
1442      "id": "MultiClassClassificationMetrics",
1443      "description": "Evaluation metrics for multi-class classification\/classifier models.",
1444      "type": "object",
1445      "properties": {
1446        "aggregateClassificationMetrics": {
1447          "description": "Aggregate classification metrics.",
1448          "$ref": "AggregateClassificationMetrics"
1449        },
1450        "confusionMatrixList": {
1451          "description": "Confusion matrix at different thresholds.",
1452          "type": "array",
1453          "items": {
1454            "$ref": "ConfusionMatrix"
1455          }
1456        }
1457      }
1458    },
1459    "ConfusionMatrix": {
1460      "id": "ConfusionMatrix",
1461      "description": "Confusion matrix for multi-class classification models.",
1462      "type": "object",
1463      "properties": {
1464        "confidenceThreshold": {
1465          "description": "Confidence threshold used when computing the entries of the confusion matrix.",
1466          "type": "number",
1467          "format": "double"
1468        },
1469        "rows": {
1470          "description": "One row per actual label.",
1471          "type": "array",
1472          "items": {
1473            "$ref": "Row"
1474          }
1475        }
1476      }
1477    },
1478    "Row": {
1479      "id": "Row",
1480      "description": "A single row in the confusion matrix.",
1481      "type": "object",
1482      "properties": {
1483        "actualLabel": {
1484          "description": "The original label of this row.",
1485          "type": "string"
1486        },
1487        "entries": {
1488          "description": "Info describing predicted label distribution.",
1489          "type": "array",
1490          "items": {
1491            "$ref": "Entry"
1492          }
1493        }
1494      }
1495    },
1496    "Entry": {
1497      "id": "Entry",
1498      "description": "A single entry in the confusion matrix.",
1499      "type": "object",
1500      "properties": {
1501        "predictedLabel": {
1502          "description": "The predicted label. For confidence_threshold > 0, we will also add an entry indicating the number of items under the confidence threshold.",
1503          "type": "string"
1504        },
1505        "itemCount": {
1506          "description": "Number of items being predicted as this label.",
1507          "type": "string",
1508          "format": "int64"
1509        }
1510      }
1511    },
1512    "ClusteringMetrics": {
1513      "id": "ClusteringMetrics",
1514      "description": "Evaluation metrics for clustering models.",
1515      "type": "object",
1516      "properties": {
1517        "daviesBouldinIndex": {
1518          "description": "Davies-Bouldin index.",
1519          "type": "number",
1520          "format": "double"
1521        },
1522        "meanSquaredDistance": {
1523          "description": "Mean of squared distances between each sample to its cluster centroid.",
1524          "type": "number",
1525          "format": "double"
1526        },
1527        "clusters": {
1528          "description": "Information for all clusters.",
1529          "type": "array",
1530          "items": {
1531            "$ref": "Cluster"
1532          }
1533        }
1534      }
1535    },
1536    "Cluster": {
1537      "id": "Cluster",
1538      "description": "Message containing the information about one cluster.",
1539      "type": "object",
1540      "properties": {
1541        "centroidId": {
1542          "description": "Centroid id.",
1543          "type": "string",
1544          "format": "int64"
1545        },
1546        "featureValues": {
1547          "description": "Values of highly variant features for this cluster.",
1548          "type": "array",
1549          "items": {
1550            "$ref": "FeatureValue"
1551          }
1552        },
1553        "count": {
1554          "description": "Count of training data rows that were assigned to this cluster.",
1555          "type": "string",
1556          "format": "int64"
1557        }
1558      }
1559    },
1560    "FeatureValue": {
1561      "id": "FeatureValue",
1562      "description": "Representative value of a single feature within the cluster.",
1563      "type": "object",
1564      "properties": {
1565        "featureColumn": {
1566          "description": "The feature column name.",
1567          "type": "string"
1568        },
1569        "numericalValue": {
1570          "description": "The numerical feature value. This is the centroid value for this feature.",
1571          "type": "number",
1572          "format": "double"
1573        },
1574        "categoricalValue": {
1575          "description": "The categorical feature value.",
1576          "$ref": "CategoricalValue"
1577        }
1578      }
1579    },
1580    "CategoricalValue": {
1581      "id": "CategoricalValue",
1582      "description": "Representative value of a categorical feature.",
1583      "type": "object",
1584      "properties": {
1585        "categoryCounts": {
1586          "description": "Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category \"_OTHER_\" and count as aggregate counts of remaining categories.",
1587          "type": "array",
1588          "items": {
1589            "$ref": "CategoryCount"
1590          }
1591        }
1592      }
1593    },
1594    "CategoryCount": {
1595      "id": "CategoryCount",
1596      "description": "Represents the count of a single category within the cluster.",
1597      "type": "object",
1598      "properties": {
1599        "category": {
1600          "description": "The name of category.",
1601          "type": "string"
1602        },
1603        "count": {
1604          "description": "The count of training samples matching the category within the cluster.",
1605          "type": "string",
1606          "format": "int64"
1607        }
1608      }
1609    },
1610    "RankingMetrics": {
1611      "id": "RankingMetrics",
1612      "description": "Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit.",
1613      "type": "object",
1614      "properties": {
1615        "meanAveragePrecision": {
1616          "description": "Calculates a precision per user for all the items by ranking them and then averages all the precisions across all the users.",
1617          "type": "number",
1618          "format": "double"
1619        },
1620        "meanSquaredError": {
1621          "description": "Similar to the mean squared error computed in regression and explicit recommendation models except instead of computing the rating directly, the output from evaluate is computed against a preference which is 1 or 0 depending on if the rating exists or not.",
1622          "type": "number",
1623          "format": "double"
1624        },
1625        "normalizedDiscountedCumulativeGain": {
1626          "description": "A metric to determine the goodness of a ranking calculated from the predicted confidence by comparing it to an ideal rank measured by the original ratings.",
1627          "type": "number",
1628          "format": "double"
1629        },
1630        "averageRank": {
1631          "description": "Determines the goodness of a ranking by computing the percentile rank from the predicted confidence and dividing it by the original rank.",
1632          "type": "number",
1633          "format": "double"
1634        }
1635      }
1636    },
1637    "ArimaForecastingMetrics": {
1638      "id": "ArimaForecastingMetrics",
1639      "description": "Model evaluation metrics for ARIMA forecasting models.",
1640      "type": "object",
1641      "properties": {
1642        "nonSeasonalOrder": {
1643          "description": "Non-seasonal order.",
1644          "type": "array",
1645          "items": {
1646            "$ref": "ArimaOrder"
1647          }
1648        },
1649        "arimaFittingMetrics": {
1650          "description": "Arima model fitting metrics.",
1651          "type": "array",
1652          "items": {
1653            "$ref": "ArimaFittingMetrics"
1654          }
1655        },
1656        "seasonalPeriods": {
1657          "description": "Seasonal periods. Repeated because multiple periods are supported for one time series.",
1658          "type": "array",
1659          "items": {
1660            "type": "string",
1661            "enumDescriptions": [
1662              "",
1663              "No seasonality",
1664              "Daily period, 24 hours.",
1665              "Weekly period, 7 days.",
1666              "Monthly period, 30 days or irregular.",
1667              "Quarterly period, 90 days or irregular.",
1668              "Yearly period, 365 days or irregular."
1669            ],
1670            "enum": [
1671              "SEASONAL_PERIOD_TYPE_UNSPECIFIED",
1672              "NO_SEASONALITY",
1673              "DAILY",
1674              "WEEKLY",
1675              "MONTHLY",
1676              "QUARTERLY",
1677              "YEARLY"
1678            ]
1679          }
1680        },
1681        "hasDrift": {
1682          "description": "Whether Arima model fitted with drift or not. It is always false when d is not 1.",
1683          "type": "array",
1684          "items": {
1685            "type": "boolean"
1686          }
1687        },
1688        "timeSeriesId": {
1689          "description": "Id to differentiate different time series for the large-scale case.",
1690          "type": "array",
1691          "items": {
1692            "type": "string"
1693          }
1694        },
1695        "arimaSingleModelForecastingMetrics": {
1696          "description": "Repeated as there can be many metric sets (one for each model) in auto-arima and the large-scale case.",
1697          "type": "array",
1698          "items": {
1699            "$ref": "ArimaSingleModelForecastingMetrics"
1700          }
1701        }
1702      }
1703    },
1704    "ArimaSingleModelForecastingMetrics": {
1705      "id": "ArimaSingleModelForecastingMetrics",
1706      "description": "Model evaluation metrics for a single ARIMA forecasting model.",
1707      "type": "object",
1708      "properties": {
1709        "nonSeasonalOrder": {
1710          "description": "Non-seasonal order.",
1711          "$ref": "ArimaOrder"
1712        },
1713        "arimaFittingMetrics": {
1714          "description": "Arima fitting metrics.",
1715          "$ref": "ArimaFittingMetrics"
1716        },
1717        "hasDrift": {
1718          "description": "Is arima model fitted with drift or not. It is always false when d is not 1.",
1719          "type": "boolean"
1720        },
1721        "timeSeriesId": {
1722          "description": "The id to indicate different time series.",
1723          "type": "string"
1724        },
1725        "seasonalPeriods": {
1726          "description": "Seasonal periods. Repeated because multiple periods are supported for one time series.",
1727          "type": "array",
1728          "items": {
1729            "type": "string",
1730            "enumDescriptions": [
1731              "",
1732              "No seasonality",
1733              "Daily period, 24 hours.",
1734              "Weekly period, 7 days.",
1735              "Monthly period, 30 days or irregular.",
1736              "Quarterly period, 90 days or irregular.",
1737              "Yearly period, 365 days or irregular."
1738            ],
1739            "enum": [
1740              "SEASONAL_PERIOD_TYPE_UNSPECIFIED",
1741              "NO_SEASONALITY",
1742              "DAILY",
1743              "WEEKLY",
1744              "MONTHLY",
1745              "QUARTERLY",
1746              "YEARLY"
1747            ]
1748          }
1749        }
1750      }
1751    },
1752    "DimensionalityReductionMetrics": {
1753      "id": "DimensionalityReductionMetrics",
1754      "description": "Model evaluation metrics for dimensionality reduction models.",
1755      "type": "object",
1756      "properties": {
1757        "totalExplainedVarianceRatio": {
1758          "description": "Total percentage of variance explained by the selected principal components.",
1759          "type": "number",
1760          "format": "double"
1761        }
1762      }
1763    },
1764    "DataSplitResult": {
1765      "id": "DataSplitResult",
1766      "description": "Data split result. This contains references to the training and evaluation data tables that were used to train the model.",
1767      "type": "object",
1768      "properties": {
1769        "trainingTable": {
1770          "description": "Table reference of the training data after split.",
1771          "$ref": "TableReference"
1772        },
1773        "evaluationTable": {
1774          "description": "Table reference of the evaluation data after split.",
1775          "$ref": "TableReference"
1776        }
1777      }
1778    },
1779    "GlobalExplanation": {
1780      "id": "GlobalExplanation",
1781      "description": "Global explanations containing the top most important features after training.",
1782      "type": "object",
1783      "properties": {
1784        "explanations": {
1785          "description": "A list of the top global explanations. Sorted by absolute value of attribution in descending order.",
1786          "type": "array",
1787          "items": {
1788            "$ref": "Explanation"
1789          }
1790        },
1791        "classLabel": {
1792          "description": "Class label for this set of global explanations. Will be empty\/null for binary logistic and linear regression models. Sorted alphabetically in descending order.",
1793          "type": "string"
1794        }
1795      }
1796    },
1797    "Explanation": {
1798      "id": "Explanation",
1799      "description": "Explanation for a single feature.",
1800      "type": "object",
1801      "properties": {
1802        "featureName": {
1803          "description": "Full name of the feature. For non-numerical features, will be formatted like .. Overall size of feature name will always be truncated to first 120 characters.",
1804          "type": "string"
1805        },
1806        "attribution": {
1807          "description": "Attribution of feature.",
1808          "type": "number",
1809          "format": "double"
1810        }
1811      }
1812    },
1813    "StandardSqlField": {
1814      "id": "StandardSqlField",
1815      "description": "A field or a column.",
1816      "type": "object",
1817      "properties": {
1818        "name": {
1819          "description": "Optional. The name of this field. Can be absent for struct fields.",
1820          "type": "string"
1821        },
1822        "type": {
1823          "description": "Optional. The type of this parameter. Absent if not explicitly specified (e.g., CREATE FUNCTION statement can omit the return type; in this case the output parameter does not have this \"type\" field).",
1824          "$ref": "StandardSqlDataType"
1825        }
1826      }
1827    },
1828    "StandardSqlDataType": {
1829      "id": "StandardSqlDataType",
1830      "description": "The type of a variable, e.g., a function argument. Examples: INT64: {type_kind=\"INT64\"} ARRAY: {type_kind=\"ARRAY\", array_element_type=\"STRING\"} STRUCT>: {type_kind=\"STRUCT\", struct_type={fields=[ {name=\"x\", type={type_kind=\"STRING\"}}, {name=\"y\", type={type_kind=\"ARRAY\", array_element_type=\"DATE\"}} ]}}",
1831      "type": "object",
1832      "properties": {
1833        "typeKind": {
1834          "description": "Required. The top level type of this field. Can be any standard SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\").",
1835          "type": "string",
1836          "enumDescriptions": [
1837            "Invalid type.",
1838            "Encoded as a string in decimal format.",
1839            "Encoded as a boolean \"false\" or \"true\".",
1840            "Encoded as a number, or string \"NaN\", \"Infinity\" or \"-Infinity\".",
1841            "Encoded as a string value.",
1842            "Encoded as a base64 string per RFC 4648, section 4.",
1843            "Encoded as an RFC 3339 timestamp with mandatory \"Z\" time zone string: 1985-04-12T23:20:50.52Z",
1844            "Encoded as RFC 3339 full-date format string: 1985-04-12",
1845            "Encoded as RFC 3339 partial-time format string: 23:20:50.52",
1846            "Encoded as RFC 3339 full-date \"T\" partial-time: 1985-04-12T23:20:50.52",
1847            "Encoded as WKT",
1848            "Encoded as a decimal string.",
1849            "Encoded as a decimal string.",
1850            "Encoded as a list with types matching Type.array_type.",
1851            "Encoded as a list with fields of type Type.struct_type[i]. List is used because a JSON object cannot have duplicate field names."
1852          ],
1853          "enum": [
1854            "TYPE_KIND_UNSPECIFIED",
1855            "INT64",
1856            "BOOL",
1857            "FLOAT64",
1858            "STRING",
1859            "BYTES",
1860            "TIMESTAMP",
1861            "DATE",
1862            "TIME",
1863            "DATETIME",
1864            "GEOGRAPHY",
1865            "NUMERIC",
1866            "BIGNUMERIC",
1867            "ARRAY",
1868            "STRUCT"
1869          ]
1870        },
1871        "arrayElementType": {
1872          "description": "The type of the array's elements, if type_kind = \"ARRAY\".",
1873          "$ref": "StandardSqlDataType"
1874        },
1875        "structType": {
1876          "description": "The fields of this struct, in order, if type_kind = \"STRUCT\".",
1877          "$ref": "StandardSqlStructType"
1878        }
1879      }
1880    },
1881    "StandardSqlStructType": {
1882      "id": "StandardSqlStructType",
1883      "type": "object",
1884      "properties": {
1885        "fields": {
1886          "type": "array",
1887          "items": {
1888            "$ref": "StandardSqlField"
1889          }
1890        }
1891      }
1892    },
1893    "ListModelsResponse": {
1894      "id": "ListModelsResponse",
1895      "type": "object",
1896      "properties": {
1897        "models": {
1898          "description": "Models in the requested dataset. Only the following fields are populated: model_reference, model_type, creation_time, last_modified_time and labels.",
1899          "type": "array",
1900          "items": {
1901            "$ref": "Model"
1902          }
1903        },
1904        "nextPageToken": {
1905          "description": "A token to request the next page of results.",
1906          "type": "string"
1907        }
1908      }
1909    },
1910    "JobCancelResponse": {
1911      "id": "JobCancelResponse",
1912      "type": "object",
1913      "properties": {
1914        "kind": {
1915          "description": "The resource type of the response.",
1916          "type": "string"
1917        },
1918        "job": {
1919          "description": "The final state of the job.",
1920          "$ref": "Job"
1921        }
1922      }
1923    },
1924    "Job": {
1925      "id": "Job",
1926      "type": "object",
1927      "properties": {
1928        "kind": {
1929          "description": "Output only. The type of the resource.",
1930          "readOnly": true,
1931          "type": "string"
1932        },
1933        "etag": {
1934          "description": "Output only. A hash of this resource.",
1935          "readOnly": true,
1936          "type": "string"
1937        },
1938        "id": {
1939          "description": "Output only. Opaque ID field of the job.",
1940          "readOnly": true,
1941          "type": "string"
1942        },
1943        "selfLink": {
1944          "description": "Output only. A URL that can be used to access the resource again.",
1945          "readOnly": true,
1946          "type": "string"
1947        },
1948        "user_email": {
1949          "description": "Output only. Email address of the user who ran the job.",
1950          "readOnly": true,
1951          "type": "string"
1952        },
1953        "configuration": {
1954          "description": "Required. Describes the job configuration.",
1955          "$ref": "JobConfiguration"
1956        },
1957        "jobReference": {
1958          "description": "Optional. Reference describing the unique-per-user name of the job.",
1959          "$ref": "JobReference"
1960        },
1961        "statistics": {
1962          "description": "Output only. Information about the job, including starting time and ending time of the job.",
1963          "readOnly": true,
1964          "$ref": "JobStatistics"
1965        },
1966        "status": {
1967          "description": "Output only. The status of this job. Examine this value when polling an asynchronous job to see if the job is complete.",
1968          "readOnly": true,
1969          "$ref": "JobStatus"
1970        }
1971      }
1972    },
1973    "JobConfiguration": {
1974      "id": "JobConfiguration",
1975      "type": "object",
1976      "properties": {
1977        "jobType": {
1978          "description": "Output only. The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or UNKNOWN.",
1979          "type": "string"
1980        },
1981        "query": {
1982          "description": "[Pick one] Configures a query job.",
1983          "$ref": "JobConfigurationQuery"
1984        },
1985        "load": {
1986          "description": "[Pick one] Configures a load job.",
1987          "$ref": "JobConfigurationLoad"
1988        },
1989        "copy": {
1990          "description": "[Pick one] Copies a table.",
1991          "$ref": "JobConfigurationTableCopy"
1992        },
1993        "extract": {
1994          "description": "[Pick one] Configures an extract job.",
1995          "$ref": "JobConfigurationExtract"
1996        },
1997        "dryRun": {
1998          "description": "[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.",
1999          "type": "boolean"
2000        },
2001        "jobTimeoutMs": {
2002          "description": "[Optional] Job timeout in milliseconds. If this time limit is exceeded, BigQuery might attempt to stop the job.",
2003          "type": "string",
2004          "format": "int64"
2005        },
2006        "labels": {
2007          "description": "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.",
2008          "type": "object",
2009          "additionalProperties": {
2010            "type": "string"
2011          }
2012        }
2013      }
2014    },
2015    "JobConfigurationQuery": {
2016      "id": "JobConfigurationQuery",
2017      "description": "JobConfigurationQuery configures a BigQuery query job.",
2018      "type": "object",
2019      "properties": {
2020        "query": {
2021          "description": "[Required] SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or standard SQL.",
2022          "type": "string"
2023        },
2024        "destinationTable": {
2025          "description": "[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.",
2026          "$ref": "TableReference"
2027        },
2028        "tableDefinitions": {
2029          "type": "object",
2030          "additionalProperties": {
2031            "$ref": "ExternalDataConfiguration"
2032          }
2033        },
2034        "userDefinedFunctionResources": {
2035          "description": "Describes user-defined function resources used in the query.",
2036          "type": "array",
2037          "items": {
2038            "$ref": "UserDefinedFunctionResource"
2039          }
2040        },
2041        "createDisposition": {
2042          "description": "[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.",
2043          "type": "string"
2044        },
2045        "writeDisposition": {
2046          "description": "[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.",
2047          "type": "string"
2048        },
2049        "defaultDataset": {
2050          "description": "[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.",
2051          "$ref": "DatasetReference"
2052        },
2053        "priority": {
2054          "description": "[Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE.",
2055          "type": "string"
2056        },
2057        "preserveNulls": {
2058          "description": "[Deprecated] This property is deprecated.",
2059          "type": "boolean"
2060        },
2061        "allowLargeResults": {
2062          "description": "[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.",
2063          "type": "boolean"
2064        },
2065        "useQueryCache": {
2066          "description": "[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.",
2067          "default": "true",
2068          "type": "boolean"
2069        },
2070        "flattenResults": {
2071          "description": "[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.",
2072          "type": "boolean"
2073        },
2074        "maximumBillingTier": {
2075          "description": "[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.",
2076          "type": "integer",
2077          "format": "int32"
2078        },
2079        "maximumBytesBilled": {
2080          "description": "[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.",
2081          "type": "string",
2082          "format": "int64"
2083        },
2084        "useLegacySql": {
2085          "description": "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.",
2086          "type": "boolean"
2087        },
2088        "parameterMode": {
2089          "description": "Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query.",
2090          "type": "string"
2091        },
2092        "queryParameters": {
2093          "description": "Query parameters for standard SQL queries.",
2094          "type": "array",
2095          "items": {
2096            "$ref": "QueryParameter"
2097          }
2098        },
2099        "schemaUpdateOptions": {
2100          "description": "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.",
2101          "type": "array",
2102          "items": {
2103            "type": "string"
2104          }
2105        },
2106        "timePartitioning": {
2107          "description": "Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.",
2108          "$ref": "TimePartitioning"
2109        },
2110        "rangePartitioning": {
2111          "description": "Range partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.",
2112          "$ref": "RangePartitioning"
2113        },
2114        "clustering": {
2115          "description": "Clustering specification for the destination table.",
2116          "$ref": "Clustering"
2117        },
2118        "destinationEncryptionConfiguration": {
2119          "description": "Custom encryption configuration (e.g., Cloud KMS keys)",
2120          "$ref": "EncryptionConfiguration"
2121        },
2122        "scriptOptions": {
2123          "description": "Options controlling the execution of scripts.",
2124          "$ref": "ScriptOptions"
2125        },
2126        "connectionProperties": {
2127          "description": "Connection properties which can modify the query behavior.",
2128          "type": "array",
2129          "items": {
2130            "$ref": "ConnectionProperty"
2131          }
2132        }
2133      }
2134    },
2135    "ExternalDataConfiguration": {
2136      "id": "ExternalDataConfiguration",
2137      "type": "object",
2138      "properties": {
2139        "sourceUris": {
2140          "description": "[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.",
2141          "type": "array",
2142          "items": {
2143            "type": "string"
2144          }
2145        },
2146        "schema": {
2147          "description": "[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.",
2148          "$ref": "TableSchema"
2149        },
2150        "sourceFormat": {
2151          "description": "[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 ORC files, specify \"ORC\". For Parquet files, specify \"PARQUET\". [Beta] For Google Cloud Bigtable, specify \"BIGTABLE\".",
2152          "type": "string"
2153        },
2154        "maxBadRecords": {
2155          "description": "[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.",
2156          "type": "integer",
2157          "format": "int32"
2158        },
2159        "autodetect": {
2160          "description": "Try to detect schema and format options automatically. Any option specified explicitly will be honored.",
2161          "type": "boolean"
2162        },
2163        "ignoreUnknownValues": {
2164          "description": "[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.",
2165          "type": "boolean"
2166        },
2167        "compression": {
2168          "description": "[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.",
2169          "type": "string"
2170        },
2171        "csvOptions": {
2172          "description": "Additional properties to set if sourceFormat is set to CSV.",
2173          "$ref": "CsvOptions"
2174        },
2175        "bigtableOptions": {
2176          "description": "[Optional] Additional options if sourceFormat is set to BIGTABLE.",
2177          "$ref": "BigtableOptions"
2178        },
2179        "googleSheetsOptions": {
2180          "description": "[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.",
2181          "$ref": "GoogleSheetsOptions"
2182        },
2183        "hivePartitioningOptions": {
2184          "description": "[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.",
2185          "$ref": "HivePartitioningOptions"
2186        },
2187        "connectionId": {
2188          "description": "Optional This field is in testing and should not yet be used.",
2189          "type": "string"
2190        },
2191        "decimalTargetTypes": {
2192          "description": "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 ([Preview](\/products\/#product-launch-stages)), 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.",
2193          "type": "array",
2194          "items": {
2195            "type": "string",
2196            "enumDescriptions": [
2197              "Invalid type.",
2198              "Depending on the order, decimal values could be converted to NUMERIC type.",
2199              "Depending on the order, decimal values could be converted to BIGNUMERIC type ([Preview](\/products\/#product-launch-stages)).",
2200              "Depending on the order, decimal values could be converted to STRING type."
2201            ],
2202            "enum": [
2203              "DECIMAL_TARGET_TYPE_UNSPECIFIED",
2204              "NUMERIC",
2205              "BIGNUMERIC",
2206              "STRING"
2207            ]
2208          }
2209        },
2210        "jsonExtension": {
2211          "description": "Optional. [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).",
2212          "type": "string",
2213          "enumDescriptions": [
2214            "The default if provided value is not one included in the enum, or the value is not specified. The source formate is parsed without any modification.",
2215            "Use GeoJSON variant of JSON. See https:\/\/tools.ietf.org\/html\/rfc7946."
2216          ],
2217          "enum": [
2218            "JSON_EXTENSION_UNSPECIFIED",
2219            "GEOJSON"
2220          ]
2221        },
2222        "parquetOptions": {
2223          "description": "Optional. [Optional] Additional properties to set if sourceFormat is set to PARQUET.",
2224          "$ref": "ParquetOptions"
2225        }
2226      }
2227    },
2228    "TableSchema": {
2229      "id": "TableSchema",
2230      "description": "Schema of a table",
2231      "type": "object",
2232      "properties": {
2233        "fields": {
2234          "description": "Describes the fields in a table.",
2235          "type": "array",
2236          "items": {
2237            "$ref": "TableFieldSchema"
2238          }
2239        }
2240      }
2241    },
2242    "TableFieldSchema": {
2243      "id": "TableFieldSchema",
2244      "description": "A field in TableSchema",
2245      "type": "object",
2246      "properties": {
2247        "name": {
2248          "description": "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 128 characters.",
2249          "type": "string"
2250        },
2251        "type": {
2252          "description": "Required. The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, GEOGRAPHY, NUMERIC, BIGNUMERIC ([Preview](\/products\/#product-launch-stages)), RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).",
2253          "type": "string"
2254        },
2255        "mode": {
2256          "description": "Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.",
2257          "type": "string"
2258        },
2259        "fields": {
2260          "description": "Optional. Describes the nested schema fields if the type property is set to RECORD.",
2261          "type": "array",
2262          "items": {
2263            "$ref": "TableFieldSchema"
2264          }
2265        },
2266        "description": {
2267          "description": "Optional. The field description. The maximum length is 1,024 characters.",
2268          "type": "string"
2269        },
2270        "policyTags": {
2271          "description": "Optional. The policy tags attached to this field, used for field-level access control. If not set, defaults to empty policy_tags.",
2272          "type": "object",
2273          "properties": {
2274            "names": {
2275              "description": "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.",
2276              "type": "array",
2277              "items": {
2278                "type": "string"
2279              }
2280            }
2281          }
2282        }
2283      }
2284    },
2285    "CsvOptions": {
2286      "id": "CsvOptions",
2287      "type": "object",
2288      "properties": {
2289        "fieldDelimiter": {
2290          "description": "[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).",
2291          "type": "string"
2292        },
2293        "skipLeadingRows": {
2294          "description": "[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. [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 ' \"\" '.",
2295          "type": "string",
2296          "format": "int64"
2297        },
2298        "quote": {
2299          "pattern": ".?",
2300          "type": "string"
2301        },
2302        "allowQuotedNewlines": {
2303          "description": "[Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.",
2304          "type": "boolean"
2305        },
2306        "allowJaggedRows": {
2307          "description": "[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.",
2308          "type": "boolean"
2309        },
2310        "encoding": {
2311          "description": "[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.",
2312          "type": "string"
2313        }
2314      }
2315    },
2316    "BigtableOptions": {
2317      "id": "BigtableOptions",
2318      "type": "object",
2319      "properties": {
2320        "columnFamilies": {
2321          "description": "[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.",
2322          "type": "array",
2323          "items": {
2324            "$ref": "BigtableColumnFamily"
2325          }
2326        },
2327        "ignoreUnspecifiedColumnFamilies": {
2328          "description": "[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.",
2329          "type": "boolean"
2330        },
2331        "readRowkeyAsString": {
2332          "description": "[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.",
2333          "type": "boolean"
2334        }
2335      }
2336    },
2337    "BigtableColumnFamily": {
2338      "id": "BigtableColumnFamily",
2339      "type": "object",
2340      "properties": {
2341        "familyId": {
2342          "description": "Identifier of the column family.",
2343          "type": "string"
2344        },
2345        "type": {
2346          "description": "[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.",
2347          "type": "string"
2348        },
2349        "encoding": {
2350          "description": "[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.",
2351          "type": "string"
2352        },
2353        "columns": {
2354          "description": "[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.",
2355          "type": "array",
2356          "items": {
2357            "$ref": "BigtableColumn"
2358          }
2359        },
2360        "onlyReadLatest": {
2361          "description": "[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.",
2362          "type": "boolean"
2363        }
2364      }
2365    },
2366    "BigtableColumn": {
2367      "id": "BigtableColumn",
2368      "type": "object",
2369      "properties": {
2370        "qualifierEncoded": {
2371          "description": "[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.",
2372          "type": "string",
2373          "format": "byte"
2374        },
2375        "qualifierString": {
2376          "type": "string"
2377        },
2378        "fieldName": {
2379          "description": "[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.",
2380          "type": "string"
2381        },
2382        "type": {
2383          "description": "[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.",
2384          "type": "string"
2385        },
2386        "encoding": {
2387          "description": "[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.",
2388          "type": "string"
2389        },
2390        "onlyReadLatest": {
2391          "description": "[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.",
2392          "type": "boolean"
2393        }
2394      }
2395    },
2396    "GoogleSheetsOptions": {
2397      "id": "GoogleSheetsOptions",
2398      "type": "object",
2399      "properties": {
2400        "skipLeadingRows": {
2401          "description": "[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.",
2402          "type": "string",
2403          "format": "int64"
2404        },
2405        "range": {
2406          "description": "[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",
2407          "type": "string"
2408        }
2409      }
2410    },
2411    "HivePartitioningOptions": {
2412      "id": "HivePartitioningOptions",
2413      "description": "Options for configuring hive partitioning detect.",
2414      "type": "object",
2415      "properties": {
2416        "mode": {
2417          "description": "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.",
2418          "type": "string"
2419        },
2420        "sourceUriPrefix": {
2421          "description": "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.",
2422          "type": "string"
2423        },
2424        "requirePartitionFilter": {
2425          "description": "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.",
2426          "default": "false",
2427          "type": "boolean"
2428        },
2429        "fields": {
2430          "description": "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.",
2431          "readOnly": true,
2432          "type": "array",
2433          "items": {
2434            "type": "string"
2435          }
2436        }
2437      }
2438    },
2439    "ParquetOptions": {
2440      "id": "ParquetOptions",
2441      "description": "Parquet Options for load and make external tables.",
2442      "type": "object",
2443      "properties": {
2444        "enumAsString": {
2445          "description": "[Optional] Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default.",
2446          "type": "boolean"
2447        },
2448        "enableListInference": {
2449          "description": "[Optional] Indicates whether to use schema inference specifically for Parquet LIST logical type.",
2450          "type": "boolean"
2451        }
2452      }
2453    },
2454    "UserDefinedFunctionResource": {
2455      "id": "UserDefinedFunctionResource",
2456      "description": " This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https:\/\/cloud.google.com\/bigquery\/docs\/reference\/standard-sql\/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions",
2457      "type": "object",
2458      "properties": {
2459        "resourceUri": {
2460          "description": "[Pick one] A code resource to load from a Google Cloud Storage URI (gs:\/\/bucket\/path).",
2461          "type": "string"
2462        },
2463        "inlineCode": {
2464          "description": "[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.",
2465          "type": "string"
2466        }
2467      }
2468    },
2469    "QueryParameter": {
2470      "id": "QueryParameter",
2471      "description": "A parameter given to a query.",
2472      "type": "object",
2473      "properties": {
2474        "name": {
2475          "description": "Optional. If unset, this is a positional parameter. Otherwise, should be unique within a query.",
2476          "type": "string"
2477        },
2478        "parameterType": {
2479          "description": "Required. The type of this parameter.",
2480          "$ref": "QueryParameterType"
2481        },
2482        "parameterValue": {
2483          "description": "Required. The value of this parameter.",
2484          "$ref": "QueryParameterValue"
2485        }
2486      }
2487    },
2488    "QueryParameterType": {
2489      "id": "QueryParameterType",
2490      "description": "The type of a query parameter.",
2491      "type": "object",
2492      "properties": {
2493        "type": {
2494          "description": "Required. The top level type of this field.",
2495          "type": "string"
2496        },
2497        "arrayType": {
2498          "description": "Optional. The type of the array's elements, if this is an array.",
2499          "$ref": "QueryParameterType"
2500        },
2501        "structTypes": {
2502          "description": "Optional. The types of the fields of this struct, in order, if this is a struct.",
2503          "type": "array",
2504          "items": {
2505            "description": "The type of a struct parameter.",
2506            "type": "object",
2507            "properties": {
2508              "name": {
2509                "description": "Optional. The name of this field.",
2510                "type": "string"
2511              },
2512              "type": {
2513                "description": "Required. The type of this field.",
2514                "$ref": "QueryParameterType"
2515              },
2516              "description": {
2517                "description": "Optional. Human-oriented description of the field.",
2518                "type": "string"
2519              }
2520            }
2521          }
2522        }
2523      }
2524    },
2525    "QueryParameterValue": {
2526      "id": "QueryParameterValue",
2527      "description": "The value of a query parameter.",
2528      "type": "object",
2529      "properties": {
2530        "value": {
2531          "description": "Optional. The value of this value, if a simple scalar type.",
2532          "type": "string"
2533        },
2534        "arrayValues": {
2535          "description": "Optional. The array values, if this is an array type.",
2536          "type": "array",
2537          "items": {
2538            "$ref": "QueryParameterValue"
2539          }
2540        },
2541        "structValues": {
2542          "description": "The struct field values.",
2543          "type": "object",
2544          "additionalProperties": {
2545            "$ref": "QueryParameterValue"
2546          }
2547        }
2548      }
2549    },
2550    "TimePartitioning": {
2551      "id": "TimePartitioning",
2552      "type": "object",
2553      "properties": {
2554        "type": {
2555          "description": "Required. The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively.",
2556          "type": "string"
2557        },
2558        "expirationMs": {
2559          "description": "Optional. Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value.",
2560          "type": "string",
2561          "format": "int64"
2562        },
2563        "field": {
2564          "description": "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.",
2565          "type": "string"
2566        },
2567        "requirePartitionFilter": {
2568          "description": "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.",
2569          "default": "false",
2570          "type": "boolean"
2571        }
2572      }
2573    },
2574    "RangePartitioning": {
2575      "id": "RangePartitioning",
2576      "type": "object",
2577      "properties": {
2578        "field": {
2579          "description": "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.",
2580          "type": "string"
2581        },
2582        "range": {
2583          "description": "[Experimental] Defines the ranges for range partitioning.",
2584          "type": "object",
2585          "properties": {
2586            "start": {
2587              "description": "[Experimental] The start of range partitioning, inclusive.",
2588              "type": "string",
2589              "format": "int64"
2590            },
2591            "end": {
2592              "description": "[Experimental] The end of range partitioning, exclusive.",
2593              "type": "string",
2594              "format": "int64"
2595            },
2596            "interval": {
2597              "description": "[Experimental] The width of each interval.",
2598              "type": "string",
2599              "format": "int64"
2600            }
2601          }
2602        }
2603      }
2604    },
2605    "Clustering": {
2606      "id": "Clustering",
2607      "description": "Configures table clustering.",
2608      "type": "object",
2609      "properties": {
2610        "fields": {
2611          "description": "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",
2612          "type": "array",
2613          "items": {
2614            "type": "string"
2615          }
2616        }
2617      }
2618    },
2619    "ScriptOptions": {
2620      "id": "ScriptOptions",
2621      "type": "object",
2622      "properties": {
2623        "statementTimeoutMs": {
2624          "description": "Timeout period for each statement in a script.",
2625          "type": "string",
2626          "format": "int64"
2627        },
2628        "statementByteBudget": {
2629          "description": "Limit on the number of bytes billed per statement. Exceeding this budget results in an error.",
2630          "type": "string",
2631          "format": "int64"
2632        },
2633        "keyResultStatement": {
2634          "description": "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.",
2635          "type": "string",
2636          "enumDescriptions": [
2637            "",
2638            "",
2639            ""
2640          ],
2641          "enum": [
2642            "KEY_RESULT_STATEMENT_KIND_UNSPECIFIED",
2643            "LAST",
2644            "FIRST_SELECT"
2645          ]
2646        }
2647      }
2648    },
2649    "ConnectionProperty": {
2650      "id": "ConnectionProperty",
2651      "description": "A connection-level property to customize query behavior. Under JDBC, these correspond directly to connection properties passed to the DriverManager. Under ODBC, these correspond to properties in the connection string. Currently, the only supported connection property is \"time_zone\", whose value represents the default timezone used to run the query. Additional properties are allowed, but ignored. Specifying multiple connection properties with the same key is an error.",
2652      "type": "object",
2653      "properties": {
2654        "key": {
2655          "description": "The key of the property to set.",
2656          "type": "string"
2657        },
2658        "value": {
2659          "description": "The value of the property to set.",
2660          "type": "string"
2661        }
2662      }
2663    },
2664    "JobConfigurationLoad": {
2665      "id": "JobConfigurationLoad",
2666      "description": "JobConfigurationLoad contains the configuration properties for loading data into a destination table.",
2667      "type": "object",
2668      "properties": {
2669        "sourceUris": {
2670          "description": "[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.",
2671          "type": "array",
2672          "items": {
2673            "type": "string"
2674          }
2675        },
2676        "schema": {
2677          "description": "[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.",
2678          "$ref": "TableSchema"
2679        },
2680        "destinationTable": {
2681          "description": "[Required] The destination table to load the data into.",
2682          "$ref": "TableReference"
2683        },
2684        "destinationTableProperties": {
2685          "description": "Experimental Properties with which to create the destination table if it is new.",
2686          "$ref": "DestinationTableProperties"
2687        },
2688        "createDisposition": {
2689          "description": "[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.",
2690          "type": "string"
2691        },
2692        "writeDisposition": {
2693          "description": "[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 load. * 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.",
2694          "type": "string"
2695        },
2696        "nullMarker": {
2697          "description": "[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.",
2698          "type": "string"
2699        },
2700        "fieldDelimiter": {
2701          "description": "[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).",
2702          "type": "string"
2703        },
2704        "skipLeadingRows": {
2705          "description": "[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.",
2706          "type": "integer",
2707          "format": "int32"
2708        },
2709        "encoding": {
2710          "description": "[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.",
2711          "type": "string"
2712        },
2713        "quote": {
2714          "description": "[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 \"",
2715          "pattern": ".?",
2716          "type": "string"
2717        },
2718        "maxBadRecords": {
2719          "description": "[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.",
2720          "type": "integer",
2721          "format": "int32"
2722        },
2723        "schemaInlineFormat": {
2724          "description": "[Deprecated] The format of the schemaInline property.",
2725          "type": "string"
2726        },
2727        "schemaInline": {
2728          "description": "[Deprecated] The inline schema. For CSV schemas, specify as \"Field1:Type1[,Field2:Type2]*\". For example, \"foo:STRING, bar:INTEGER, baz:FLOAT\".",
2729          "type": "string"
2730        },
2731        "allowQuotedNewlines": {
2732          "description": "Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.",
2733          "type": "boolean"
2734        },
2735        "sourceFormat": {
2736          "description": "[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.",
2737          "type": "string"
2738        },
2739        "allowJaggedRows": {
2740          "description": "[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.",
2741          "type": "boolean"
2742        },
2743        "ignoreUnknownValues": {
2744          "description": "[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.",
2745          "type": "boolean"
2746        },
2747        "projectionFields": {
2748          "description": "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.",
2749          "type": "array",
2750          "items": {
2751            "type": "string"
2752          }
2753        },
2754        "autodetect": {
2755          "description": "[Optional] Indicates if we should automatically infer the options and schema for CSV and JSON sources.",
2756          "type": "boolean"
2757        },
2758        "schemaUpdateOptions": {
2759          "description": "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.",
2760          "type": "array",
2761          "items": {
2762            "type": "string"
2763          }
2764        },
2765        "timePartitioning": {
2766          "description": "Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.",
2767          "$ref": "TimePartitioning"
2768        },
2769        "rangePartitioning": {
2770          "description": "Range partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.",
2771          "$ref": "RangePartitioning"
2772        },
2773        "clustering": {
2774          "description": "Clustering specification for the destination table.",
2775          "$ref": "Clustering"
2776        },
2777        "destinationEncryptionConfiguration": {
2778          "description": "Custom encryption configuration (e.g., Cloud KMS keys)",
2779          "$ref": "EncryptionConfiguration"
2780        },
2781        "useAvroLogicalTypes": {
2782          "description": "[Optional] If sourceFormat is set to \"AVRO\", indicates whether to enable interpreting logical types into their corresponding types (ie. TIMESTAMP), instead of only using their raw types (ie. INTEGER). The default value will be true once this feature launches, but can be set now in preparation.",
2783          "type": "boolean"
2784        },
2785        "hivePartitioningOptions": {
2786          "description": "[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.",
2787          "$ref": "HivePartitioningOptions"
2788        },
2789        "decimalTargetTypes": {
2790          "description": "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 ([Preview](\/products\/#product-launch-stages)), 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.",
2791          "type": "array",
2792          "items": {
2793            "type": "string",
2794            "enumDescriptions": [
2795              "Invalid type.",
2796              "Depending on the order, decimal values could be converted to NUMERIC type.",
2797              "Depending on the order, decimal values could be converted to BIGNUMERIC type ([Preview](\/products\/#product-launch-stages)).",
2798              "Depending on the order, decimal values could be converted to STRING type."
2799            ],
2800            "enum": [
2801              "DECIMAL_TARGET_TYPE_UNSPECIFIED",
2802              "NUMERIC",
2803              "BIGNUMERIC",
2804              "STRING"
2805            ]
2806          }
2807        },
2808        "thriftOptions": {
2809          "description": "Optional. Experimental The load options for Apache Thrift serialized data. It defines the source of IDL bundle that should be used to be parsed as the schema and deserilization options to parse Thrift data.",
2810          "$ref": "ThriftOptions"
2811        },
2812        "jsonExtension": {
2813          "description": "Optional. [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).",
2814          "type": "string",
2815          "enumDescriptions": [
2816            "The default if provided value is not one included in the enum, or the value is not specified. The source formate is parsed without any modification.",
2817            "Use GeoJSON variant of JSON. See https:\/\/tools.ietf.org\/html\/rfc7946."
2818          ],
2819          "enum": [
2820            "JSON_EXTENSION_UNSPECIFIED",
2821            "GEOJSON"
2822          ]
2823        },
2824        "parquetOptions": {
2825          "description": "Optional. [Optional] Additional properties to set if sourceFormat is set to PARQUET.",
2826          "$ref": "ParquetOptions"
2827        }
2828      }
2829    },
2830    "DestinationTableProperties": {
2831      "id": "DestinationTableProperties",
2832      "type": "object",
2833      "properties": {
2834        "friendlyName": {
2835          "description": "[Optional] Friendly name for the destination table. If the table already exists, it should be same as the existing friendly name.",
2836          "type": "string"
2837        },
2838        "description": {
2839          "description": "[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.",
2840          "type": "string"
2841        },
2842        "labels": {
2843          "description": "[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.",
2844          "type": "object",
2845          "additionalProperties": {
2846            "type": "string"
2847          }
2848        }
2849      }
2850    },
2851    "ThriftOptions": {
2852      "id": "ThriftOptions",
2853      "description": "Options for configuring loading Thrift serialized data.",
2854      "type": "object",
2855      "properties": {
2856        "schemaIdlRootDir": {
2857          "description": "Required. The root directory of the IDL file bundle defining the schema. All IDL files that are used to parse the schema should be in this directory. This directory should be different from the source_uris.",
2858          "type": "string"
2859        },
2860        "schemaIdlUri": {
2861          "description": "Required. The Thrift IDL file in the `schema_idl_root_dir` that should be used as the root file to parse the schema. All included idl files in the `schema_idl_uri` should also be in the `schema_idl_root_dir` or its sub-directory.",
2862          "type": "string"
2863        },
2864        "schemaStruct": {
2865          "description": "Required. The root struct specified in `schema_idl_uri` that should be used to parse the schema.",
2866          "type": "string"
2867        },
2868        "deserializationOption": {
2869          "description": "Optional. `deserialization_option` sets how the serialized Thrift should be deserialized. The following options are supported: * THRIFT_BINARY_PROTOCOL_OPTION: using TBinaryProtocol to deserialize the data.",
2870          "type": "string",
2871          "enumDescriptions": [
2872            "Default value. This value is unused.",
2873            "Use `TBinaryProtocol` to deserialize the data.."
2874          ],
2875          "enum": [
2876            "DESERIALIZATION_OPTION_UNSPECIFIED",
2877            "THRIFT_BINARY_PROTOCOL_OPTION"
2878          ]
2879        },
2880        "framingOption": {
2881          "description": "Optional. Framing in Thrift means 4 bytes slipped in front of the serialized record or data block to inidicate the size of the followed record or data block. The following options are support: * NOT_FRAMED: Serialized Thrift records or data blocks are not framed, there are no 4-byte record size in front of the record. * FRAMED_WITH_BIG_ENDIAN: Serialized Thrift records or data blocks are framed with the 4-byte record size in big endian. * FRAMED_WITH_LITTLE_ENDIAN: Serialized Thrift records or data blocks are framed with the 4-byte record size in little endian. One option to frame Thrift record at serialization time is using `TFramedTransport`, which writes the 4-byte record or data block size in big endian. By default `framing_option` is set to \"NOT_FRAMED\".",
2882          "type": "string",
2883          "enumDescriptions": [
2884            "Default value. This value is unused.",
2885            "Records or data blocks are not framed.",
2886            "Records or data blocks are framed with a 4-byte record size in big endian.",
2887            "Records or data blocks are framed with a 4-byte record size in little endian."
2888          ],
2889          "enum": [
2890            "FRAMING_OPTION_UNSPECIFIED",
2891            "NOT_FRAMED",
2892            "FRAMED_WITH_BIG_ENDIAN",
2893            "FRAMED_WITH_LITTLE_ENDIAN"
2894          ]
2895        },
2896        "boundaryBytes": {
2897          "description": "Optional. Sequence of bytes used to separate two serialized Thrift data blocks. When it's used with `framing_option`, the `boundary_bytes` are expected to be in front of the framed block.",
2898          "type": "string",
2899          "format": "byte"
2900        }
2901      }
2902    },
2903    "JobConfigurationTableCopy": {
2904      "id": "JobConfigurationTableCopy",
2905      "description": "JobConfigurationTableCopy configures a job that copies data from one table to another.",
2906      "type": "object",
2907      "properties": {
2908        "sourceTable": {
2909          "description": "[Pick one] Source table to copy.",
2910          "$ref": "TableReference"
2911        },
2912        "sourceTables": {
2913          "description": "[Pick one] Source tables to copy.",
2914          "type": "array",
2915          "items": {
2916            "$ref": "TableReference"
2917          }
2918        },
2919        "destinationTable": {
2920          "description": "[Required] The destination table.",
2921          "$ref": "TableReference"
2922        },
2923        "createDisposition": {
2924          "description": "[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.",
2925          "type": "string"
2926        },
2927        "writeDisposition": {
2928          "description": "[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 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.",
2929          "type": "string"
2930        },
2931        "destinationEncryptionConfiguration": {
2932          "description": "Custom encryption configuration (e.g., Cloud KMS keys).",
2933          "$ref": "EncryptionConfiguration"
2934        },
2935        "operationType": {
2936          "description": "Optional. Supported operation types in table copy job.",
2937          "type": "string",
2938          "enumDescriptions": [
2939            "Unspecified operation type.",
2940            "The source and destination table have the same table type.",
2941            "The source table type is TABLE and the destination table type is SNAPSHOT.",
2942            "The source table type is SNAPSHOT and the destination table type is TABLE."
2943          ],
2944          "enum": [
2945            "OPERATION_TYPE_UNSPECIFIED",
2946            "COPY",
2947            "SNAPSHOT",
2948            "RESTORE"
2949          ]
2950        },
2951        "destinationExpirationTime": {
2952          "description": "Optional. The time when the destination table expires. Expired tables will be deleted and their storage reclaimed.",
2953          "type": "string",
2954          "format": "google-datetime"
2955        }
2956      }
2957    },
2958    "JobConfigurationExtract": {
2959      "id": "JobConfigurationExtract",
2960      "description": "JobConfigurationExtract configures a job that exports data from a BigQuery table into Google Cloud Storage.",
2961      "type": "object",
2962      "properties": {
2963        "sourceTable": {
2964          "description": "A reference to the table being exported.",
2965          "$ref": "TableReference"
2966        },
2967        "sourceModel": {
2968          "description": "A reference to the model being exported.",
2969          "$ref": "ModelReference"
2970        },
2971        "destinationUri": {
2972          "description": "[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.",
2973          "type": "string"
2974        },
2975        "destinationUris": {
2976          "description": "[Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should be written.",
2977          "type": "array",
2978          "items": {
2979            "type": "string"
2980          }
2981        },
2982        "printHeader": {
2983          "description": "[Optional] Whether to print out a header row in the results. Default is true. Not applicable when extracting models.",
2984          "default": "true",
2985          "type": "boolean"
2986        },
2987        "fieldDelimiter": {
2988          "description": "[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.",
2989          "type": "string"
2990        },
2991        "destinationFormat": {
2992          "description": "[Optional] The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON 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.",
2993          "type": "string"
2994        },
2995        "compression": {
2996          "description": "[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.",
2997          "type": "string"
2998        },
2999        "useAvroLogicalTypes": {
3000          "description": "Whether to use logical types when extracting to AVRO format. Not applicable when extracting models.",
3001          "type": "boolean"
3002        }
3003      }
3004    },
3005    "JobReference": {
3006      "id": "JobReference",
3007      "description": "A job reference is a fully qualified identifier for referring to a job.",
3008      "type": "object",
3009      "properties": {
3010        "projectId": {
3011          "description": "Required. The ID of the project containing this job.",
3012          "type": "string"
3013        },
3014        "jobId": {
3015          "description": "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.",
3016          "type": "string"
3017        },
3018        "location": {
3019          "description": "Optional. The geographic location of the job. The default value is US.",
3020          "type": "string"
3021        }
3022      }
3023    },
3024    "JobStatistics": {
3025      "id": "JobStatistics",
3026      "description": "Statistics for a single job execution.",
3027      "type": "object",
3028      "properties": {
3029        "creationTime": {
3030          "description": "Output only. Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs.",
3031          "readOnly": true,
3032          "type": "string",
3033          "format": "int64"
3034        },
3035        "startTime": {
3036          "description": "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.",
3037          "readOnly": true,
3038          "type": "string",
3039          "format": "int64"
3040        },
3041        "endTime": {
3042          "description": "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.",
3043          "readOnly": true,
3044          "type": "string",
3045          "format": "int64"
3046        },
3047        "totalBytesProcessed": {
3048          "description": "Output only. Total bytes processed for the job.",
3049          "readOnly": true,
3050          "type": "string",
3051          "format": "int64"
3052        },
3053        "completionRatio": {
3054          "description": "Output only. [TrustedTester] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs.",
3055          "readOnly": true,
3056          "type": "number",
3057          "format": "double"
3058        },
3059        "quotaDeferments": {
3060          "description": "Output only. Ouput only. Quotas which delayed this job's start time.",
3061          "readOnly": true,
3062          "type": "array",
3063          "items": {
3064            "type": "string"
3065          }
3066        },
3067        "query": {
3068          "description": "Output only. Statistics for a query job.",
3069          "readOnly": true,
3070          "$ref": "JobStatistics2"
3071        },
3072        "load": {
3073          "description": "Output only. Statistics for a load job.",
3074          "readOnly": true,
3075          "$ref": "JobStatistics3"
3076        },
3077        "extract": {
3078          "description": "Output only. Statistics for an extract job.",
3079          "readOnly": true,
3080          "$ref": "JobStatistics4"
3081        },
3082        "totalSlotMs": {
3083          "description": "Output only. Slot-milliseconds for the job.",
3084          "readOnly": true,
3085          "type": "string",
3086          "format": "int64"
3087        },
3088        "reservationUsage": {
3089          "description": "Output only. Job resource usage breakdown by reservation.",
3090          "readOnly": true,
3091          "type": "array",
3092          "items": {
3093            "description": "Job resource usage breakdown by reservation.",
3094            "type": "object",
3095            "properties": {
3096              "name": {
3097                "description": "Reservation name or \"unreserved\" for on-demand resources usage.",
3098                "type": "string"
3099              },
3100              "slotMs": {
3101                "description": "Total slot milliseconds used by the reservation for a particular job.",
3102                "type": "string",
3103                "format": "int64"
3104              }
3105            }
3106          }
3107        },
3108        "reservation_id": {
3109          "description": "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.",
3110          "readOnly": true,
3111          "type": "string"
3112        },
3113        "numChildJobs": {
3114          "description": "Output only. Number of child jobs executed.",
3115          "readOnly": true,
3116          "type": "string",
3117          "format": "int64"
3118        },
3119        "parentJobId": {
3120          "description": "Output only. If this is a child job, specifies the job ID of the parent.",
3121          "readOnly": true,
3122          "type": "string"
3123        },
3124        "scriptStatistics": {
3125          "description": "Output only. If this a child job of a script, specifies information about the context of this job within the script.",
3126          "readOnly": true,
3127          "$ref": "ScriptStatistics"
3128        },
3129        "rowLevelSecurityStatistics": {
3130          "description": "Output only. [Preview] Statistics for row-level security. Present only for query and extract jobs.",
3131          "readOnly": true,
3132          "$ref": "RowLevelSecurityStatistics"
3133        },
3134        "transactionInfo": {
3135          "description": "Output only. [Alpha] Information of the multi-statement transaction if this job is part of one.",
3136          "readOnly": true,
3137          "$ref": "TransactionInfo"
3138        }
3139      }
3140    },
3141    "JobStatistics2": {
3142      "id": "JobStatistics2",
3143      "description": "Statistics for a query job.",
3144      "type": "object",
3145      "properties": {
3146        "queryPlan": {
3147          "description": "Output only. Describes execution plan for the query.",
3148          "readOnly": true,
3149          "type": "array",
3150          "items": {
3151            "$ref": "ExplainQueryStage"
3152          }
3153        },
3154        "estimatedBytesProcessed": {
3155          "description": "Output only. The original estimate of bytes processed for the job.",
3156          "readOnly": true,
3157          "type": "string",
3158          "format": "int64"
3159        },
3160        "timeline": {
3161          "description": "Output only. Describes a timeline of job execution.",
3162          "readOnly": true,
3163          "type": "array",
3164          "items": {
3165            "$ref": "QueryTimelineSample"
3166          }
3167        },
3168        "totalPartitionsProcessed": {
3169          "description": "Output only. Total number of partitions processed from all partitioned tables referenced in the job.",
3170          "readOnly": true,
3171          "type": "string",
3172          "format": "int64"
3173        },
3174        "totalBytesProcessed": {
3175          "description": "Output only. Total bytes processed for the job.",
3176          "readOnly": true,
3177          "type": "string",
3178          "format": "int64"
3179        },
3180        "totalBytesProcessedAccuracy": {
3181          "description": "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.",
3182          "readOnly": true,
3183          "type": "string"
3184        },
3185        "totalBytesBilled": {
3186          "description": "Output only. Total bytes billed for the job.",
3187          "readOnly": true,
3188          "type": "string",
3189          "format": "int64"
3190        },
3191        "billingTier": {
3192          "description": "Output only. Billing tier for the job.",
3193          "readOnly": true,
3194          "type": "integer",
3195          "format": "int32"
3196        },
3197        "totalSlotMs": {
3198          "description": "Output only. Slot-milliseconds for the job.",
3199          "readOnly": true,
3200          "type": "string",
3201          "format": "int64"
3202        },
3203        "reservationUsage": {
3204          "description": "Output only. Job resource usage breakdown by reservation.",
3205          "readOnly": true,
3206          "type": "array",
3207          "items": {
3208            "description": "Job resource usage breakdown by reservation.",
3209            "type": "object",
3210            "properties": {
3211              "name": {
3212                "description": "Reservation name or \"unreserved\" for on-demand resources usage.",
3213                "type": "string"
3214              },
3215              "slotMs": {
3216                "description": "Total slot milliseconds used by the reservation for a particular job.",
3217                "type": "string",
3218                "format": "int64"
3219              }
3220            }
3221          }
3222        },
3223        "cacheHit": {
3224          "description": "Output only. Whether the query result was fetched from the query cache.",
3225          "readOnly": true,
3226          "type": "boolean"
3227        },
3228        "referencedTables": {
3229          "description": "Output only. Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list.",
3230          "readOnly": true,
3231          "type": "array",
3232          "items": {
3233            "$ref": "TableReference"
3234          }
3235        },
3236        "referencedRoutines": {
3237          "description": "Output only. Referenced routines for the job.",
3238          "readOnly": true,
3239          "type": "array",
3240          "items": {
3241            "$ref": "RoutineReference"
3242          }
3243        },
3244        "schema": {
3245          "description": "Output only. The schema of the results. Present only for successful dry run of non-legacy SQL queries.",
3246          "readOnly": true,
3247          "$ref": "TableSchema"
3248        },
3249        "numDmlAffectedRows": {
3250          "description": "Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
3251          "readOnly": true,
3252          "type": "string",
3253          "format": "int64"
3254        },
3255        "undeclaredQueryParameters": {
3256          "description": "Output only. Standard SQL only: list of undeclared query parameters detected during a dry run validation.",
3257          "readOnly": true,
3258          "type": "array",
3259          "items": {
3260            "$ref": "QueryParameter"
3261          }
3262        },
3263        "statementType": {
3264          "description": "Output only. 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. \"EXPORT_MODEL\": EXPORT MODEL query.",
3265          "readOnly": true,
3266          "type": "string"
3267        },
3268        "ddlOperationPerformed": {
3269          "description": "Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL target.",
3270          "readOnly": true,
3271          "type": "string"
3272        },
3273        "ddlTargetTable": {
3274          "description": "Output only. The DDL target table. Present only for CREATE\/DROP TABLE\/VIEW and DROP ALL ROW ACCESS POLICIES queries.",
3275          "readOnly": true,
3276          "$ref": "TableReference"
3277        },
3278        "ddlTargetRowAccessPolicy": {
3279          "description": "Output only. [Preview] The DDL target row access policy. Present only for CREATE\/DROP ROW ACCESS POLICY queries.",
3280          "readOnly": true,
3281          "$ref": "RowAccessPolicyReference"
3282        },
3283        "ddlAffectedRowAccessPolicyCount": {
3284          "description": "Output only. [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries.",
3285          "readOnly": true,
3286          "type": "string",
3287          "format": "int64"
3288        },
3289        "ddlTargetRoutine": {
3290          "description": "Output only. [Beta] The DDL target routine. Present only for CREATE\/DROP FUNCTION\/PROCEDURE queries.",
3291          "readOnly": true,
3292          "$ref": "RoutineReference"
3293        },
3294        "exportDataStatistics": {
3295          "description": "Output only. Stats for EXPORT DATA statement.",
3296          "readOnly": true,
3297          "$ref": "ExportDataStatistics"
3298        },
3299        "externalServiceCosts": {
3300          "description": "Output only. Job cost breakdown as bigquery internal cost and external service costs.",
3301          "readOnly": true,
3302          "type": "array",
3303          "items": {
3304            "$ref": "ExternalServiceCost"
3305          }
3306        },
3307        "biEngineStatistics": {
3308          "description": "Output only. BI Engine specific Statistics.",
3309          "readOnly": true,
3310          "$ref": "BiEngineStatistics"
3311        }
3312      }
3313    },
3314    "ExplainQueryStage": {
3315      "id": "ExplainQueryStage",
3316      "description": "A single stage of query execution.",
3317      "type": "object",
3318      "properties": {
3319        "name": {
3320          "description": "Human-readable name for the stage.",
3321          "type": "string"
3322        },
3323        "id": {
3324          "description": "Unique ID for the stage within the plan.",
3325          "type": "string",
3326          "format": "int64"
3327        },
3328        "startMs": {
3329          "description": "Stage start time represented as milliseconds since the epoch.",
3330          "type": "string",
3331          "format": "int64"
3332        },
3333        "endMs": {
3334          "description": "Stage end time represented as milliseconds since the epoch.",
3335          "type": "string",
3336          "format": "int64"
3337        },
3338        "inputStages": {
3339          "description": "IDs for stages that are inputs to this stage.",
3340          "type": "array",
3341          "items": {
3342            "type": "string",
3343            "format": "int64"
3344          }
3345        },
3346        "waitRatioAvg": {
3347          "description": "Relative amount of time the average shard spent waiting to be scheduled.",
3348          "type": "number",
3349          "format": "double"
3350        },
3351        "waitMsAvg": {
3352          "description": "Milliseconds the average shard spent waiting to be scheduled.",
3353          "type": "string",
3354          "format": "int64"
3355        },
3356        "waitRatioMax": {
3357          "description": "Relative amount of time the slowest shard spent waiting to be scheduled.",
3358          "type": "number",
3359          "format": "double"
3360        },
3361        "waitMsMax": {
3362          "description": "Milliseconds the slowest shard spent waiting to be scheduled.",
3363          "type": "string",
3364          "format": "int64"
3365        },
3366        "readRatioAvg": {
3367          "description": "Relative amount of time the average shard spent reading input.",
3368          "type": "number",
3369          "format": "double"
3370        },
3371        "readMsAvg": {
3372          "description": "Milliseconds the average shard spent reading input.",
3373          "type": "string",
3374          "format": "int64"
3375        },
3376        "readRatioMax": {
3377          "description": "Relative amount of time the slowest shard spent reading input.",
3378          "type": "number",
3379          "format": "double"
3380        },
3381        "readMsMax": {
3382          "description": "Milliseconds the slowest shard spent reading input.",
3383          "type": "string",
3384          "format": "int64"
3385        },
3386        "computeRatioAvg": {
3387          "description": "Relative amount of time the average shard spent on CPU-bound tasks.",
3388          "type": "number",
3389          "format": "double"
3390        },
3391        "computeMsAvg": {
3392          "description": "Milliseconds the average shard spent on CPU-bound tasks.",
3393          "type": "string",
3394          "format": "int64"
3395        },
3396        "computeRatioMax": {
3397          "description": "Relative amount of time the slowest shard spent on CPU-bound tasks.",
3398          "type": "number",
3399          "format": "double"
3400        },
3401        "computeMsMax": {
3402          "description": "Milliseconds the slowest shard spent on CPU-bound tasks.",
3403          "type": "string",
3404          "format": "int64"
3405        },
3406        "writeRatioAvg": {
3407          "description": "Relative amount of time the average shard spent on writing output.",
3408          "type": "number",
3409          "format": "double"
3410        },
3411        "writeMsAvg": {
3412          "description": "Milliseconds the average shard spent on writing output.",
3413          "type": "string",
3414          "format": "int64"
3415        },
3416        "writeRatioMax": {
3417          "description": "Relative amount of time the slowest shard spent on writing output.",
3418          "type": "number",
3419          "format": "double"
3420        },
3421        "writeMsMax": {
3422          "description": "Milliseconds the slowest shard spent on writing output.",
3423          "type": "string",
3424          "format": "int64"
3425        },
3426        "shuffleOutputBytes": {
3427          "description": "Total number of bytes written to shuffle.",
3428          "type": "string",
3429          "format": "int64"
3430        },
3431        "shuffleOutputBytesSpilled": {
3432          "description": "Total number of bytes written to shuffle and spilled to disk.",
3433          "type": "string",
3434          "format": "int64"
3435        },
3436        "recordsRead": {
3437          "description": "Number of records read into the stage.",
3438          "type": "string",
3439          "format": "int64"
3440        },
3441        "recordsWritten": {
3442          "description": "Number of records written by the stage.",
3443          "type": "string",
3444          "format": "int64"
3445        },
3446        "parallelInputs": {
3447          "description": "Number of parallel input segments to be processed",
3448          "type": "string",
3449          "format": "int64"
3450        },
3451        "completedParallelInputs": {
3452          "description": "Number of parallel input segments completed.",
3453          "type": "string",
3454          "format": "int64"
3455        },
3456        "status": {
3457          "description": "Current status for this stage.",
3458          "type": "string"
3459        },
3460        "steps": {
3461          "description": "List of operations within the stage in dependency order (approximately chronological).",
3462          "type": "array",
3463          "items": {
3464            "$ref": "ExplainQueryStep"
3465          }
3466        },
3467        "slotMs": {
3468          "description": "Slot-milliseconds used by the stage.",
3469          "type": "string",
3470          "format": "int64"
3471        }
3472      }
3473    },
3474    "ExplainQueryStep": {
3475      "id": "ExplainQueryStep",
3476      "description": "An operation within a stage.",
3477      "type": "object",
3478      "properties": {
3479        "kind": {
3480          "description": "Machine-readable operation type.",
3481          "type": "string"
3482        },
3483        "substeps": {
3484          "description": "Human-readable description of the step(s).",
3485          "type": "array",
3486          "items": {
3487            "type": "string"
3488          }
3489        }
3490      }
3491    },
3492    "QueryTimelineSample": {
3493      "id": "QueryTimelineSample",
3494      "description": "Summary of the state of query execution at a given time.",
3495      "type": "object",
3496      "properties": {
3497        "elapsedMs": {
3498          "description": "Milliseconds elapsed since the start of query execution.",
3499          "type": "string",
3500          "format": "int64"
3501        },
3502        "totalSlotMs": {
3503          "description": "Cumulative slot-ms consumed by the query.",
3504          "type": "string",
3505          "format": "int64"
3506        },
3507        "pendingUnits": {
3508          "description": "Total parallel units of work remaining for the active stages.",
3509          "type": "string",
3510          "format": "int64"
3511        },
3512        "completedUnits": {
3513          "description": "Total parallel units of work completed by this query.",
3514          "type": "string",
3515          "format": "int64"
3516        },
3517        "activeUnits": {
3518          "description": "Total number of active workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample.",
3519          "type": "string",
3520          "format": "int64"
3521        }
3522      }
3523    },
3524    "RowAccessPolicyReference": {
3525      "id": "RowAccessPolicyReference",
3526      "description": "Id path of a row access policy.",
3527      "type": "object",
3528      "properties": {
3529        "projectId": {
3530          "description": "Required. The ID of the project containing this row access policy.",
3531          "type": "string"
3532        },
3533        "datasetId": {
3534          "description": "Required. The ID of the dataset containing this row access policy.",
3535          "type": "string"
3536        },
3537        "tableId": {
3538          "description": "Required. The ID of the table containing this row access policy.",
3539          "type": "string"
3540        },
3541        "policyId": {
3542          "description": "Required. The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.",
3543          "type": "string"
3544        }
3545      }
3546    },
3547    "ExportDataStatistics": {
3548      "id": "ExportDataStatistics",
3549      "description": "Statistics for the EXPORT DATA statement as part of Query Job. EXTRACT JOB statistics are populated in JobStatistics4.",
3550      "type": "object",
3551      "properties": {
3552        "fileCount": {
3553          "description": "Number of destination files generated in case of EXPORT DATA statement only.",
3554          "type": "string",
3555          "format": "int64"
3556        },
3557        "rowCount": {
3558          "description": "[Alpha] Number of destination rows generated in case of EXPORT DATA statement only.",
3559          "type": "string",
3560          "format": "int64"
3561        }
3562      }
3563    },
3564    "ExternalServiceCost": {
3565      "id": "ExternalServiceCost",
3566      "description": "The external service cost is a portion of the total cost, these costs are not additive with total_bytes_billed. Moreover, this field only track external service costs that will show up as BigQuery costs (e.g. training BigQuery ML job with google cloud CAIP or Automl Tables services), not other costs which may be accrued by running the query (e.g. reading from Bigtable or Cloud Storage). The external service costs with different billing sku (e.g. CAIP job is charged based on VM usage) are converted to BigQuery billed_bytes and slot_ms with equivalent amount of US dollars. Services may not directly correlate to these metrics, but these are the equivalents for billing purposes. Output only.",
3567      "type": "object",
3568      "properties": {
3569        "externalService": {
3570          "description": "External service name.",
3571          "type": "string"
3572        },
3573        "bytesProcessed": {
3574          "description": "External service cost in terms of bigquery bytes processed.",
3575          "type": "string",
3576          "format": "int64"
3577        },
3578        "bytesBilled": {
3579          "description": "External service cost in terms of bigquery bytes billed.",
3580          "type": "string",
3581          "format": "int64"
3582        },
3583        "slotMs": {
3584          "description": "External service cost in terms of bigquery slot milliseconds.",
3585          "type": "string",
3586          "format": "int64"
3587        }
3588      }
3589    },
3590    "BiEngineStatistics": {
3591      "id": "BiEngineStatistics",
3592      "description": "Statistics for a BI Engine specific query. Populated as part of JobStatistics2",
3593      "type": "object",
3594      "properties": {
3595        "biEngineMode": {
3596          "description": "Output only. Specifies which mode of BI Engine acceleration was performed (if any).",
3597          "readOnly": true,
3598          "type": "string",
3599          "enumDescriptions": [
3600            "BiEngineMode type not specified.",
3601            "BI Engine disabled the acceleration. bi_engine_reasons specifies a more detailed reason.",
3602            "Part of the query was accelerated using BI Engine. See bi_engine_reasons for why parts of the query were not accelerated.",
3603            "All of the query was accelerated using BI Engine."
3604          ],
3605          "enum": [
3606            "ACCELERATION_MODE_UNSPECIFIED",
3607            "DISABLED",
3608            "PARTIAL",
3609            "FULL"
3610          ]
3611        },
3612        "biEngineReasons": {
3613          "description": "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.",
3614          "type": "array",
3615          "items": {
3616            "$ref": "BiEngineReason"
3617          }
3618        }
3619      }
3620    },
3621    "BiEngineReason": {
3622      "id": "BiEngineReason",
3623      "description": "Reason why BI Engine didn't accelerate the query (or sub-query).",
3624      "type": "object",
3625      "properties": {
3626        "code": {
3627          "description": "Output only. High-level BI Engine reason for partial or disabled acceleration",
3628          "readOnly": true,
3629          "type": "string",
3630          "enumDescriptions": [
3631            "BiEngineReason not specified.",
3632            "No reservation available for BI Engine acceleration.",
3633            "Not enough memory available for BI Engine acceleration.",
3634            "Data is not-cached and could not be accelerated by BI Engine.",
3635            "This particular SQL text is not supported for acceleration by BI Engine.",
3636            "Input too large for acceleration by BI Engine.",
3637            "Catch-all code for all other cases for partial or disabled acceleration."
3638          ],
3639          "enum": [
3640            "CODE_UNSPECIFIED",
3641            "NO_RESERVATION",
3642            "INSUFFICIENT_RESERVATION",
3643            "UNCACHED",
3644            "UNSUPPORTED_SQL_TEXT",
3645            "INPUT_TOO_LARGE",
3646            "OTHER_REASON"
3647          ]
3648        },
3649        "message": {
3650          "description": "Output only. Free form human-readable reason for partial or disabled acceleration.",
3651          "readOnly": true,
3652          "type": "string"
3653        }
3654      }
3655    },
3656    "JobStatistics3": {
3657      "id": "JobStatistics3",
3658      "description": "Statistics for a load job.",
3659      "type": "object",
3660      "properties": {
3661        "inputFiles": {
3662          "description": "Output only. Number of source files in a load job.",
3663          "readOnly": true,
3664          "type": "string",
3665          "format": "int64"
3666        },
3667        "inputFileBytes": {
3668          "description": "Output only. Number of bytes of source data in a load job.",
3669          "readOnly": true,
3670          "type": "string",
3671          "format": "int64"
3672        },
3673        "outputRows": {
3674          "description": "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.",
3675          "readOnly": true,
3676          "type": "string",
3677          "format": "int64"
3678        },
3679        "outputBytes": {
3680          "description": "Output only. Size of the loaded data in bytes. Note that while a load job is in the running state, this value may change.",
3681          "readOnly": true,
3682          "type": "string",
3683          "format": "int64"
3684        },
3685        "badRecords": {
3686          "description": "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.",
3687          "readOnly": true,
3688          "type": "string",
3689          "format": "int64"
3690        },
3691        "timeline": {
3692          "description": "Output only. Describes a timeline of job execution.",
3693          "readOnly": true,
3694          "type": "array",
3695          "items": {
3696            "$ref": "QueryTimelineSample"
3697          }
3698        }
3699      }
3700    },
3701    "JobStatistics4": {
3702      "id": "JobStatistics4",
3703      "description": "Statistics for an extract job.",
3704      "type": "object",
3705      "properties": {
3706        "destinationUriFileCounts": {
3707          "description": "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.",
3708          "readOnly": true,
3709          "type": "array",
3710          "items": {
3711            "type": "string",
3712            "format": "int64"
3713          }
3714        },
3715        "inputBytes": {
3716          "description": "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.",
3717          "readOnly": true,
3718          "type": "string",
3719          "format": "int64"
3720        },
3721        "timeline": {
3722          "description": "Output only. Describes a timeline of job execution.",
3723          "readOnly": true,
3724          "type": "array",
3725          "items": {
3726            "$ref": "QueryTimelineSample"
3727          }
3728        }
3729      }
3730    },
3731    "ScriptStatistics": {
3732      "id": "ScriptStatistics",
3733      "description": "Job statistics specific to the child job of a script.",
3734      "type": "object",
3735      "properties": {
3736        "evaluationKind": {
3737          "description": "Whether this child job was a statement or expression.",
3738          "type": "string",
3739          "enumDescriptions": [
3740            "",
3741            "The statement appears directly in the script.",
3742            "The statement evaluates an expression that appears in the script."
3743          ],
3744          "enum": [
3745            "EVALUATION_KIND_UNSPECIFIED",
3746            "STATEMENT",
3747            "EXPRESSION"
3748          ]
3749        },
3750        "stackFrames": {
3751          "description": "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.",
3752          "type": "array",
3753          "items": {
3754            "$ref": "ScriptStackFrame"
3755          }
3756        }
3757      }
3758    },
3759    "ScriptStackFrame": {
3760      "id": "ScriptStackFrame",
3761      "description": "Represents the location of the statement\/expression being evaluated. Line and column numbers are defined as follows: - Line and column numbers start with one. That is, line 1 column 1 denotes the start of the script. - When inside a stored procedure, all line\/column numbers are relative to the procedure body, not the script in which the procedure was defined. - Start\/end positions exclude leading\/trailing comments and whitespace. The end position always ends with a \";\", when present. - Multi-byte Unicode characters are treated as just one column. - If the original script (or procedure definition) contains TAB characters, a tab \"snaps\" the indentation forward to the nearest multiple of 8 characters, plus 1. For example, a TAB on column 1, 2, 3, 4, 5, 6 , or 8 will advance the next character to column 9. A TAB on column 9, 10, 11, 12, 13, 14, 15, or 16 will advance the next character to column 17.",
3762      "type": "object",
3763      "properties": {
3764        "startLine": {
3765          "description": "Output only. One-based start line.",
3766          "readOnly": true,
3767          "type": "integer",
3768          "format": "int32"
3769        },
3770        "startColumn": {
3771          "description": "Output only. One-based start column.",
3772          "readOnly": true,
3773          "type": "integer",
3774          "format": "int32"
3775        },
3776        "endLine": {
3777          "description": "Output only. One-based end line.",
3778          "readOnly": true,
3779          "type": "integer",
3780          "format": "int32"
3781        },
3782        "endColumn": {
3783          "description": "Output only. One-based end column.",
3784          "readOnly": true,
3785          "type": "integer",
3786          "format": "int32"
3787        },
3788        "procedureId": {
3789          "description": "Output only. Name of the active procedure, empty if in a top-level script.",
3790          "readOnly": true,
3791          "type": "string"
3792        },
3793        "text": {
3794          "description": "Output only. Text of the current statement\/expression.",
3795          "readOnly": true,
3796          "type": "string"
3797        }
3798      }
3799    },
3800    "RowLevelSecurityStatistics": {
3801      "id": "RowLevelSecurityStatistics",
3802      "description": "[Preview] Statistics for row-level security.",
3803      "type": "object",
3804      "properties": {
3805        "rowLevelSecurityApplied": {
3806          "description": "Whether any accessed data was protected by row access policies.",
3807          "type": "boolean"
3808        }
3809      }
3810    },
3811    "TransactionInfo": {
3812      "id": "TransactionInfo",
3813      "description": "[Alpha] Information of a multi-statement transaction.",
3814      "type": "object",
3815      "properties": {
3816        "transactionId": {
3817          "description": "Output only. [Alpha] Id of the transaction.",
3818          "readOnly": true,
3819          "type": "string"
3820        }
3821      }
3822    },
3823    "JobStatus": {
3824      "id": "JobStatus",
3825      "type": "object",
3826      "properties": {
3827        "errorResult": {
3828          "description": "Output only. Final error result of the job. If present, indicates that the job has completed and was unsuccessful.",
3829          "readOnly": true,
3830          "$ref": "ErrorProto"
3831        },
3832        "errors": {
3833          "description": "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.",
3834          "readOnly": true,
3835          "type": "array",
3836          "items": {
3837            "$ref": "ErrorProto"
3838          }
3839        },
3840        "state": {
3841          "description": "Output only. Running state of the job. Valid states include 'PENDING', 'RUNNING', and 'DONE'.",
3842          "readOnly": true,
3843          "type": "string"
3844        }
3845      }
3846    },
3847    "ErrorProto": {
3848      "id": "ErrorProto",
3849      "description": "Error details.",
3850      "type": "object",
3851      "properties": {
3852        "reason": {
3853          "description": "A short error code that summarizes the error.",
3854          "type": "string"
3855        },
3856        "location": {
3857          "description": "Specifies where the error occurred, if present.",
3858          "type": "string"
3859        },
3860        "debugInfo": {
3861          "description": "Debugging information. This property is internal to Google and should not be used.",
3862          "type": "string"
3863        },
3864        "message": {
3865          "description": "A human-readable description of the error.",
3866          "type": "string"
3867        }
3868      }
3869    },
3870    "JobList": {
3871      "id": "JobList",
3872      "type": "object",
3873      "properties": {
3874        "etag": {
3875          "description": "A hash of this page of results.",
3876          "type": "string"
3877        },
3878        "kind": {
3879          "description": "The resource type of the response.",
3880          "type": "string"
3881        },
3882        "nextPageToken": {
3883          "description": "A token to request the next page of results.",
3884          "type": "string"
3885        },
3886        "jobs": {
3887          "description": "List of jobs that were requested.",
3888          "type": "array",
3889          "items": {
3890            "type": "object",
3891            "properties": {
3892              "id": {
3893                "description": "Unique opaque ID of the job.",
3894                "type": "string"
3895              },
3896              "kind": {
3897                "description": "The resource type.",
3898                "type": "string"
3899              },
3900              "jobReference": {
3901                "description": "Unique opaque ID of the job.",
3902                "$ref": "JobReference"
3903              },
3904              "state": {
3905                "description": "Running state of the job. When the state is DONE, errorResult can be checked to determine whether the job succeeded or failed.",
3906                "type": "string"
3907              },
3908              "errorResult": {
3909                "description": "A result object that will be present only if the job has failed.",
3910                "$ref": "ErrorProto"
3911              },
3912              "statistics": {
3913                "description": "Output only. Information about the job, including starting time and ending time of the job.",
3914                "readOnly": true,
3915                "$ref": "JobStatistics"
3916              },
3917              "configuration": {
3918                "description": "Required. Describes the job configuration.",
3919                "$ref": "JobConfiguration"
3920              },
3921              "status": {
3922                "description": "[Full-projection-only] Describes the status of this job.",
3923                "$ref": "JobStatus"
3924              },
3925              "user_email": {
3926                "description": "[Full-projection-only] Email address of the user who ran the job.",
3927                "type": "string"
3928              }
3929            }
3930          }
3931        }
3932      }
3933    },
3934    "GetQueryResultsResponse": {
3935      "id": "GetQueryResultsResponse",
3936      "description": "Response object of GetQueryResults.",
3937      "type": "object",
3938      "properties": {
3939        "kind": {
3940          "description": "The resource type of the response.",
3941          "type": "string"
3942        },
3943        "etag": {
3944          "description": "A hash of this response.",
3945          "type": "string"
3946        },
3947        "schema": {
3948          "description": "The schema of the results. Present only when the query completes successfully.",
3949          "$ref": "TableSchema"
3950        },
3951        "jobReference": {
3952          "description": "Reference to the BigQuery 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).",
3953          "$ref": "JobReference"
3954        },
3955        "totalRows": {
3956          "description": "The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results. Present only when the query completes successfully.",
3957          "type": "string",
3958          "format": "uint64"
3959        },
3960        "pageToken": {
3961          "description": "A token used for paging results. When this token is non-empty, it indicates additional results are available.",
3962          "type": "string"
3963        },
3964        "rows": {
3965          "description": "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.",
3966          "type": "array",
3967          "items": {
3968            "$ref": "TableRow"
3969          }
3970        },
3971        "totalBytesProcessed": {
3972          "description": "The total number of bytes processed for this query.",
3973          "type": "string",
3974          "format": "int64"
3975        },
3976        "jobComplete": {
3977          "description": "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.",
3978          "type": "boolean"
3979        },
3980        "errors": {
3981          "description": "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.",
3982          "readOnly": true,
3983          "type": "array",
3984          "items": {
3985            "$ref": "ErrorProto"
3986          }
3987        },
3988        "cacheHit": {
3989          "description": "Whether the query result was fetched from the query cache.",
3990          "type": "boolean"
3991        },
3992        "numDmlAffectedRows": {
3993          "description": "Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
3994          "readOnly": true,
3995          "type": "string",
3996          "format": "int64"
3997        }
3998      }
3999    },
4000    "QueryRequest": {
4001      "id": "QueryRequest",
4002      "type": "object",
4003      "properties": {
4004        "kind": {
4005          "description": "The resource type of the request.",
4006          "type": "string"
4007        },
4008        "query": {
4009          "description": "Required. A query string, following the BigQuery query syntax, of the query to execute. Example: \"SELECT count(f1) FROM [myProjectId:myDatasetId.myTableId]\".",
4010          "type": "string"
4011        },
4012        "maxResults": {
4013          "description": "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.",
4014          "type": "integer",
4015          "format": "uint32"
4016        },
4017        "defaultDataset": {
4018          "description": "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'.",
4019          "$ref": "DatasetReference"
4020        },
4021        "timeoutMs": {
4022          "description": "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.",
4023          "type": "integer",
4024          "format": "uint32"
4025        },
4026        "dryRun": {
4027          "description": "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.",
4028          "type": "boolean"
4029        },
4030        "preserveNulls": {
4031          "description": "This property is deprecated.",
4032          "type": "boolean"
4033        },
4034        "useQueryCache": {
4035          "description": "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.",
4036          "default": "true",
4037          "type": "boolean"
4038        },
4039        "useLegacySql": {
4040          "description": "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.",
4041          "default": "true",
4042          "type": "boolean"
4043        },
4044        "parameterMode": {
4045          "description": "Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query.",
4046          "type": "string"
4047        },
4048        "queryParameters": {
4049          "description": "Query parameters for Standard SQL queries.",
4050          "type": "array",
4051          "items": {
4052            "$ref": "QueryParameter"
4053          }
4054        },
4055        "location": {
4056          "description": "The geographic location where the job should run. See details at https:\/\/cloud.google.com\/bigquery\/docs\/locations#specifying_your_location.",
4057          "type": "string"
4058        },
4059        "formatOptions": {
4060          "description": "Optional. Output format adjustments.",
4061          "$ref": "DataFormatOptions"
4062        },
4063        "connectionProperties": {
4064          "description": "Optional. Connection properties which can modify the query behavior.",
4065          "type": "array",
4066          "items": {
4067            "$ref": "ConnectionProperty"
4068          }
4069        },
4070        "labels": {
4071          "description": "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.",
4072          "type": "object",
4073          "additionalProperties": {
4074            "type": "string"
4075          }
4076        },
4077        "maximumBytesBilled": {
4078          "description": "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.",
4079          "type": "string",
4080          "format": "int64"
4081        },
4082        "requestId": {
4083          "description": "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.",
4084          "type": "string"
4085        }
4086      }
4087    },
4088    "DataFormatOptions": {
4089      "id": "DataFormatOptions",
4090      "description": "Options for data format adjustments.",
4091      "type": "object",
4092      "properties": {
4093        "useInt64Timestamp": {
4094          "description": "Optional. Output timestamp as usec int64. Default is false.",
4095          "type": "boolean"
4096        }
4097      }
4098    },
4099    "QueryResponse": {
4100      "id": "QueryResponse",
4101      "type": "object",
4102      "properties": {
4103        "kind": {
4104          "description": "The resource type.",
4105          "type": "string"
4106        },
4107        "schema": {
4108          "description": "The schema of the results. Present only when the query completes successfully.",
4109          "$ref": "TableSchema"
4110        },
4111        "jobReference": {
4112          "description": "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).",
4113          "$ref": "JobReference"
4114        },
4115        "totalRows": {
4116          "description": "The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.",
4117          "type": "string",
4118          "format": "uint64"
4119        },
4120        "pageToken": {
4121          "description": "A token used for paging results.",
4122          "type": "string"
4123        },
4124        "rows": {
4125          "description": "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.",
4126          "type": "array",
4127          "items": {
4128            "$ref": "TableRow"
4129          }
4130        },
4131        "totalBytesProcessed": {
4132          "description": "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.",
4133          "type": "string",
4134          "format": "int64"
4135        },
4136        "jobComplete": {
4137          "description": "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.",
4138          "type": "boolean"
4139        },
4140        "errors": {
4141          "description": "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.",
4142          "readOnly": true,
4143          "type": "array",
4144          "items": {
4145            "$ref": "ErrorProto"
4146          }
4147        },
4148        "cacheHit": {
4149          "description": "Whether the query result was fetched from the query cache.",
4150          "type": "boolean"
4151        },
4152        "numDmlAffectedRows": {
4153          "description": "Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
4154          "readOnly": true,
4155          "type": "string",
4156          "format": "int64"
4157        }
4158      }
4159    },
4160    "ProjectList": {
4161      "id": "ProjectList",
4162      "description": "Response object of ListProjects",
4163      "type": "object",
4164      "properties": {
4165        "kind": {
4166          "description": "The resource type of the response.",
4167          "type": "string"
4168        },
4169        "etag": {
4170          "description": "A hash of the page of results.",
4171          "type": "string"
4172        },
4173        "nextPageToken": {
4174          "description": "A token to request the next page of results.",
4175          "type": "string"
4176        },
4177        "projects": {
4178          "description": "Projects to which the user has at least READ access.",
4179          "type": "array",
4180          "items": {
4181            "description": "Information about a single project.",
4182            "type": "object",
4183            "properties": {
4184              "kind": {
4185                "description": "The resource type.",
4186                "type": "string"
4187              },
4188              "id": {
4189                "description": "An opaque ID of this project.",
4190                "type": "string"
4191              },
4192              "numericId": {
4193                "type": "string",
4194                "format": "uint64"
4195              },
4196              "projectReference": {
4197                "description": "A unique reference to this project.",
4198                "$ref": "ProjectReference"
4199              },
4200              "friendlyName": {
4201                "description": "A descriptive name for this project. A wrapper is used here because friendlyName can be set to the empty string.",
4202                "type": "string"
4203              }
4204            }
4205          }
4206        },
4207        "totalItems": {
4208          "description": "The total number of projects in the list. A wrapper is used here because the field should still be in the response when the value is 0.",
4209          "type": "integer",
4210          "format": "int32"
4211        }
4212      }
4213    },
4214    "ProjectReference": {
4215      "id": "ProjectReference",
4216      "description": "A unique reference to a project.",
4217      "type": "object",
4218      "properties": {
4219        "projectId": {
4220          "description": "Required. ID of the project. Can be either the numeric ID or the assigned ID of the project.",
4221          "type": "string"
4222        }
4223      }
4224    },
4225    "GetServiceAccountResponse": {
4226      "id": "GetServiceAccountResponse",
4227      "description": "Response object of GetServiceAccount",
4228      "type": "object",
4229      "properties": {
4230        "kind": {
4231          "description": "The resource type of the response.",
4232          "type": "string"
4233        },
4234        "email": {
4235          "description": "The service account email address.",
4236          "type": "string"
4237        }
4238      }
4239    },
4240    "Routine": {
4241      "id": "Routine",
4242      "description": "A user-defined function or a stored procedure.",
4243      "type": "object",
4244      "properties": {
4245        "etag": {
4246          "description": "Output only. A hash of this resource.",
4247          "readOnly": true,
4248          "type": "string"
4249        },
4250        "routineReference": {
4251          "description": "Required. Reference describing the ID of this routine.",
4252          "$ref": "RoutineReference"
4253        },
4254        "routineType": {
4255          "description": "Required. The type of routine.",
4256          "type": "string",
4257          "enumDescriptions": [
4258            "",
4259            "Non-builtin permanent scalar function.",
4260            "Stored procedure."
4261          ],
4262          "enum": [
4263            "ROUTINE_TYPE_UNSPECIFIED",
4264            "SCALAR_FUNCTION",
4265            "PROCEDURE"
4266          ]
4267        },
4268        "creationTime": {
4269          "description": "Output only. The time when this routine was created, in milliseconds since the epoch.",
4270          "readOnly": true,
4271          "type": "string",
4272          "format": "int64"
4273        },
4274        "lastModifiedTime": {
4275          "description": "Output only. The time when this routine was last modified, in milliseconds since the epoch.",
4276          "readOnly": true,
4277          "type": "string",
4278          "format": "int64"
4279        },
4280        "language": {
4281          "description": "Optional. Defaults to \"SQL\".",
4282          "type": "string",
4283          "enumDescriptions": [
4284            "",
4285            "SQL language.",
4286            "JavaScript language."
4287          ],
4288          "enum": [
4289            "LANGUAGE_UNSPECIFIED",
4290            "SQL",
4291            "JAVASCRIPT"
4292          ]
4293        },
4294        "arguments": {
4295          "description": "Optional.",
4296          "type": "array",
4297          "items": {
4298            "$ref": "Argument"
4299          }
4300        },
4301        "returnType": {
4302          "description": "Optional if language = \"SQL\"; required otherwise. If absent, the return type is inferred from definition_body at query time in each query that references this routine. If present, then the evaluated result will be cast to the specified returned type at query time. For example, for the functions created with the following statements: * `CREATE FUNCTION Add(x FLOAT64, y FLOAT64) RETURNS FLOAT64 AS (x + y);` * `CREATE FUNCTION Increment(x FLOAT64) AS (Add(x, 1));` * `CREATE FUNCTION Decrement(x FLOAT64) RETURNS FLOAT64 AS (Add(x, -1));` The return_type is `{type_kind: \"FLOAT64\"}` for `Add` and `Decrement`, and is absent for `Increment` (inferred as FLOAT64 at query time). Suppose the function `Add` is replaced by `CREATE OR REPLACE FUNCTION Add(x INT64, y INT64) AS (x + y);` Then the inferred return type of `Increment` is automatically changed to INT64 at query time, while the return type of `Decrement` remains FLOAT64.",
4303          "$ref": "StandardSqlDataType"
4304        },
4305        "importedLibraries": {
4306          "description": "Optional. If language = \"JAVASCRIPT\", this field stores the path of the imported JAVASCRIPT libraries.",
4307          "type": "array",
4308          "items": {
4309            "type": "string"
4310          }
4311        },
4312        "definitionBody": {
4313          "description": "Required. The body of the routine. For functions, this is the expression in the AS clause. If language=SQL, it is the substring inside (but excluding) the parentheses. For example, for the function created with the following statement: `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, \"\\n\", y))` The definition_body is `concat(x, \"\\n\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT, it is the evaluated string in the AS clause. For example, for the function created with the following statement: `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return \"\\n\";\\n'` The definition_body is `return \"\\n\";\\n` Note that both \\n are replaced with linebreaks.",
4314          "type": "string"
4315        },
4316        "description": {
4317          "description": "Optional. [Experimental] The description of the routine if defined.",
4318          "type": "string"
4319        },
4320        "determinismLevel": {
4321          "description": "Optional. [Experimental] The determinism level of the JavaScript UDF if defined.",
4322          "type": "string",
4323          "enumDescriptions": [
4324            "The determinism of the UDF is unspecified.",
4325            "The UDF is deterministic, meaning that 2 function calls with the same inputs always produce the same result, even across 2 query runs.",
4326            "The UDF is not deterministic."
4327          ],
4328          "enum": [
4329            "DETERMINISM_LEVEL_UNSPECIFIED",
4330            "DETERMINISTIC",
4331            "NOT_DETERMINISTIC"
4332          ]
4333        }
4334      }
4335    },
4336    "Argument": {
4337      "id": "Argument",
4338      "description": "Input\/output argument of a function or a stored procedure.",
4339      "type": "object",
4340      "properties": {
4341        "name": {
4342          "description": "Optional. The name of this argument. Can be absent for function return argument.",
4343          "type": "string"
4344        },
4345        "argumentKind": {
4346          "description": "Optional. Defaults to FIXED_TYPE.",
4347          "type": "string",
4348          "enumDescriptions": [
4349            "",
4350            "The argument is a variable with fully specified type, which can be a struct or an array, but not a table.",
4351            "The argument is any type, including struct or array, but not a table. To be added: FIXED_TABLE, ANY_TABLE"
4352          ],
4353          "enum": [
4354            "ARGUMENT_KIND_UNSPECIFIED",
4355            "FIXED_TYPE",
4356            "ANY_TYPE"
4357          ]
4358        },
4359        "mode": {
4360          "description": "Optional. Specifies whether the argument is input or output. Can be set for procedures only.",
4361          "type": "string",
4362          "enumDescriptions": [
4363            "",
4364            "The argument is input-only.",
4365            "The argument is output-only.",
4366            "The argument is both an input and an output."
4367          ],
4368          "enum": [
4369            "MODE_UNSPECIFIED",
4370            "IN",
4371            "OUT",
4372            "INOUT"
4373          ]
4374        },
4375        "dataType": {
4376          "description": "Required unless argument_kind = ANY_TYPE.",
4377          "$ref": "StandardSqlDataType"
4378        }
4379      }
4380    },
4381    "ListRoutinesResponse": {
4382      "id": "ListRoutinesResponse",
4383      "type": "object",
4384      "properties": {
4385        "routines": {
4386          "description": "Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language.",
4387          "type": "array",
4388          "items": {
4389            "$ref": "Routine"
4390          }
4391        },
4392        "nextPageToken": {
4393          "description": "A token to request the next page of results.",
4394          "type": "string"
4395        }
4396      }
4397    },
4398    "ListRowAccessPoliciesResponse": {
4399      "id": "ListRowAccessPoliciesResponse",
4400      "description": "Response message for the ListRowAccessPolicies method.",
4401      "type": "object",
4402      "properties": {
4403        "rowAccessPolicies": {
4404          "description": "Row access policies on the requested table.",
4405          "type": "array",
4406          "items": {
4407            "$ref": "RowAccessPolicy"
4408          }
4409        },
4410        "nextPageToken": {
4411          "description": "A token to request the next page of results.",
4412          "type": "string"
4413        }
4414      }
4415    },
4416    "RowAccessPolicy": {
4417      "id": "RowAccessPolicy",
4418      "description": "Represents access on a subset of rows on the specified table, defined by its filter predicate. Access to the subset of rows is controlled by its IAM policy.",
4419      "type": "object",
4420      "properties": {
4421        "etag": {
4422          "description": "Output only. A hash of this resource.",
4423          "readOnly": true,
4424          "type": "string"
4425        },
4426        "rowAccessPolicyReference": {
4427          "description": "Required. Reference describing the ID of this row access policy.",
4428          "$ref": "RowAccessPolicyReference"
4429        },
4430        "filterPredicate": {
4431          "description": "Required. A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region=\"EU\" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0",
4432          "type": "string"
4433        },
4434        "creationTime": {
4435          "description": "Output only. The time when this row access policy was created, in milliseconds since the epoch.",
4436          "readOnly": true,
4437          "type": "string",
4438          "format": "google-datetime"
4439        },
4440        "lastModifiedTime": {
4441          "description": "Output only. The time when this row access policy was last modified, in milliseconds since the epoch.",
4442          "readOnly": true,
4443          "type": "string",
4444          "format": "google-datetime"
4445        }
4446      }
4447    },
4448    "Table": {
4449      "id": "Table",
4450      "type": "object",
4451      "properties": {
4452        "kind": {
4453          "description": "The type of resource ID.",
4454          "type": "string"
4455        },
4456        "etag": {
4457          "description": "Output only. A hash of this resource.",
4458          "readOnly": true,
4459          "type": "string"
4460        },
4461        "id": {
4462          "description": "Output only. An opaque ID uniquely identifying the table.",
4463          "readOnly": true,
4464          "type": "string"
4465        },
4466        "selfLink": {
4467          "description": "Output only. A URL that can be used to access this resource again.",
4468          "readOnly": true,
4469          "type": "string"
4470        },
4471        "tableReference": {
4472          "description": "Required. Reference describing the ID of this table.",
4473          "$ref": "TableReference"
4474        },
4475        "friendlyName": {
4476          "description": "Optional. A descriptive name for this table.",
4477          "type": "string"
4478        },
4479        "description": {
4480          "description": "Optional. A user-friendly description of this table.",
4481          "type": "string"
4482        },
4483        "labels": {
4484          "description": "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.",
4485          "type": "object",
4486          "additionalProperties": {
4487            "type": "string"
4488          }
4489        },
4490        "schema": {
4491          "description": "[Optional] Describes the schema of this table.",
4492          "$ref": "TableSchema"
4493        },
4494        "timePartitioning": {
4495          "description": "If specified, configures time-based partitioning for this table.",
4496          "$ref": "TimePartitioning"
4497        },
4498        "rangePartitioning": {
4499          "description": "If specified, configures range partitioning for this table.",
4500          "$ref": "RangePartitioning"
4501        },
4502        "clustering": {
4503          "description": "Clustering specification for the table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered.",
4504          "$ref": "Clustering"
4505        },
4506        "requirePartitionFilter": {
4507          "description": "[Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.",
4508          "default": "false",
4509          "type": "boolean"
4510        },
4511        "numBytes": {
4512          "description": "Output only. The size of this table in bytes, excluding any data in the streaming buffer.",
4513          "readOnly": true,
4514          "type": "string",
4515          "format": "int64"
4516        },
4517        "numPhysicalBytes": {
4518          "description": "Output only. Experimental. The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.",
4519          "readOnly": true,
4520          "type": "string",
4521          "format": "int64"
4522        },
4523        "numLongTermBytes": {
4524          "description": "Output only. The number of bytes in the table that are considered \"long-term storage\".",
4525          "readOnly": true,
4526          "type": "string",
4527          "format": "int64"
4528        },
4529        "numRows": {
4530          "description": "Output only. The number of rows of data in this table, excluding any data in the streaming buffer.",
4531          "readOnly": true,
4532          "type": "string",
4533          "format": "uint64"
4534        },
4535        "creationTime": {
4536          "description": "Output only. The time when this table was created, in milliseconds since the epoch.",
4537          "readOnly": true,
4538          "type": "string",
4539          "format": "int64"
4540        },
4541        "expirationTime": {
4542          "description": "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.",
4543          "type": "string",
4544          "format": "int64"
4545        },
4546        "lastModifiedTime": {
4547          "description": "Output only. The time when this table was last modified, in milliseconds since the epoch.",
4548          "readOnly": true,
4549          "type": "string",
4550          "format": "uint64"
4551        },
4552        "type": {
4553          "description": "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. The default value is TABLE.",
4554          "readOnly": true,
4555          "type": "string"
4556        },
4557        "view": {
4558          "description": "Optional. The view definition.",
4559          "$ref": "ViewDefinition"
4560        },
4561        "materializedView": {
4562          "description": "Optional. The materialized view definition.",
4563          "$ref": "MaterializedViewDefinition"
4564        },
4565        "externalDataConfiguration": {
4566          "description": "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.",
4567          "$ref": "ExternalDataConfiguration"
4568        },
4569        "location": {
4570          "description": "Output only. The geographic location where the table resides. This value is inherited from the dataset.",
4571          "readOnly": true,
4572          "type": "string"
4573        },
4574        "streamingBuffer": {
4575          "description": "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.",
4576          "readOnly": true,
4577          "$ref": "Streamingbuffer"
4578        },
4579        "encryptionConfiguration": {
4580          "description": "Custom encryption configuration (e.g., Cloud KMS keys).",
4581          "$ref": "EncryptionConfiguration"
4582        },
4583        "snapshotDefinition": {
4584          "description": "Output only. Contains information regarding snapshot. This value is set via snapshot creation.",
4585          "readOnly": true,
4586          "$ref": "SnapshotDefinition"
4587        }
4588      }
4589    },
4590    "ViewDefinition": {
4591      "id": "ViewDefinition",
4592      "type": "object",
4593      "properties": {
4594        "query": {
4595          "description": "Required. A query that BigQuery executes when the view is referenced.",
4596          "type": "string"
4597        },
4598        "userDefinedFunctionResources": {
4599          "description": "Describes user-defined function resources used in the query.",
4600          "type": "array",
4601          "items": {
4602            "$ref": "UserDefinedFunctionResource"
4603          }
4604        },
4605        "useLegacySql": {
4606          "description": "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. A wrapper is used here because the default value is True.",
4607          "type": "boolean"
4608        }
4609      }
4610    },
4611    "MaterializedViewDefinition": {
4612      "id": "MaterializedViewDefinition",
4613      "type": "object",
4614      "properties": {
4615        "query": {
4616          "description": "Required. A query whose results are persisted.",
4617          "type": "string"
4618        },
4619        "lastRefreshTime": {
4620          "description": "Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.",
4621          "readOnly": true,
4622          "type": "string",
4623          "format": "int64"
4624        },
4625        "enableRefresh": {
4626          "description": "Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is \"true\".",
4627          "type": "boolean"
4628        },
4629        "refreshIntervalMs": {
4630          "description": "Optional. The maximum frequency at which this materialized view will be refreshed. The default value is \"1800000\" (30 minutes).",
4631          "type": "string",
4632          "format": "uint64"
4633        }
4634      }
4635    },
4636    "Streamingbuffer": {
4637      "id": "Streamingbuffer",
4638      "type": "object",
4639      "properties": {
4640        "estimatedBytes": {
4641          "description": "Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer.",
4642          "readOnly": true,
4643          "type": "string",
4644          "format": "uint64"
4645        },
4646        "estimatedRows": {
4647          "description": "Output only. A lower-bound estimate of the number of rows currently in the streaming buffer.",
4648          "readOnly": true,
4649          "type": "string",
4650          "format": "uint64"
4651        },
4652        "oldestEntryTime": {
4653          "description": "Output only. Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.",
4654          "readOnly": true,
4655          "type": "string",
4656          "format": "uint64"
4657        }
4658      }
4659    },
4660    "SnapshotDefinition": {
4661      "id": "SnapshotDefinition",
4662      "description": "Information about base table and snapshot time of the snapshot.",
4663      "type": "object",
4664      "properties": {
4665        "baseTableReference": {
4666          "description": "Required. Reference describing the ID of the table that is snapshotted.",
4667          "$ref": "TableReference"
4668        },
4669        "snapshotTime": {
4670          "description": "Required. The time at which the base table was snapshot.",
4671          "type": "string",
4672          "format": "google-datetime"
4673        }
4674      }
4675    },
4676    "TableList": {
4677      "id": "TableList",
4678      "type": "object",
4679      "properties": {
4680        "kind": {
4681          "description": "The type of list.",
4682          "type": "string"
4683        },
4684        "etag": {
4685          "description": "A hash of this page of results.",
4686          "type": "string"
4687        },
4688        "nextPageToken": {
4689          "description": "A token to request the next page of results.",
4690          "type": "string"
4691        },
4692        "tables": {
4693          "description": "Tables in the requested dataset.",
4694          "type": "array",
4695          "items": {
4696            "type": "object",
4697            "properties": {
4698              "kind": {
4699                "description": "The resource type.",
4700                "type": "string"
4701              },
4702              "id": {
4703                "description": "An opaque ID of the table.",
4704                "type": "string"
4705              },
4706              "tableReference": {
4707                "description": "A reference uniquely identifying table.",
4708                "$ref": "TableReference"
4709              },
4710              "friendlyName": {
4711                "description": "The user-friendly name for this table.",
4712                "type": "string"
4713              },
4714              "type": {
4715                "description": "The type of table.",
4716                "type": "string"
4717              },
4718              "timePartitioning": {
4719                "description": "The time-based partitioning for this table.",
4720                "$ref": "TimePartitioning"
4721              },
4722              "rangePartitioning": {
4723                "description": "The range partitioning for this table.",
4724                "$ref": "RangePartitioning"
4725              },
4726              "clustering": {
4727                "description": "[TrustedTester] Clustering specification for this table, if configured.",
4728                "$ref": "Clustering"
4729              },
4730              "hivePartitioningOptions": {
4731                "description": "[Experimental] The hive partitioning configuration for this table, when applicable.",
4732                "$ref": "HivePartitioningOptions"
4733              },
4734              "labels": {
4735                "description": "The labels associated with this table. You can use these to organize and group your tables.",
4736                "type": "object",
4737                "additionalProperties": {
4738                  "type": "string"
4739                }
4740              },
4741              "view": {
4742                "description": "Additional details for a view.",
4743                "type": "object",
4744                "properties": {
4745                  "useLegacySql": {
4746                    "description": "True if view is defined in legacy SQL dialect, false if in standard SQL.",
4747                    "type": "boolean"
4748                  }
4749                }
4750              },
4751              "creationTime": {
4752                "description": "Output only. The time when this table was created, in milliseconds since the epoch.",
4753                "readOnly": true,
4754                "type": "string",
4755                "format": "int64"
4756              },
4757              "expirationTime": {
4758                "description": "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.",
4759                "type": "string",
4760                "format": "int64"
4761              }
4762            }
4763          }
4764        },
4765        "totalItems": {
4766          "description": "The total number of tables in the dataset.",
4767          "type": "integer",
4768          "format": "int32"
4769        }
4770      }
4771    },
4772    "TableDataInsertAllRequest": {
4773      "id": "TableDataInsertAllRequest",
4774      "type": "object",
4775      "properties": {
4776        "kind": {
4777          "description": "The resource type of the response.",
4778          "type": "string"
4779        },
4780        "skipInvalidRows": {
4781          "description": "[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.",
4782          "type": "boolean"
4783        },
4784        "ignoreUnknownValues": {
4785          "description": "[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.",
4786          "type": "boolean"
4787        },
4788        "templateSuffix": {
4789          "description": "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.",
4790          "type": "string"
4791        },
4792        "rows": {
4793          "type": "array",
4794          "items": {
4795            "type": "object",
4796            "properties": {
4797              "insertId": {
4798                "type": "string"
4799              },
4800              "json": {
4801                "$ref": "JsonObject"
4802              }
4803            }
4804          }
4805        },
4806        "traceId": {
4807          "description": "Unique request trace id. Used for debugging purposes only. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended.",
4808          "type": "string"
4809        }
4810      }
4811    },
4812    "TableDataInsertAllResponse": {
4813      "id": "TableDataInsertAllResponse",
4814      "type": "object",
4815      "properties": {
4816        "kind": {
4817          "type": "string"
4818        },
4819        "insertErrors": {
4820          "type": "array",
4821          "items": {
4822            "type": "object",
4823            "properties": {
4824              "index": {
4825                "type": "integer",
4826                "format": "uint32"
4827              },
4828              "errors": {
4829                "type": "array",
4830                "items": {
4831                  "$ref": "ErrorProto"
4832                }
4833              }
4834            }
4835          }
4836        }
4837      }
4838    },
4839    "SetIamPolicyRequest": {
4840      "id": "SetIamPolicyRequest",
4841      "description": "Request message for `SetIamPolicy` method.",
4842      "type": "object",
4843      "properties": {
4844        "policy": {
4845          "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.",
4846          "$ref": "Policy"
4847        },
4848        "updateMask": {
4849          "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`",
4850          "type": "string",
4851          "format": "google-fieldmask"
4852        }
4853      }
4854    },
4855    "Policy": {
4856      "id": "Policy",
4857      "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https:\/\/cloud.google.com\/iam\/help\/conditions\/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles\/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles\/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles\/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles\/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https:\/\/cloud.google.com\/iam\/docs\/).",
4858      "type": "object",
4859      "properties": {
4860        "version": {
4861          "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https:\/\/cloud.google.com\/iam\/help\/conditions\/resource-policies).",
4862          "type": "integer",
4863          "format": "int32"
4864        },
4865        "bindings": {
4866          "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.",
4867          "type": "array",
4868          "items": {
4869            "$ref": "Binding"
4870          }
4871        },
4872        "auditConfigs": {
4873          "description": "Specifies cloud audit logging configuration for this policy.",
4874          "type": "array",
4875          "items": {
4876            "$ref": "AuditConfig"
4877          }
4878        },
4879        "etag": {
4880          "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.",
4881          "type": "string",
4882          "format": "byte"
4883        }
4884      }
4885    },
4886    "Binding": {
4887      "id": "Binding",
4888      "description": "Associates `members` with a `role`.",
4889      "type": "object",
4890      "properties": {
4891        "role": {
4892          "description": "Role that is assigned to `members`. For example, `roles\/viewer`, `roles\/editor`, or `roles\/owner`.",
4893          "type": "string"
4894        },
4895        "members": {
4896          "description": "Specifies the identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
4897          "type": "array",
4898          "items": {
4899            "type": "string"
4900          }
4901        },
4902        "condition": {
4903          "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https:\/\/cloud.google.com\/iam\/help\/conditions\/resource-policies).",
4904          "$ref": "Expr"
4905        }
4906      }
4907    },
4908    "Expr": {
4909      "id": "Expr",
4910      "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https:\/\/github.com\/google\/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
4911      "type": "object",
4912      "properties": {
4913        "expression": {
4914          "description": "Textual representation of an expression in Common Expression Language syntax.",
4915          "type": "string"
4916        },
4917        "title": {
4918          "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.",
4919          "type": "string"
4920        },
4921        "description": {
4922          "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
4923          "type": "string"
4924        },
4925        "location": {
4926          "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.",
4927          "type": "string"
4928        }
4929      }
4930    },
4931    "AuditConfig": {
4932      "id": "AuditConfig",
4933      "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.",
4934      "type": "object",
4935      "properties": {
4936        "service": {
4937          "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.",
4938          "type": "string"
4939        },
4940        "auditLogConfigs": {
4941          "description": "The configuration for logging of each type of permission.",
4942          "type": "array",
4943          "items": {
4944            "$ref": "AuditLogConfig"
4945          }
4946        }
4947      }
4948    },
4949    "AuditLogConfig": {
4950      "id": "AuditLogConfig",
4951      "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.",
4952      "type": "object",
4953      "properties": {
4954        "logType": {
4955          "description": "The log type that this config enables.",
4956          "type": "string",
4957          "enumDescriptions": [
4958            "Default case. Should never be this.",
4959            "Admin reads. Example: CloudIAM getIamPolicy",
4960            "Data writes. Example: CloudSQL Users create",
4961            "Data reads. Example: CloudSQL Users list"
4962          ],
4963          "enum": [
4964            "LOG_TYPE_UNSPECIFIED",
4965            "ADMIN_READ",
4966            "DATA_WRITE",
4967            "DATA_READ"
4968          ]
4969        },
4970        "exemptedMembers": {
4971          "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.",
4972          "type": "array",
4973          "items": {
4974            "type": "string"
4975          }
4976        }
4977      }
4978    },
4979    "GetIamPolicyRequest": {
4980      "id": "GetIamPolicyRequest",
4981      "description": "Request message for `GetIamPolicy` method.",
4982      "type": "object",
4983      "properties": {
4984        "options": {
4985          "description": "OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.",
4986          "$ref": "GetPolicyOptions"
4987        }
4988      }
4989    },
4990    "GetPolicyOptions": {
4991      "id": "GetPolicyOptions",
4992      "description": "Encapsulates settings provided to GetIamPolicy.",
4993      "type": "object",
4994      "properties": {
4995        "requestedPolicyVersion": {
4996          "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https:\/\/cloud.google.com\/iam\/help\/conditions\/resource-policies).",
4997          "type": "integer",
4998          "format": "int32"
4999        }
5000      }
5001    },
5002    "TestIamPermissionsRequest": {
5003      "id": "TestIamPermissionsRequest",
5004      "description": "Request message for `TestIamPermissions` method.",
5005      "type": "object",
5006      "properties": {
5007        "permissions": {
5008          "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https:\/\/cloud.google.com\/iam\/docs\/overview#permissions).",
5009          "type": "array",
5010          "items": {
5011            "type": "string"
5012          }
5013        }
5014      }
5015    },
5016    "TestIamPermissionsResponse": {
5017      "id": "TestIamPermissionsResponse",
5018      "description": "Response message for `TestIamPermissions` method.",
5019      "type": "object",
5020      "properties": {
5021        "permissions": {
5022          "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.",
5023          "type": "array",
5024          "items": {
5025            "type": "string"
5026          }
5027        }
5028      }
5029    },
5030    "LocationMetadata": {
5031      "id": "LocationMetadata",
5032      "description": "BigQuery-specific metadata about a location. This will be set on google.cloud.location.Location.metadata in Cloud Location API responses.",
5033      "type": "object",
5034      "properties": {
5035        "legacyLocationId": {
5036          "description": "The legacy BigQuery location ID, e.g. \u201CEU\u201D for the \u201Ceurope\u201D location. This is for any API consumers that need the legacy \u201CUS\u201D and \u201CEU\u201D locations.",
5037          "type": "string"
5038        }
5039      }
5040    },
5041    "TableRow": {
5042      "id": "TableRow",
5043      "type": "object",
5044      "properties": {
5045        "f": {
5046          "description": "Represents a single row in the result set, consisting of one or more fields.",
5047          "type": "array",
5048          "items": {
5049            "$ref": "TableCell"
5050          }
5051        }
5052      }
5053    },
5054    "TableCell": {
5055      "id": "TableCell",
5056      "type": "object",
5057      "properties": {
5058        "v": {
5059          "type": "any"
5060        }
5061      }
5062    },
5063    "JsonObject": {
5064      "id": "JsonObject",
5065      "description": "Represents a single JSON object.",
5066      "type": "object",
5067      "additionalProperties": {
5068        "$ref": "JsonValue"
5069      }
5070    },
5071    "JsonValue": {
5072      "id": "JsonValue",
5073      "type": "any"
5074    },
5075    "TableDataList": {
5076      "id": "TableDataList",
5077      "type": "object",
5078      "properties": {
5079        "pageToken": {
5080          "description": "A token used for paging results. Providing this token instead of the startIndex parameter can help you retrieve stable results when an underlying table is changing.",
5081          "type": "string"
5082        },
5083        "kind": {
5084          "description": "The resource type of the response.",
5085          "default": "bigquery#tableDataList",
5086          "type": "string"
5087        },
5088        "rows": {
5089          "description": "Rows of results.",
5090          "type": "array",
5091          "items": {
5092            "$ref": "TableRow"
5093          }
5094        },
5095        "totalRows": {
5096          "description": "Total rows of the entire table. In order to show default value 0 we have to present it as string.",
5097          "type": "string",
5098          "format": "int64"
5099        },
5100        "etag": {
5101          "description": "A hash of this page of results.",
5102          "type": "string"
5103        }
5104      }
5105    }
5106  },
5107  "resources": {
5108    "datasets": {
5109      "methods": {
5110        "get": {
5111          "id": "bigquery.datasets.get",
5112          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}",
5113          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}",
5114          "httpMethod": "GET",
5115          "parameters": {
5116            "projectId": {
5117              "description": "Required. Project ID of the requested dataset",
5118              "pattern": "^[^\/]+$",
5119              "location": "path",
5120              "required": true,
5121              "type": "string"
5122            },
5123            "datasetId": {
5124              "description": "Required. Dataset ID of the requested dataset",
5125              "pattern": "^[^\/]+$",
5126              "location": "path",
5127              "required": true,
5128              "type": "string"
5129            }
5130          },
5131          "parameterOrder": [
5132            "projectId",
5133            "datasetId"
5134          ],
5135          "response": {
5136            "$ref": "Dataset"
5137          },
5138          "scopes": [
5139            "https://www.googleapis.com/auth/bigquery",
5140            "https://www.googleapis.com/auth/bigquery.readonly",
5141            "https://www.googleapis.com/auth/cloud-platform",
5142            "https://www.googleapis.com/auth/cloud-platform.read-only"
5143          ],
5144          "description": "Returns the dataset specified by datasetID."
5145        },
5146        "insert": {
5147          "id": "bigquery.datasets.insert",
5148          "path": "bigquery/v2/projects/{+projectId}/datasets",
5149          "flatPath": "bigquery/v2/projects/{projectsId}/datasets",
5150          "httpMethod": "POST",
5151          "parameters": {
5152            "projectId": {
5153              "description": "Required. Project ID of the new dataset",
5154              "pattern": "^[^\/]+$",
5155              "location": "path",
5156              "required": true,
5157              "type": "string"
5158            }
5159          },
5160          "parameterOrder": [
5161            "projectId"
5162          ],
5163          "request": {
5164            "$ref": "Dataset"
5165          },
5166          "response": {
5167            "$ref": "Dataset"
5168          },
5169          "scopes": [
5170            "https://www.googleapis.com/auth/bigquery",
5171            "https://www.googleapis.com/auth/cloud-platform"
5172          ],
5173          "description": "Creates a new empty dataset."
5174        },
5175        "patch": {
5176          "id": "bigquery.datasets.patch",
5177          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}",
5178          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}",
5179          "httpMethod": "PATCH",
5180          "parameters": {
5181            "projectId": {
5182              "description": "Required. Project ID of the dataset being updated",
5183              "pattern": "^[^\/]+$",
5184              "location": "path",
5185              "required": true,
5186              "type": "string"
5187            },
5188            "datasetId": {
5189              "description": "Required. Dataset ID of the dataset being updated",
5190              "pattern": "^[^\/]+$",
5191              "location": "path",
5192              "required": true,
5193              "type": "string"
5194            }
5195          },
5196          "parameterOrder": [
5197            "projectId",
5198            "datasetId"
5199          ],
5200          "request": {
5201            "$ref": "Dataset"
5202          },
5203          "response": {
5204            "$ref": "Dataset"
5205          },
5206          "scopes": [
5207            "https://www.googleapis.com/auth/bigquery",
5208            "https://www.googleapis.com/auth/cloud-platform"
5209          ],
5210          "description": "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."
5211        },
5212        "update": {
5213          "id": "bigquery.datasets.update",
5214          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}",
5215          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}",
5216          "httpMethod": "PUT",
5217          "parameters": {
5218            "projectId": {
5219              "description": "Required. Project ID of the dataset being updated",
5220              "pattern": "^[^\/]+$",
5221              "location": "path",
5222              "required": true,
5223              "type": "string"
5224            },
5225            "datasetId": {
5226              "description": "Required. Dataset ID of the dataset being updated",
5227              "pattern": "^[^\/]+$",
5228              "location": "path",
5229              "required": true,
5230              "type": "string"
5231            }
5232          },
5233          "parameterOrder": [
5234            "projectId",
5235            "datasetId"
5236          ],
5237          "request": {
5238            "$ref": "Dataset"
5239          },
5240          "response": {
5241            "$ref": "Dataset"
5242          },
5243          "scopes": [
5244            "https://www.googleapis.com/auth/bigquery",
5245            "https://www.googleapis.com/auth/cloud-platform"
5246          ],
5247          "description": "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."
5248        },
5249        "delete": {
5250          "id": "bigquery.datasets.delete",
5251          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}",
5252          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}",
5253          "httpMethod": "DELETE",
5254          "parameters": {
5255            "projectId": {
5256              "description": "Required. Project ID of the dataset being deleted",
5257              "pattern": "^[^\/]+$",
5258              "location": "path",
5259              "required": true,
5260              "type": "string"
5261            },
5262            "datasetId": {
5263              "description": "Required. Dataset ID of dataset being deleted",
5264              "pattern": "^[^\/]+$",
5265              "location": "path",
5266              "required": true,
5267              "type": "string"
5268            },
5269            "deleteContents": {
5270              "description": "If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False",
5271              "location": "query",
5272              "type": "boolean"
5273            }
5274          },
5275          "parameterOrder": [
5276            "projectId",
5277            "datasetId"
5278          ],
5279          "scopes": [
5280            "https://www.googleapis.com/auth/bigquery",
5281            "https://www.googleapis.com/auth/cloud-platform"
5282          ],
5283          "description": "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."
5284        },
5285        "list": {
5286          "id": "bigquery.datasets.list",
5287          "path": "bigquery/v2/projects/{+projectId}/datasets",
5288          "flatPath": "bigquery/v2/projects/{projectsId}/datasets",
5289          "httpMethod": "GET",
5290          "parameters": {
5291            "projectId": {
5292              "description": "Required. Project ID of the datasets to be listed",
5293              "pattern": "^[^\/]+$",
5294              "location": "path",
5295              "required": true,
5296              "type": "string"
5297            },
5298            "maxResults": {
5299              "description": "The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.",
5300              "location": "query",
5301              "type": "integer",
5302              "format": "uint32"
5303            },
5304            "pageToken": {
5305              "description": "Page token, returned by a previous call, to request the next page of results",
5306              "location": "query",
5307              "type": "string"
5308            },
5309            "all": {
5310              "description": "Whether to list all datasets, including hidden ones",
5311              "location": "query",
5312              "type": "boolean"
5313            },
5314            "filter": {
5315              "description": "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.",
5316              "location": "query",
5317              "type": "string"
5318            }
5319          },
5320          "parameterOrder": [
5321            "projectId"
5322          ],
5323          "response": {
5324            "$ref": "DatasetList"
5325          },
5326          "scopes": [
5327            "https://www.googleapis.com/auth/bigquery",
5328            "https://www.googleapis.com/auth/bigquery.readonly",
5329            "https://www.googleapis.com/auth/cloud-platform",
5330            "https://www.googleapis.com/auth/cloud-platform.read-only"
5331          ],
5332          "description": "Lists all datasets in the specified project to which the user has been granted the READER dataset role."
5333        },
5334        "setIamPolicy": {
5335          "id": "bigquery.datasets.setIamPolicy",
5336          "path": "bigquery/v2/{+resource}:setIamPolicy",
5337          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}:setIamPolicy",
5338          "httpMethod": "POST",
5339          "parameters": {
5340            "resource": {
5341              "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
5342              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+$",
5343              "location": "path",
5344              "required": true,
5345              "type": "string"
5346            }
5347          },
5348          "parameterOrder": [
5349            "resource"
5350          ],
5351          "request": {
5352            "$ref": "SetIamPolicyRequest"
5353          },
5354          "response": {
5355            "$ref": "Policy"
5356          },
5357          "scopes": [
5358            "https://www.googleapis.com/auth/bigquery",
5359            "https://www.googleapis.com/auth/cloud-platform"
5360          ],
5361          "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors."
5362        },
5363        "getIamPolicy": {
5364          "id": "bigquery.datasets.getIamPolicy",
5365          "path": "bigquery/v2/{+resource}:getIamPolicy",
5366          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}:getIamPolicy",
5367          "httpMethod": "POST",
5368          "parameters": {
5369            "resource": {
5370              "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
5371              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+$",
5372              "location": "path",
5373              "required": true,
5374              "type": "string"
5375            }
5376          },
5377          "parameterOrder": [
5378            "resource"
5379          ],
5380          "request": {
5381            "$ref": "GetIamPolicyRequest"
5382          },
5383          "response": {
5384            "$ref": "Policy"
5385          },
5386          "scopes": [
5387            "https://www.googleapis.com/auth/bigquery",
5388            "https://www.googleapis.com/auth/bigquery.readonly",
5389            "https://www.googleapis.com/auth/cloud-platform",
5390            "https://www.googleapis.com/auth/cloud-platform.read-only"
5391          ],
5392          "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set."
5393        },
5394        "testIamPermissions": {
5395          "id": "bigquery.datasets.testIamPermissions",
5396          "path": "bigquery/v2/{+resource}:testIamPermissions",
5397          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}:testIamPermissions",
5398          "httpMethod": "POST",
5399          "parameters": {
5400            "resource": {
5401              "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
5402              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+$",
5403              "location": "path",
5404              "required": true,
5405              "type": "string"
5406            }
5407          },
5408          "parameterOrder": [
5409            "resource"
5410          ],
5411          "request": {
5412            "$ref": "TestIamPermissionsRequest"
5413          },
5414          "response": {
5415            "$ref": "TestIamPermissionsResponse"
5416          },
5417          "scopes": [
5418            "https://www.googleapis.com/auth/bigquery",
5419            "https://www.googleapis.com/auth/bigquery.readonly",
5420            "https://www.googleapis.com/auth/cloud-platform",
5421            "https://www.googleapis.com/auth/cloud-platform.read-only"
5422          ],
5423          "description": "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."
5424        }
5425      }
5426    },
5427    "models": {
5428      "methods": {
5429        "get": {
5430          "id": "bigquery.models.get",
5431          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}",
5432          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/models/{modelsId}",
5433          "httpMethod": "GET",
5434          "parameters": {
5435            "projectId": {
5436              "description": "Required. Project ID of the requested model.",
5437              "pattern": "^[^\/]+$",
5438              "location": "path",
5439              "required": true,
5440              "type": "string"
5441            },
5442            "datasetId": {
5443              "description": "Required. Dataset ID of the requested model.",
5444              "pattern": "^[^\/]+$",
5445              "location": "path",
5446              "required": true,
5447              "type": "string"
5448            },
5449            "modelId": {
5450              "description": "Required. Model ID of the requested model.",
5451              "pattern": "^[^\/]+$",
5452              "location": "path",
5453              "required": true,
5454              "type": "string"
5455            }
5456          },
5457          "parameterOrder": [
5458            "projectId",
5459            "datasetId",
5460            "modelId"
5461          ],
5462          "response": {
5463            "$ref": "Model"
5464          },
5465          "scopes": [
5466            "https://www.googleapis.com/auth/bigquery",
5467            "https://www.googleapis.com/auth/bigquery.readonly",
5468            "https://www.googleapis.com/auth/cloud-platform",
5469            "https://www.googleapis.com/auth/cloud-platform.read-only"
5470          ],
5471          "description": "Gets the specified model resource by model ID."
5472        },
5473        "list": {
5474          "id": "bigquery.models.list",
5475          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models",
5476          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/models",
5477          "httpMethod": "GET",
5478          "parameters": {
5479            "projectId": {
5480              "description": "Required. Project ID of the models to list.",
5481              "pattern": "^[^\/]+$",
5482              "location": "path",
5483              "required": true,
5484              "type": "string"
5485            },
5486            "datasetId": {
5487              "description": "Required. Dataset ID of the models to list.",
5488              "pattern": "^[^\/]+$",
5489              "location": "path",
5490              "required": true,
5491              "type": "string"
5492            },
5493            "maxResults": {
5494              "description": "The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.",
5495              "location": "query",
5496              "type": "integer",
5497              "format": "uint32"
5498            },
5499            "pageToken": {
5500              "description": "Page token, returned by a previous call to request the next page of results",
5501              "location": "query",
5502              "type": "string"
5503            }
5504          },
5505          "parameterOrder": [
5506            "projectId",
5507            "datasetId"
5508          ],
5509          "response": {
5510            "$ref": "ListModelsResponse"
5511          },
5512          "scopes": [
5513            "https://www.googleapis.com/auth/bigquery",
5514            "https://www.googleapis.com/auth/bigquery.readonly",
5515            "https://www.googleapis.com/auth/cloud-platform",
5516            "https://www.googleapis.com/auth/cloud-platform.read-only"
5517          ],
5518          "description": "Lists all models in the specified dataset. Requires the READER dataset role."
5519        },
5520        "patch": {
5521          "id": "bigquery.models.patch",
5522          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}",
5523          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/models/{modelsId}",
5524          "httpMethod": "PATCH",
5525          "parameters": {
5526            "projectId": {
5527              "description": "Required. Project ID of the model to patch.",
5528              "pattern": "^[^\/]+$",
5529              "location": "path",
5530              "required": true,
5531              "type": "string"
5532            },
5533            "datasetId": {
5534              "description": "Required. Dataset ID of the model to patch.",
5535              "pattern": "^[^\/]+$",
5536              "location": "path",
5537              "required": true,
5538              "type": "string"
5539            },
5540            "modelId": {
5541              "description": "Required. Model ID of the model to patch.",
5542              "pattern": "^[^\/]+$",
5543              "location": "path",
5544              "required": true,
5545              "type": "string"
5546            }
5547          },
5548          "parameterOrder": [
5549            "projectId",
5550            "datasetId",
5551            "modelId"
5552          ],
5553          "request": {
5554            "$ref": "Model"
5555          },
5556          "response": {
5557            "$ref": "Model"
5558          },
5559          "scopes": [
5560            "https://www.googleapis.com/auth/bigquery",
5561            "https://www.googleapis.com/auth/cloud-platform"
5562          ],
5563          "description": "Patch specific fields in the specified model."
5564        },
5565        "delete": {
5566          "id": "bigquery.models.delete",
5567          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}",
5568          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/models/{modelsId}",
5569          "httpMethod": "DELETE",
5570          "parameters": {
5571            "projectId": {
5572              "description": "Required. Project ID of the model to delete.",
5573              "pattern": "^[^\/]+$",
5574              "location": "path",
5575              "required": true,
5576              "type": "string"
5577            },
5578            "datasetId": {
5579              "description": "Required. Dataset ID of the model to delete.",
5580              "pattern": "^[^\/]+$",
5581              "location": "path",
5582              "required": true,
5583              "type": "string"
5584            },
5585            "modelId": {
5586              "description": "Required. Model ID of the model to delete.",
5587              "pattern": "^[^\/]+$",
5588              "location": "path",
5589              "required": true,
5590              "type": "string"
5591            }
5592          },
5593          "parameterOrder": [
5594            "projectId",
5595            "datasetId",
5596            "modelId"
5597          ],
5598          "scopes": [
5599            "https://www.googleapis.com/auth/bigquery",
5600            "https://www.googleapis.com/auth/cloud-platform"
5601          ],
5602          "description": "Deletes the model specified by modelId from the dataset."
5603        }
5604      }
5605    },
5606    "jobs": {
5607      "methods": {
5608        "cancel": {
5609          "id": "bigquery.jobs.cancel",
5610          "path": "bigquery/v2/projects/{+projectId}/jobs/{+jobId}/cancel",
5611          "flatPath": "bigquery/v2/projects/{projectsId}/jobs/{jobsId}/cancel",
5612          "httpMethod": "POST",
5613          "parameters": {
5614            "projectId": {
5615              "description": "Required. Project ID of the job to cancel",
5616              "pattern": "^[^\/]+$",
5617              "location": "path",
5618              "required": true,
5619              "type": "string"
5620            },
5621            "jobId": {
5622              "description": "Required. Job ID of the job to cancel",
5623              "pattern": "^[^\/]+$",
5624              "location": "path",
5625              "required": true,
5626              "type": "string"
5627            },
5628            "location": {
5629              "description": "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.",
5630              "location": "query",
5631              "type": "string"
5632            }
5633          },
5634          "parameterOrder": [
5635            "projectId",
5636            "jobId"
5637          ],
5638          "response": {
5639            "$ref": "JobCancelResponse"
5640          },
5641          "scopes": [
5642            "https://www.googleapis.com/auth/bigquery",
5643            "https://www.googleapis.com/auth/cloud-platform"
5644          ],
5645          "description": "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."
5646        },
5647        "get": {
5648          "id": "bigquery.jobs.get",
5649          "path": "bigquery/v2/projects/{+projectId}/jobs/{+jobId}",
5650          "flatPath": "bigquery/v2/projects/{projectsId}/jobs/{jobsId}",
5651          "httpMethod": "GET",
5652          "parameters": {
5653            "projectId": {
5654              "description": "Required. Project ID of the requested job.",
5655              "pattern": "^[^\/]+$",
5656              "location": "path",
5657              "required": true,
5658              "type": "string"
5659            },
5660            "jobId": {
5661              "description": "Required. Job ID of the requested job.",
5662              "pattern": "^[^\/]+$",
5663              "location": "path",
5664              "required": true,
5665              "type": "string"
5666            },
5667            "location": {
5668              "description": "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.",
5669              "location": "query",
5670              "type": "string"
5671            }
5672          },
5673          "parameterOrder": [
5674            "projectId",
5675            "jobId"
5676          ],
5677          "response": {
5678            "$ref": "Job"
5679          },
5680          "scopes": [
5681            "https://www.googleapis.com/auth/bigquery",
5682            "https://www.googleapis.com/auth/bigquery.readonly",
5683            "https://www.googleapis.com/auth/cloud-platform",
5684            "https://www.googleapis.com/auth/cloud-platform.read-only"
5685          ],
5686          "description": "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."
5687        },
5688        "insert": {
5689          "id": "bigquery.jobs.insert",
5690          "path": "bigquery/v2/projects/{+projectId}/jobs",
5691          "flatPath": "bigquery/v2/projects/{projectsId}/jobs",
5692          "httpMethod": "POST",
5693          "parameters": {
5694            "projectId": {
5695              "description": "Project ID of project that will be billed for the job.",
5696              "pattern": "^[^\/]+$",
5697              "location": "path",
5698              "required": true,
5699              "type": "string"
5700            }
5701          },
5702          "parameterOrder": [
5703            "projectId"
5704          ],
5705          "supportsMediaUpload": true,
5706          "mediaUpload": {
5707            "accept": [
5708              "*/*"
5709            ],
5710            "protocols": {
5711              "simple": {
5712                "multipart": true,
5713                "path": "/upload/bigquery/v2/projects/{+projectId}/jobs"
5714              }
5715            }
5716          },
5717          "request": {
5718            "$ref": "Job"
5719          },
5720          "response": {
5721            "$ref": "Job"
5722          },
5723          "scopes": [
5724            "https://www.googleapis.com/auth/bigquery",
5725            "https://www.googleapis.com/auth/cloud-platform",
5726            "https://www.googleapis.com/auth/devstorage.full_control",
5727            "https://www.googleapis.com/auth/devstorage.read_only",
5728            "https://www.googleapis.com/auth/devstorage.read_write"
5729          ],
5730          "description": "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."
5731        },
5732        "list": {
5733          "id": "bigquery.jobs.list",
5734          "path": "bigquery/v2/projects/{+projectId}/jobs",
5735          "flatPath": "bigquery/v2/projects/{projectsId}/jobs",
5736          "httpMethod": "GET",
5737          "parameters": {
5738            "projectId": {
5739              "description": "Project ID of the jobs to list.",
5740              "pattern": "^[^\/]+$",
5741              "location": "path",
5742              "required": true,
5743              "type": "string"
5744            },
5745            "allUsers": {
5746              "description": "Whether to display jobs owned by all users in the project. Default False.",
5747              "location": "query",
5748              "type": "boolean"
5749            },
5750            "maxResults": {
5751              "description": "The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.",
5752              "location": "query",
5753              "type": "integer",
5754              "format": "int32"
5755            },
5756            "minCreationTime": {
5757              "description": "Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned.",
5758              "location": "query",
5759              "type": "string",
5760              "format": "uint64"
5761            },
5762            "maxCreationTime": {
5763              "description": "Max value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created before or at this timestamp are returned.",
5764              "location": "query",
5765              "type": "string",
5766              "format": "uint64"
5767            },
5768            "pageToken": {
5769              "description": "Page token, returned by a previous call, to request the next page of results.",
5770              "location": "query",
5771              "type": "string"
5772            },
5773            "projection": {
5774              "description": "Restrict information returned to a set of selected fields",
5775              "location": "query",
5776              "type": "string",
5777              "enumDescriptions": [
5778                "",
5779                ""
5780              ],
5781              "enum": [
5782                "MINIMAL",
5783                "FULL"
5784              ]
5785            },
5786            "stateFilter": {
5787              "description": "Filter for job state",
5788              "location": "query",
5789              "repeated": true,
5790              "type": "string",
5791              "enumDescriptions": [
5792                "",
5793                "",
5794                ""
5795              ],
5796              "enum": [
5797                "DONE",
5798                "PENDING",
5799                "RUNNING"
5800              ]
5801            },
5802            "parentJobId": {
5803              "description": "If set, show only child jobs of the specified parent. Otherwise, show all top-level jobs.",
5804              "location": "query",
5805              "type": "string"
5806            }
5807          },
5808          "parameterOrder": [
5809            "projectId"
5810          ],
5811          "response": {
5812            "$ref": "JobList"
5813          },
5814          "scopes": [
5815            "https://www.googleapis.com/auth/bigquery",
5816            "https://www.googleapis.com/auth/bigquery.readonly",
5817            "https://www.googleapis.com/auth/cloud-platform",
5818            "https://www.googleapis.com/auth/cloud-platform.read-only"
5819          ],
5820          "description": "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."
5821        },
5822        "getQueryResults": {
5823          "id": "bigquery.jobs.getQueryResults",
5824          "path": "bigquery/v2/projects/{+projectId}/queries/{+jobId}",
5825          "flatPath": "bigquery/v2/projects/{projectsId}/queries/{queriesId}",
5826          "httpMethod": "GET",
5827          "parameters": {
5828            "projectId": {
5829              "description": "Required. Project ID of the query job.",
5830              "pattern": "^[^\/]+$",
5831              "location": "path",
5832              "required": true,
5833              "type": "string"
5834            },
5835            "jobId": {
5836              "description": "Required. Job ID of the query job.",
5837              "pattern": "^[^\/]+$",
5838              "location": "path",
5839              "required": true,
5840              "type": "string"
5841            },
5842            "startIndex": {
5843              "description": "Zero-based index of the starting row.",
5844              "location": "query",
5845              "type": "string",
5846              "format": "uint64"
5847            },
5848            "pageToken": {
5849              "description": "Page token, returned by a previous call, to request the next page of results.",
5850              "location": "query",
5851              "type": "string"
5852            },
5853            "maxResults": {
5854              "description": "Maximum number of results to read.",
5855              "location": "query",
5856              "type": "integer",
5857              "format": "uint32"
5858            },
5859            "timeoutMs": {
5860              "description": "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.",
5861              "location": "query",
5862              "type": "integer",
5863              "format": "uint32"
5864            },
5865            "location": {
5866              "description": "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.",
5867              "location": "query",
5868              "type": "string"
5869            },
5870            "formatOptions.useInt64Timestamp": {
5871              "description": "Optional. Output timestamp as usec int64. Default is false.",
5872              "location": "query",
5873              "type": "boolean"
5874            }
5875          },
5876          "parameterOrder": [
5877            "projectId",
5878            "jobId"
5879          ],
5880          "response": {
5881            "$ref": "GetQueryResultsResponse"
5882          },
5883          "scopes": [
5884            "https://www.googleapis.com/auth/bigquery",
5885            "https://www.googleapis.com/auth/bigquery.readonly",
5886            "https://www.googleapis.com/auth/cloud-platform",
5887            "https://www.googleapis.com/auth/cloud-platform.read-only"
5888          ],
5889          "description": "RPC to get the results of a query job."
5890        },
5891        "query": {
5892          "id": "bigquery.jobs.query",
5893          "path": "bigquery/v2/projects/{+projectId}/queries",
5894          "flatPath": "bigquery/v2/projects/{projectsId}/queries",
5895          "httpMethod": "POST",
5896          "parameters": {
5897            "projectId": {
5898              "description": "Required. Project ID of the query request.",
5899              "pattern": "^[^\/]+$",
5900              "location": "path",
5901              "required": true,
5902              "type": "string"
5903            }
5904          },
5905          "parameterOrder": [
5906            "projectId"
5907          ],
5908          "request": {
5909            "$ref": "QueryRequest"
5910          },
5911          "response": {
5912            "$ref": "QueryResponse"
5913          },
5914          "scopes": [
5915            "https://www.googleapis.com/auth/bigquery",
5916            "https://www.googleapis.com/auth/bigquery.readonly",
5917            "https://www.googleapis.com/auth/cloud-platform",
5918            "https://www.googleapis.com/auth/cloud-platform.read-only"
5919          ],
5920          "description": "Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout."
5921        }
5922      }
5923    },
5924    "projects": {
5925      "methods": {
5926        "list": {
5927          "id": "bigquery.projects.list",
5928          "path": "bigquery/v2/projects",
5929          "flatPath": "bigquery/v2/projects",
5930          "httpMethod": "GET",
5931          "parameters": {
5932            "maxResults": {
5933              "description": "Maximum number of results to read. A wrapper is used here because behavior for maxResults 0 differs from the behavior for maxResults unset.",
5934              "location": "query",
5935              "type": "integer",
5936              "format": "uint32"
5937            },
5938            "pageToken": {
5939              "description": "Page token, returned by a previous call, to request the next page of results.",
5940              "location": "query",
5941              "type": "string"
5942            }
5943          },
5944          "parameterOrder": [
5945          ],
5946          "response": {
5947            "$ref": "ProjectList"
5948          },
5949          "scopes": [
5950            "https://www.googleapis.com/auth/bigquery",
5951            "https://www.googleapis.com/auth/bigquery.readonly",
5952            "https://www.googleapis.com/auth/cloud-platform",
5953            "https://www.googleapis.com/auth/cloud-platform.read-only"
5954          ],
5955          "description": "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."
5956        },
5957        "getServiceAccount": {
5958          "id": "bigquery.projects.getServiceAccount",
5959          "path": "bigquery/v2/projects/{+projectId}/serviceAccount",
5960          "flatPath": "bigquery/v2/projects/{projectsId}/serviceAccount",
5961          "httpMethod": "GET",
5962          "parameters": {
5963            "projectId": {
5964              "description": "Required. ID of the project.",
5965              "pattern": "^[^\/]+$",
5966              "location": "path",
5967              "required": true,
5968              "type": "string"
5969            }
5970          },
5971          "parameterOrder": [
5972            "projectId"
5973          ],
5974          "response": {
5975            "$ref": "GetServiceAccountResponse"
5976          },
5977          "scopes": [
5978            "https://www.googleapis.com/auth/bigquery",
5979            "https://www.googleapis.com/auth/bigquery.readonly",
5980            "https://www.googleapis.com/auth/cloud-platform",
5981            "https://www.googleapis.com/auth/cloud-platform.read-only"
5982          ],
5983          "description": "RPC to get the service account for a project used for interactions with Google Cloud KMS"
5984        }
5985      }
5986    },
5987    "routines": {
5988      "methods": {
5989        "get": {
5990          "id": "bigquery.routines.get",
5991          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}",
5992          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/routines/{routinesId}",
5993          "httpMethod": "GET",
5994          "parameters": {
5995            "projectId": {
5996              "description": "Required. Project ID of the requested routine",
5997              "pattern": "^[^\/]+$",
5998              "location": "path",
5999              "required": true,
6000              "type": "string"
6001            },
6002            "datasetId": {
6003              "description": "Required. Dataset ID of the requested routine",
6004              "pattern": "^[^\/]+$",
6005              "location": "path",
6006              "required": true,
6007              "type": "string"
6008            },
6009            "routineId": {
6010              "description": "Required. Routine ID of the requested routine",
6011              "pattern": "^[^\/]+$",
6012              "location": "path",
6013              "required": true,
6014              "type": "string"
6015            },
6016            "readMask": {
6017              "description": "If set, only the Routine fields in the field mask are returned in the response. If unset, all Routine fields are returned.",
6018              "location": "query",
6019              "type": "string",
6020              "format": "google-fieldmask"
6021            }
6022          },
6023          "parameterOrder": [
6024            "projectId",
6025            "datasetId",
6026            "routineId"
6027          ],
6028          "response": {
6029            "$ref": "Routine"
6030          },
6031          "scopes": [
6032            "https://www.googleapis.com/auth/bigquery",
6033            "https://www.googleapis.com/auth/bigquery.readonly",
6034            "https://www.googleapis.com/auth/cloud-platform",
6035            "https://www.googleapis.com/auth/cloud-platform.read-only"
6036          ],
6037          "description": "Gets the specified routine resource by routine ID."
6038        },
6039        "insert": {
6040          "id": "bigquery.routines.insert",
6041          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines",
6042          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/routines",
6043          "httpMethod": "POST",
6044          "parameters": {
6045            "projectId": {
6046              "description": "Required. Project ID of the new routine",
6047              "pattern": "^[^\/]+$",
6048              "location": "path",
6049              "required": true,
6050              "type": "string"
6051            },
6052            "datasetId": {
6053              "description": "Required. Dataset ID of the new routine",
6054              "pattern": "^[^\/]+$",
6055              "location": "path",
6056              "required": true,
6057              "type": "string"
6058            }
6059          },
6060          "parameterOrder": [
6061            "projectId",
6062            "datasetId"
6063          ],
6064          "request": {
6065            "$ref": "Routine"
6066          },
6067          "response": {
6068            "$ref": "Routine"
6069          },
6070          "scopes": [
6071            "https://www.googleapis.com/auth/bigquery",
6072            "https://www.googleapis.com/auth/cloud-platform"
6073          ],
6074          "description": "Creates a new routine in the dataset."
6075        },
6076        "update": {
6077          "id": "bigquery.routines.update",
6078          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}",
6079          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/routines/{routinesId}",
6080          "httpMethod": "PUT",
6081          "parameters": {
6082            "projectId": {
6083              "description": "Required. Project ID of the routine to update",
6084              "pattern": "^[^\/]+$",
6085              "location": "path",
6086              "required": true,
6087              "type": "string"
6088            },
6089            "datasetId": {
6090              "description": "Required. Dataset ID of the routine to update",
6091              "pattern": "^[^\/]+$",
6092              "location": "path",
6093              "required": true,
6094              "type": "string"
6095            },
6096            "routineId": {
6097              "description": "Required. Routine ID of the routine to update",
6098              "pattern": "^[^\/]+$",
6099              "location": "path",
6100              "required": true,
6101              "type": "string"
6102            }
6103          },
6104          "parameterOrder": [
6105            "projectId",
6106            "datasetId",
6107            "routineId"
6108          ],
6109          "request": {
6110            "$ref": "Routine"
6111          },
6112          "response": {
6113            "$ref": "Routine"
6114          },
6115          "scopes": [
6116            "https://www.googleapis.com/auth/bigquery",
6117            "https://www.googleapis.com/auth/cloud-platform"
6118          ],
6119          "description": "Updates information in an existing routine. The update method replaces the entire Routine resource."
6120        },
6121        "delete": {
6122          "id": "bigquery.routines.delete",
6123          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}",
6124          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/routines/{routinesId}",
6125          "httpMethod": "DELETE",
6126          "parameters": {
6127            "projectId": {
6128              "description": "Required. Project ID of the routine to delete",
6129              "pattern": "^[^\/]+$",
6130              "location": "path",
6131              "required": true,
6132              "type": "string"
6133            },
6134            "datasetId": {
6135              "description": "Required. Dataset ID of the routine to delete",
6136              "pattern": "^[^\/]+$",
6137              "location": "path",
6138              "required": true,
6139              "type": "string"
6140            },
6141            "routineId": {
6142              "description": "Required. Routine ID of the routine to delete",
6143              "pattern": "^[^\/]+$",
6144              "location": "path",
6145              "required": true,
6146              "type": "string"
6147            }
6148          },
6149          "parameterOrder": [
6150            "projectId",
6151            "datasetId",
6152            "routineId"
6153          ],
6154          "scopes": [
6155            "https://www.googleapis.com/auth/bigquery",
6156            "https://www.googleapis.com/auth/cloud-platform"
6157          ],
6158          "description": "Deletes the routine specified by routineId from the dataset."
6159        },
6160        "list": {
6161          "id": "bigquery.routines.list",
6162          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines",
6163          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/routines",
6164          "httpMethod": "GET",
6165          "parameters": {
6166            "projectId": {
6167              "description": "Required. Project ID of the routines to list",
6168              "pattern": "^[^\/]+$",
6169              "location": "path",
6170              "required": true,
6171              "type": "string"
6172            },
6173            "datasetId": {
6174              "description": "Required. Dataset ID of the routines to list",
6175              "pattern": "^[^\/]+$",
6176              "location": "path",
6177              "required": true,
6178              "type": "string"
6179            },
6180            "maxResults": {
6181              "description": "The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.",
6182              "location": "query",
6183              "type": "integer",
6184              "format": "uint32"
6185            },
6186            "pageToken": {
6187              "description": "Page token, returned by a previous call, to request the next page of results",
6188              "location": "query",
6189              "type": "string"
6190            },
6191            "readMask": {
6192              "description": "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.",
6193              "location": "query",
6194              "type": "string",
6195              "format": "google-fieldmask"
6196            },
6197            "filter": {
6198              "description": "If set, then only the Routines matching this filter are returned. The current supported form is either \"routine_type:\" or \"routineType:\", where is a RoutineType enum. Example: \"routineType:SCALAR_FUNCTION\".",
6199              "location": "query",
6200              "type": "string"
6201            }
6202          },
6203          "parameterOrder": [
6204            "projectId",
6205            "datasetId"
6206          ],
6207          "response": {
6208            "$ref": "ListRoutinesResponse"
6209          },
6210          "scopes": [
6211            "https://www.googleapis.com/auth/bigquery",
6212            "https://www.googleapis.com/auth/bigquery.readonly",
6213            "https://www.googleapis.com/auth/cloud-platform",
6214            "https://www.googleapis.com/auth/cloud-platform.read-only"
6215          ],
6216          "description": "Lists all routines in the specified dataset. Requires the READER dataset role."
6217        }
6218      }
6219    },
6220    "rowAccessPolicies": {
6221      "methods": {
6222        "list": {
6223          "id": "bigquery.rowAccessPolicies.list",
6224          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies",
6225          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/rowAccessPolicies",
6226          "httpMethod": "GET",
6227          "parameters": {
6228            "projectId": {
6229              "description": "Required. Project ID of the row access policies to list.",
6230              "pattern": "^[^\/]+$",
6231              "location": "path",
6232              "required": true,
6233              "type": "string"
6234            },
6235            "datasetId": {
6236              "description": "Required. Dataset ID of row access policies to list.",
6237              "pattern": "^[^\/]+$",
6238              "location": "path",
6239              "required": true,
6240              "type": "string"
6241            },
6242            "tableId": {
6243              "description": "Required. Table ID of the table to list row access policies.",
6244              "pattern": "^[^\/]+$",
6245              "location": "path",
6246              "required": true,
6247              "type": "string"
6248            },
6249            "pageToken": {
6250              "description": "Page token, returned by a previous call, to request the next page of results.",
6251              "location": "query",
6252              "type": "string"
6253            },
6254            "pageSize": {
6255              "description": "The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.",
6256              "location": "query",
6257              "type": "integer",
6258              "format": "int32"
6259            }
6260          },
6261          "parameterOrder": [
6262            "projectId",
6263            "datasetId",
6264            "tableId"
6265          ],
6266          "response": {
6267            "$ref": "ListRowAccessPoliciesResponse"
6268          },
6269          "scopes": [
6270            "https://www.googleapis.com/auth/bigquery",
6271            "https://www.googleapis.com/auth/bigquery.readonly",
6272            "https://www.googleapis.com/auth/cloud-platform",
6273            "https://www.googleapis.com/auth/cloud-platform.read-only"
6274          ],
6275          "description": "Lists all row access policies on the specified table."
6276        },
6277        "setIamPolicy": {
6278          "id": "bigquery.rowAccessPolicies.setIamPolicy",
6279          "path": "bigquery/v2/{+resource}:setIamPolicy",
6280          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/rowAccessPolicies/{rowAccessPoliciesId}:setIamPolicy",
6281          "httpMethod": "POST",
6282          "parameters": {
6283            "resource": {
6284              "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
6285              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+\/tables\/[^\/]+\/rowAccessPolicies\/[^\/]+$",
6286              "location": "path",
6287              "required": true,
6288              "type": "string"
6289            }
6290          },
6291          "parameterOrder": [
6292            "resource"
6293          ],
6294          "request": {
6295            "$ref": "SetIamPolicyRequest"
6296          },
6297          "response": {
6298            "$ref": "Policy"
6299          },
6300          "scopes": [
6301            "https://www.googleapis.com/auth/bigquery",
6302            "https://www.googleapis.com/auth/cloud-platform"
6303          ],
6304          "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors."
6305        },
6306        "getIamPolicy": {
6307          "id": "bigquery.rowAccessPolicies.getIamPolicy",
6308          "path": "bigquery/v2/{+resource}:getIamPolicy",
6309          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/rowAccessPolicies/{rowAccessPoliciesId}:getIamPolicy",
6310          "httpMethod": "POST",
6311          "parameters": {
6312            "resource": {
6313              "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
6314              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+\/tables\/[^\/]+\/rowAccessPolicies\/[^\/]+$",
6315              "location": "path",
6316              "required": true,
6317              "type": "string"
6318            }
6319          },
6320          "parameterOrder": [
6321            "resource"
6322          ],
6323          "request": {
6324            "$ref": "GetIamPolicyRequest"
6325          },
6326          "response": {
6327            "$ref": "Policy"
6328          },
6329          "scopes": [
6330            "https://www.googleapis.com/auth/bigquery",
6331            "https://www.googleapis.com/auth/bigquery.readonly",
6332            "https://www.googleapis.com/auth/cloud-platform",
6333            "https://www.googleapis.com/auth/cloud-platform.read-only"
6334          ],
6335          "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set."
6336        },
6337        "testIamPermissions": {
6338          "id": "bigquery.rowAccessPolicies.testIamPermissions",
6339          "path": "bigquery/v2/{+resource}:testIamPermissions",
6340          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/rowAccessPolicies/{rowAccessPoliciesId}:testIamPermissions",
6341          "httpMethod": "POST",
6342          "parameters": {
6343            "resource": {
6344              "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
6345              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+\/tables\/[^\/]+\/rowAccessPolicies\/[^\/]+$",
6346              "location": "path",
6347              "required": true,
6348              "type": "string"
6349            }
6350          },
6351          "parameterOrder": [
6352            "resource"
6353          ],
6354          "request": {
6355            "$ref": "TestIamPermissionsRequest"
6356          },
6357          "response": {
6358            "$ref": "TestIamPermissionsResponse"
6359          },
6360          "scopes": [
6361            "https://www.googleapis.com/auth/bigquery",
6362            "https://www.googleapis.com/auth/bigquery.readonly",
6363            "https://www.googleapis.com/auth/cloud-platform",
6364            "https://www.googleapis.com/auth/cloud-platform.read-only"
6365          ],
6366          "description": "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."
6367        }
6368      }
6369    },
6370    "tables": {
6371      "methods": {
6372        "get": {
6373          "id": "bigquery.tables.get",
6374          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}",
6375          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}",
6376          "httpMethod": "GET",
6377          "parameters": {
6378            "projectId": {
6379              "description": "Required. Project ID of the requested table",
6380              "pattern": "^[^\/]+$",
6381              "location": "path",
6382              "required": true,
6383              "type": "string"
6384            },
6385            "datasetId": {
6386              "description": "Required. Dataset ID of the requested table",
6387              "pattern": "^[^\/]+$",
6388              "location": "path",
6389              "required": true,
6390              "type": "string"
6391            },
6392            "tableId": {
6393              "description": "Required. Table ID of the requested table",
6394              "pattern": "^[^\/]+$",
6395              "location": "path",
6396              "required": true,
6397              "type": "string"
6398            },
6399            "selectedFields": {
6400              "description": "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.",
6401              "location": "query",
6402              "type": "string"
6403            }
6404          },
6405          "parameterOrder": [
6406            "projectId",
6407            "datasetId",
6408            "tableId"
6409          ],
6410          "response": {
6411            "$ref": "Table"
6412          },
6413          "scopes": [
6414            "https://www.googleapis.com/auth/bigquery",
6415            "https://www.googleapis.com/auth/bigquery.readonly",
6416            "https://www.googleapis.com/auth/cloud-platform",
6417            "https://www.googleapis.com/auth/cloud-platform.read-only"
6418          ],
6419          "description": "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."
6420        },
6421        "insert": {
6422          "id": "bigquery.tables.insert",
6423          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables",
6424          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables",
6425          "httpMethod": "POST",
6426          "parameters": {
6427            "projectId": {
6428              "description": "Required. Project ID of the new table",
6429              "pattern": "^[^\/]+$",
6430              "location": "path",
6431              "required": true,
6432              "type": "string"
6433            },
6434            "datasetId": {
6435              "description": "Required. Dataset ID of the new table",
6436              "pattern": "^[^\/]+$",
6437              "location": "path",
6438              "required": true,
6439              "type": "string"
6440            }
6441          },
6442          "parameterOrder": [
6443            "projectId",
6444            "datasetId"
6445          ],
6446          "request": {
6447            "$ref": "Table"
6448          },
6449          "response": {
6450            "$ref": "Table"
6451          },
6452          "scopes": [
6453            "https://www.googleapis.com/auth/bigquery",
6454            "https://www.googleapis.com/auth/cloud-platform"
6455          ],
6456          "description": "Creates a new, empty table in the dataset."
6457        },
6458        "patch": {
6459          "id": "bigquery.tables.patch",
6460          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}",
6461          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}",
6462          "httpMethod": "PATCH",
6463          "parameters": {
6464            "projectId": {
6465              "description": "Required. Project ID of the table to update",
6466              "pattern": "^[^\/]+$",
6467              "location": "path",
6468              "required": true,
6469              "type": "string"
6470            },
6471            "datasetId": {
6472              "description": "Required. Dataset ID of the table to update",
6473              "pattern": "^[^\/]+$",
6474              "location": "path",
6475              "required": true,
6476              "type": "string"
6477            },
6478            "tableId": {
6479              "description": "Required. Table ID of the table to update",
6480              "pattern": "^[^\/]+$",
6481              "location": "path",
6482              "required": true,
6483              "type": "string"
6484            }
6485          },
6486          "parameterOrder": [
6487            "projectId",
6488            "datasetId",
6489            "tableId"
6490          ],
6491          "request": {
6492            "$ref": "Table"
6493          },
6494          "response": {
6495            "$ref": "Table"
6496          },
6497          "scopes": [
6498            "https://www.googleapis.com/auth/bigquery",
6499            "https://www.googleapis.com/auth/cloud-platform"
6500          ],
6501          "description": "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."
6502        },
6503        "update": {
6504          "id": "bigquery.tables.update",
6505          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}",
6506          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}",
6507          "httpMethod": "PUT",
6508          "parameters": {
6509            "projectId": {
6510              "description": "Required. Project ID of the table to update",
6511              "pattern": "^[^\/]+$",
6512              "location": "path",
6513              "required": true,
6514              "type": "string"
6515            },
6516            "datasetId": {
6517              "description": "Required. Dataset ID of the table to update",
6518              "pattern": "^[^\/]+$",
6519              "location": "path",
6520              "required": true,
6521              "type": "string"
6522            },
6523            "tableId": {
6524              "description": "Required. Table ID of the table to update",
6525              "pattern": "^[^\/]+$",
6526              "location": "path",
6527              "required": true,
6528              "type": "string"
6529            }
6530          },
6531          "parameterOrder": [
6532            "projectId",
6533            "datasetId",
6534            "tableId"
6535          ],
6536          "request": {
6537            "$ref": "Table"
6538          },
6539          "response": {
6540            "$ref": "Table"
6541          },
6542          "scopes": [
6543            "https://www.googleapis.com/auth/bigquery",
6544            "https://www.googleapis.com/auth/cloud-platform"
6545          ],
6546          "description": "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."
6547        },
6548        "delete": {
6549          "id": "bigquery.tables.delete",
6550          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}",
6551          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}",
6552          "httpMethod": "DELETE",
6553          "parameters": {
6554            "projectId": {
6555              "description": "Required. Project ID of the table to delete",
6556              "pattern": "^[^\/]+$",
6557              "location": "path",
6558              "required": true,
6559              "type": "string"
6560            },
6561            "datasetId": {
6562              "description": "Required. Dataset ID of the table to delete",
6563              "pattern": "^[^\/]+$",
6564              "location": "path",
6565              "required": true,
6566              "type": "string"
6567            },
6568            "tableId": {
6569              "description": "Required. Table ID of the table to delete",
6570              "pattern": "^[^\/]+$",
6571              "location": "path",
6572              "required": true,
6573              "type": "string"
6574            }
6575          },
6576          "parameterOrder": [
6577            "projectId",
6578            "datasetId",
6579            "tableId"
6580          ],
6581          "scopes": [
6582            "https://www.googleapis.com/auth/bigquery",
6583            "https://www.googleapis.com/auth/cloud-platform"
6584          ],
6585          "description": "Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted."
6586        },
6587        "list": {
6588          "id": "bigquery.tables.list",
6589          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables",
6590          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables",
6591          "httpMethod": "GET",
6592          "parameters": {
6593            "projectId": {
6594              "description": "Required. Project ID of the tables to list",
6595              "pattern": "^[^\/]+$",
6596              "location": "path",
6597              "required": true,
6598              "type": "string"
6599            },
6600            "datasetId": {
6601              "description": "Required. Dataset ID of the tables to list",
6602              "pattern": "^[^\/]+$",
6603              "location": "path",
6604              "required": true,
6605              "type": "string"
6606            },
6607            "maxResults": {
6608              "description": "The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.",
6609              "location": "query",
6610              "type": "integer",
6611              "format": "uint32"
6612            },
6613            "pageToken": {
6614              "description": "Page token, returned by a previous call, to request the next page of results",
6615              "location": "query",
6616              "type": "string"
6617            }
6618          },
6619          "parameterOrder": [
6620            "projectId",
6621            "datasetId"
6622          ],
6623          "response": {
6624            "$ref": "TableList"
6625          },
6626          "scopes": [
6627            "https://www.googleapis.com/auth/bigquery",
6628            "https://www.googleapis.com/auth/bigquery.readonly",
6629            "https://www.googleapis.com/auth/cloud-platform",
6630            "https://www.googleapis.com/auth/cloud-platform.read-only"
6631          ],
6632          "description": "Lists all tables in the specified dataset. Requires the READER dataset role."
6633        },
6634        "setIamPolicy": {
6635          "id": "bigquery.tables.setIamPolicy",
6636          "path": "bigquery/v2/{+resource}:setIamPolicy",
6637          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}:setIamPolicy",
6638          "httpMethod": "POST",
6639          "parameters": {
6640            "resource": {
6641              "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
6642              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+\/tables\/[^\/]+$",
6643              "location": "path",
6644              "required": true,
6645              "type": "string"
6646            }
6647          },
6648          "parameterOrder": [
6649            "resource"
6650          ],
6651          "request": {
6652            "$ref": "SetIamPolicyRequest"
6653          },
6654          "response": {
6655            "$ref": "Policy"
6656          },
6657          "scopes": [
6658            "https://www.googleapis.com/auth/bigquery",
6659            "https://www.googleapis.com/auth/cloud-platform"
6660          ],
6661          "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors."
6662        },
6663        "getIamPolicy": {
6664          "id": "bigquery.tables.getIamPolicy",
6665          "path": "bigquery/v2/{+resource}:getIamPolicy",
6666          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}:getIamPolicy",
6667          "httpMethod": "POST",
6668          "parameters": {
6669            "resource": {
6670              "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
6671              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+\/tables\/[^\/]+$",
6672              "location": "path",
6673              "required": true,
6674              "type": "string"
6675            }
6676          },
6677          "parameterOrder": [
6678            "resource"
6679          ],
6680          "request": {
6681            "$ref": "GetIamPolicyRequest"
6682          },
6683          "response": {
6684            "$ref": "Policy"
6685          },
6686          "scopes": [
6687            "https://www.googleapis.com/auth/bigquery",
6688            "https://www.googleapis.com/auth/bigquery.readonly",
6689            "https://www.googleapis.com/auth/cloud-platform",
6690            "https://www.googleapis.com/auth/cloud-platform.read-only"
6691          ],
6692          "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set."
6693        },
6694        "testIamPermissions": {
6695          "id": "bigquery.tables.testIamPermissions",
6696          "path": "bigquery/v2/{+resource}:testIamPermissions",
6697          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}:testIamPermissions",
6698          "httpMethod": "POST",
6699          "parameters": {
6700            "resource": {
6701              "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
6702              "pattern": "^projects\/[^\/]+\/datasets\/[^\/]+\/tables\/[^\/]+$",
6703              "location": "path",
6704              "required": true,
6705              "type": "string"
6706            }
6707          },
6708          "parameterOrder": [
6709            "resource"
6710          ],
6711          "request": {
6712            "$ref": "TestIamPermissionsRequest"
6713          },
6714          "response": {
6715            "$ref": "TestIamPermissionsResponse"
6716          },
6717          "scopes": [
6718            "https://www.googleapis.com/auth/bigquery",
6719            "https://www.googleapis.com/auth/bigquery.readonly",
6720            "https://www.googleapis.com/auth/cloud-platform",
6721            "https://www.googleapis.com/auth/cloud-platform.read-only"
6722          ],
6723          "description": "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."
6724        }
6725      }
6726    },
6727    "tabledata": {
6728      "methods": {
6729        "insertAll": {
6730          "id": "bigquery.tabledata.insertAll",
6731          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/insertAll",
6732          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/insertAll",
6733          "httpMethod": "POST",
6734          "parameters": {
6735            "projectId": {
6736              "pattern": "^[^\/]+$",
6737              "location": "path",
6738              "required": true,
6739              "type": "string"
6740            },
6741            "datasetId": {
6742              "pattern": "^[^\/]+$",
6743              "location": "path",
6744              "required": true,
6745              "type": "string"
6746            },
6747            "tableId": {
6748              "pattern": "^[^\/]+$",
6749              "location": "path",
6750              "required": true,
6751              "type": "string"
6752            }
6753          },
6754          "parameterOrder": [
6755            "projectId",
6756            "datasetId",
6757            "tableId"
6758          ],
6759          "request": {
6760            "$ref": "TableDataInsertAllRequest"
6761          },
6762          "response": {
6763            "$ref": "TableDataInsertAllResponse"
6764          },
6765          "scopes": [
6766            "https://www.googleapis.com/auth/bigquery",
6767            "https://www.googleapis.com/auth/bigquery.insertdata",
6768            "https://www.googleapis.com/auth/cloud-platform"
6769          ],
6770          "description": "Streams data into BigQuery one record at a time without needing to run a load job."
6771        },
6772        "list": {
6773          "id": "bigquery.tabledata.list",
6774          "path": "bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/data",
6775          "flatPath": "bigquery/v2/projects/{projectsId}/datasets/{datasetsId}/tables/{tablesId}/data",
6776          "httpMethod": "GET",
6777          "parameters": {
6778            "projectId": {
6779              "description": "Required. Project id of the table to list.",
6780              "pattern": "^[^\/]+$",
6781              "location": "path",
6782              "required": true,
6783              "type": "string"
6784            },
6785            "datasetId": {
6786              "description": "Required. Dataset id of the table to list.",
6787              "pattern": "^[^\/]+$",
6788              "location": "path",
6789              "required": true,
6790              "type": "string"
6791            },
6792            "tableId": {
6793              "description": "Required. Table id of the table to list.",
6794              "pattern": "^[^\/]+$",
6795              "location": "path",
6796              "required": true,
6797              "type": "string"
6798            },
6799            "startIndex": {
6800              "description": "Start row index of the table.",
6801              "location": "query",
6802              "type": "string",
6803              "format": "uint64"
6804            },
6805            "maxResults": {
6806              "description": "Row limit of the table.",
6807              "location": "query",
6808              "type": "integer",
6809              "format": "uint32"
6810            },
6811            "pageToken": {
6812              "description": "Page token of the request. When this token is non-empty, it indicates additional results are available.",
6813              "location": "query",
6814              "type": "string"
6815            },
6816            "selectedFields": {
6817              "description": "Subset of fields to return, supports select into sub fields. Example: selected_fields = \"a,e.d.f\";",
6818              "location": "query",
6819              "type": "string"
6820            },
6821            "formatOptions.useInt64Timestamp": {
6822              "description": "Optional. Output timestamp as usec int64. Default is false.",
6823              "location": "query",
6824              "type": "boolean"
6825            }
6826          },
6827          "parameterOrder": [
6828            "projectId",
6829            "datasetId",
6830            "tableId"
6831          ],
6832          "response": {
6833            "$ref": "TableDataList"
6834          },
6835          "scopes": [
6836            "https://www.googleapis.com/auth/bigquery",
6837            "https://www.googleapis.com/auth/bigquery.readonly",
6838            "https://www.googleapis.com/auth/cloud-platform",
6839            "https://www.googleapis.com/auth/cloud-platform.read-only"
6840          ],
6841          "description": "List the content of a table in rows."
6842        }
6843      }
6844    }
6845  },
6846  "basePath": ""
6847}