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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 qualifierEncoded = _json["qualifierEncoded"]; | 1308 qualifierEncoded = _json["qualifierEncoded"]; |
1309 } | 1309 } |
1310 if (_json.containsKey("qualifierString")) { | 1310 if (_json.containsKey("qualifierString")) { |
1311 qualifierString = _json["qualifierString"]; | 1311 qualifierString = _json["qualifierString"]; |
1312 } | 1312 } |
1313 if (_json.containsKey("type")) { | 1313 if (_json.containsKey("type")) { |
1314 type = _json["type"]; | 1314 type = _json["type"]; |
1315 } | 1315 } |
1316 } | 1316 } |
1317 | 1317 |
1318 core.Map toJson() { | 1318 core.Map<core.String, core.Object> toJson() { |
1319 var _json = new core.Map(); | 1319 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1320 if (encoding != null) { | 1320 if (encoding != null) { |
1321 _json["encoding"] = encoding; | 1321 _json["encoding"] = encoding; |
1322 } | 1322 } |
1323 if (fieldName != null) { | 1323 if (fieldName != null) { |
1324 _json["fieldName"] = fieldName; | 1324 _json["fieldName"] = fieldName; |
1325 } | 1325 } |
1326 if (onlyReadLatest != null) { | 1326 if (onlyReadLatest != null) { |
1327 _json["onlyReadLatest"] = onlyReadLatest; | 1327 _json["onlyReadLatest"] = onlyReadLatest; |
1328 } | 1328 } |
1329 if (qualifierEncoded != null) { | 1329 if (qualifierEncoded != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1388 familyId = _json["familyId"]; | 1388 familyId = _json["familyId"]; |
1389 } | 1389 } |
1390 if (_json.containsKey("onlyReadLatest")) { | 1390 if (_json.containsKey("onlyReadLatest")) { |
1391 onlyReadLatest = _json["onlyReadLatest"]; | 1391 onlyReadLatest = _json["onlyReadLatest"]; |
1392 } | 1392 } |
1393 if (_json.containsKey("type")) { | 1393 if (_json.containsKey("type")) { |
1394 type = _json["type"]; | 1394 type = _json["type"]; |
1395 } | 1395 } |
1396 } | 1396 } |
1397 | 1397 |
1398 core.Map toJson() { | 1398 core.Map<core.String, core.Object> toJson() { |
1399 var _json = new core.Map(); | 1399 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1400 if (columns != null) { | 1400 if (columns != null) { |
1401 _json["columns"] = columns.map((value) => (value).toJson()).toList(); | 1401 _json["columns"] = columns.map((value) => (value).toJson()).toList(); |
1402 } | 1402 } |
1403 if (encoding != null) { | 1403 if (encoding != null) { |
1404 _json["encoding"] = encoding; | 1404 _json["encoding"] = encoding; |
1405 } | 1405 } |
1406 if (familyId != null) { | 1406 if (familyId != null) { |
1407 _json["familyId"] = familyId; | 1407 _json["familyId"] = familyId; |
1408 } | 1408 } |
1409 if (onlyReadLatest != null) { | 1409 if (onlyReadLatest != null) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 columnFamilies = _json["columnFamilies"].map((value) => new BigtableColumn
Family.fromJson(value)).toList(); | 1449 columnFamilies = _json["columnFamilies"].map((value) => new BigtableColumn
Family.fromJson(value)).toList(); |
1450 } | 1450 } |
1451 if (_json.containsKey("ignoreUnspecifiedColumnFamilies")) { | 1451 if (_json.containsKey("ignoreUnspecifiedColumnFamilies")) { |
1452 ignoreUnspecifiedColumnFamilies = _json["ignoreUnspecifiedColumnFamilies"]
; | 1452 ignoreUnspecifiedColumnFamilies = _json["ignoreUnspecifiedColumnFamilies"]
; |
1453 } | 1453 } |
1454 if (_json.containsKey("readRowkeyAsString")) { | 1454 if (_json.containsKey("readRowkeyAsString")) { |
1455 readRowkeyAsString = _json["readRowkeyAsString"]; | 1455 readRowkeyAsString = _json["readRowkeyAsString"]; |
1456 } | 1456 } |
1457 } | 1457 } |
1458 | 1458 |
1459 core.Map toJson() { | 1459 core.Map<core.String, core.Object> toJson() { |
1460 var _json = new core.Map(); | 1460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1461 if (columnFamilies != null) { | 1461 if (columnFamilies != null) { |
1462 _json["columnFamilies"] = columnFamilies.map((value) => (value).toJson()).
toList(); | 1462 _json["columnFamilies"] = columnFamilies.map((value) => (value).toJson()).
toList(); |
1463 } | 1463 } |
1464 if (ignoreUnspecifiedColumnFamilies != null) { | 1464 if (ignoreUnspecifiedColumnFamilies != null) { |
1465 _json["ignoreUnspecifiedColumnFamilies"] = ignoreUnspecifiedColumnFamilies
; | 1465 _json["ignoreUnspecifiedColumnFamilies"] = ignoreUnspecifiedColumnFamilies
; |
1466 } | 1466 } |
1467 if (readRowkeyAsString != null) { | 1467 if (readRowkeyAsString != null) { |
1468 _json["readRowkeyAsString"] = readRowkeyAsString; | 1468 _json["readRowkeyAsString"] = readRowkeyAsString; |
1469 } | 1469 } |
1470 return _json; | 1470 return _json; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 fieldDelimiter = _json["fieldDelimiter"]; | 1533 fieldDelimiter = _json["fieldDelimiter"]; |
1534 } | 1534 } |
1535 if (_json.containsKey("quote")) { | 1535 if (_json.containsKey("quote")) { |
1536 quote = _json["quote"]; | 1536 quote = _json["quote"]; |
1537 } | 1537 } |
1538 if (_json.containsKey("skipLeadingRows")) { | 1538 if (_json.containsKey("skipLeadingRows")) { |
1539 skipLeadingRows = _json["skipLeadingRows"]; | 1539 skipLeadingRows = _json["skipLeadingRows"]; |
1540 } | 1540 } |
1541 } | 1541 } |
1542 | 1542 |
1543 core.Map toJson() { | 1543 core.Map<core.String, core.Object> toJson() { |
1544 var _json = new core.Map(); | 1544 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1545 if (allowJaggedRows != null) { | 1545 if (allowJaggedRows != null) { |
1546 _json["allowJaggedRows"] = allowJaggedRows; | 1546 _json["allowJaggedRows"] = allowJaggedRows; |
1547 } | 1547 } |
1548 if (allowQuotedNewlines != null) { | 1548 if (allowQuotedNewlines != null) { |
1549 _json["allowQuotedNewlines"] = allowQuotedNewlines; | 1549 _json["allowQuotedNewlines"] = allowQuotedNewlines; |
1550 } | 1550 } |
1551 if (encoding != null) { | 1551 if (encoding != null) { |
1552 _json["encoding"] = encoding; | 1552 _json["encoding"] = encoding; |
1553 } | 1553 } |
1554 if (fieldDelimiter != null) { | 1554 if (fieldDelimiter != null) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 specialGroup = _json["specialGroup"]; | 1615 specialGroup = _json["specialGroup"]; |
1616 } | 1616 } |
1617 if (_json.containsKey("userByEmail")) { | 1617 if (_json.containsKey("userByEmail")) { |
1618 userByEmail = _json["userByEmail"]; | 1618 userByEmail = _json["userByEmail"]; |
1619 } | 1619 } |
1620 if (_json.containsKey("view")) { | 1620 if (_json.containsKey("view")) { |
1621 view = new TableReference.fromJson(_json["view"]); | 1621 view = new TableReference.fromJson(_json["view"]); |
1622 } | 1622 } |
1623 } | 1623 } |
1624 | 1624 |
1625 core.Map toJson() { | 1625 core.Map<core.String, core.Object> toJson() { |
1626 var _json = new core.Map(); | 1626 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1627 if (domain != null) { | 1627 if (domain != null) { |
1628 _json["domain"] = domain; | 1628 _json["domain"] = domain; |
1629 } | 1629 } |
1630 if (groupByEmail != null) { | 1630 if (groupByEmail != null) { |
1631 _json["groupByEmail"] = groupByEmail; | 1631 _json["groupByEmail"] = groupByEmail; |
1632 } | 1632 } |
1633 if (role != null) { | 1633 if (role != null) { |
1634 _json["role"] = role; | 1634 _json["role"] = role; |
1635 } | 1635 } |
1636 if (specialGroup != null) { | 1636 if (specialGroup != null) { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 lastModifiedTime = _json["lastModifiedTime"]; | 1752 lastModifiedTime = _json["lastModifiedTime"]; |
1753 } | 1753 } |
1754 if (_json.containsKey("location")) { | 1754 if (_json.containsKey("location")) { |
1755 location = _json["location"]; | 1755 location = _json["location"]; |
1756 } | 1756 } |
1757 if (_json.containsKey("selfLink")) { | 1757 if (_json.containsKey("selfLink")) { |
1758 selfLink = _json["selfLink"]; | 1758 selfLink = _json["selfLink"]; |
1759 } | 1759 } |
1760 } | 1760 } |
1761 | 1761 |
1762 core.Map toJson() { | 1762 core.Map<core.String, core.Object> toJson() { |
1763 var _json = new core.Map(); | 1763 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1764 if (access != null) { | 1764 if (access != null) { |
1765 _json["access"] = access.map((value) => (value).toJson()).toList(); | 1765 _json["access"] = access.map((value) => (value).toJson()).toList(); |
1766 } | 1766 } |
1767 if (creationTime != null) { | 1767 if (creationTime != null) { |
1768 _json["creationTime"] = creationTime; | 1768 _json["creationTime"] = creationTime; |
1769 } | 1769 } |
1770 if (datasetReference != null) { | 1770 if (datasetReference != null) { |
1771 _json["datasetReference"] = (datasetReference).toJson(); | 1771 _json["datasetReference"] = (datasetReference).toJson(); |
1772 } | 1772 } |
1773 if (defaultTableExpirationMs != null) { | 1773 if (defaultTableExpirationMs != null) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1838 id = _json["id"]; | 1838 id = _json["id"]; |
1839 } | 1839 } |
1840 if (_json.containsKey("kind")) { | 1840 if (_json.containsKey("kind")) { |
1841 kind = _json["kind"]; | 1841 kind = _json["kind"]; |
1842 } | 1842 } |
1843 if (_json.containsKey("labels")) { | 1843 if (_json.containsKey("labels")) { |
1844 labels = _json["labels"]; | 1844 labels = _json["labels"]; |
1845 } | 1845 } |
1846 } | 1846 } |
1847 | 1847 |
1848 core.Map toJson() { | 1848 core.Map<core.String, core.Object> toJson() { |
1849 var _json = new core.Map(); | 1849 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1850 if (datasetReference != null) { | 1850 if (datasetReference != null) { |
1851 _json["datasetReference"] = (datasetReference).toJson(); | 1851 _json["datasetReference"] = (datasetReference).toJson(); |
1852 } | 1852 } |
1853 if (friendlyName != null) { | 1853 if (friendlyName != null) { |
1854 _json["friendlyName"] = friendlyName; | 1854 _json["friendlyName"] = friendlyName; |
1855 } | 1855 } |
1856 if (id != null) { | 1856 if (id != null) { |
1857 _json["id"] = id; | 1857 _json["id"] = id; |
1858 } | 1858 } |
1859 if (kind != null) { | 1859 if (kind != null) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 etag = _json["etag"]; | 1900 etag = _json["etag"]; |
1901 } | 1901 } |
1902 if (_json.containsKey("kind")) { | 1902 if (_json.containsKey("kind")) { |
1903 kind = _json["kind"]; | 1903 kind = _json["kind"]; |
1904 } | 1904 } |
1905 if (_json.containsKey("nextPageToken")) { | 1905 if (_json.containsKey("nextPageToken")) { |
1906 nextPageToken = _json["nextPageToken"]; | 1906 nextPageToken = _json["nextPageToken"]; |
1907 } | 1907 } |
1908 } | 1908 } |
1909 | 1909 |
1910 core.Map toJson() { | 1910 core.Map<core.String, core.Object> toJson() { |
1911 var _json = new core.Map(); | 1911 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1912 if (datasets != null) { | 1912 if (datasets != null) { |
1913 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); | 1913 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); |
1914 } | 1914 } |
1915 if (etag != null) { | 1915 if (etag != null) { |
1916 _json["etag"] = etag; | 1916 _json["etag"] = etag; |
1917 } | 1917 } |
1918 if (kind != null) { | 1918 if (kind != null) { |
1919 _json["kind"] = kind; | 1919 _json["kind"] = kind; |
1920 } | 1920 } |
1921 if (nextPageToken != null) { | 1921 if (nextPageToken != null) { |
(...skipping 17 matching lines...) Expand all Loading... |
1939 | 1939 |
1940 DatasetReference.fromJson(core.Map _json) { | 1940 DatasetReference.fromJson(core.Map _json) { |
1941 if (_json.containsKey("datasetId")) { | 1941 if (_json.containsKey("datasetId")) { |
1942 datasetId = _json["datasetId"]; | 1942 datasetId = _json["datasetId"]; |
1943 } | 1943 } |
1944 if (_json.containsKey("projectId")) { | 1944 if (_json.containsKey("projectId")) { |
1945 projectId = _json["projectId"]; | 1945 projectId = _json["projectId"]; |
1946 } | 1946 } |
1947 } | 1947 } |
1948 | 1948 |
1949 core.Map toJson() { | 1949 core.Map<core.String, core.Object> toJson() { |
1950 var _json = new core.Map(); | 1950 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1951 if (datasetId != null) { | 1951 if (datasetId != null) { |
1952 _json["datasetId"] = datasetId; | 1952 _json["datasetId"] = datasetId; |
1953 } | 1953 } |
1954 if (projectId != null) { | 1954 if (projectId != null) { |
1955 _json["projectId"] = projectId; | 1955 _json["projectId"] = projectId; |
1956 } | 1956 } |
1957 return _json; | 1957 return _json; |
1958 } | 1958 } |
1959 } | 1959 } |
1960 | 1960 |
(...skipping 20 matching lines...) Expand all Loading... |
1981 location = _json["location"]; | 1981 location = _json["location"]; |
1982 } | 1982 } |
1983 if (_json.containsKey("message")) { | 1983 if (_json.containsKey("message")) { |
1984 message = _json["message"]; | 1984 message = _json["message"]; |
1985 } | 1985 } |
1986 if (_json.containsKey("reason")) { | 1986 if (_json.containsKey("reason")) { |
1987 reason = _json["reason"]; | 1987 reason = _json["reason"]; |
1988 } | 1988 } |
1989 } | 1989 } |
1990 | 1990 |
1991 core.Map toJson() { | 1991 core.Map<core.String, core.Object> toJson() { |
1992 var _json = new core.Map(); | 1992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1993 if (debugInfo != null) { | 1993 if (debugInfo != null) { |
1994 _json["debugInfo"] = debugInfo; | 1994 _json["debugInfo"] = debugInfo; |
1995 } | 1995 } |
1996 if (location != null) { | 1996 if (location != null) { |
1997 _json["location"] = location; | 1997 _json["location"] = location; |
1998 } | 1998 } |
1999 if (message != null) { | 1999 if (message != null) { |
2000 _json["message"] = message; | 2000 _json["message"] = message; |
2001 } | 2001 } |
2002 if (reason != null) { | 2002 if (reason != null) { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2083 waitRatioMax = _json["waitRatioMax"]; | 2083 waitRatioMax = _json["waitRatioMax"]; |
2084 } | 2084 } |
2085 if (_json.containsKey("writeRatioAvg")) { | 2085 if (_json.containsKey("writeRatioAvg")) { |
2086 writeRatioAvg = _json["writeRatioAvg"]; | 2086 writeRatioAvg = _json["writeRatioAvg"]; |
2087 } | 2087 } |
2088 if (_json.containsKey("writeRatioMax")) { | 2088 if (_json.containsKey("writeRatioMax")) { |
2089 writeRatioMax = _json["writeRatioMax"]; | 2089 writeRatioMax = _json["writeRatioMax"]; |
2090 } | 2090 } |
2091 } | 2091 } |
2092 | 2092 |
2093 core.Map toJson() { | 2093 core.Map<core.String, core.Object> toJson() { |
2094 var _json = new core.Map(); | 2094 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2095 if (computeRatioAvg != null) { | 2095 if (computeRatioAvg != null) { |
2096 _json["computeRatioAvg"] = computeRatioAvg; | 2096 _json["computeRatioAvg"] = computeRatioAvg; |
2097 } | 2097 } |
2098 if (computeRatioMax != null) { | 2098 if (computeRatioMax != null) { |
2099 _json["computeRatioMax"] = computeRatioMax; | 2099 _json["computeRatioMax"] = computeRatioMax; |
2100 } | 2100 } |
2101 if (id != null) { | 2101 if (id != null) { |
2102 _json["id"] = id; | 2102 _json["id"] = id; |
2103 } | 2103 } |
2104 if (name != null) { | 2104 if (name != null) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 | 2148 |
2149 ExplainQueryStep.fromJson(core.Map _json) { | 2149 ExplainQueryStep.fromJson(core.Map _json) { |
2150 if (_json.containsKey("kind")) { | 2150 if (_json.containsKey("kind")) { |
2151 kind = _json["kind"]; | 2151 kind = _json["kind"]; |
2152 } | 2152 } |
2153 if (_json.containsKey("substeps")) { | 2153 if (_json.containsKey("substeps")) { |
2154 substeps = _json["substeps"]; | 2154 substeps = _json["substeps"]; |
2155 } | 2155 } |
2156 } | 2156 } |
2157 | 2157 |
2158 core.Map toJson() { | 2158 core.Map<core.String, core.Object> toJson() { |
2159 var _json = new core.Map(); | 2159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2160 if (kind != null) { | 2160 if (kind != null) { |
2161 _json["kind"] = kind; | 2161 _json["kind"] = kind; |
2162 } | 2162 } |
2163 if (substeps != null) { | 2163 if (substeps != null) { |
2164 _json["substeps"] = substeps; | 2164 _json["substeps"] = substeps; |
2165 } | 2165 } |
2166 return _json; | 2166 return _json; |
2167 } | 2167 } |
2168 } | 2168 } |
2169 | 2169 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 schema = new TableSchema.fromJson(_json["schema"]); | 2259 schema = new TableSchema.fromJson(_json["schema"]); |
2260 } | 2260 } |
2261 if (_json.containsKey("sourceFormat")) { | 2261 if (_json.containsKey("sourceFormat")) { |
2262 sourceFormat = _json["sourceFormat"]; | 2262 sourceFormat = _json["sourceFormat"]; |
2263 } | 2263 } |
2264 if (_json.containsKey("sourceUris")) { | 2264 if (_json.containsKey("sourceUris")) { |
2265 sourceUris = _json["sourceUris"]; | 2265 sourceUris = _json["sourceUris"]; |
2266 } | 2266 } |
2267 } | 2267 } |
2268 | 2268 |
2269 core.Map toJson() { | 2269 core.Map<core.String, core.Object> toJson() { |
2270 var _json = new core.Map(); | 2270 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2271 if (autodetect != null) { | 2271 if (autodetect != null) { |
2272 _json["autodetect"] = autodetect; | 2272 _json["autodetect"] = autodetect; |
2273 } | 2273 } |
2274 if (bigtableOptions != null) { | 2274 if (bigtableOptions != null) { |
2275 _json["bigtableOptions"] = (bigtableOptions).toJson(); | 2275 _json["bigtableOptions"] = (bigtableOptions).toJson(); |
2276 } | 2276 } |
2277 if (compression != null) { | 2277 if (compression != null) { |
2278 _json["compression"] = compression; | 2278 _json["compression"] = compression; |
2279 } | 2279 } |
2280 if (csvOptions != null) { | 2280 if (csvOptions != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
2299 _json["sourceUris"] = sourceUris; | 2299 _json["sourceUris"] = sourceUris; |
2300 } | 2300 } |
2301 return _json; | 2301 return _json; |
2302 } | 2302 } |
2303 } | 2303 } |
2304 | 2304 |
2305 class GetQueryResultsResponse { | 2305 class GetQueryResultsResponse { |
2306 /** Whether the query result was fetched from the query cache. */ | 2306 /** Whether the query result was fetched from the query cache. */ |
2307 core.bool cacheHit; | 2307 core.bool cacheHit; |
2308 /** | 2308 /** |
2309 * [Output-only] All errors and warnings encountered during the running of the | 2309 * [Output-only] The first errors or warnings encountered during the running |
2310 * job. Errors here do not necessarily mean that the job has completed or was | 2310 * of the job. The final message includes the number of errors that caused the |
2311 * unsuccessful. | 2311 * process to stop. Errors here do not necessarily mean that the job has |
| 2312 * completed or was unsuccessful. |
2312 */ | 2313 */ |
2313 core.List<ErrorProto> errors; | 2314 core.List<ErrorProto> errors; |
2314 /** A hash of this response. */ | 2315 /** A hash of this response. */ |
2315 core.String etag; | 2316 core.String etag; |
2316 /** | 2317 /** |
2317 * Whether the query has completed or not. If rows or totalRows are present, | 2318 * Whether the query has completed or not. If rows or totalRows are present, |
2318 * this will always be true. If this is false, totalRows will not be | 2319 * this will always be true. If this is false, totalRows will not be |
2319 * available. | 2320 * available. |
2320 */ | 2321 */ |
2321 core.bool jobComplete; | 2322 core.bool jobComplete; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2391 schema = new TableSchema.fromJson(_json["schema"]); | 2392 schema = new TableSchema.fromJson(_json["schema"]); |
2392 } | 2393 } |
2393 if (_json.containsKey("totalBytesProcessed")) { | 2394 if (_json.containsKey("totalBytesProcessed")) { |
2394 totalBytesProcessed = _json["totalBytesProcessed"]; | 2395 totalBytesProcessed = _json["totalBytesProcessed"]; |
2395 } | 2396 } |
2396 if (_json.containsKey("totalRows")) { | 2397 if (_json.containsKey("totalRows")) { |
2397 totalRows = _json["totalRows"]; | 2398 totalRows = _json["totalRows"]; |
2398 } | 2399 } |
2399 } | 2400 } |
2400 | 2401 |
2401 core.Map toJson() { | 2402 core.Map<core.String, core.Object> toJson() { |
2402 var _json = new core.Map(); | 2403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2403 if (cacheHit != null) { | 2404 if (cacheHit != null) { |
2404 _json["cacheHit"] = cacheHit; | 2405 _json["cacheHit"] = cacheHit; |
2405 } | 2406 } |
2406 if (errors != null) { | 2407 if (errors != null) { |
2407 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 2408 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
2408 } | 2409 } |
2409 if (etag != null) { | 2410 if (etag != null) { |
2410 _json["etag"] = etag; | 2411 _json["etag"] = etag; |
2411 } | 2412 } |
2412 if (jobComplete != null) { | 2413 if (jobComplete != null) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2457 core.String skipLeadingRows; | 2458 core.String skipLeadingRows; |
2458 | 2459 |
2459 GoogleSheetsOptions(); | 2460 GoogleSheetsOptions(); |
2460 | 2461 |
2461 GoogleSheetsOptions.fromJson(core.Map _json) { | 2462 GoogleSheetsOptions.fromJson(core.Map _json) { |
2462 if (_json.containsKey("skipLeadingRows")) { | 2463 if (_json.containsKey("skipLeadingRows")) { |
2463 skipLeadingRows = _json["skipLeadingRows"]; | 2464 skipLeadingRows = _json["skipLeadingRows"]; |
2464 } | 2465 } |
2465 } | 2466 } |
2466 | 2467 |
2467 core.Map toJson() { | 2468 core.Map<core.String, core.Object> toJson() { |
2468 var _json = new core.Map(); | 2469 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2469 if (skipLeadingRows != null) { | 2470 if (skipLeadingRows != null) { |
2470 _json["skipLeadingRows"] = skipLeadingRows; | 2471 _json["skipLeadingRows"] = skipLeadingRows; |
2471 } | 2472 } |
2472 return _json; | 2473 return _json; |
2473 } | 2474 } |
2474 } | 2475 } |
2475 | 2476 |
2476 class Job { | 2477 class Job { |
2477 /** [Required] Describes the job configuration. */ | 2478 /** [Required] Describes the job configuration. */ |
2478 JobConfiguration configuration; | 2479 JobConfiguration configuration; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2524 statistics = new JobStatistics.fromJson(_json["statistics"]); | 2525 statistics = new JobStatistics.fromJson(_json["statistics"]); |
2525 } | 2526 } |
2526 if (_json.containsKey("status")) { | 2527 if (_json.containsKey("status")) { |
2527 status = new JobStatus.fromJson(_json["status"]); | 2528 status = new JobStatus.fromJson(_json["status"]); |
2528 } | 2529 } |
2529 if (_json.containsKey("user_email")) { | 2530 if (_json.containsKey("user_email")) { |
2530 userEmail = _json["user_email"]; | 2531 userEmail = _json["user_email"]; |
2531 } | 2532 } |
2532 } | 2533 } |
2533 | 2534 |
2534 core.Map toJson() { | 2535 core.Map<core.String, core.Object> toJson() { |
2535 var _json = new core.Map(); | 2536 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2536 if (configuration != null) { | 2537 if (configuration != null) { |
2537 _json["configuration"] = (configuration).toJson(); | 2538 _json["configuration"] = (configuration).toJson(); |
2538 } | 2539 } |
2539 if (etag != null) { | 2540 if (etag != null) { |
2540 _json["etag"] = etag; | 2541 _json["etag"] = etag; |
2541 } | 2542 } |
2542 if (id != null) { | 2543 if (id != null) { |
2543 _json["id"] = id; | 2544 _json["id"] = id; |
2544 } | 2545 } |
2545 if (jobReference != null) { | 2546 if (jobReference != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
2574 | 2575 |
2575 JobCancelResponse.fromJson(core.Map _json) { | 2576 JobCancelResponse.fromJson(core.Map _json) { |
2576 if (_json.containsKey("job")) { | 2577 if (_json.containsKey("job")) { |
2577 job = new Job.fromJson(_json["job"]); | 2578 job = new Job.fromJson(_json["job"]); |
2578 } | 2579 } |
2579 if (_json.containsKey("kind")) { | 2580 if (_json.containsKey("kind")) { |
2580 kind = _json["kind"]; | 2581 kind = _json["kind"]; |
2581 } | 2582 } |
2582 } | 2583 } |
2583 | 2584 |
2584 core.Map toJson() { | 2585 core.Map<core.String, core.Object> toJson() { |
2585 var _json = new core.Map(); | 2586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2586 if (job != null) { | 2587 if (job != null) { |
2587 _json["job"] = (job).toJson(); | 2588 _json["job"] = (job).toJson(); |
2588 } | 2589 } |
2589 if (kind != null) { | 2590 if (kind != null) { |
2590 _json["kind"] = kind; | 2591 _json["kind"] = kind; |
2591 } | 2592 } |
2592 return _json; | 2593 return _json; |
2593 } | 2594 } |
2594 } | 2595 } |
2595 | 2596 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2635 labels = _json["labels"]; | 2636 labels = _json["labels"]; |
2636 } | 2637 } |
2637 if (_json.containsKey("load")) { | 2638 if (_json.containsKey("load")) { |
2638 load = new JobConfigurationLoad.fromJson(_json["load"]); | 2639 load = new JobConfigurationLoad.fromJson(_json["load"]); |
2639 } | 2640 } |
2640 if (_json.containsKey("query")) { | 2641 if (_json.containsKey("query")) { |
2641 query = new JobConfigurationQuery.fromJson(_json["query"]); | 2642 query = new JobConfigurationQuery.fromJson(_json["query"]); |
2642 } | 2643 } |
2643 } | 2644 } |
2644 | 2645 |
2645 core.Map toJson() { | 2646 core.Map<core.String, core.Object> toJson() { |
2646 var _json = new core.Map(); | 2647 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2647 if (copy != null) { | 2648 if (copy != null) { |
2648 _json["copy"] = (copy).toJson(); | 2649 _json["copy"] = (copy).toJson(); |
2649 } | 2650 } |
2650 if (dryRun != null) { | 2651 if (dryRun != null) { |
2651 _json["dryRun"] = dryRun; | 2652 _json["dryRun"] = dryRun; |
2652 } | 2653 } |
2653 if (extract != null) { | 2654 if (extract != null) { |
2654 _json["extract"] = (extract).toJson(); | 2655 _json["extract"] = (extract).toJson(); |
2655 } | 2656 } |
2656 if (labels != null) { | 2657 if (labels != null) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2721 fieldDelimiter = _json["fieldDelimiter"]; | 2722 fieldDelimiter = _json["fieldDelimiter"]; |
2722 } | 2723 } |
2723 if (_json.containsKey("printHeader")) { | 2724 if (_json.containsKey("printHeader")) { |
2724 printHeader = _json["printHeader"]; | 2725 printHeader = _json["printHeader"]; |
2725 } | 2726 } |
2726 if (_json.containsKey("sourceTable")) { | 2727 if (_json.containsKey("sourceTable")) { |
2727 sourceTable = new TableReference.fromJson(_json["sourceTable"]); | 2728 sourceTable = new TableReference.fromJson(_json["sourceTable"]); |
2728 } | 2729 } |
2729 } | 2730 } |
2730 | 2731 |
2731 core.Map toJson() { | 2732 core.Map<core.String, core.Object> toJson() { |
2732 var _json = new core.Map(); | 2733 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2733 if (compression != null) { | 2734 if (compression != null) { |
2734 _json["compression"] = compression; | 2735 _json["compression"] = compression; |
2735 } | 2736 } |
2736 if (destinationFormat != null) { | 2737 if (destinationFormat != null) { |
2737 _json["destinationFormat"] = destinationFormat; | 2738 _json["destinationFormat"] = destinationFormat; |
2738 } | 2739 } |
2739 if (destinationUri != null) { | 2740 if (destinationUri != null) { |
2740 _json["destinationUri"] = destinationUri; | 2741 _json["destinationUri"] = destinationUri; |
2741 } | 2742 } |
2742 if (destinationUris != null) { | 2743 if (destinationUris != null) { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2963 sourceFormat = _json["sourceFormat"]; | 2964 sourceFormat = _json["sourceFormat"]; |
2964 } | 2965 } |
2965 if (_json.containsKey("sourceUris")) { | 2966 if (_json.containsKey("sourceUris")) { |
2966 sourceUris = _json["sourceUris"]; | 2967 sourceUris = _json["sourceUris"]; |
2967 } | 2968 } |
2968 if (_json.containsKey("writeDisposition")) { | 2969 if (_json.containsKey("writeDisposition")) { |
2969 writeDisposition = _json["writeDisposition"]; | 2970 writeDisposition = _json["writeDisposition"]; |
2970 } | 2971 } |
2971 } | 2972 } |
2972 | 2973 |
2973 core.Map toJson() { | 2974 core.Map<core.String, core.Object> toJson() { |
2974 var _json = new core.Map(); | 2975 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2975 if (allowJaggedRows != null) { | 2976 if (allowJaggedRows != null) { |
2976 _json["allowJaggedRows"] = allowJaggedRows; | 2977 _json["allowJaggedRows"] = allowJaggedRows; |
2977 } | 2978 } |
2978 if (allowQuotedNewlines != null) { | 2979 if (allowQuotedNewlines != null) { |
2979 _json["allowQuotedNewlines"] = allowQuotedNewlines; | 2980 _json["allowQuotedNewlines"] = allowQuotedNewlines; |
2980 } | 2981 } |
2981 if (autodetect != null) { | 2982 if (autodetect != null) { |
2982 _json["autodetect"] = autodetect; | 2983 _json["autodetect"] = autodetect; |
2983 } | 2984 } |
2984 if (createDisposition != null) { | 2985 if (createDisposition != null) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3034 } | 3035 } |
3035 return _json; | 3036 return _json; |
3036 } | 3037 } |
3037 } | 3038 } |
3038 | 3039 |
3039 class JobConfigurationQuery { | 3040 class JobConfigurationQuery { |
3040 /** | 3041 /** |
3041 * [Optional] If true and query uses legacy SQL dialect, allows the query to | 3042 * [Optional] If true and query uses legacy SQL dialect, allows the query to |
3042 * produce arbitrarily large result tables at a slight cost in performance. | 3043 * produce arbitrarily large result tables at a slight cost in performance. |
3043 * Requires destinationTable to be set. For standard SQL queries, this flag is | 3044 * Requires destinationTable to be set. For standard SQL queries, this flag is |
3044 * ignored and large results are always allowed. | 3045 * ignored and large results are always allowed. However, you must still set |
| 3046 * destinationTable when result size exceeds the allowed maximum response |
| 3047 * size. |
3045 */ | 3048 */ |
3046 core.bool allowLargeResults; | 3049 core.bool allowLargeResults; |
3047 /** | 3050 /** |
3048 * [Optional] Specifies whether the job is allowed to create new tables. The | 3051 * [Optional] Specifies whether the job is allowed to create new tables. The |
3049 * following values are supported: CREATE_IF_NEEDED: If the table does not | 3052 * following values are supported: CREATE_IF_NEEDED: If the table does not |
3050 * exist, BigQuery creates the table. CREATE_NEVER: The table must already | 3053 * exist, BigQuery creates the table. CREATE_NEVER: The table must already |
3051 * exist. If it does not, a 'notFound' error is returned in the job result. | 3054 * exist. If it does not, a 'notFound' error is returned in the job result. |
3052 * The default value is CREATE_IF_NEEDED. Creation, truncation and append | 3055 * The default value is CREATE_IF_NEEDED. Creation, truncation and append |
3053 * actions occur as one atomic update upon job completion. | 3056 * actions occur as one atomic update upon job completion. |
3054 */ | 3057 */ |
3055 core.String createDisposition; | 3058 core.String createDisposition; |
3056 /** | 3059 /** |
3057 * [Optional] Specifies the default dataset to use for unqualified table names | 3060 * [Optional] Specifies the default dataset to use for unqualified table names |
3058 * in the query. | 3061 * in the query. |
3059 */ | 3062 */ |
3060 DatasetReference defaultDataset; | 3063 DatasetReference defaultDataset; |
3061 /** | 3064 /** |
3062 * [Optional] Describes the table where the query results should be stored. If | 3065 * [Optional] Describes the table where the query results should be stored. If |
3063 * not present, a new table will be created to store the results. | 3066 * not present, a new table will be created to store the results. This |
| 3067 * property must be set for large results that exceed the maximum response |
| 3068 * size. |
3064 */ | 3069 */ |
3065 TableReference destinationTable; | 3070 TableReference destinationTable; |
3066 /** | 3071 /** |
3067 * [Optional] If true and query uses legacy SQL dialect, flattens all nested | 3072 * [Optional] If true and query uses legacy SQL dialect, flattens all nested |
3068 * and repeated fields in the query results. allowLargeResults must be true if | 3073 * and repeated fields in the query results. allowLargeResults must be true if |
3069 * this is set to false. For standard SQL queries, this flag is ignored and | 3074 * this is set to false. For standard SQL queries, this flag is ignored and |
3070 * results are never flattened. | 3075 * results are never flattened. |
3071 */ | 3076 */ |
3072 core.bool flattenResults; | 3077 core.bool flattenResults; |
3073 /** | 3078 /** |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3188 if (_json.containsKey("query")) { | 3193 if (_json.containsKey("query")) { |
3189 query = _json["query"]; | 3194 query = _json["query"]; |
3190 } | 3195 } |
3191 if (_json.containsKey("queryParameters")) { | 3196 if (_json.containsKey("queryParameters")) { |
3192 queryParameters = _json["queryParameters"].map((value) => new QueryParamet
er.fromJson(value)).toList(); | 3197 queryParameters = _json["queryParameters"].map((value) => new QueryParamet
er.fromJson(value)).toList(); |
3193 } | 3198 } |
3194 if (_json.containsKey("schemaUpdateOptions")) { | 3199 if (_json.containsKey("schemaUpdateOptions")) { |
3195 schemaUpdateOptions = _json["schemaUpdateOptions"]; | 3200 schemaUpdateOptions = _json["schemaUpdateOptions"]; |
3196 } | 3201 } |
3197 if (_json.containsKey("tableDefinitions")) { | 3202 if (_json.containsKey("tableDefinitions")) { |
3198 tableDefinitions = commons.mapMap(_json["tableDefinitions"], (item) => new
ExternalDataConfiguration.fromJson(item)); | 3203 tableDefinitions = commons.mapMap<core.Map<core.String, core.Object>, Exte
rnalDataConfiguration>(_json["tableDefinitions"], (core.Map<core.String, core.Ob
ject> item) => new ExternalDataConfiguration.fromJson(item)); |
3199 } | 3204 } |
3200 if (_json.containsKey("useLegacySql")) { | 3205 if (_json.containsKey("useLegacySql")) { |
3201 useLegacySql = _json["useLegacySql"]; | 3206 useLegacySql = _json["useLegacySql"]; |
3202 } | 3207 } |
3203 if (_json.containsKey("useQueryCache")) { | 3208 if (_json.containsKey("useQueryCache")) { |
3204 useQueryCache = _json["useQueryCache"]; | 3209 useQueryCache = _json["useQueryCache"]; |
3205 } | 3210 } |
3206 if (_json.containsKey("userDefinedFunctionResources")) { | 3211 if (_json.containsKey("userDefinedFunctionResources")) { |
3207 userDefinedFunctionResources = _json["userDefinedFunctionResources"].map((
value) => new UserDefinedFunctionResource.fromJson(value)).toList(); | 3212 userDefinedFunctionResources = _json["userDefinedFunctionResources"].map((
value) => new UserDefinedFunctionResource.fromJson(value)).toList(); |
3208 } | 3213 } |
3209 if (_json.containsKey("writeDisposition")) { | 3214 if (_json.containsKey("writeDisposition")) { |
3210 writeDisposition = _json["writeDisposition"]; | 3215 writeDisposition = _json["writeDisposition"]; |
3211 } | 3216 } |
3212 } | 3217 } |
3213 | 3218 |
3214 core.Map toJson() { | 3219 core.Map<core.String, core.Object> toJson() { |
3215 var _json = new core.Map(); | 3220 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3216 if (allowLargeResults != null) { | 3221 if (allowLargeResults != null) { |
3217 _json["allowLargeResults"] = allowLargeResults; | 3222 _json["allowLargeResults"] = allowLargeResults; |
3218 } | 3223 } |
3219 if (createDisposition != null) { | 3224 if (createDisposition != null) { |
3220 _json["createDisposition"] = createDisposition; | 3225 _json["createDisposition"] = createDisposition; |
3221 } | 3226 } |
3222 if (defaultDataset != null) { | 3227 if (defaultDataset != null) { |
3223 _json["defaultDataset"] = (defaultDataset).toJson(); | 3228 _json["defaultDataset"] = (defaultDataset).toJson(); |
3224 } | 3229 } |
3225 if (destinationTable != null) { | 3230 if (destinationTable != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
3246 if (query != null) { | 3251 if (query != null) { |
3247 _json["query"] = query; | 3252 _json["query"] = query; |
3248 } | 3253 } |
3249 if (queryParameters != null) { | 3254 if (queryParameters != null) { |
3250 _json["queryParameters"] = queryParameters.map((value) => (value).toJson()
).toList(); | 3255 _json["queryParameters"] = queryParameters.map((value) => (value).toJson()
).toList(); |
3251 } | 3256 } |
3252 if (schemaUpdateOptions != null) { | 3257 if (schemaUpdateOptions != null) { |
3253 _json["schemaUpdateOptions"] = schemaUpdateOptions; | 3258 _json["schemaUpdateOptions"] = schemaUpdateOptions; |
3254 } | 3259 } |
3255 if (tableDefinitions != null) { | 3260 if (tableDefinitions != null) { |
3256 _json["tableDefinitions"] = commons.mapMap(tableDefinitions, (item) => (it
em).toJson()); | 3261 _json["tableDefinitions"] = commons.mapMap<ExternalDataConfiguration, core
.Map<core.String, core.Object>>(tableDefinitions, (ExternalDataConfiguration ite
m) => (item).toJson()); |
3257 } | 3262 } |
3258 if (useLegacySql != null) { | 3263 if (useLegacySql != null) { |
3259 _json["useLegacySql"] = useLegacySql; | 3264 _json["useLegacySql"] = useLegacySql; |
3260 } | 3265 } |
3261 if (useQueryCache != null) { | 3266 if (useQueryCache != null) { |
3262 _json["useQueryCache"] = useQueryCache; | 3267 _json["useQueryCache"] = useQueryCache; |
3263 } | 3268 } |
3264 if (userDefinedFunctionResources != null) { | 3269 if (userDefinedFunctionResources != null) { |
3265 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); | 3270 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); |
3266 } | 3271 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3313 sourceTable = new TableReference.fromJson(_json["sourceTable"]); | 3318 sourceTable = new TableReference.fromJson(_json["sourceTable"]); |
3314 } | 3319 } |
3315 if (_json.containsKey("sourceTables")) { | 3320 if (_json.containsKey("sourceTables")) { |
3316 sourceTables = _json["sourceTables"].map((value) => new TableReference.fro
mJson(value)).toList(); | 3321 sourceTables = _json["sourceTables"].map((value) => new TableReference.fro
mJson(value)).toList(); |
3317 } | 3322 } |
3318 if (_json.containsKey("writeDisposition")) { | 3323 if (_json.containsKey("writeDisposition")) { |
3319 writeDisposition = _json["writeDisposition"]; | 3324 writeDisposition = _json["writeDisposition"]; |
3320 } | 3325 } |
3321 } | 3326 } |
3322 | 3327 |
3323 core.Map toJson() { | 3328 core.Map<core.String, core.Object> toJson() { |
3324 var _json = new core.Map(); | 3329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3325 if (createDisposition != null) { | 3330 if (createDisposition != null) { |
3326 _json["createDisposition"] = createDisposition; | 3331 _json["createDisposition"] = createDisposition; |
3327 } | 3332 } |
3328 if (destinationTable != null) { | 3333 if (destinationTable != null) { |
3329 _json["destinationTable"] = (destinationTable).toJson(); | 3334 _json["destinationTable"] = (destinationTable).toJson(); |
3330 } | 3335 } |
3331 if (sourceTable != null) { | 3336 if (sourceTable != null) { |
3332 _json["sourceTable"] = (sourceTable).toJson(); | 3337 _json["sourceTable"] = (sourceTable).toJson(); |
3333 } | 3338 } |
3334 if (sourceTables != null) { | 3339 if (sourceTables != null) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3392 statistics = new JobStatistics.fromJson(_json["statistics"]); | 3397 statistics = new JobStatistics.fromJson(_json["statistics"]); |
3393 } | 3398 } |
3394 if (_json.containsKey("status")) { | 3399 if (_json.containsKey("status")) { |
3395 status = new JobStatus.fromJson(_json["status"]); | 3400 status = new JobStatus.fromJson(_json["status"]); |
3396 } | 3401 } |
3397 if (_json.containsKey("user_email")) { | 3402 if (_json.containsKey("user_email")) { |
3398 userEmail = _json["user_email"]; | 3403 userEmail = _json["user_email"]; |
3399 } | 3404 } |
3400 } | 3405 } |
3401 | 3406 |
3402 core.Map toJson() { | 3407 core.Map<core.String, core.Object> toJson() { |
3403 var _json = new core.Map(); | 3408 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3404 if (configuration != null) { | 3409 if (configuration != null) { |
3405 _json["configuration"] = (configuration).toJson(); | 3410 _json["configuration"] = (configuration).toJson(); |
3406 } | 3411 } |
3407 if (errorResult != null) { | 3412 if (errorResult != null) { |
3408 _json["errorResult"] = (errorResult).toJson(); | 3413 _json["errorResult"] = (errorResult).toJson(); |
3409 } | 3414 } |
3410 if (id != null) { | 3415 if (id != null) { |
3411 _json["id"] = id; | 3416 _json["id"] = id; |
3412 } | 3417 } |
3413 if (jobReference != null) { | 3418 if (jobReference != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3452 jobs = _json["jobs"].map((value) => new JobListJobs.fromJson(value)).toLis
t(); | 3457 jobs = _json["jobs"].map((value) => new JobListJobs.fromJson(value)).toLis
t(); |
3453 } | 3458 } |
3454 if (_json.containsKey("kind")) { | 3459 if (_json.containsKey("kind")) { |
3455 kind = _json["kind"]; | 3460 kind = _json["kind"]; |
3456 } | 3461 } |
3457 if (_json.containsKey("nextPageToken")) { | 3462 if (_json.containsKey("nextPageToken")) { |
3458 nextPageToken = _json["nextPageToken"]; | 3463 nextPageToken = _json["nextPageToken"]; |
3459 } | 3464 } |
3460 } | 3465 } |
3461 | 3466 |
3462 core.Map toJson() { | 3467 core.Map<core.String, core.Object> toJson() { |
3463 var _json = new core.Map(); | 3468 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3464 if (etag != null) { | 3469 if (etag != null) { |
3465 _json["etag"] = etag; | 3470 _json["etag"] = etag; |
3466 } | 3471 } |
3467 if (jobs != null) { | 3472 if (jobs != null) { |
3468 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); | 3473 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); |
3469 } | 3474 } |
3470 if (kind != null) { | 3475 if (kind != null) { |
3471 _json["kind"] = kind; | 3476 _json["kind"] = kind; |
3472 } | 3477 } |
3473 if (nextPageToken != null) { | 3478 if (nextPageToken != null) { |
(...skipping 17 matching lines...) Expand all Loading... |
3491 | 3496 |
3492 JobReference.fromJson(core.Map _json) { | 3497 JobReference.fromJson(core.Map _json) { |
3493 if (_json.containsKey("jobId")) { | 3498 if (_json.containsKey("jobId")) { |
3494 jobId = _json["jobId"]; | 3499 jobId = _json["jobId"]; |
3495 } | 3500 } |
3496 if (_json.containsKey("projectId")) { | 3501 if (_json.containsKey("projectId")) { |
3497 projectId = _json["projectId"]; | 3502 projectId = _json["projectId"]; |
3498 } | 3503 } |
3499 } | 3504 } |
3500 | 3505 |
3501 core.Map toJson() { | 3506 core.Map<core.String, core.Object> toJson() { |
3502 var _json = new core.Map(); | 3507 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3503 if (jobId != null) { | 3508 if (jobId != null) { |
3504 _json["jobId"] = jobId; | 3509 _json["jobId"] = jobId; |
3505 } | 3510 } |
3506 if (projectId != null) { | 3511 if (projectId != null) { |
3507 _json["projectId"] = projectId; | 3512 _json["projectId"] = projectId; |
3508 } | 3513 } |
3509 return _json; | 3514 return _json; |
3510 } | 3515 } |
3511 } | 3516 } |
3512 | 3517 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3558 query = new JobStatistics2.fromJson(_json["query"]); | 3563 query = new JobStatistics2.fromJson(_json["query"]); |
3559 } | 3564 } |
3560 if (_json.containsKey("startTime")) { | 3565 if (_json.containsKey("startTime")) { |
3561 startTime = _json["startTime"]; | 3566 startTime = _json["startTime"]; |
3562 } | 3567 } |
3563 if (_json.containsKey("totalBytesProcessed")) { | 3568 if (_json.containsKey("totalBytesProcessed")) { |
3564 totalBytesProcessed = _json["totalBytesProcessed"]; | 3569 totalBytesProcessed = _json["totalBytesProcessed"]; |
3565 } | 3570 } |
3566 } | 3571 } |
3567 | 3572 |
3568 core.Map toJson() { | 3573 core.Map<core.String, core.Object> toJson() { |
3569 var _json = new core.Map(); | 3574 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3570 if (creationTime != null) { | 3575 if (creationTime != null) { |
3571 _json["creationTime"] = creationTime; | 3576 _json["creationTime"] = creationTime; |
3572 } | 3577 } |
3573 if (endTime != null) { | 3578 if (endTime != null) { |
3574 _json["endTime"] = endTime; | 3579 _json["endTime"] = endTime; |
3575 } | 3580 } |
3576 if (extract != null) { | 3581 if (extract != null) { |
3577 _json["extract"] = (extract).toJson(); | 3582 _json["extract"] = (extract).toJson(); |
3578 } | 3583 } |
3579 if (load != null) { | 3584 if (load != null) { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3656 totalBytesBilled = _json["totalBytesBilled"]; | 3661 totalBytesBilled = _json["totalBytesBilled"]; |
3657 } | 3662 } |
3658 if (_json.containsKey("totalBytesProcessed")) { | 3663 if (_json.containsKey("totalBytesProcessed")) { |
3659 totalBytesProcessed = _json["totalBytesProcessed"]; | 3664 totalBytesProcessed = _json["totalBytesProcessed"]; |
3660 } | 3665 } |
3661 if (_json.containsKey("undeclaredQueryParameters")) { | 3666 if (_json.containsKey("undeclaredQueryParameters")) { |
3662 undeclaredQueryParameters = _json["undeclaredQueryParameters"].map((value)
=> new QueryParameter.fromJson(value)).toList(); | 3667 undeclaredQueryParameters = _json["undeclaredQueryParameters"].map((value)
=> new QueryParameter.fromJson(value)).toList(); |
3663 } | 3668 } |
3664 } | 3669 } |
3665 | 3670 |
3666 core.Map toJson() { | 3671 core.Map<core.String, core.Object> toJson() { |
3667 var _json = new core.Map(); | 3672 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3668 if (billingTier != null) { | 3673 if (billingTier != null) { |
3669 _json["billingTier"] = billingTier; | 3674 _json["billingTier"] = billingTier; |
3670 } | 3675 } |
3671 if (cacheHit != null) { | 3676 if (cacheHit != null) { |
3672 _json["cacheHit"] = cacheHit; | 3677 _json["cacheHit"] = cacheHit; |
3673 } | 3678 } |
3674 if (numDmlAffectedRows != null) { | 3679 if (numDmlAffectedRows != null) { |
3675 _json["numDmlAffectedRows"] = numDmlAffectedRows; | 3680 _json["numDmlAffectedRows"] = numDmlAffectedRows; |
3676 } | 3681 } |
3677 if (queryPlan != null) { | 3682 if (queryPlan != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3725 inputFiles = _json["inputFiles"]; | 3730 inputFiles = _json["inputFiles"]; |
3726 } | 3731 } |
3727 if (_json.containsKey("outputBytes")) { | 3732 if (_json.containsKey("outputBytes")) { |
3728 outputBytes = _json["outputBytes"]; | 3733 outputBytes = _json["outputBytes"]; |
3729 } | 3734 } |
3730 if (_json.containsKey("outputRows")) { | 3735 if (_json.containsKey("outputRows")) { |
3731 outputRows = _json["outputRows"]; | 3736 outputRows = _json["outputRows"]; |
3732 } | 3737 } |
3733 } | 3738 } |
3734 | 3739 |
3735 core.Map toJson() { | 3740 core.Map<core.String, core.Object> toJson() { |
3736 var _json = new core.Map(); | 3741 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3737 if (inputFileBytes != null) { | 3742 if (inputFileBytes != null) { |
3738 _json["inputFileBytes"] = inputFileBytes; | 3743 _json["inputFileBytes"] = inputFileBytes; |
3739 } | 3744 } |
3740 if (inputFiles != null) { | 3745 if (inputFiles != null) { |
3741 _json["inputFiles"] = inputFiles; | 3746 _json["inputFiles"] = inputFiles; |
3742 } | 3747 } |
3743 if (outputBytes != null) { | 3748 if (outputBytes != null) { |
3744 _json["outputBytes"] = outputBytes; | 3749 _json["outputBytes"] = outputBytes; |
3745 } | 3750 } |
3746 if (outputRows != null) { | 3751 if (outputRows != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
3759 core.List<core.String> destinationUriFileCounts; | 3764 core.List<core.String> destinationUriFileCounts; |
3760 | 3765 |
3761 JobStatistics4(); | 3766 JobStatistics4(); |
3762 | 3767 |
3763 JobStatistics4.fromJson(core.Map _json) { | 3768 JobStatistics4.fromJson(core.Map _json) { |
3764 if (_json.containsKey("destinationUriFileCounts")) { | 3769 if (_json.containsKey("destinationUriFileCounts")) { |
3765 destinationUriFileCounts = _json["destinationUriFileCounts"]; | 3770 destinationUriFileCounts = _json["destinationUriFileCounts"]; |
3766 } | 3771 } |
3767 } | 3772 } |
3768 | 3773 |
3769 core.Map toJson() { | 3774 core.Map<core.String, core.Object> toJson() { |
3770 var _json = new core.Map(); | 3775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3771 if (destinationUriFileCounts != null) { | 3776 if (destinationUriFileCounts != null) { |
3772 _json["destinationUriFileCounts"] = destinationUriFileCounts; | 3777 _json["destinationUriFileCounts"] = destinationUriFileCounts; |
3773 } | 3778 } |
3774 return _json; | 3779 return _json; |
3775 } | 3780 } |
3776 } | 3781 } |
3777 | 3782 |
3778 class JobStatus { | 3783 class JobStatus { |
3779 /** | 3784 /** |
3780 * [Output-only] Final error result of the job. If present, indicates that the | 3785 * [Output-only] Final error result of the job. If present, indicates that the |
3781 * job has completed and was unsuccessful. | 3786 * job has completed and was unsuccessful. |
3782 */ | 3787 */ |
3783 ErrorProto errorResult; | 3788 ErrorProto errorResult; |
3784 /** | 3789 /** |
3785 * [Output-only] All errors encountered during the running of the job. Errors | 3790 * [Output-only] The first errors encountered during the running of the job. |
3786 * here do not necessarily mean that the job has completed or was | 3791 * The final message includes the number of errors that caused the process to |
| 3792 * stop. Errors here do not necessarily mean that the job has completed or was |
3787 * unsuccessful. | 3793 * unsuccessful. |
3788 */ | 3794 */ |
3789 core.List<ErrorProto> errors; | 3795 core.List<ErrorProto> errors; |
3790 /** [Output-only] Running state of the job. */ | 3796 /** [Output-only] Running state of the job. */ |
3791 core.String state; | 3797 core.String state; |
3792 | 3798 |
3793 JobStatus(); | 3799 JobStatus(); |
3794 | 3800 |
3795 JobStatus.fromJson(core.Map _json) { | 3801 JobStatus.fromJson(core.Map _json) { |
3796 if (_json.containsKey("errorResult")) { | 3802 if (_json.containsKey("errorResult")) { |
3797 errorResult = new ErrorProto.fromJson(_json["errorResult"]); | 3803 errorResult = new ErrorProto.fromJson(_json["errorResult"]); |
3798 } | 3804 } |
3799 if (_json.containsKey("errors")) { | 3805 if (_json.containsKey("errors")) { |
3800 errors = _json["errors"].map((value) => new ErrorProto.fromJson(value)).to
List(); | 3806 errors = _json["errors"].map((value) => new ErrorProto.fromJson(value)).to
List(); |
3801 } | 3807 } |
3802 if (_json.containsKey("state")) { | 3808 if (_json.containsKey("state")) { |
3803 state = _json["state"]; | 3809 state = _json["state"]; |
3804 } | 3810 } |
3805 } | 3811 } |
3806 | 3812 |
3807 core.Map toJson() { | 3813 core.Map<core.String, core.Object> toJson() { |
3808 var _json = new core.Map(); | 3814 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3809 if (errorResult != null) { | 3815 if (errorResult != null) { |
3810 _json["errorResult"] = (errorResult).toJson(); | 3816 _json["errorResult"] = (errorResult).toJson(); |
3811 } | 3817 } |
3812 if (errors != null) { | 3818 if (errors != null) { |
3813 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 3819 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
3814 } | 3820 } |
3815 if (state != null) { | 3821 if (state != null) { |
3816 _json["state"] = state; | 3822 _json["state"] = state; |
3817 } | 3823 } |
3818 return _json; | 3824 return _json; |
3819 } | 3825 } |
3820 } | 3826 } |
3821 | 3827 |
3822 /** Represents a single JSON object. */ | 3828 /** Represents a single JSON object. */ |
3823 class JsonObject | 3829 class JsonObject |
3824 extends collection.MapBase<core.String, core.Object> { | 3830 extends collection.MapBase<core.String, core.Object> { |
3825 final core.Map _innerMap = {}; | 3831 final core.Map _innerMap = {}; |
3826 | 3832 |
3827 JsonObject(); | 3833 JsonObject(); |
3828 | 3834 |
3829 JsonObject.fromJson(core.Map _json) { | 3835 JsonObject.fromJson(core.Map _json) { |
3830 _json.forEach((core.String key, value) { | 3836 _json.forEach((core.String key, value) { |
3831 this[key] = value; | 3837 this[key] = value; |
3832 }); | 3838 }); |
3833 } | 3839 } |
3834 | 3840 |
3835 core.Map toJson() { | 3841 core.Map<core.String, core.Object> toJson() { |
3836 var _json = {}; | 3842 final core.Map<core.String, core.Object> _json = <core.String, core.Object>{
}; |
3837 this.forEach((core.String key, value) { | 3843 this.forEach((core.String key, value) { |
3838 _json[key] = value; | 3844 _json[key] = value; |
3839 }); | 3845 }); |
3840 return _json; | 3846 return _json; |
3841 } | 3847 } |
3842 | 3848 |
3843 core.Object operator [](core.Object key) | 3849 core.Object operator [](core.Object key) |
3844 => _innerMap[key]; | 3850 => _innerMap[key]; |
3845 | 3851 |
3846 operator []=(core.String key, core.Object value) { | 3852 operator []=(core.String key, core.Object value) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3881 kind = _json["kind"]; | 3887 kind = _json["kind"]; |
3882 } | 3888 } |
3883 if (_json.containsKey("numericId")) { | 3889 if (_json.containsKey("numericId")) { |
3884 numericId = _json["numericId"]; | 3890 numericId = _json["numericId"]; |
3885 } | 3891 } |
3886 if (_json.containsKey("projectReference")) { | 3892 if (_json.containsKey("projectReference")) { |
3887 projectReference = new ProjectReference.fromJson(_json["projectReference"]
); | 3893 projectReference = new ProjectReference.fromJson(_json["projectReference"]
); |
3888 } | 3894 } |
3889 } | 3895 } |
3890 | 3896 |
3891 core.Map toJson() { | 3897 core.Map<core.String, core.Object> toJson() { |
3892 var _json = new core.Map(); | 3898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3893 if (friendlyName != null) { | 3899 if (friendlyName != null) { |
3894 _json["friendlyName"] = friendlyName; | 3900 _json["friendlyName"] = friendlyName; |
3895 } | 3901 } |
3896 if (id != null) { | 3902 if (id != null) { |
3897 _json["id"] = id; | 3903 _json["id"] = id; |
3898 } | 3904 } |
3899 if (kind != null) { | 3905 if (kind != null) { |
3900 _json["kind"] = kind; | 3906 _json["kind"] = kind; |
3901 } | 3907 } |
3902 if (numericId != null) { | 3908 if (numericId != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3934 nextPageToken = _json["nextPageToken"]; | 3940 nextPageToken = _json["nextPageToken"]; |
3935 } | 3941 } |
3936 if (_json.containsKey("projects")) { | 3942 if (_json.containsKey("projects")) { |
3937 projects = _json["projects"].map((value) => new ProjectListProjects.fromJs
on(value)).toList(); | 3943 projects = _json["projects"].map((value) => new ProjectListProjects.fromJs
on(value)).toList(); |
3938 } | 3944 } |
3939 if (_json.containsKey("totalItems")) { | 3945 if (_json.containsKey("totalItems")) { |
3940 totalItems = _json["totalItems"]; | 3946 totalItems = _json["totalItems"]; |
3941 } | 3947 } |
3942 } | 3948 } |
3943 | 3949 |
3944 core.Map toJson() { | 3950 core.Map<core.String, core.Object> toJson() { |
3945 var _json = new core.Map(); | 3951 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3946 if (etag != null) { | 3952 if (etag != null) { |
3947 _json["etag"] = etag; | 3953 _json["etag"] = etag; |
3948 } | 3954 } |
3949 if (kind != null) { | 3955 if (kind != null) { |
3950 _json["kind"] = kind; | 3956 _json["kind"] = kind; |
3951 } | 3957 } |
3952 if (nextPageToken != null) { | 3958 if (nextPageToken != null) { |
3953 _json["nextPageToken"] = nextPageToken; | 3959 _json["nextPageToken"] = nextPageToken; |
3954 } | 3960 } |
3955 if (projects != null) { | 3961 if (projects != null) { |
(...skipping 14 matching lines...) Expand all Loading... |
3970 core.String projectId; | 3976 core.String projectId; |
3971 | 3977 |
3972 ProjectReference(); | 3978 ProjectReference(); |
3973 | 3979 |
3974 ProjectReference.fromJson(core.Map _json) { | 3980 ProjectReference.fromJson(core.Map _json) { |
3975 if (_json.containsKey("projectId")) { | 3981 if (_json.containsKey("projectId")) { |
3976 projectId = _json["projectId"]; | 3982 projectId = _json["projectId"]; |
3977 } | 3983 } |
3978 } | 3984 } |
3979 | 3985 |
3980 core.Map toJson() { | 3986 core.Map<core.String, core.Object> toJson() { |
3981 var _json = new core.Map(); | 3987 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3982 if (projectId != null) { | 3988 if (projectId != null) { |
3983 _json["projectId"] = projectId; | 3989 _json["projectId"] = projectId; |
3984 } | 3990 } |
3985 return _json; | 3991 return _json; |
3986 } | 3992 } |
3987 } | 3993 } |
3988 | 3994 |
3989 class QueryParameter { | 3995 class QueryParameter { |
3990 /** | 3996 /** |
3991 * [Optional] If unset, this is a positional parameter. Otherwise, should be | 3997 * [Optional] If unset, this is a positional parameter. Otherwise, should be |
(...skipping 12 matching lines...) Expand all Loading... |
4004 name = _json["name"]; | 4010 name = _json["name"]; |
4005 } | 4011 } |
4006 if (_json.containsKey("parameterType")) { | 4012 if (_json.containsKey("parameterType")) { |
4007 parameterType = new QueryParameterType.fromJson(_json["parameterType"]); | 4013 parameterType = new QueryParameterType.fromJson(_json["parameterType"]); |
4008 } | 4014 } |
4009 if (_json.containsKey("parameterValue")) { | 4015 if (_json.containsKey("parameterValue")) { |
4010 parameterValue = new QueryParameterValue.fromJson(_json["parameterValue"])
; | 4016 parameterValue = new QueryParameterValue.fromJson(_json["parameterValue"])
; |
4011 } | 4017 } |
4012 } | 4018 } |
4013 | 4019 |
4014 core.Map toJson() { | 4020 core.Map<core.String, core.Object> toJson() { |
4015 var _json = new core.Map(); | 4021 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4016 if (name != null) { | 4022 if (name != null) { |
4017 _json["name"] = name; | 4023 _json["name"] = name; |
4018 } | 4024 } |
4019 if (parameterType != null) { | 4025 if (parameterType != null) { |
4020 _json["parameterType"] = (parameterType).toJson(); | 4026 _json["parameterType"] = (parameterType).toJson(); |
4021 } | 4027 } |
4022 if (parameterValue != null) { | 4028 if (parameterValue != null) { |
4023 _json["parameterValue"] = (parameterValue).toJson(); | 4029 _json["parameterValue"] = (parameterValue).toJson(); |
4024 } | 4030 } |
4025 return _json; | 4031 return _json; |
(...skipping 15 matching lines...) Expand all Loading... |
4041 description = _json["description"]; | 4047 description = _json["description"]; |
4042 } | 4048 } |
4043 if (_json.containsKey("name")) { | 4049 if (_json.containsKey("name")) { |
4044 name = _json["name"]; | 4050 name = _json["name"]; |
4045 } | 4051 } |
4046 if (_json.containsKey("type")) { | 4052 if (_json.containsKey("type")) { |
4047 type = new QueryParameterType.fromJson(_json["type"]); | 4053 type = new QueryParameterType.fromJson(_json["type"]); |
4048 } | 4054 } |
4049 } | 4055 } |
4050 | 4056 |
4051 core.Map toJson() { | 4057 core.Map<core.String, core.Object> toJson() { |
4052 var _json = new core.Map(); | 4058 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4053 if (description != null) { | 4059 if (description != null) { |
4054 _json["description"] = description; | 4060 _json["description"] = description; |
4055 } | 4061 } |
4056 if (name != null) { | 4062 if (name != null) { |
4057 _json["name"] = name; | 4063 _json["name"] = name; |
4058 } | 4064 } |
4059 if (type != null) { | 4065 if (type != null) { |
4060 _json["type"] = (type).toJson(); | 4066 _json["type"] = (type).toJson(); |
4061 } | 4067 } |
4062 return _json; | 4068 return _json; |
(...skipping 18 matching lines...) Expand all Loading... |
4081 arrayType = new QueryParameterType.fromJson(_json["arrayType"]); | 4087 arrayType = new QueryParameterType.fromJson(_json["arrayType"]); |
4082 } | 4088 } |
4083 if (_json.containsKey("structTypes")) { | 4089 if (_json.containsKey("structTypes")) { |
4084 structTypes = _json["structTypes"].map((value) => new QueryParameterTypeSt
ructTypes.fromJson(value)).toList(); | 4090 structTypes = _json["structTypes"].map((value) => new QueryParameterTypeSt
ructTypes.fromJson(value)).toList(); |
4085 } | 4091 } |
4086 if (_json.containsKey("type")) { | 4092 if (_json.containsKey("type")) { |
4087 type = _json["type"]; | 4093 type = _json["type"]; |
4088 } | 4094 } |
4089 } | 4095 } |
4090 | 4096 |
4091 core.Map toJson() { | 4097 core.Map<core.String, core.Object> toJson() { |
4092 var _json = new core.Map(); | 4098 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4093 if (arrayType != null) { | 4099 if (arrayType != null) { |
4094 _json["arrayType"] = (arrayType).toJson(); | 4100 _json["arrayType"] = (arrayType).toJson(); |
4095 } | 4101 } |
4096 if (structTypes != null) { | 4102 if (structTypes != null) { |
4097 _json["structTypes"] = structTypes.map((value) => (value).toJson()).toList
(); | 4103 _json["structTypes"] = structTypes.map((value) => (value).toJson()).toList
(); |
4098 } | 4104 } |
4099 if (type != null) { | 4105 if (type != null) { |
4100 _json["type"] = type; | 4106 _json["type"] = type; |
4101 } | 4107 } |
4102 return _json; | 4108 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
4114 /** [Optional] The value of this value, if a simple scalar type. */ | 4120 /** [Optional] The value of this value, if a simple scalar type. */ |
4115 core.String value; | 4121 core.String value; |
4116 | 4122 |
4117 QueryParameterValue(); | 4123 QueryParameterValue(); |
4118 | 4124 |
4119 QueryParameterValue.fromJson(core.Map _json) { | 4125 QueryParameterValue.fromJson(core.Map _json) { |
4120 if (_json.containsKey("arrayValues")) { | 4126 if (_json.containsKey("arrayValues")) { |
4121 arrayValues = _json["arrayValues"].map((value) => new QueryParameterValue.
fromJson(value)).toList(); | 4127 arrayValues = _json["arrayValues"].map((value) => new QueryParameterValue.
fromJson(value)).toList(); |
4122 } | 4128 } |
4123 if (_json.containsKey("structValues")) { | 4129 if (_json.containsKey("structValues")) { |
4124 structValues = commons.mapMap(_json["structValues"], (item) => new QueryPa
rameterValue.fromJson(item)); | 4130 structValues = commons.mapMap<core.Map<core.String, core.Object>, QueryPar
ameterValue>(_json["structValues"], (core.Map<core.String, core.Object> item) =>
new QueryParameterValue.fromJson(item)); |
4125 } | 4131 } |
4126 if (_json.containsKey("value")) { | 4132 if (_json.containsKey("value")) { |
4127 value = _json["value"]; | 4133 value = _json["value"]; |
4128 } | 4134 } |
4129 } | 4135 } |
4130 | 4136 |
4131 core.Map toJson() { | 4137 core.Map<core.String, core.Object> toJson() { |
4132 var _json = new core.Map(); | 4138 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4133 if (arrayValues != null) { | 4139 if (arrayValues != null) { |
4134 _json["arrayValues"] = arrayValues.map((value) => (value).toJson()).toList
(); | 4140 _json["arrayValues"] = arrayValues.map((value) => (value).toJson()).toList
(); |
4135 } | 4141 } |
4136 if (structValues != null) { | 4142 if (structValues != null) { |
4137 _json["structValues"] = commons.mapMap(structValues, (item) => (item).toJs
on()); | 4143 _json["structValues"] = commons.mapMap<QueryParameterValue, core.Map<core.
String, core.Object>>(structValues, (QueryParameterValue item) => (item).toJson(
)); |
4138 } | 4144 } |
4139 if (value != null) { | 4145 if (value != null) { |
4140 _json["value"] = value; | 4146 _json["value"] = value; |
4141 } | 4147 } |
4142 return _json; | 4148 return _json; |
4143 } | 4149 } |
4144 } | 4150 } |
4145 | 4151 |
4146 class QueryRequest { | 4152 class QueryRequest { |
4147 /** | 4153 /** |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4239 timeoutMs = _json["timeoutMs"]; | 4245 timeoutMs = _json["timeoutMs"]; |
4240 } | 4246 } |
4241 if (_json.containsKey("useLegacySql")) { | 4247 if (_json.containsKey("useLegacySql")) { |
4242 useLegacySql = _json["useLegacySql"]; | 4248 useLegacySql = _json["useLegacySql"]; |
4243 } | 4249 } |
4244 if (_json.containsKey("useQueryCache")) { | 4250 if (_json.containsKey("useQueryCache")) { |
4245 useQueryCache = _json["useQueryCache"]; | 4251 useQueryCache = _json["useQueryCache"]; |
4246 } | 4252 } |
4247 } | 4253 } |
4248 | 4254 |
4249 core.Map toJson() { | 4255 core.Map<core.String, core.Object> toJson() { |
4250 var _json = new core.Map(); | 4256 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4251 if (defaultDataset != null) { | 4257 if (defaultDataset != null) { |
4252 _json["defaultDataset"] = (defaultDataset).toJson(); | 4258 _json["defaultDataset"] = (defaultDataset).toJson(); |
4253 } | 4259 } |
4254 if (dryRun != null) { | 4260 if (dryRun != null) { |
4255 _json["dryRun"] = dryRun; | 4261 _json["dryRun"] = dryRun; |
4256 } | 4262 } |
4257 if (kind != null) { | 4263 if (kind != null) { |
4258 _json["kind"] = kind; | 4264 _json["kind"] = kind; |
4259 } | 4265 } |
4260 if (maxResults != null) { | 4266 if (maxResults != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
4282 _json["useQueryCache"] = useQueryCache; | 4288 _json["useQueryCache"] = useQueryCache; |
4283 } | 4289 } |
4284 return _json; | 4290 return _json; |
4285 } | 4291 } |
4286 } | 4292 } |
4287 | 4293 |
4288 class QueryResponse { | 4294 class QueryResponse { |
4289 /** Whether the query result was fetched from the query cache. */ | 4295 /** Whether the query result was fetched from the query cache. */ |
4290 core.bool cacheHit; | 4296 core.bool cacheHit; |
4291 /** | 4297 /** |
4292 * [Output-only] All errors and warnings encountered during the running of the | 4298 * [Output-only] The first errors or warnings encountered during the running |
4293 * job. Errors here do not necessarily mean that the job has completed or was | 4299 * of the job. The final message includes the number of errors that caused the |
4294 * unsuccessful. | 4300 * process to stop. Errors here do not necessarily mean that the job has |
| 4301 * completed or was unsuccessful. |
4295 */ | 4302 */ |
4296 core.List<ErrorProto> errors; | 4303 core.List<ErrorProto> errors; |
4297 /** | 4304 /** |
4298 * Whether the query has completed or not. If rows or totalRows are present, | 4305 * Whether the query has completed or not. If rows or totalRows are present, |
4299 * this will always be true. If this is false, totalRows will not be | 4306 * this will always be true. If this is false, totalRows will not be |
4300 * available. | 4307 * available. |
4301 */ | 4308 */ |
4302 core.bool jobComplete; | 4309 core.bool jobComplete; |
4303 /** | 4310 /** |
4304 * Reference to the Job that was created to run the query. This field will be | 4311 * Reference to the Job that was created to run the query. This field will be |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4371 schema = new TableSchema.fromJson(_json["schema"]); | 4378 schema = new TableSchema.fromJson(_json["schema"]); |
4372 } | 4379 } |
4373 if (_json.containsKey("totalBytesProcessed")) { | 4380 if (_json.containsKey("totalBytesProcessed")) { |
4374 totalBytesProcessed = _json["totalBytesProcessed"]; | 4381 totalBytesProcessed = _json["totalBytesProcessed"]; |
4375 } | 4382 } |
4376 if (_json.containsKey("totalRows")) { | 4383 if (_json.containsKey("totalRows")) { |
4377 totalRows = _json["totalRows"]; | 4384 totalRows = _json["totalRows"]; |
4378 } | 4385 } |
4379 } | 4386 } |
4380 | 4387 |
4381 core.Map toJson() { | 4388 core.Map<core.String, core.Object> toJson() { |
4382 var _json = new core.Map(); | 4389 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4383 if (cacheHit != null) { | 4390 if (cacheHit != null) { |
4384 _json["cacheHit"] = cacheHit; | 4391 _json["cacheHit"] = cacheHit; |
4385 } | 4392 } |
4386 if (errors != null) { | 4393 if (errors != null) { |
4387 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4394 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
4388 } | 4395 } |
4389 if (jobComplete != null) { | 4396 if (jobComplete != null) { |
4390 _json["jobComplete"] = jobComplete; | 4397 _json["jobComplete"] = jobComplete; |
4391 } | 4398 } |
4392 if (jobReference != null) { | 4399 if (jobReference != null) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4442 estimatedBytes = _json["estimatedBytes"]; | 4449 estimatedBytes = _json["estimatedBytes"]; |
4443 } | 4450 } |
4444 if (_json.containsKey("estimatedRows")) { | 4451 if (_json.containsKey("estimatedRows")) { |
4445 estimatedRows = _json["estimatedRows"]; | 4452 estimatedRows = _json["estimatedRows"]; |
4446 } | 4453 } |
4447 if (_json.containsKey("oldestEntryTime")) { | 4454 if (_json.containsKey("oldestEntryTime")) { |
4448 oldestEntryTime = _json["oldestEntryTime"]; | 4455 oldestEntryTime = _json["oldestEntryTime"]; |
4449 } | 4456 } |
4450 } | 4457 } |
4451 | 4458 |
4452 core.Map toJson() { | 4459 core.Map<core.String, core.Object> toJson() { |
4453 var _json = new core.Map(); | 4460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4454 if (estimatedBytes != null) { | 4461 if (estimatedBytes != null) { |
4455 _json["estimatedBytes"] = estimatedBytes; | 4462 _json["estimatedBytes"] = estimatedBytes; |
4456 } | 4463 } |
4457 if (estimatedRows != null) { | 4464 if (estimatedRows != null) { |
4458 _json["estimatedRows"] = estimatedRows; | 4465 _json["estimatedRows"] = estimatedRows; |
4459 } | 4466 } |
4460 if (oldestEntryTime != null) { | 4467 if (oldestEntryTime != null) { |
4461 _json["oldestEntryTime"] = oldestEntryTime; | 4468 _json["oldestEntryTime"] = oldestEntryTime; |
4462 } | 4469 } |
4463 return _json; | 4470 return _json; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4614 timePartitioning = new TimePartitioning.fromJson(_json["timePartitioning"]
); | 4621 timePartitioning = new TimePartitioning.fromJson(_json["timePartitioning"]
); |
4615 } | 4622 } |
4616 if (_json.containsKey("type")) { | 4623 if (_json.containsKey("type")) { |
4617 type = _json["type"]; | 4624 type = _json["type"]; |
4618 } | 4625 } |
4619 if (_json.containsKey("view")) { | 4626 if (_json.containsKey("view")) { |
4620 view = new ViewDefinition.fromJson(_json["view"]); | 4627 view = new ViewDefinition.fromJson(_json["view"]); |
4621 } | 4628 } |
4622 } | 4629 } |
4623 | 4630 |
4624 core.Map toJson() { | 4631 core.Map<core.String, core.Object> toJson() { |
4625 var _json = new core.Map(); | 4632 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4626 if (creationTime != null) { | 4633 if (creationTime != null) { |
4627 _json["creationTime"] = creationTime; | 4634 _json["creationTime"] = creationTime; |
4628 } | 4635 } |
4629 if (description != null) { | 4636 if (description != null) { |
4630 _json["description"] = description; | 4637 _json["description"] = description; |
4631 } | 4638 } |
4632 if (etag != null) { | 4639 if (etag != null) { |
4633 _json["etag"] = etag; | 4640 _json["etag"] = etag; |
4634 } | 4641 } |
4635 if (expirationTime != null) { | 4642 if (expirationTime != null) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4700 core.Object v; | 4707 core.Object v; |
4701 | 4708 |
4702 TableCell(); | 4709 TableCell(); |
4703 | 4710 |
4704 TableCell.fromJson(core.Map _json) { | 4711 TableCell.fromJson(core.Map _json) { |
4705 if (_json.containsKey("v")) { | 4712 if (_json.containsKey("v")) { |
4706 v = _json["v"]; | 4713 v = _json["v"]; |
4707 } | 4714 } |
4708 } | 4715 } |
4709 | 4716 |
4710 core.Map toJson() { | 4717 core.Map<core.String, core.Object> toJson() { |
4711 var _json = new core.Map(); | 4718 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4712 if (v != null) { | 4719 if (v != null) { |
4713 _json["v"] = v; | 4720 _json["v"] = v; |
4714 } | 4721 } |
4715 return _json; | 4722 return _json; |
4716 } | 4723 } |
4717 } | 4724 } |
4718 | 4725 |
4719 class TableDataInsertAllRequestRows { | 4726 class TableDataInsertAllRequestRows { |
4720 /** | 4727 /** |
4721 * [Optional] A unique ID for each row. BigQuery uses this property to detect | 4728 * [Optional] A unique ID for each row. BigQuery uses this property to detect |
(...skipping 10 matching lines...) Expand all Loading... |
4732 | 4739 |
4733 TableDataInsertAllRequestRows.fromJson(core.Map _json) { | 4740 TableDataInsertAllRequestRows.fromJson(core.Map _json) { |
4734 if (_json.containsKey("insertId")) { | 4741 if (_json.containsKey("insertId")) { |
4735 insertId = _json["insertId"]; | 4742 insertId = _json["insertId"]; |
4736 } | 4743 } |
4737 if (_json.containsKey("json")) { | 4744 if (_json.containsKey("json")) { |
4738 json = new JsonObject.fromJson(_json["json"]); | 4745 json = new JsonObject.fromJson(_json["json"]); |
4739 } | 4746 } |
4740 } | 4747 } |
4741 | 4748 |
4742 core.Map toJson() { | 4749 core.Map<core.String, core.Object> toJson() { |
4743 var _json = new core.Map(); | 4750 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4744 if (insertId != null) { | 4751 if (insertId != null) { |
4745 _json["insertId"] = insertId; | 4752 _json["insertId"] = insertId; |
4746 } | 4753 } |
4747 if (json != null) { | 4754 if (json != null) { |
4748 _json["json"] = json; | 4755 _json["json"] = json; |
4749 } | 4756 } |
4750 return _json; | 4757 return _json; |
4751 } | 4758 } |
4752 } | 4759 } |
4753 | 4760 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4791 rows = _json["rows"].map((value) => new TableDataInsertAllRequestRows.from
Json(value)).toList(); | 4798 rows = _json["rows"].map((value) => new TableDataInsertAllRequestRows.from
Json(value)).toList(); |
4792 } | 4799 } |
4793 if (_json.containsKey("skipInvalidRows")) { | 4800 if (_json.containsKey("skipInvalidRows")) { |
4794 skipInvalidRows = _json["skipInvalidRows"]; | 4801 skipInvalidRows = _json["skipInvalidRows"]; |
4795 } | 4802 } |
4796 if (_json.containsKey("templateSuffix")) { | 4803 if (_json.containsKey("templateSuffix")) { |
4797 templateSuffix = _json["templateSuffix"]; | 4804 templateSuffix = _json["templateSuffix"]; |
4798 } | 4805 } |
4799 } | 4806 } |
4800 | 4807 |
4801 core.Map toJson() { | 4808 core.Map<core.String, core.Object> toJson() { |
4802 var _json = new core.Map(); | 4809 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4803 if (ignoreUnknownValues != null) { | 4810 if (ignoreUnknownValues != null) { |
4804 _json["ignoreUnknownValues"] = ignoreUnknownValues; | 4811 _json["ignoreUnknownValues"] = ignoreUnknownValues; |
4805 } | 4812 } |
4806 if (kind != null) { | 4813 if (kind != null) { |
4807 _json["kind"] = kind; | 4814 _json["kind"] = kind; |
4808 } | 4815 } |
4809 if (rows != null) { | 4816 if (rows != null) { |
4810 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 4817 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
4811 } | 4818 } |
4812 if (skipInvalidRows != null) { | 4819 if (skipInvalidRows != null) { |
(...skipping 16 matching lines...) Expand all Loading... |
4829 | 4836 |
4830 TableDataInsertAllResponseInsertErrors.fromJson(core.Map _json) { | 4837 TableDataInsertAllResponseInsertErrors.fromJson(core.Map _json) { |
4831 if (_json.containsKey("errors")) { | 4838 if (_json.containsKey("errors")) { |
4832 errors = _json["errors"].map((value) => new ErrorProto.fromJson(value)).to
List(); | 4839 errors = _json["errors"].map((value) => new ErrorProto.fromJson(value)).to
List(); |
4833 } | 4840 } |
4834 if (_json.containsKey("index")) { | 4841 if (_json.containsKey("index")) { |
4835 index = _json["index"]; | 4842 index = _json["index"]; |
4836 } | 4843 } |
4837 } | 4844 } |
4838 | 4845 |
4839 core.Map toJson() { | 4846 core.Map<core.String, core.Object> toJson() { |
4840 var _json = new core.Map(); | 4847 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4841 if (errors != null) { | 4848 if (errors != null) { |
4842 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4849 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
4843 } | 4850 } |
4844 if (index != null) { | 4851 if (index != null) { |
4845 _json["index"] = index; | 4852 _json["index"] = index; |
4846 } | 4853 } |
4847 return _json; | 4854 return _json; |
4848 } | 4855 } |
4849 } | 4856 } |
4850 | 4857 |
4851 class TableDataInsertAllResponse { | 4858 class TableDataInsertAllResponse { |
4852 /** An array of errors for rows that were not inserted. */ | 4859 /** An array of errors for rows that were not inserted. */ |
4853 core.List<TableDataInsertAllResponseInsertErrors> insertErrors; | 4860 core.List<TableDataInsertAllResponseInsertErrors> insertErrors; |
4854 /** The resource type of the response. */ | 4861 /** The resource type of the response. */ |
4855 core.String kind; | 4862 core.String kind; |
4856 | 4863 |
4857 TableDataInsertAllResponse(); | 4864 TableDataInsertAllResponse(); |
4858 | 4865 |
4859 TableDataInsertAllResponse.fromJson(core.Map _json) { | 4866 TableDataInsertAllResponse.fromJson(core.Map _json) { |
4860 if (_json.containsKey("insertErrors")) { | 4867 if (_json.containsKey("insertErrors")) { |
4861 insertErrors = _json["insertErrors"].map((value) => new TableDataInsertAll
ResponseInsertErrors.fromJson(value)).toList(); | 4868 insertErrors = _json["insertErrors"].map((value) => new TableDataInsertAll
ResponseInsertErrors.fromJson(value)).toList(); |
4862 } | 4869 } |
4863 if (_json.containsKey("kind")) { | 4870 if (_json.containsKey("kind")) { |
4864 kind = _json["kind"]; | 4871 kind = _json["kind"]; |
4865 } | 4872 } |
4866 } | 4873 } |
4867 | 4874 |
4868 core.Map toJson() { | 4875 core.Map<core.String, core.Object> toJson() { |
4869 var _json = new core.Map(); | 4876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4870 if (insertErrors != null) { | 4877 if (insertErrors != null) { |
4871 _json["insertErrors"] = insertErrors.map((value) => (value).toJson()).toLi
st(); | 4878 _json["insertErrors"] = insertErrors.map((value) => (value).toJson()).toLi
st(); |
4872 } | 4879 } |
4873 if (kind != null) { | 4880 if (kind != null) { |
4874 _json["kind"] = kind; | 4881 _json["kind"] = kind; |
4875 } | 4882 } |
4876 return _json; | 4883 return _json; |
4877 } | 4884 } |
4878 } | 4885 } |
4879 | 4886 |
(...skipping 26 matching lines...) Expand all Loading... |
4906 pageToken = _json["pageToken"]; | 4913 pageToken = _json["pageToken"]; |
4907 } | 4914 } |
4908 if (_json.containsKey("rows")) { | 4915 if (_json.containsKey("rows")) { |
4909 rows = _json["rows"].map((value) => new TableRow.fromJson(value)).toList()
; | 4916 rows = _json["rows"].map((value) => new TableRow.fromJson(value)).toList()
; |
4910 } | 4917 } |
4911 if (_json.containsKey("totalRows")) { | 4918 if (_json.containsKey("totalRows")) { |
4912 totalRows = _json["totalRows"]; | 4919 totalRows = _json["totalRows"]; |
4913 } | 4920 } |
4914 } | 4921 } |
4915 | 4922 |
4916 core.Map toJson() { | 4923 core.Map<core.String, core.Object> toJson() { |
4917 var _json = new core.Map(); | 4924 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4918 if (etag != null) { | 4925 if (etag != null) { |
4919 _json["etag"] = etag; | 4926 _json["etag"] = etag; |
4920 } | 4927 } |
4921 if (kind != null) { | 4928 if (kind != null) { |
4922 _json["kind"] = kind; | 4929 _json["kind"] = kind; |
4923 } | 4930 } |
4924 if (pageToken != null) { | 4931 if (pageToken != null) { |
4925 _json["pageToken"] = pageToken; | 4932 _json["pageToken"] = pageToken; |
4926 } | 4933 } |
4927 if (rows != null) { | 4934 if (rows != null) { |
4928 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 4935 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
4929 } | 4936 } |
4930 if (totalRows != null) { | 4937 if (totalRows != null) { |
4931 _json["totalRows"] = totalRows; | 4938 _json["totalRows"] = totalRows; |
4932 } | 4939 } |
4933 return _json; | 4940 return _json; |
4934 } | 4941 } |
4935 } | 4942 } |
4936 | 4943 |
4937 class TableFieldSchema { | 4944 class TableFieldSchema { |
4938 /** | 4945 /** |
4939 * [Optional] The field description. The maximum length is 512 characters. | 4946 * [Optional] The field description. The maximum length is 1,024 characters. |
4940 */ | 4947 */ |
4941 core.String description; | 4948 core.String description; |
4942 /** | 4949 /** |
4943 * [Optional] Describes the nested schema fields if the type property is set | 4950 * [Optional] Describes the nested schema fields if the type property is set |
4944 * to RECORD. | 4951 * to RECORD. |
4945 */ | 4952 */ |
4946 core.List<TableFieldSchema> fields; | 4953 core.List<TableFieldSchema> fields; |
4947 /** | 4954 /** |
4948 * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and | 4955 * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and |
4949 * REPEATED. The default value is NULLABLE. | 4956 * REPEATED. The default value is NULLABLE. |
(...skipping 27 matching lines...) Expand all Loading... |
4977 mode = _json["mode"]; | 4984 mode = _json["mode"]; |
4978 } | 4985 } |
4979 if (_json.containsKey("name")) { | 4986 if (_json.containsKey("name")) { |
4980 name = _json["name"]; | 4987 name = _json["name"]; |
4981 } | 4988 } |
4982 if (_json.containsKey("type")) { | 4989 if (_json.containsKey("type")) { |
4983 type = _json["type"]; | 4990 type = _json["type"]; |
4984 } | 4991 } |
4985 } | 4992 } |
4986 | 4993 |
4987 core.Map toJson() { | 4994 core.Map<core.String, core.Object> toJson() { |
4988 var _json = new core.Map(); | 4995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4989 if (description != null) { | 4996 if (description != null) { |
4990 _json["description"] = description; | 4997 _json["description"] = description; |
4991 } | 4998 } |
4992 if (fields != null) { | 4999 if (fields != null) { |
4993 _json["fields"] = fields.map((value) => (value).toJson()).toList(); | 5000 _json["fields"] = fields.map((value) => (value).toJson()).toList(); |
4994 } | 5001 } |
4995 if (mode != null) { | 5002 if (mode != null) { |
4996 _json["mode"] = mode; | 5003 _json["mode"] = mode; |
4997 } | 5004 } |
4998 if (name != null) { | 5005 if (name != null) { |
(...skipping 14 matching lines...) Expand all Loading... |
5013 core.bool useLegacySql; | 5020 core.bool useLegacySql; |
5014 | 5021 |
5015 TableListTablesView(); | 5022 TableListTablesView(); |
5016 | 5023 |
5017 TableListTablesView.fromJson(core.Map _json) { | 5024 TableListTablesView.fromJson(core.Map _json) { |
5018 if (_json.containsKey("useLegacySql")) { | 5025 if (_json.containsKey("useLegacySql")) { |
5019 useLegacySql = _json["useLegacySql"]; | 5026 useLegacySql = _json["useLegacySql"]; |
5020 } | 5027 } |
5021 } | 5028 } |
5022 | 5029 |
5023 core.Map toJson() { | 5030 core.Map<core.String, core.Object> toJson() { |
5024 var _json = new core.Map(); | 5031 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5025 if (useLegacySql != null) { | 5032 if (useLegacySql != null) { |
5026 _json["useLegacySql"] = useLegacySql; | 5033 _json["useLegacySql"] = useLegacySql; |
5027 } | 5034 } |
5028 return _json; | 5035 return _json; |
5029 } | 5036 } |
5030 } | 5037 } |
5031 | 5038 |
5032 class TableListTables { | 5039 class TableListTables { |
5033 /** The user-friendly name for this table. */ | 5040 /** The user-friendly name for this table. */ |
5034 core.String friendlyName; | 5041 core.String friendlyName; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5067 tableReference = new TableReference.fromJson(_json["tableReference"]); | 5074 tableReference = new TableReference.fromJson(_json["tableReference"]); |
5068 } | 5075 } |
5069 if (_json.containsKey("type")) { | 5076 if (_json.containsKey("type")) { |
5070 type = _json["type"]; | 5077 type = _json["type"]; |
5071 } | 5078 } |
5072 if (_json.containsKey("view")) { | 5079 if (_json.containsKey("view")) { |
5073 view = new TableListTablesView.fromJson(_json["view"]); | 5080 view = new TableListTablesView.fromJson(_json["view"]); |
5074 } | 5081 } |
5075 } | 5082 } |
5076 | 5083 |
5077 core.Map toJson() { | 5084 core.Map<core.String, core.Object> toJson() { |
5078 var _json = new core.Map(); | 5085 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5079 if (friendlyName != null) { | 5086 if (friendlyName != null) { |
5080 _json["friendlyName"] = friendlyName; | 5087 _json["friendlyName"] = friendlyName; |
5081 } | 5088 } |
5082 if (id != null) { | 5089 if (id != null) { |
5083 _json["id"] = id; | 5090 _json["id"] = id; |
5084 } | 5091 } |
5085 if (kind != null) { | 5092 if (kind != null) { |
5086 _json["kind"] = kind; | 5093 _json["kind"] = kind; |
5087 } | 5094 } |
5088 if (labels != null) { | 5095 if (labels != null) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5126 nextPageToken = _json["nextPageToken"]; | 5133 nextPageToken = _json["nextPageToken"]; |
5127 } | 5134 } |
5128 if (_json.containsKey("tables")) { | 5135 if (_json.containsKey("tables")) { |
5129 tables = _json["tables"].map((value) => new TableListTables.fromJson(value
)).toList(); | 5136 tables = _json["tables"].map((value) => new TableListTables.fromJson(value
)).toList(); |
5130 } | 5137 } |
5131 if (_json.containsKey("totalItems")) { | 5138 if (_json.containsKey("totalItems")) { |
5132 totalItems = _json["totalItems"]; | 5139 totalItems = _json["totalItems"]; |
5133 } | 5140 } |
5134 } | 5141 } |
5135 | 5142 |
5136 core.Map toJson() { | 5143 core.Map<core.String, core.Object> toJson() { |
5137 var _json = new core.Map(); | 5144 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5138 if (etag != null) { | 5145 if (etag != null) { |
5139 _json["etag"] = etag; | 5146 _json["etag"] = etag; |
5140 } | 5147 } |
5141 if (kind != null) { | 5148 if (kind != null) { |
5142 _json["kind"] = kind; | 5149 _json["kind"] = kind; |
5143 } | 5150 } |
5144 if (nextPageToken != null) { | 5151 if (nextPageToken != null) { |
5145 _json["nextPageToken"] = nextPageToken; | 5152 _json["nextPageToken"] = nextPageToken; |
5146 } | 5153 } |
5147 if (tables != null) { | 5154 if (tables != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
5173 datasetId = _json["datasetId"]; | 5180 datasetId = _json["datasetId"]; |
5174 } | 5181 } |
5175 if (_json.containsKey("projectId")) { | 5182 if (_json.containsKey("projectId")) { |
5176 projectId = _json["projectId"]; | 5183 projectId = _json["projectId"]; |
5177 } | 5184 } |
5178 if (_json.containsKey("tableId")) { | 5185 if (_json.containsKey("tableId")) { |
5179 tableId = _json["tableId"]; | 5186 tableId = _json["tableId"]; |
5180 } | 5187 } |
5181 } | 5188 } |
5182 | 5189 |
5183 core.Map toJson() { | 5190 core.Map<core.String, core.Object> toJson() { |
5184 var _json = new core.Map(); | 5191 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5185 if (datasetId != null) { | 5192 if (datasetId != null) { |
5186 _json["datasetId"] = datasetId; | 5193 _json["datasetId"] = datasetId; |
5187 } | 5194 } |
5188 if (projectId != null) { | 5195 if (projectId != null) { |
5189 _json["projectId"] = projectId; | 5196 _json["projectId"] = projectId; |
5190 } | 5197 } |
5191 if (tableId != null) { | 5198 if (tableId != null) { |
5192 _json["tableId"] = tableId; | 5199 _json["tableId"] = tableId; |
5193 } | 5200 } |
5194 return _json; | 5201 return _json; |
5195 } | 5202 } |
5196 } | 5203 } |
5197 | 5204 |
5198 class TableRow { | 5205 class TableRow { |
5199 /** | 5206 /** |
5200 * Represents a single row in the result set, consisting of one or more | 5207 * Represents a single row in the result set, consisting of one or more |
5201 * fields. | 5208 * fields. |
5202 */ | 5209 */ |
5203 core.List<TableCell> f; | 5210 core.List<TableCell> f; |
5204 | 5211 |
5205 TableRow(); | 5212 TableRow(); |
5206 | 5213 |
5207 TableRow.fromJson(core.Map _json) { | 5214 TableRow.fromJson(core.Map _json) { |
5208 if (_json.containsKey("f")) { | 5215 if (_json.containsKey("f")) { |
5209 f = _json["f"].map((value) => new TableCell.fromJson(value)).toList(); | 5216 f = _json["f"].map((value) => new TableCell.fromJson(value)).toList(); |
5210 } | 5217 } |
5211 } | 5218 } |
5212 | 5219 |
5213 core.Map toJson() { | 5220 core.Map<core.String, core.Object> toJson() { |
5214 var _json = new core.Map(); | 5221 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5215 if (f != null) { | 5222 if (f != null) { |
5216 _json["f"] = f.map((value) => (value).toJson()).toList(); | 5223 _json["f"] = f.map((value) => (value).toJson()).toList(); |
5217 } | 5224 } |
5218 return _json; | 5225 return _json; |
5219 } | 5226 } |
5220 } | 5227 } |
5221 | 5228 |
5222 class TableSchema { | 5229 class TableSchema { |
5223 /** Describes the fields in a table. */ | 5230 /** Describes the fields in a table. */ |
5224 core.List<TableFieldSchema> fields; | 5231 core.List<TableFieldSchema> fields; |
5225 | 5232 |
5226 TableSchema(); | 5233 TableSchema(); |
5227 | 5234 |
5228 TableSchema.fromJson(core.Map _json) { | 5235 TableSchema.fromJson(core.Map _json) { |
5229 if (_json.containsKey("fields")) { | 5236 if (_json.containsKey("fields")) { |
5230 fields = _json["fields"].map((value) => new TableFieldSchema.fromJson(valu
e)).toList(); | 5237 fields = _json["fields"].map((value) => new TableFieldSchema.fromJson(valu
e)).toList(); |
5231 } | 5238 } |
5232 } | 5239 } |
5233 | 5240 |
5234 core.Map toJson() { | 5241 core.Map<core.String, core.Object> toJson() { |
5235 var _json = new core.Map(); | 5242 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5236 if (fields != null) { | 5243 if (fields != null) { |
5237 _json["fields"] = fields.map((value) => (value).toJson()).toList(); | 5244 _json["fields"] = fields.map((value) => (value).toJson()).toList(); |
5238 } | 5245 } |
5239 return _json; | 5246 return _json; |
5240 } | 5247 } |
5241 } | 5248 } |
5242 | 5249 |
5243 class TimePartitioning { | 5250 class TimePartitioning { |
5244 /** | 5251 /** |
5245 * [Optional] Number of milliseconds for which to keep the storage for a | 5252 * [Optional] Number of milliseconds for which to keep the storage for a |
(...skipping 10 matching lines...) Expand all Loading... |
5256 | 5263 |
5257 TimePartitioning.fromJson(core.Map _json) { | 5264 TimePartitioning.fromJson(core.Map _json) { |
5258 if (_json.containsKey("expirationMs")) { | 5265 if (_json.containsKey("expirationMs")) { |
5259 expirationMs = _json["expirationMs"]; | 5266 expirationMs = _json["expirationMs"]; |
5260 } | 5267 } |
5261 if (_json.containsKey("type")) { | 5268 if (_json.containsKey("type")) { |
5262 type = _json["type"]; | 5269 type = _json["type"]; |
5263 } | 5270 } |
5264 } | 5271 } |
5265 | 5272 |
5266 core.Map toJson() { | 5273 core.Map<core.String, core.Object> toJson() { |
5267 var _json = new core.Map(); | 5274 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5268 if (expirationMs != null) { | 5275 if (expirationMs != null) { |
5269 _json["expirationMs"] = expirationMs; | 5276 _json["expirationMs"] = expirationMs; |
5270 } | 5277 } |
5271 if (type != null) { | 5278 if (type != null) { |
5272 _json["type"] = type; | 5279 _json["type"] = type; |
5273 } | 5280 } |
5274 return _json; | 5281 return _json; |
5275 } | 5282 } |
5276 } | 5283 } |
5277 | 5284 |
(...skipping 14 matching lines...) Expand all Loading... |
5292 | 5299 |
5293 UserDefinedFunctionResource.fromJson(core.Map _json) { | 5300 UserDefinedFunctionResource.fromJson(core.Map _json) { |
5294 if (_json.containsKey("inlineCode")) { | 5301 if (_json.containsKey("inlineCode")) { |
5295 inlineCode = _json["inlineCode"]; | 5302 inlineCode = _json["inlineCode"]; |
5296 } | 5303 } |
5297 if (_json.containsKey("resourceUri")) { | 5304 if (_json.containsKey("resourceUri")) { |
5298 resourceUri = _json["resourceUri"]; | 5305 resourceUri = _json["resourceUri"]; |
5299 } | 5306 } |
5300 } | 5307 } |
5301 | 5308 |
5302 core.Map toJson() { | 5309 core.Map<core.String, core.Object> toJson() { |
5303 var _json = new core.Map(); | 5310 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5304 if (inlineCode != null) { | 5311 if (inlineCode != null) { |
5305 _json["inlineCode"] = inlineCode; | 5312 _json["inlineCode"] = inlineCode; |
5306 } | 5313 } |
5307 if (resourceUri != null) { | 5314 if (resourceUri != null) { |
5308 _json["resourceUri"] = resourceUri; | 5315 _json["resourceUri"] = resourceUri; |
5309 } | 5316 } |
5310 return _json; | 5317 return _json; |
5311 } | 5318 } |
5312 } | 5319 } |
5313 | 5320 |
(...skipping 17 matching lines...) Expand all Loading... |
5331 query = _json["query"]; | 5338 query = _json["query"]; |
5332 } | 5339 } |
5333 if (_json.containsKey("useLegacySql")) { | 5340 if (_json.containsKey("useLegacySql")) { |
5334 useLegacySql = _json["useLegacySql"]; | 5341 useLegacySql = _json["useLegacySql"]; |
5335 } | 5342 } |
5336 if (_json.containsKey("userDefinedFunctionResources")) { | 5343 if (_json.containsKey("userDefinedFunctionResources")) { |
5337 userDefinedFunctionResources = _json["userDefinedFunctionResources"].map((
value) => new UserDefinedFunctionResource.fromJson(value)).toList(); | 5344 userDefinedFunctionResources = _json["userDefinedFunctionResources"].map((
value) => new UserDefinedFunctionResource.fromJson(value)).toList(); |
5338 } | 5345 } |
5339 } | 5346 } |
5340 | 5347 |
5341 core.Map toJson() { | 5348 core.Map<core.String, core.Object> toJson() { |
5342 var _json = new core.Map(); | 5349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5343 if (query != null) { | 5350 if (query != null) { |
5344 _json["query"] = query; | 5351 _json["query"] = query; |
5345 } | 5352 } |
5346 if (useLegacySql != null) { | 5353 if (useLegacySql != null) { |
5347 _json["useLegacySql"] = useLegacySql; | 5354 _json["useLegacySql"] = useLegacySql; |
5348 } | 5355 } |
5349 if (userDefinedFunctionResources != null) { | 5356 if (userDefinedFunctionResources != null) { |
5350 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); | 5357 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); |
5351 } | 5358 } |
5352 return _json; | 5359 return _json; |
5353 } | 5360 } |
5354 } | 5361 } |
OLD | NEW |