Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: generated/googleapis_beta/lib/datastore/v1beta3.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_beta.datastore.v1beta3; 3 library googleapis_beta.datastore.v1beta3;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:crypto/crypto.dart' as crypto;
11 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
12 11
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
15 14
16 const core.String USER_AGENT = 'dart-api-client datastore/v1beta3'; 15 const core.String USER_AGENT = 'dart-api-client datastore/v1beta3';
17 16
18 /** 17 /**
19 * Accesses the schemaless NoSQL database to provide fully managed, robust, 18 * Accesses the schemaless NoSQL database to provide fully managed, robust,
20 * scalable storage for your application. 19 * scalable storage for your application.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 var _json = new core.Map(); 399 var _json = new core.Map();
401 return _json; 400 return _json;
402 } 401 }
403 } 402 }
404 403
405 /** The response for google.datastore.v1beta3.Datastore.BeginTransaction. */ 404 /** The response for google.datastore.v1beta3.Datastore.BeginTransaction. */
406 class BeginTransactionResponse { 405 class BeginTransactionResponse {
407 /** The transaction identifier (always present). */ 406 /** The transaction identifier (always present). */
408 core.String transaction; 407 core.String transaction;
409 core.List<core.int> get transactionAsBytes { 408 core.List<core.int> get transactionAsBytes {
410 return crypto.CryptoUtils.base64StringToBytes(transaction); 409 return convert.BASE64.decode(transaction);
411 } 410 }
412 411
413 void set transactionAsBytes(core.List<core.int> _bytes) { 412 void set transactionAsBytes(core.List<core.int> _bytes) {
414 transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 413 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
415 } 414 }
416 415
417 BeginTransactionResponse(); 416 BeginTransactionResponse();
418 417
419 BeginTransactionResponse.fromJson(core.Map _json) { 418 BeginTransactionResponse.fromJson(core.Map _json) {
420 if (_json.containsKey("transaction")) { 419 if (_json.containsKey("transaction")) {
421 transaction = _json["transaction"]; 420 transaction = _json["transaction"];
422 } 421 }
423 } 422 }
424 423
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 * entity. 460 * entity.
462 */ 461 */
463 core.List<Mutation> mutations; 462 core.List<Mutation> mutations;
464 /** 463 /**
465 * The identifier of the transaction associated with the commit. A 464 * The identifier of the transaction associated with the commit. A
466 * transaction identifier is returned by a call to 465 * transaction identifier is returned by a call to
467 * BeginTransaction. 466 * BeginTransaction.
468 */ 467 */
469 core.String transaction; 468 core.String transaction;
470 core.List<core.int> get transactionAsBytes { 469 core.List<core.int> get transactionAsBytes {
471 return crypto.CryptoUtils.base64StringToBytes(transaction); 470 return convert.BASE64.decode(transaction);
472 } 471 }
473 472
474 void set transactionAsBytes(core.List<core.int> _bytes) { 473 void set transactionAsBytes(core.List<core.int> _bytes) {
475 transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 474 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
476 } 475 }
477 476
478 CommitRequest(); 477 CommitRequest();
479 478
480 CommitRequest.fromJson(core.Map _json) { 479 CommitRequest.fromJson(core.Map _json) {
481 if (_json.containsKey("mode")) { 480 if (_json.containsKey("mode")) {
482 mode = _json["mode"]; 481 mode = _json["mode"];
483 } 482 }
484 if (_json.containsKey("mutations")) { 483 if (_json.containsKey("mutations")) {
485 mutations = _json["mutations"].map((value) => new Mutation.fromJson(value) ).toList(); 484 mutations = _json["mutations"].map((value) => new Mutation.fromJson(value) ).toList();
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 } 628 }
630 629
631 /** The result of fetching an entity from Datastore. */ 630 /** The result of fetching an entity from Datastore. */
632 class EntityResult { 631 class EntityResult {
633 /** 632 /**
634 * A cursor that points to the position after the result entity. 633 * A cursor that points to the position after the result entity.
635 * Set only when the `EntityResult` is part of a `QueryResultBatch` message. 634 * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
636 */ 635 */
637 core.String cursor; 636 core.String cursor;
638 core.List<core.int> get cursorAsBytes { 637 core.List<core.int> get cursorAsBytes {
639 return crypto.CryptoUtils.base64StringToBytes(cursor); 638 return convert.BASE64.decode(cursor);
640 } 639 }
641 640
642 void set cursorAsBytes(core.List<core.int> _bytes) { 641 void set cursorAsBytes(core.List<core.int> _bytes) {
643 cursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 642 cursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
644 } 643 }
645 /** The resulting entity. */ 644 /** The resulting entity. */
646 Entity entity; 645 Entity entity;
647 646
648 EntityResult(); 647 EntityResult();
649 648
650 EntityResult.fromJson(core.Map _json) { 649 EntityResult.fromJson(core.Map _json) {
651 if (_json.containsKey("cursor")) { 650 if (_json.containsKey("cursor")) {
652 cursor = _json["cursor"]; 651 cursor = _json["cursor"];
653 } 652 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 } 767 }
769 768
770 /** A binding parameter for a GQL query. */ 769 /** A binding parameter for a GQL query. */
771 class GqlQueryParameter { 770 class GqlQueryParameter {
772 /** 771 /**
773 * A query cursor. Query cursors are returned in query 772 * A query cursor. Query cursors are returned in query
774 * result batches. 773 * result batches.
775 */ 774 */
776 core.String cursor; 775 core.String cursor;
777 core.List<core.int> get cursorAsBytes { 776 core.List<core.int> get cursorAsBytes {
778 return crypto.CryptoUtils.base64StringToBytes(cursor); 777 return convert.BASE64.decode(cursor);
779 } 778 }
780 779
781 void set cursorAsBytes(core.List<core.int> _bytes) { 780 void set cursorAsBytes(core.List<core.int> _bytes) {
782 cursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 781 cursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
783 } 782 }
784 /** A value parameter. */ 783 /** A value parameter. */
785 Value value; 784 Value value;
786 785
787 GqlQueryParameter(); 786 GqlQueryParameter();
788 787
789 GqlQueryParameter.fromJson(core.Map _json) { 788 GqlQueryParameter.fromJson(core.Map _json) {
790 if (_json.containsKey("cursor")) { 789 if (_json.containsKey("cursor")) {
791 cursor = _json["cursor"]; 790 cursor = _json["cursor"];
792 } 791 }
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 */ 1365 */
1367 core.List<PropertyReference> distinctOn; 1366 core.List<PropertyReference> distinctOn;
1368 /** 1367 /**
1369 * An ending point for the query results. Query cursors are 1368 * An ending point for the query results. Query cursors are
1370 * returned in query result batches and 1369 * returned in query result batches and
1371 * [can only be used to limit the same 1370 * [can only be used to limit the same
1372 * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_lim its_and_offsets). 1371 * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_lim its_and_offsets).
1373 */ 1372 */
1374 core.String endCursor; 1373 core.String endCursor;
1375 core.List<core.int> get endCursorAsBytes { 1374 core.List<core.int> get endCursorAsBytes {
1376 return crypto.CryptoUtils.base64StringToBytes(endCursor); 1375 return convert.BASE64.decode(endCursor);
1377 } 1376 }
1378 1377
1379 void set endCursorAsBytes(core.List<core.int> _bytes) { 1378 void set endCursorAsBytes(core.List<core.int> _bytes) {
1380 endCursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1379 endCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+ ", "-");
1381 } 1380 }
1382 /** The filter to apply. */ 1381 /** The filter to apply. */
1383 Filter filter; 1382 Filter filter;
1384 /** 1383 /**
1385 * The kinds to query (if empty, returns entities of all kinds). 1384 * The kinds to query (if empty, returns entities of all kinds).
1386 * Currently at most 1 kind may be specified. 1385 * Currently at most 1 kind may be specified.
1387 */ 1386 */
1388 core.List<KindExpression> kind; 1387 core.List<KindExpression> kind;
1389 /** 1388 /**
1390 * The maximum number of results to return. Applies after all other 1389 * The maximum number of results to return. Applies after all other
(...skipping 14 matching lines...) Expand all
1405 /** The projection to return. Defaults to returning all properties. */ 1404 /** The projection to return. Defaults to returning all properties. */
1406 core.List<Projection> projection; 1405 core.List<Projection> projection;
1407 /** 1406 /**
1408 * A starting point for the query results. Query cursors are 1407 * A starting point for the query results. Query cursors are
1409 * returned in query result batches and 1408 * returned in query result batches and
1410 * [can only be used to continue the same 1409 * [can only be used to continue the same
1411 * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_lim its_and_offsets). 1410 * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_lim its_and_offsets).
1412 */ 1411 */
1413 core.String startCursor; 1412 core.String startCursor;
1414 core.List<core.int> get startCursorAsBytes { 1413 core.List<core.int> get startCursorAsBytes {
1415 return crypto.CryptoUtils.base64StringToBytes(startCursor); 1414 return convert.BASE64.decode(startCursor);
1416 } 1415 }
1417 1416
1418 void set startCursorAsBytes(core.List<core.int> _bytes) { 1417 void set startCursorAsBytes(core.List<core.int> _bytes) {
1419 startCursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1418 startCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
1420 } 1419 }
1421 1420
1422 Query(); 1421 Query();
1423 1422
1424 Query.fromJson(core.Map _json) { 1423 Query.fromJson(core.Map _json) {
1425 if (_json.containsKey("distinctOn")) { 1424 if (_json.containsKey("distinctOn")) {
1426 distinctOn = _json["distinctOn"].map((value) => new PropertyReference.from Json(value)).toList(); 1425 distinctOn = _json["distinctOn"].map((value) => new PropertyReference.from Json(value)).toList();
1427 } 1426 }
1428 if (_json.containsKey("endCursor")) { 1427 if (_json.containsKey("endCursor")) {
1429 endCursor = _json["endCursor"]; 1428 endCursor = _json["endCursor"];
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 } 1483 }
1485 } 1484 }
1486 1485
1487 /** A batch of results produced by a query. */ 1486 /** A batch of results produced by a query. */
1488 class QueryResultBatch { 1487 class QueryResultBatch {
1489 /** 1488 /**
1490 * A cursor that points to the position after the last result in the batch. 1489 * A cursor that points to the position after the last result in the batch.
1491 */ 1490 */
1492 core.String endCursor; 1491 core.String endCursor;
1493 core.List<core.int> get endCursorAsBytes { 1492 core.List<core.int> get endCursorAsBytes {
1494 return crypto.CryptoUtils.base64StringToBytes(endCursor); 1493 return convert.BASE64.decode(endCursor);
1495 } 1494 }
1496 1495
1497 void set endCursorAsBytes(core.List<core.int> _bytes) { 1496 void set endCursorAsBytes(core.List<core.int> _bytes) {
1498 endCursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1497 endCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+ ", "-");
1499 } 1498 }
1500 /** 1499 /**
1501 * The result type for every entity in `entity_results`. 1500 * The result type for every entity in `entity_results`.
1502 * Possible string values are: 1501 * Possible string values are:
1503 * - "RESULT_TYPE_UNSPECIFIED" : Unspecified. This value is never used. 1502 * - "RESULT_TYPE_UNSPECIFIED" : Unspecified. This value is never used.
1504 * - "FULL" : The key and properties. 1503 * - "FULL" : The key and properties.
1505 * - "PROJECTION" : A projected subset of properties. The entity may have no 1504 * - "PROJECTION" : A projected subset of properties. The entity may have no
1506 * key. 1505 * key.
1507 * - "KEY_ONLY" : Only the key. 1506 * - "KEY_ONLY" : Only the key.
1508 */ 1507 */
(...skipping 12 matching lines...) Expand all
1521 * more results after the end cursor. 1520 * more results after the end cursor.
1522 * - "NO_MORE_RESULTS" : The query has been exhausted. 1521 * - "NO_MORE_RESULTS" : The query has been exhausted.
1523 */ 1522 */
1524 core.String moreResults; 1523 core.String moreResults;
1525 /** 1524 /**
1526 * A cursor that points to the position after the last skipped result. 1525 * A cursor that points to the position after the last skipped result.
1527 * Will be set when `skipped_results` != 0. 1526 * Will be set when `skipped_results` != 0.
1528 */ 1527 */
1529 core.String skippedCursor; 1528 core.String skippedCursor;
1530 core.List<core.int> get skippedCursorAsBytes { 1529 core.List<core.int> get skippedCursorAsBytes {
1531 return crypto.CryptoUtils.base64StringToBytes(skippedCursor); 1530 return convert.BASE64.decode(skippedCursor);
1532 } 1531 }
1533 1532
1534 void set skippedCursorAsBytes(core.List<core.int> _bytes) { 1533 void set skippedCursorAsBytes(core.List<core.int> _bytes) {
1535 skippedCursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1534 skippedCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAl l("+", "-");
1536 } 1535 }
1537 /** The number of results skipped, typically because of an offset. */ 1536 /** The number of results skipped, typically because of an offset. */
1538 core.int skippedResults; 1537 core.int skippedResults;
1539 1538
1540 QueryResultBatch(); 1539 QueryResultBatch();
1541 1540
1542 QueryResultBatch.fromJson(core.Map _json) { 1541 QueryResultBatch.fromJson(core.Map _json) {
1543 if (_json.containsKey("endCursor")) { 1542 if (_json.containsKey("endCursor")) {
1544 endCursor = _json["endCursor"]; 1543 endCursor = _json["endCursor"];
1545 } 1544 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 * - "EVENTUAL" : Eventual consistency. 1595 * - "EVENTUAL" : Eventual consistency.
1597 */ 1596 */
1598 core.String readConsistency; 1597 core.String readConsistency;
1599 /** 1598 /**
1600 * The identifier of the transaction in which to read. A 1599 * The identifier of the transaction in which to read. A
1601 * transaction identifier is returned by a call to 1600 * transaction identifier is returned by a call to
1602 * BeginTransaction. 1601 * BeginTransaction.
1603 */ 1602 */
1604 core.String transaction; 1603 core.String transaction;
1605 core.List<core.int> get transactionAsBytes { 1604 core.List<core.int> get transactionAsBytes {
1606 return crypto.CryptoUtils.base64StringToBytes(transaction); 1605 return convert.BASE64.decode(transaction);
1607 } 1606 }
1608 1607
1609 void set transactionAsBytes(core.List<core.int> _bytes) { 1608 void set transactionAsBytes(core.List<core.int> _bytes) {
1610 transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1609 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
1611 } 1610 }
1612 1611
1613 ReadOptions(); 1612 ReadOptions();
1614 1613
1615 ReadOptions.fromJson(core.Map _json) { 1614 ReadOptions.fromJson(core.Map _json) {
1616 if (_json.containsKey("readConsistency")) { 1615 if (_json.containsKey("readConsistency")) {
1617 readConsistency = _json["readConsistency"]; 1616 readConsistency = _json["readConsistency"];
1618 } 1617 }
1619 if (_json.containsKey("transaction")) { 1618 if (_json.containsKey("transaction")) {
1620 transaction = _json["transaction"]; 1619 transaction = _json["transaction"];
(...skipping 13 matching lines...) Expand all
1634 } 1633 }
1635 1634
1636 /** The request for google.datastore.v1beta3.Datastore.Rollback. */ 1635 /** The request for google.datastore.v1beta3.Datastore.Rollback. */
1637 class RollbackRequest { 1636 class RollbackRequest {
1638 /** 1637 /**
1639 * The transaction identifier, returned by a call to 1638 * The transaction identifier, returned by a call to
1640 * google.datastore.v1beta3.Datastore.BeginTransaction. 1639 * google.datastore.v1beta3.Datastore.BeginTransaction.
1641 */ 1640 */
1642 core.String transaction; 1641 core.String transaction;
1643 core.List<core.int> get transactionAsBytes { 1642 core.List<core.int> get transactionAsBytes {
1644 return crypto.CryptoUtils.base64StringToBytes(transaction); 1643 return convert.BASE64.decode(transaction);
1645 } 1644 }
1646 1645
1647 void set transactionAsBytes(core.List<core.int> _bytes) { 1646 void set transactionAsBytes(core.List<core.int> _bytes) {
1648 transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1647 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
1649 } 1648 }
1650 1649
1651 RollbackRequest(); 1650 RollbackRequest();
1652 1651
1653 RollbackRequest.fromJson(core.Map _json) { 1652 RollbackRequest.fromJson(core.Map _json) {
1654 if (_json.containsKey("transaction")) { 1653 if (_json.containsKey("transaction")) {
1655 transaction = _json["transaction"]; 1654 transaction = _json["transaction"];
1656 } 1655 }
1657 } 1656 }
1658 1657
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 */ 1775 */
1777 ArrayValue arrayValue; 1776 ArrayValue arrayValue;
1778 /** 1777 /**
1779 * A blob value. 1778 * A blob value.
1780 * May have at most 1,000,000 bytes. 1779 * May have at most 1,000,000 bytes.
1781 * When `exclude_from_indexes` is false, may have at most 1500 bytes. 1780 * When `exclude_from_indexes` is false, may have at most 1500 bytes.
1782 * In JSON requests, must be base64-encoded. 1781 * In JSON requests, must be base64-encoded.
1783 */ 1782 */
1784 core.String blobValue; 1783 core.String blobValue;
1785 core.List<core.int> get blobValueAsBytes { 1784 core.List<core.int> get blobValueAsBytes {
1786 return crypto.CryptoUtils.base64StringToBytes(blobValue); 1785 return convert.BASE64.decode(blobValue);
1787 } 1786 }
1788 1787
1789 void set blobValueAsBytes(core.List<core.int> _bytes) { 1788 void set blobValueAsBytes(core.List<core.int> _bytes) {
1790 blobValue = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1789 blobValue = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+ ", "-");
1791 } 1790 }
1792 /** A boolean value. */ 1791 /** A boolean value. */
1793 core.bool booleanValue; 1792 core.bool booleanValue;
1794 /** A double value. */ 1793 /** A double value. */
1795 core.double doubleValue; 1794 core.double doubleValue;
1796 /** 1795 /**
1797 * An entity value. 1796 * An entity value.
1798 * 1797 *
1799 * - May have no key. 1798 * - May have no key.
1800 * - May have a key with an incomplete key path. 1799 * - May have a key with an incomplete key path.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1917 } 1916 }
1918 if (stringValue != null) { 1917 if (stringValue != null) {
1919 _json["stringValue"] = stringValue; 1918 _json["stringValue"] = stringValue;
1920 } 1919 }
1921 if (timestampValue != null) { 1920 if (timestampValue != null) {
1922 _json["timestampValue"] = timestampValue; 1921 _json["timestampValue"] = timestampValue;
1923 } 1922 }
1924 return _json; 1923 return _json;
1925 } 1924 }
1926 } 1925 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/datastore/v1beta2.dart ('k') | generated/googleapis_beta/lib/dns/v2beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698