| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.bigquery.v2; | 3 library googleapis.bigquery.v2; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:collection' as collection; | 6 import 'dart:collection' as collection; |
| 7 import 'dart:async' as async; | 7 import 'dart:async' as async; |
| 8 import 'dart:convert' as convert; | 8 import 'dart:convert' as convert; |
| 9 | 9 |
| 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| (...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 if (sourceUris != null) { | 1825 if (sourceUris != null) { |
| 1826 _json["sourceUris"] = sourceUris; | 1826 _json["sourceUris"] = sourceUris; |
| 1827 } | 1827 } |
| 1828 return _json; | 1828 return _json; |
| 1829 } | 1829 } |
| 1830 } | 1830 } |
| 1831 | 1831 |
| 1832 class GetQueryResultsResponse { | 1832 class GetQueryResultsResponse { |
| 1833 /** Whether the query result was fetched from the query cache. */ | 1833 /** Whether the query result was fetched from the query cache. */ |
| 1834 core.bool cacheHit; | 1834 core.bool cacheHit; |
| 1835 /** |
| 1836 * [Output-only] All errors and warnings encountered during the running of the |
| 1837 * job. Errors here do not necessarily mean that the job has completed or was |
| 1838 * unsuccessful. |
| 1839 */ |
| 1840 core.List<ErrorProto> errors; |
| 1835 /** A hash of this response. */ | 1841 /** A hash of this response. */ |
| 1836 core.String etag; | 1842 core.String etag; |
| 1837 /** | 1843 /** |
| 1838 * Whether the query has completed or not. If rows or totalRows are present, | 1844 * Whether the query has completed or not. If rows or totalRows are present, |
| 1839 * this will always be true. If this is false, totalRows will not be | 1845 * this will always be true. If this is false, totalRows will not be |
| 1840 * available. | 1846 * available. |
| 1841 */ | 1847 */ |
| 1842 core.bool jobComplete; | 1848 core.bool jobComplete; |
| 1843 /** | 1849 /** |
| 1844 * Reference to the BigQuery Job that was created to run the query. This field | 1850 * Reference to the BigQuery Job that was created to run the query. This field |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1872 * when the query completes successfully. | 1878 * when the query completes successfully. |
| 1873 */ | 1879 */ |
| 1874 core.String totalRows; | 1880 core.String totalRows; |
| 1875 | 1881 |
| 1876 GetQueryResultsResponse(); | 1882 GetQueryResultsResponse(); |
| 1877 | 1883 |
| 1878 GetQueryResultsResponse.fromJson(core.Map _json) { | 1884 GetQueryResultsResponse.fromJson(core.Map _json) { |
| 1879 if (_json.containsKey("cacheHit")) { | 1885 if (_json.containsKey("cacheHit")) { |
| 1880 cacheHit = _json["cacheHit"]; | 1886 cacheHit = _json["cacheHit"]; |
| 1881 } | 1887 } |
| 1888 if (_json.containsKey("errors")) { |
| 1889 errors = _json["errors"].map((value) => new ErrorProto.fromJson(value)).to
List(); |
| 1890 } |
| 1882 if (_json.containsKey("etag")) { | 1891 if (_json.containsKey("etag")) { |
| 1883 etag = _json["etag"]; | 1892 etag = _json["etag"]; |
| 1884 } | 1893 } |
| 1885 if (_json.containsKey("jobComplete")) { | 1894 if (_json.containsKey("jobComplete")) { |
| 1886 jobComplete = _json["jobComplete"]; | 1895 jobComplete = _json["jobComplete"]; |
| 1887 } | 1896 } |
| 1888 if (_json.containsKey("jobReference")) { | 1897 if (_json.containsKey("jobReference")) { |
| 1889 jobReference = new JobReference.fromJson(_json["jobReference"]); | 1898 jobReference = new JobReference.fromJson(_json["jobReference"]); |
| 1890 } | 1899 } |
| 1891 if (_json.containsKey("kind")) { | 1900 if (_json.containsKey("kind")) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1906 if (_json.containsKey("totalRows")) { | 1915 if (_json.containsKey("totalRows")) { |
| 1907 totalRows = _json["totalRows"]; | 1916 totalRows = _json["totalRows"]; |
| 1908 } | 1917 } |
| 1909 } | 1918 } |
| 1910 | 1919 |
| 1911 core.Map toJson() { | 1920 core.Map toJson() { |
| 1912 var _json = new core.Map(); | 1921 var _json = new core.Map(); |
| 1913 if (cacheHit != null) { | 1922 if (cacheHit != null) { |
| 1914 _json["cacheHit"] = cacheHit; | 1923 _json["cacheHit"] = cacheHit; |
| 1915 } | 1924 } |
| 1925 if (errors != null) { |
| 1926 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 1927 } |
| 1916 if (etag != null) { | 1928 if (etag != null) { |
| 1917 _json["etag"] = etag; | 1929 _json["etag"] = etag; |
| 1918 } | 1930 } |
| 1919 if (jobComplete != null) { | 1931 if (jobComplete != null) { |
| 1920 _json["jobComplete"] = jobComplete; | 1932 _json["jobComplete"] = jobComplete; |
| 1921 } | 1933 } |
| 1922 if (jobReference != null) { | 1934 if (jobReference != null) { |
| 1923 _json["jobReference"] = (jobReference).toJson(); | 1935 _json["jobReference"] = (jobReference).toJson(); |
| 1924 } | 1936 } |
| 1925 if (kind != null) { | 1937 if (kind != null) { |
| (...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3414 _json["useQueryCache"] = useQueryCache; | 3426 _json["useQueryCache"] = useQueryCache; |
| 3415 } | 3427 } |
| 3416 return _json; | 3428 return _json; |
| 3417 } | 3429 } |
| 3418 } | 3430 } |
| 3419 | 3431 |
| 3420 class QueryResponse { | 3432 class QueryResponse { |
| 3421 /** Whether the query result was fetched from the query cache. */ | 3433 /** Whether the query result was fetched from the query cache. */ |
| 3422 core.bool cacheHit; | 3434 core.bool cacheHit; |
| 3423 /** | 3435 /** |
| 3436 * [Output-only] All errors and warnings encountered during the running of the |
| 3437 * job. Errors here do not necessarily mean that the job has completed or was |
| 3438 * unsuccessful. |
| 3439 */ |
| 3440 core.List<ErrorProto> errors; |
| 3441 /** |
| 3424 * Whether the query has completed or not. If rows or totalRows are present, | 3442 * Whether the query has completed or not. If rows or totalRows are present, |
| 3425 * this will always be true. If this is false, totalRows will not be | 3443 * this will always be true. If this is false, totalRows will not be |
| 3426 * available. | 3444 * available. |
| 3427 */ | 3445 */ |
| 3428 core.bool jobComplete; | 3446 core.bool jobComplete; |
| 3429 /** | 3447 /** |
| 3430 * Reference to the Job that was created to run the query. This field will be | 3448 * Reference to the Job that was created to run the query. This field will be |
| 3431 * present even if the original request timed out, in which case | 3449 * present even if the original request timed out, in which case |
| 3432 * GetQueryResults can be used to read the results once the query has | 3450 * GetQueryResults can be used to read the results once the query has |
| 3433 * completed. Since this API only returns the first page of results, | 3451 * completed. Since this API only returns the first page of results, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3460 * more than the number of rows in this single page of results. | 3478 * more than the number of rows in this single page of results. |
| 3461 */ | 3479 */ |
| 3462 core.String totalRows; | 3480 core.String totalRows; |
| 3463 | 3481 |
| 3464 QueryResponse(); | 3482 QueryResponse(); |
| 3465 | 3483 |
| 3466 QueryResponse.fromJson(core.Map _json) { | 3484 QueryResponse.fromJson(core.Map _json) { |
| 3467 if (_json.containsKey("cacheHit")) { | 3485 if (_json.containsKey("cacheHit")) { |
| 3468 cacheHit = _json["cacheHit"]; | 3486 cacheHit = _json["cacheHit"]; |
| 3469 } | 3487 } |
| 3488 if (_json.containsKey("errors")) { |
| 3489 errors = _json["errors"].map((value) => new ErrorProto.fromJson(value)).to
List(); |
| 3490 } |
| 3470 if (_json.containsKey("jobComplete")) { | 3491 if (_json.containsKey("jobComplete")) { |
| 3471 jobComplete = _json["jobComplete"]; | 3492 jobComplete = _json["jobComplete"]; |
| 3472 } | 3493 } |
| 3473 if (_json.containsKey("jobReference")) { | 3494 if (_json.containsKey("jobReference")) { |
| 3474 jobReference = new JobReference.fromJson(_json["jobReference"]); | 3495 jobReference = new JobReference.fromJson(_json["jobReference"]); |
| 3475 } | 3496 } |
| 3476 if (_json.containsKey("kind")) { | 3497 if (_json.containsKey("kind")) { |
| 3477 kind = _json["kind"]; | 3498 kind = _json["kind"]; |
| 3478 } | 3499 } |
| 3479 if (_json.containsKey("pageToken")) { | 3500 if (_json.containsKey("pageToken")) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3491 if (_json.containsKey("totalRows")) { | 3512 if (_json.containsKey("totalRows")) { |
| 3492 totalRows = _json["totalRows"]; | 3513 totalRows = _json["totalRows"]; |
| 3493 } | 3514 } |
| 3494 } | 3515 } |
| 3495 | 3516 |
| 3496 core.Map toJson() { | 3517 core.Map toJson() { |
| 3497 var _json = new core.Map(); | 3518 var _json = new core.Map(); |
| 3498 if (cacheHit != null) { | 3519 if (cacheHit != null) { |
| 3499 _json["cacheHit"] = cacheHit; | 3520 _json["cacheHit"] = cacheHit; |
| 3500 } | 3521 } |
| 3522 if (errors != null) { |
| 3523 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 3524 } |
| 3501 if (jobComplete != null) { | 3525 if (jobComplete != null) { |
| 3502 _json["jobComplete"] = jobComplete; | 3526 _json["jobComplete"] = jobComplete; |
| 3503 } | 3527 } |
| 3504 if (jobReference != null) { | 3528 if (jobReference != null) { |
| 3505 _json["jobReference"] = (jobReference).toJson(); | 3529 _json["jobReference"] = (jobReference).toJson(); |
| 3506 } | 3530 } |
| 3507 if (kind != null) { | 3531 if (kind != null) { |
| 3508 _json["kind"] = kind; | 3532 _json["kind"] = kind; |
| 3509 } | 3533 } |
| 3510 if (pageToken != null) { | 3534 if (pageToken != null) { |
| 3511 _json["pageToken"] = pageToken; | 3535 _json["pageToken"] = pageToken; |
| 3512 } | 3536 } |
| 3513 if (rows != null) { | 3537 if (rows != null) { |
| 3514 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 3538 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
| 3515 } | 3539 } |
| 3516 if (schema != null) { | 3540 if (schema != null) { |
| 3517 _json["schema"] = (schema).toJson(); | 3541 _json["schema"] = (schema).toJson(); |
| 3518 } | 3542 } |
| 3519 if (totalBytesProcessed != null) { | 3543 if (totalBytesProcessed != null) { |
| 3520 _json["totalBytesProcessed"] = totalBytesProcessed; | 3544 _json["totalBytesProcessed"] = totalBytesProcessed; |
| 3521 } | 3545 } |
| 3522 if (totalRows != null) { | 3546 if (totalRows != null) { |
| 3523 _json["totalRows"] = totalRows; | 3547 _json["totalRows"] = totalRows; |
| 3524 } | 3548 } |
| 3525 return _json; | 3549 return _json; |
| 3526 } | 3550 } |
| 3527 } | 3551 } |
| 3528 | 3552 |
| 3553 class Streamingbuffer { |
| 3554 /** |
| 3555 * [Output-only] A lower-bound estimate of the number of bytes currently in |
| 3556 * the streaming buffer. |
| 3557 */ |
| 3558 core.String estimatedBytes; |
| 3559 /** |
| 3560 * [Output-only] A lower-bound estimate of the number of rows currently in the |
| 3561 * streaming buffer. |
| 3562 */ |
| 3563 core.String estimatedRows; |
| 3564 /** |
| 3565 * [Output-only] Contains the timestamp of the oldest entry in the streaming |
| 3566 * buffer, in milliseconds since the epoch, if the streaming buffer is |
| 3567 * available. |
| 3568 */ |
| 3569 core.String oldestEntryTime; |
| 3570 |
| 3571 Streamingbuffer(); |
| 3572 |
| 3573 Streamingbuffer.fromJson(core.Map _json) { |
| 3574 if (_json.containsKey("estimatedBytes")) { |
| 3575 estimatedBytes = _json["estimatedBytes"]; |
| 3576 } |
| 3577 if (_json.containsKey("estimatedRows")) { |
| 3578 estimatedRows = _json["estimatedRows"]; |
| 3579 } |
| 3580 if (_json.containsKey("oldestEntryTime")) { |
| 3581 oldestEntryTime = _json["oldestEntryTime"]; |
| 3582 } |
| 3583 } |
| 3584 |
| 3585 core.Map toJson() { |
| 3586 var _json = new core.Map(); |
| 3587 if (estimatedBytes != null) { |
| 3588 _json["estimatedBytes"] = estimatedBytes; |
| 3589 } |
| 3590 if (estimatedRows != null) { |
| 3591 _json["estimatedRows"] = estimatedRows; |
| 3592 } |
| 3593 if (oldestEntryTime != null) { |
| 3594 _json["oldestEntryTime"] = oldestEntryTime; |
| 3595 } |
| 3596 return _json; |
| 3597 } |
| 3598 } |
| 3599 |
| 3529 class Table { | 3600 class Table { |
| 3530 /** | 3601 /** |
| 3531 * [Output-only] The time when this table was created, in milliseconds since | 3602 * [Output-only] The time when this table was created, in milliseconds since |
| 3532 * the epoch. | 3603 * the epoch. |
| 3533 */ | 3604 */ |
| 3534 core.String creationTime; | 3605 core.String creationTime; |
| 3535 /** [Optional] A user-friendly description of this table. */ | 3606 /** [Optional] A user-friendly description of this table. */ |
| 3536 core.String description; | 3607 core.String description; |
| 3537 /** [Output-only] A hash of this resource. */ | 3608 /** [Output-only] A hash of this resource. */ |
| 3538 core.String etag; | 3609 core.String etag; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3558 * [Output-only] The time when this table was last modified, in milliseconds | 3629 * [Output-only] The time when this table was last modified, in milliseconds |
| 3559 * since the epoch. | 3630 * since the epoch. |
| 3560 */ | 3631 */ |
| 3561 core.String lastModifiedTime; | 3632 core.String lastModifiedTime; |
| 3562 /** | 3633 /** |
| 3563 * [Output-only] The geographic location where the table resides. This value | 3634 * [Output-only] The geographic location where the table resides. This value |
| 3564 * is inherited from the dataset. | 3635 * is inherited from the dataset. |
| 3565 */ | 3636 */ |
| 3566 core.String location; | 3637 core.String location; |
| 3567 /** | 3638 /** |
| 3568 * [Output-only] The size of the table in bytes. This property is unavailable | 3639 * [Output-only] The size of this table in bytes, excluding any data in the |
| 3569 * for tables that are actively receiving streaming inserts. | 3640 * streaming buffer. |
| 3570 */ | 3641 */ |
| 3571 core.String numBytes; | 3642 core.String numBytes; |
| 3572 /** | 3643 /** |
| 3573 * [Output-only] The number of rows of data in this table. This property is | 3644 * [Output-only] The number of rows of data in this table, excluding any data |
| 3574 * unavailable for tables that are actively receiving streaming inserts. | 3645 * in the streaming buffer. |
| 3575 */ | 3646 */ |
| 3576 core.String numRows; | 3647 core.String numRows; |
| 3577 /** [Optional] Describes the schema of this table. */ | 3648 /** [Optional] Describes the schema of this table. */ |
| 3578 TableSchema schema; | 3649 TableSchema schema; |
| 3579 /** [Output-only] A URL that can be used to access this resource again. */ | 3650 /** [Output-only] A URL that can be used to access this resource again. */ |
| 3580 core.String selfLink; | 3651 core.String selfLink; |
| 3652 /** |
| 3653 * [Output-only] Contains information regarding this table's streaming buffer, |
| 3654 * if one is present. This field will be absent if the table is not being |
| 3655 * streamed to or if there is no data in the streaming buffer. |
| 3656 */ |
| 3657 Streamingbuffer streamingBuffer; |
| 3581 /** [Required] Reference describing the ID of this table. */ | 3658 /** [Required] Reference describing the ID of this table. */ |
| 3582 TableReference tableReference; | 3659 TableReference tableReference; |
| 3583 /** | 3660 /** |
| 3584 * [Output-only] Describes the table type. The following values are supported: | 3661 * [Output-only] Describes the table type. The following values are supported: |
| 3585 * TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL | 3662 * TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL |
| 3586 * query. The default value is TABLE. | 3663 * query. The default value is TABLE. |
| 3587 */ | 3664 */ |
| 3588 core.String type; | 3665 core.String type; |
| 3589 /** [Optional] The view definition. */ | 3666 /** [Optional] The view definition. */ |
| 3590 ViewDefinition view; | 3667 ViewDefinition view; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3627 } | 3704 } |
| 3628 if (_json.containsKey("numRows")) { | 3705 if (_json.containsKey("numRows")) { |
| 3629 numRows = _json["numRows"]; | 3706 numRows = _json["numRows"]; |
| 3630 } | 3707 } |
| 3631 if (_json.containsKey("schema")) { | 3708 if (_json.containsKey("schema")) { |
| 3632 schema = new TableSchema.fromJson(_json["schema"]); | 3709 schema = new TableSchema.fromJson(_json["schema"]); |
| 3633 } | 3710 } |
| 3634 if (_json.containsKey("selfLink")) { | 3711 if (_json.containsKey("selfLink")) { |
| 3635 selfLink = _json["selfLink"]; | 3712 selfLink = _json["selfLink"]; |
| 3636 } | 3713 } |
| 3714 if (_json.containsKey("streamingBuffer")) { |
| 3715 streamingBuffer = new Streamingbuffer.fromJson(_json["streamingBuffer"]); |
| 3716 } |
| 3637 if (_json.containsKey("tableReference")) { | 3717 if (_json.containsKey("tableReference")) { |
| 3638 tableReference = new TableReference.fromJson(_json["tableReference"]); | 3718 tableReference = new TableReference.fromJson(_json["tableReference"]); |
| 3639 } | 3719 } |
| 3640 if (_json.containsKey("type")) { | 3720 if (_json.containsKey("type")) { |
| 3641 type = _json["type"]; | 3721 type = _json["type"]; |
| 3642 } | 3722 } |
| 3643 if (_json.containsKey("view")) { | 3723 if (_json.containsKey("view")) { |
| 3644 view = new ViewDefinition.fromJson(_json["view"]); | 3724 view = new ViewDefinition.fromJson(_json["view"]); |
| 3645 } | 3725 } |
| 3646 } | 3726 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3682 } | 3762 } |
| 3683 if (numRows != null) { | 3763 if (numRows != null) { |
| 3684 _json["numRows"] = numRows; | 3764 _json["numRows"] = numRows; |
| 3685 } | 3765 } |
| 3686 if (schema != null) { | 3766 if (schema != null) { |
| 3687 _json["schema"] = (schema).toJson(); | 3767 _json["schema"] = (schema).toJson(); |
| 3688 } | 3768 } |
| 3689 if (selfLink != null) { | 3769 if (selfLink != null) { |
| 3690 _json["selfLink"] = selfLink; | 3770 _json["selfLink"] = selfLink; |
| 3691 } | 3771 } |
| 3772 if (streamingBuffer != null) { |
| 3773 _json["streamingBuffer"] = (streamingBuffer).toJson(); |
| 3774 } |
| 3692 if (tableReference != null) { | 3775 if (tableReference != null) { |
| 3693 _json["tableReference"] = (tableReference).toJson(); | 3776 _json["tableReference"] = (tableReference).toJson(); |
| 3694 } | 3777 } |
| 3695 if (type != null) { | 3778 if (type != null) { |
| 3696 _json["type"] = type; | 3779 _json["type"] = type; |
| 3697 } | 3780 } |
| 3698 if (view != null) { | 3781 if (view != null) { |
| 3699 _json["view"] = (view).toJson(); | 3782 _json["view"] = (view).toJson(); |
| 3700 } | 3783 } |
| 3701 return _json; | 3784 return _json; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4241 } | 4324 } |
| 4242 | 4325 |
| 4243 core.Map toJson() { | 4326 core.Map toJson() { |
| 4244 var _json = new core.Map(); | 4327 var _json = new core.Map(); |
| 4245 if (query != null) { | 4328 if (query != null) { |
| 4246 _json["query"] = query; | 4329 _json["query"] = query; |
| 4247 } | 4330 } |
| 4248 return _json; | 4331 return _json; |
| 4249 } | 4332 } |
| 4250 } | 4333 } |
| OLD | NEW |