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

Side by Side Diff: generated/googleapis/lib/datastore/v1.dart

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 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.datastore.v1;
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:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client datastore/v1beta3'; 15 const core.String USER_AGENT = 'dart-api-client datastore/v1';
16 16
17 /** 17 /**
18 * Accesses the schemaless NoSQL database to provide fully managed, robust, 18 * Accesses the schemaless NoSQL database to provide fully managed, robust,
19 * scalable storage for your application. 19 * scalable storage for your application.
20 */ 20 */
21 class DatastoreApi { 21 class DatastoreApi {
22 /** View and manage your data across Google Cloud Platform services */ 22 /** View and manage your data across Google Cloud Platform services */
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
24 24
25 /** View and manage your Google Cloud Datastore data */ 25 /** View and manage your Google Cloud Datastore data */
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 var _downloadOptions = commons.DownloadOptions.Metadata; 67 var _downloadOptions = commons.DownloadOptions.Metadata;
68 var _body = null; 68 var _body = null;
69 69
70 if (request != null) { 70 if (request != null) {
71 _body = convert.JSON.encode((request).toJson()); 71 _body = convert.JSON.encode((request).toJson());
72 } 72 }
73 if (projectId == null) { 73 if (projectId == null) {
74 throw new core.ArgumentError("Parameter projectId is required."); 74 throw new core.ArgumentError("Parameter projectId is required.");
75 } 75 }
76 76
77 _url = 'v1beta3/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :allocateIds'; 77 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':allo cateIds';
78 78
79 var _response = _requester.request(_url, 79 var _response = _requester.request(_url,
80 "POST", 80 "POST",
81 body: _body, 81 body: _body,
82 queryParams: _queryParams, 82 queryParams: _queryParams,
83 uploadOptions: _uploadOptions, 83 uploadOptions: _uploadOptions,
84 uploadMedia: _uploadMedia, 84 uploadMedia: _uploadMedia,
85 downloadOptions: _downloadOptions); 85 downloadOptions: _downloadOptions);
86 return _response.then((data) => new AllocateIdsResponse.fromJson(data)); 86 return _response.then((data) => new AllocateIdsResponse.fromJson(data));
87 } 87 }
(...skipping 23 matching lines...) Expand all
111 var _downloadOptions = commons.DownloadOptions.Metadata; 111 var _downloadOptions = commons.DownloadOptions.Metadata;
112 var _body = null; 112 var _body = null;
113 113
114 if (request != null) { 114 if (request != null) {
115 _body = convert.JSON.encode((request).toJson()); 115 _body = convert.JSON.encode((request).toJson());
116 } 116 }
117 if (projectId == null) { 117 if (projectId == null) {
118 throw new core.ArgumentError("Parameter projectId is required."); 118 throw new core.ArgumentError("Parameter projectId is required.");
119 } 119 }
120 120
121 _url = 'v1beta3/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :beginTransaction'; 121 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':begi nTransaction';
122 122
123 var _response = _requester.request(_url, 123 var _response = _requester.request(_url,
124 "POST", 124 "POST",
125 body: _body, 125 body: _body,
126 queryParams: _queryParams, 126 queryParams: _queryParams,
127 uploadOptions: _uploadOptions, 127 uploadOptions: _uploadOptions,
128 uploadMedia: _uploadMedia, 128 uploadMedia: _uploadMedia,
129 downloadOptions: _downloadOptions); 129 downloadOptions: _downloadOptions);
130 return _response.then((data) => new BeginTransactionResponse.fromJson(data)) ; 130 return _response.then((data) => new BeginTransactionResponse.fromJson(data)) ;
131 } 131 }
(...skipping 24 matching lines...) Expand all
156 var _downloadOptions = commons.DownloadOptions.Metadata; 156 var _downloadOptions = commons.DownloadOptions.Metadata;
157 var _body = null; 157 var _body = null;
158 158
159 if (request != null) { 159 if (request != null) {
160 _body = convert.JSON.encode((request).toJson()); 160 _body = convert.JSON.encode((request).toJson());
161 } 161 }
162 if (projectId == null) { 162 if (projectId == null) {
163 throw new core.ArgumentError("Parameter projectId is required."); 163 throw new core.ArgumentError("Parameter projectId is required.");
164 } 164 }
165 165
166 _url = 'v1beta3/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :commit'; 166 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':comm it';
167 167
168 var _response = _requester.request(_url, 168 var _response = _requester.request(_url,
169 "POST", 169 "POST",
170 body: _body, 170 body: _body,
171 queryParams: _queryParams, 171 queryParams: _queryParams,
172 uploadOptions: _uploadOptions, 172 uploadOptions: _uploadOptions,
173 uploadMedia: _uploadMedia, 173 uploadMedia: _uploadMedia,
174 downloadOptions: _downloadOptions); 174 downloadOptions: _downloadOptions);
175 return _response.then((data) => new CommitResponse.fromJson(data)); 175 return _response.then((data) => new CommitResponse.fromJson(data));
176 } 176 }
(...skipping 23 matching lines...) Expand all
200 var _downloadOptions = commons.DownloadOptions.Metadata; 200 var _downloadOptions = commons.DownloadOptions.Metadata;
201 var _body = null; 201 var _body = null;
202 202
203 if (request != null) { 203 if (request != null) {
204 _body = convert.JSON.encode((request).toJson()); 204 _body = convert.JSON.encode((request).toJson());
205 } 205 }
206 if (projectId == null) { 206 if (projectId == null) {
207 throw new core.ArgumentError("Parameter projectId is required."); 207 throw new core.ArgumentError("Parameter projectId is required.");
208 } 208 }
209 209
210 _url = 'v1beta3/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :lookup'; 210 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':look up';
211 211
212 var _response = _requester.request(_url, 212 var _response = _requester.request(_url,
213 "POST", 213 "POST",
214 body: _body, 214 body: _body,
215 queryParams: _queryParams, 215 queryParams: _queryParams,
216 uploadOptions: _uploadOptions, 216 uploadOptions: _uploadOptions,
217 uploadMedia: _uploadMedia, 217 uploadMedia: _uploadMedia,
218 downloadOptions: _downloadOptions); 218 downloadOptions: _downloadOptions);
219 return _response.then((data) => new LookupResponse.fromJson(data)); 219 return _response.then((data) => new LookupResponse.fromJson(data));
220 } 220 }
(...skipping 23 matching lines...) Expand all
244 var _downloadOptions = commons.DownloadOptions.Metadata; 244 var _downloadOptions = commons.DownloadOptions.Metadata;
245 var _body = null; 245 var _body = null;
246 246
247 if (request != null) { 247 if (request != null) {
248 _body = convert.JSON.encode((request).toJson()); 248 _body = convert.JSON.encode((request).toJson());
249 } 249 }
250 if (projectId == null) { 250 if (projectId == null) {
251 throw new core.ArgumentError("Parameter projectId is required."); 251 throw new core.ArgumentError("Parameter projectId is required.");
252 } 252 }
253 253
254 _url = 'v1beta3/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :rollback'; 254 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':roll back';
255 255
256 var _response = _requester.request(_url, 256 var _response = _requester.request(_url,
257 "POST", 257 "POST",
258 body: _body, 258 body: _body,
259 queryParams: _queryParams, 259 queryParams: _queryParams,
260 uploadOptions: _uploadOptions, 260 uploadOptions: _uploadOptions,
261 uploadMedia: _uploadMedia, 261 uploadMedia: _uploadMedia,
262 downloadOptions: _downloadOptions); 262 downloadOptions: _downloadOptions);
263 return _response.then((data) => new RollbackResponse.fromJson(data)); 263 return _response.then((data) => new RollbackResponse.fromJson(data));
264 } 264 }
(...skipping 23 matching lines...) Expand all
288 var _downloadOptions = commons.DownloadOptions.Metadata; 288 var _downloadOptions = commons.DownloadOptions.Metadata;
289 var _body = null; 289 var _body = null;
290 290
291 if (request != null) { 291 if (request != null) {
292 _body = convert.JSON.encode((request).toJson()); 292 _body = convert.JSON.encode((request).toJson());
293 } 293 }
294 if (projectId == null) { 294 if (projectId == null) {
295 throw new core.ArgumentError("Parameter projectId is required."); 295 throw new core.ArgumentError("Parameter projectId is required.");
296 } 296 }
297 297
298 _url = 'v1beta3/projects/' + commons.Escaper.ecapeVariable('$projectId') + ' :runQuery'; 298 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':runQ uery';
299 299
300 var _response = _requester.request(_url, 300 var _response = _requester.request(_url,
301 "POST", 301 "POST",
302 body: _body, 302 body: _body,
303 queryParams: _queryParams, 303 queryParams: _queryParams,
304 uploadOptions: _uploadOptions, 304 uploadOptions: _uploadOptions,
305 uploadMedia: _uploadMedia, 305 uploadMedia: _uploadMedia,
306 downloadOptions: _downloadOptions); 306 downloadOptions: _downloadOptions);
307 return _response.then((data) => new RunQueryResponse.fromJson(data)); 307 return _response.then((data) => new RunQueryResponse.fromJson(data));
308 } 308 }
309 309
310 } 310 }
311 311
312 312
313 313
314 /** The request for google.datastore.v1beta3.Datastore.AllocateIds. */ 314 /** The request for Datastore.AllocateIds. */
315 class AllocateIdsRequest { 315 class AllocateIdsRequest {
316 /** 316 /**
317 * A list of keys with incomplete key paths for which to allocate IDs. 317 * A list of keys with incomplete key paths for which to allocate IDs.
318 * No key may be reserved/read-only. 318 * No key may be reserved/read-only.
319 */ 319 */
320 core.List<Key> keys; 320 core.List<Key> keys;
321 321
322 AllocateIdsRequest(); 322 AllocateIdsRequest();
323 323
324 AllocateIdsRequest.fromJson(core.Map _json) { 324 AllocateIdsRequest.fromJson(core.Map _json) {
325 if (_json.containsKey("keys")) { 325 if (_json.containsKey("keys")) {
326 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList(); 326 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList();
327 } 327 }
328 } 328 }
329 329
330 core.Map toJson() { 330 core.Map toJson() {
331 var _json = new core.Map(); 331 var _json = new core.Map();
332 if (keys != null) { 332 if (keys != null) {
333 _json["keys"] = keys.map((value) => (value).toJson()).toList(); 333 _json["keys"] = keys.map((value) => (value).toJson()).toList();
334 } 334 }
335 return _json; 335 return _json;
336 } 336 }
337 } 337 }
338 338
339 /** The response for google.datastore.v1beta3.Datastore.AllocateIds. */ 339 /** The response for Datastore.AllocateIds. */
340 class AllocateIdsResponse { 340 class AllocateIdsResponse {
341 /** 341 /**
342 * The keys specified in the request (in the same order), each with 342 * The keys specified in the request (in the same order), each with
343 * its key path completed with a newly allocated ID. 343 * its key path completed with a newly allocated ID.
344 */ 344 */
345 core.List<Key> keys; 345 core.List<Key> keys;
346 346
347 AllocateIdsResponse(); 347 AllocateIdsResponse();
348 348
349 AllocateIdsResponse.fromJson(core.Map _json) { 349 AllocateIdsResponse.fromJson(core.Map _json) {
(...skipping 30 matching lines...) Expand all
380 380
381 core.Map toJson() { 381 core.Map toJson() {
382 var _json = new core.Map(); 382 var _json = new core.Map();
383 if (values != null) { 383 if (values != null) {
384 _json["values"] = values.map((value) => (value).toJson()).toList(); 384 _json["values"] = values.map((value) => (value).toJson()).toList();
385 } 385 }
386 return _json; 386 return _json;
387 } 387 }
388 } 388 }
389 389
390 /** The request for google.datastore.v1beta3.Datastore.BeginTransaction. */ 390 /** The request for Datastore.BeginTransaction. */
391 class BeginTransactionRequest { 391 class BeginTransactionRequest {
392 392
393 BeginTransactionRequest(); 393 BeginTransactionRequest();
394 394
395 BeginTransactionRequest.fromJson(core.Map _json) { 395 BeginTransactionRequest.fromJson(core.Map _json) {
396 } 396 }
397 397
398 core.Map toJson() { 398 core.Map toJson() {
399 var _json = new core.Map(); 399 var _json = new core.Map();
400 return _json; 400 return _json;
401 } 401 }
402 } 402 }
403 403
404 /** The response for google.datastore.v1beta3.Datastore.BeginTransaction. */ 404 /** The response for Datastore.BeginTransaction. */
405 class BeginTransactionResponse { 405 class BeginTransactionResponse {
406 /** The transaction identifier (always present). */ 406 /** The transaction identifier (always present). */
407 core.String transaction; 407 core.String transaction;
408 core.List<core.int> get transactionAsBytes { 408 core.List<core.int> get transactionAsBytes {
409 return convert.BASE64.decode(transaction); 409 return convert.BASE64.decode(transaction);
410 } 410 }
411 411
412 void set transactionAsBytes(core.List<core.int> _bytes) { 412 void set transactionAsBytes(core.List<core.int> _bytes) {
413 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 413 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
414 } 414 }
415 415
416 BeginTransactionResponse(); 416 BeginTransactionResponse();
417 417
418 BeginTransactionResponse.fromJson(core.Map _json) { 418 BeginTransactionResponse.fromJson(core.Map _json) {
419 if (_json.containsKey("transaction")) { 419 if (_json.containsKey("transaction")) {
420 transaction = _json["transaction"]; 420 transaction = _json["transaction"];
421 } 421 }
422 } 422 }
423 423
424 core.Map toJson() { 424 core.Map toJson() {
425 var _json = new core.Map(); 425 var _json = new core.Map();
426 if (transaction != null) { 426 if (transaction != null) {
427 _json["transaction"] = transaction; 427 _json["transaction"] = transaction;
428 } 428 }
429 return _json; 429 return _json;
430 } 430 }
431 } 431 }
432 432
433 /** The request for google.datastore.v1beta3.Datastore.Commit. */ 433 /** The request for Datastore.Commit. */
434 class CommitRequest { 434 class CommitRequest {
435 /** 435 /**
436 * The type of commit to perform. Defaults to `TRANSACTIONAL`. 436 * The type of commit to perform. Defaults to `TRANSACTIONAL`.
437 * Possible string values are: 437 * Possible string values are:
438 * - "MODE_UNSPECIFIED" : Unspecified. This value must not be used. 438 * - "MODE_UNSPECIFIED" : Unspecified. This value must not be used.
439 * - "TRANSACTIONAL" : Transactional: The mutations are either all applied, or 439 * - "TRANSACTIONAL" : Transactional: The mutations are either all applied, or
440 * none are applied. 440 * none are applied.
441 * Learn about transactions 441 * Learn about transactions
442 * [here](https://cloud.google.com/datastore/docs/concepts/transactions). 442 * [here](https://cloud.google.com/datastore/docs/concepts/transactions).
443 * - "NON_TRANSACTIONAL" : Non-transactional: The mutations may not apply as 443 * - "NON_TRANSACTIONAL" : Non-transactional: The mutations may not apply as
(...skipping 12 matching lines...) Expand all
456 * - `upsert` followed by `insert` 456 * - `upsert` followed by `insert`
457 * - `delete` followed by `update` 457 * - `delete` followed by `update`
458 * 458 *
459 * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single 459 * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
460 * entity. 460 * entity.
461 */ 461 */
462 core.List<Mutation> mutations; 462 core.List<Mutation> mutations;
463 /** 463 /**
464 * The identifier of the transaction associated with the commit. A 464 * The identifier of the transaction associated with the commit. A
465 * transaction identifier is returned by a call to 465 * transaction identifier is returned by a call to
466 * BeginTransaction. 466 * Datastore.BeginTransaction.
467 */ 467 */
468 core.String transaction; 468 core.String transaction;
469 core.List<core.int> get transactionAsBytes { 469 core.List<core.int> get transactionAsBytes {
470 return convert.BASE64.decode(transaction); 470 return convert.BASE64.decode(transaction);
471 } 471 }
472 472
473 void set transactionAsBytes(core.List<core.int> _bytes) { 473 void set transactionAsBytes(core.List<core.int> _bytes) {
474 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 474 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
475 } 475 }
476 476
(...skipping 19 matching lines...) Expand all
496 if (mutations != null) { 496 if (mutations != null) {
497 _json["mutations"] = mutations.map((value) => (value).toJson()).toList(); 497 _json["mutations"] = mutations.map((value) => (value).toJson()).toList();
498 } 498 }
499 if (transaction != null) { 499 if (transaction != null) {
500 _json["transaction"] = transaction; 500 _json["transaction"] = transaction;
501 } 501 }
502 return _json; 502 return _json;
503 } 503 }
504 } 504 }
505 505
506 /** The response for google.datastore.v1beta3.Datastore.Commit. */ 506 /** The response for Datastore.Commit. */
507 class CommitResponse { 507 class CommitResponse {
508 /** 508 /**
509 * The number of index entries updated during the commit, or zero if none were 509 * The number of index entries updated during the commit, or zero if none were
510 * updated. 510 * updated.
511 */ 511 */
512 core.int indexUpdates; 512 core.int indexUpdates;
513 /** 513 /**
514 * The result of performing the mutations. 514 * The result of performing the mutations.
515 * The i-th mutation result corresponds to the i-th mutation in the request. 515 * The i-th mutation result corresponds to the i-th mutation in the request.
516 */ 516 */
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 core.String cursor; 636 core.String cursor;
637 core.List<core.int> get cursorAsBytes { 637 core.List<core.int> get cursorAsBytes {
638 return convert.BASE64.decode(cursor); 638 return convert.BASE64.decode(cursor);
639 } 639 }
640 640
641 void set cursorAsBytes(core.List<core.int> _bytes) { 641 void set cursorAsBytes(core.List<core.int> _bytes) {
642 cursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); 642 cursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
643 } 643 }
644 /** The resulting entity. */ 644 /** The resulting entity. */
645 Entity entity; 645 Entity entity;
646 /**
647 * The version of the entity, a strictly positive number that monotonically
648 * increases with changes to the entity.
649 *
650 * This field is set for `FULL` entity
651 * results.
652 *
653 * For missing entities in `LookupResponse`, this
654 * is the version of the snapshot that was used to look up the entity, and it
655 * is always set except for eventually consistent reads.
656 */
657 core.String version;
646 658
647 EntityResult(); 659 EntityResult();
648 660
649 EntityResult.fromJson(core.Map _json) { 661 EntityResult.fromJson(core.Map _json) {
650 if (_json.containsKey("cursor")) { 662 if (_json.containsKey("cursor")) {
651 cursor = _json["cursor"]; 663 cursor = _json["cursor"];
652 } 664 }
653 if (_json.containsKey("entity")) { 665 if (_json.containsKey("entity")) {
654 entity = new Entity.fromJson(_json["entity"]); 666 entity = new Entity.fromJson(_json["entity"]);
655 } 667 }
668 if (_json.containsKey("version")) {
669 version = _json["version"];
670 }
656 } 671 }
657 672
658 core.Map toJson() { 673 core.Map toJson() {
659 var _json = new core.Map(); 674 var _json = new core.Map();
660 if (cursor != null) { 675 if (cursor != null) {
661 _json["cursor"] = cursor; 676 _json["cursor"] = cursor;
662 } 677 }
663 if (entity != null) { 678 if (entity != null) {
664 _json["entity"] = (entity).toJson(); 679 _json["entity"] = (entity).toJson();
665 } 680 }
681 if (version != null) {
682 _json["version"] = version;
683 }
666 return _json; 684 return _json;
667 } 685 }
668 } 686 }
669 687
670 /** A holder for any type of filter. */ 688 /** A holder for any type of filter. */
671 class Filter { 689 class Filter {
672 /** A composite filter. */ 690 /** A composite filter. */
673 CompositeFilter compositeFilter; 691 CompositeFilter compositeFilter;
674 /** A filter on a property. */ 692 /** A filter on a property. */
675 PropertyFilter propertyFilter; 693 PropertyFilter propertyFilter;
(...skipping 20 matching lines...) Expand all
696 return _json; 714 return _json;
697 } 715 }
698 } 716 }
699 717
700 /** 718 /**
701 * A [GQL 719 * A [GQL
702 * query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). 720 * query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
703 */ 721 */
704 class GqlQuery { 722 class GqlQuery {
705 /** 723 /**
706 * When false, the query string must not contain any literals and instead 724 * When false, the query string must not contain any literals and instead must
707 * must bind all values. For example, 725 * bind all values. For example,
708 * `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while 726 * `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
709 * `SELECT * FROM Kind WHERE a = @value` is. 727 * `SELECT * FROM Kind WHERE a = @value` is.
710 */ 728 */
711 core.bool allowLiterals; 729 core.bool allowLiterals;
712 /** 730 /**
713 * For each non-reserved named binding site in the query string, 731 * For each non-reserved named binding site in the query string, there must be
714 * there must be a named parameter with that name, 732 * a named parameter with that name, but not necessarily the inverse.
715 * but not necessarily the inverse. 733 *
716 * Key must match regex `A-Za-z_$*`, must not match regex 734 * Key must match regex `A-Za-z_$*`, must not match regex
717 * `__.*__`, and must not be `""`. 735 * `__.*__`, and must not be `""`.
718 */ 736 */
719 core.Map<core.String, GqlQueryParameter> namedBindings; 737 core.Map<core.String, GqlQueryParameter> namedBindings;
720 /** 738 /**
721 * Numbered binding site @1 references the first numbered parameter, 739 * Numbered binding site @1 references the first numbered parameter,
722 * effectively using 1-based indexing, rather than the usual 0. 740 * effectively using 1-based indexing, rather than the usual 0.
723 * For each binding site numbered i in `query_string`, 741 *
724 * there must be an i-th numbered parameter. 742 * For each binding site numbered i in `query_string`, there must be an i-th
725 * The inverse must also be true. 743 * numbered parameter. The inverse must also be true.
726 */ 744 */
727 core.List<GqlQueryParameter> positionalBindings; 745 core.List<GqlQueryParameter> positionalBindings;
728 /** 746 /**
729 * A string of the format described 747 * A string of the format described
730 * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). 748 * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
731 */ 749 */
732 core.String queryString; 750 core.String queryString;
733 751
734 GqlQuery(); 752 GqlQuery();
735 753
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 if (latitude != null) { 965 if (latitude != null) {
948 _json["latitude"] = latitude; 966 _json["latitude"] = latitude;
949 } 967 }
950 if (longitude != null) { 968 if (longitude != null) {
951 _json["longitude"] = longitude; 969 _json["longitude"] = longitude;
952 } 970 }
953 return _json; 971 return _json;
954 } 972 }
955 } 973 }
956 974
957 /** The request for google.datastore.v1beta3.Datastore.Lookup. */ 975 /** The request for Datastore.Lookup. */
958 class LookupRequest { 976 class LookupRequest {
959 /** Keys of entities to look up. */ 977 /** Keys of entities to look up. */
960 core.List<Key> keys; 978 core.List<Key> keys;
961 /** The options for this lookup request. */ 979 /** The options for this lookup request. */
962 ReadOptions readOptions; 980 ReadOptions readOptions;
963 981
964 LookupRequest(); 982 LookupRequest();
965 983
966 LookupRequest.fromJson(core.Map _json) { 984 LookupRequest.fromJson(core.Map _json) {
967 if (_json.containsKey("keys")) { 985 if (_json.containsKey("keys")) {
968 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList(); 986 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList();
969 } 987 }
970 if (_json.containsKey("readOptions")) { 988 if (_json.containsKey("readOptions")) {
971 readOptions = new ReadOptions.fromJson(_json["readOptions"]); 989 readOptions = new ReadOptions.fromJson(_json["readOptions"]);
972 } 990 }
973 } 991 }
974 992
975 core.Map toJson() { 993 core.Map toJson() {
976 var _json = new core.Map(); 994 var _json = new core.Map();
977 if (keys != null) { 995 if (keys != null) {
978 _json["keys"] = keys.map((value) => (value).toJson()).toList(); 996 _json["keys"] = keys.map((value) => (value).toJson()).toList();
979 } 997 }
980 if (readOptions != null) { 998 if (readOptions != null) {
981 _json["readOptions"] = (readOptions).toJson(); 999 _json["readOptions"] = (readOptions).toJson();
982 } 1000 }
983 return _json; 1001 return _json;
984 } 1002 }
985 } 1003 }
986 1004
987 /** The response for google.datastore.v1beta3.Datastore.Lookup. */ 1005 /** The response for Datastore.Lookup. */
988 class LookupResponse { 1006 class LookupResponse {
989 /** 1007 /**
990 * A list of keys that were not looked up due to resource constraints. The 1008 * A list of keys that were not looked up due to resource constraints. The
991 * order of results in this field is undefined and has no relation to the 1009 * order of results in this field is undefined and has no relation to the
992 * order of the keys in the input. 1010 * order of the keys in the input.
993 */ 1011 */
994 core.List<Key> deferred; 1012 core.List<Key> deferred;
995 /** 1013 /**
996 * Entities found as `ResultType.FULL` entities. The order of results in this 1014 * Entities found as `ResultType.FULL` entities. The order of results in this
997 * field is undefined and has no relation to the order of the keys in the 1015 * field is undefined and has no relation to the order of the keys in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 if (missing != null) { 1048 if (missing != null) {
1031 _json["missing"] = missing.map((value) => (value).toJson()).toList(); 1049 _json["missing"] = missing.map((value) => (value).toJson()).toList();
1032 } 1050 }
1033 return _json; 1051 return _json;
1034 } 1052 }
1035 } 1053 }
1036 1054
1037 /** A mutation to apply to an entity. */ 1055 /** A mutation to apply to an entity. */
1038 class Mutation { 1056 class Mutation {
1039 /** 1057 /**
1058 * The version of the entity that this mutation is being applied to. If this
1059 * does not match the current version on the server, the mutation conflicts.
1060 */
1061 core.String baseVersion;
1062 /**
1040 * The key of the entity to delete. The entity may or may not already exist. 1063 * The key of the entity to delete. The entity may or may not already exist.
1041 * Must have a complete key path and must not be reserved/read-only. 1064 * Must have a complete key path and must not be reserved/read-only.
1042 */ 1065 */
1043 Key delete; 1066 Key delete;
1044 /** 1067 /**
1045 * The entity to insert. The entity must not already exist. 1068 * The entity to insert. The entity must not already exist.
1046 * The entity key's final path element may be incomplete. 1069 * The entity key's final path element may be incomplete.
1047 */ 1070 */
1048 Entity insert; 1071 Entity insert;
1049 /** 1072 /**
1050 * The entity to update. The entity must already exist. 1073 * The entity to update. The entity must already exist.
1051 * Must have a complete key path. 1074 * Must have a complete key path.
1052 */ 1075 */
1053 Entity update; 1076 Entity update;
1054 /** 1077 /**
1055 * The entity to upsert. The entity may or may not already exist. 1078 * The entity to upsert. The entity may or may not already exist.
1056 * The entity key's final path element may be incomplete. 1079 * The entity key's final path element may be incomplete.
1057 */ 1080 */
1058 Entity upsert; 1081 Entity upsert;
1059 1082
1060 Mutation(); 1083 Mutation();
1061 1084
1062 Mutation.fromJson(core.Map _json) { 1085 Mutation.fromJson(core.Map _json) {
1086 if (_json.containsKey("baseVersion")) {
1087 baseVersion = _json["baseVersion"];
1088 }
1063 if (_json.containsKey("delete")) { 1089 if (_json.containsKey("delete")) {
1064 delete = new Key.fromJson(_json["delete"]); 1090 delete = new Key.fromJson(_json["delete"]);
1065 } 1091 }
1066 if (_json.containsKey("insert")) { 1092 if (_json.containsKey("insert")) {
1067 insert = new Entity.fromJson(_json["insert"]); 1093 insert = new Entity.fromJson(_json["insert"]);
1068 } 1094 }
1069 if (_json.containsKey("update")) { 1095 if (_json.containsKey("update")) {
1070 update = new Entity.fromJson(_json["update"]); 1096 update = new Entity.fromJson(_json["update"]);
1071 } 1097 }
1072 if (_json.containsKey("upsert")) { 1098 if (_json.containsKey("upsert")) {
1073 upsert = new Entity.fromJson(_json["upsert"]); 1099 upsert = new Entity.fromJson(_json["upsert"]);
1074 } 1100 }
1075 } 1101 }
1076 1102
1077 core.Map toJson() { 1103 core.Map toJson() {
1078 var _json = new core.Map(); 1104 var _json = new core.Map();
1105 if (baseVersion != null) {
1106 _json["baseVersion"] = baseVersion;
1107 }
1079 if (delete != null) { 1108 if (delete != null) {
1080 _json["delete"] = (delete).toJson(); 1109 _json["delete"] = (delete).toJson();
1081 } 1110 }
1082 if (insert != null) { 1111 if (insert != null) {
1083 _json["insert"] = (insert).toJson(); 1112 _json["insert"] = (insert).toJson();
1084 } 1113 }
1085 if (update != null) { 1114 if (update != null) {
1086 _json["update"] = (update).toJson(); 1115 _json["update"] = (update).toJson();
1087 } 1116 }
1088 if (upsert != null) { 1117 if (upsert != null) {
1089 _json["upsert"] = (upsert).toJson(); 1118 _json["upsert"] = (upsert).toJson();
1090 } 1119 }
1091 return _json; 1120 return _json;
1092 } 1121 }
1093 } 1122 }
1094 1123
1095 /** The result of applying a mutation. */ 1124 /** The result of applying a mutation. */
1096 class MutationResult { 1125 class MutationResult {
1097 /** 1126 /**
1127 * Whether a conflict was detected for this mutation. Always false when a
1128 * conflict detection strategy field is not set in the mutation.
1129 */
1130 core.bool conflictDetected;
1131 /**
1098 * The automatically allocated key. 1132 * The automatically allocated key.
1099 * Set only when the mutation allocated a key. 1133 * Set only when the mutation allocated a key.
1100 */ 1134 */
1101 Key key; 1135 Key key;
1136 /**
1137 * The version of the entity on the server after processing the mutation. If
1138 * the mutation doesn't change anything on the server, then the version will
1139 * be the version of the current entity or, if no entity is present, a version
1140 * that is strictly greater than the version of any previous entity and less
1141 * than the version of any possible future entity.
1142 */
1143 core.String version;
1102 1144
1103 MutationResult(); 1145 MutationResult();
1104 1146
1105 MutationResult.fromJson(core.Map _json) { 1147 MutationResult.fromJson(core.Map _json) {
1148 if (_json.containsKey("conflictDetected")) {
1149 conflictDetected = _json["conflictDetected"];
1150 }
1106 if (_json.containsKey("key")) { 1151 if (_json.containsKey("key")) {
1107 key = new Key.fromJson(_json["key"]); 1152 key = new Key.fromJson(_json["key"]);
1108 } 1153 }
1154 if (_json.containsKey("version")) {
1155 version = _json["version"];
1156 }
1109 } 1157 }
1110 1158
1111 core.Map toJson() { 1159 core.Map toJson() {
1112 var _json = new core.Map(); 1160 var _json = new core.Map();
1161 if (conflictDetected != null) {
1162 _json["conflictDetected"] = conflictDetected;
1163 }
1113 if (key != null) { 1164 if (key != null) {
1114 _json["key"] = (key).toJson(); 1165 _json["key"] = (key).toJson();
1115 } 1166 }
1167 if (version != null) {
1168 _json["version"] = version;
1169 }
1116 return _json; 1170 return _json;
1117 } 1171 }
1118 } 1172 }
1119 1173
1120 /** 1174 /**
1121 * A partition ID identifies a grouping of entities. The grouping is always 1175 * A partition ID identifies a grouping of entities. The grouping is always
1122 * by project and namespace, however the namespace ID may be empty. 1176 * by project and namespace, however the namespace ID may be empty.
1123 * 1177 *
1124 * A partition ID contains several dimensions: 1178 * A partition ID contains several dimensions:
1125 * project ID and namespace ID. 1179 * project ID and namespace ID.
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 core.List<EntityResult> entityResults; 1564 core.List<EntityResult> entityResults;
1511 /** 1565 /**
1512 * The state of the query after the current batch. 1566 * The state of the query after the current batch.
1513 * Possible string values are: 1567 * Possible string values are:
1514 * - "MORE_RESULTS_TYPE_UNSPECIFIED" : Unspecified. This value is never used. 1568 * - "MORE_RESULTS_TYPE_UNSPECIFIED" : Unspecified. This value is never used.
1515 * - "NOT_FINISHED" : There may be additional batches to fetch from this 1569 * - "NOT_FINISHED" : There may be additional batches to fetch from this
1516 * query. 1570 * query.
1517 * - "MORE_RESULTS_AFTER_LIMIT" : The query is finished, but there may be more 1571 * - "MORE_RESULTS_AFTER_LIMIT" : The query is finished, but there may be more
1518 * results after the limit. 1572 * results after the limit.
1519 * - "MORE_RESULTS_AFTER_CURSOR" : The query is finished, but there may be 1573 * - "MORE_RESULTS_AFTER_CURSOR" : The query is finished, but there may be
1520 * more results after the end cursor. 1574 * more results after the end
1575 * cursor.
1521 * - "NO_MORE_RESULTS" : The query has been exhausted. 1576 * - "NO_MORE_RESULTS" : The query has been exhausted.
1522 */ 1577 */
1523 core.String moreResults; 1578 core.String moreResults;
1524 /** 1579 /**
1525 * A cursor that points to the position after the last skipped result. 1580 * A cursor that points to the position after the last skipped result.
1526 * Will be set when `skipped_results` != 0. 1581 * Will be set when `skipped_results` != 0.
1527 */ 1582 */
1528 core.String skippedCursor; 1583 core.String skippedCursor;
1529 core.List<core.int> get skippedCursorAsBytes { 1584 core.List<core.int> get skippedCursorAsBytes {
1530 return convert.BASE64.decode(skippedCursor); 1585 return convert.BASE64.decode(skippedCursor);
1531 } 1586 }
1532 1587
1533 void set skippedCursorAsBytes(core.List<core.int> _bytes) { 1588 void set skippedCursorAsBytes(core.List<core.int> _bytes) {
1534 skippedCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAl l("+", "-"); 1589 skippedCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAl l("+", "-");
1535 } 1590 }
1536 /** The number of results skipped, typically because of an offset. */ 1591 /** The number of results skipped, typically because of an offset. */
1537 core.int skippedResults; 1592 core.int skippedResults;
1593 /**
1594 * The version number of the snapshot this batch was returned from.
1595 * This applies to the range of results from the query's `start_cursor` (or
1596 * the beginning of the query if no cursor was given) to this batch's
1597 * `end_cursor` (not the query's `end_cursor`).
1598 *
1599 * In a single transaction, subsequent query result batches for the same query
1600 * can have a greater snapshot version number. Each batch's snapshot version
1601 * is valid for all preceding batches.
1602 */
1603 core.String snapshotVersion;
1538 1604
1539 QueryResultBatch(); 1605 QueryResultBatch();
1540 1606
1541 QueryResultBatch.fromJson(core.Map _json) { 1607 QueryResultBatch.fromJson(core.Map _json) {
1542 if (_json.containsKey("endCursor")) { 1608 if (_json.containsKey("endCursor")) {
1543 endCursor = _json["endCursor"]; 1609 endCursor = _json["endCursor"];
1544 } 1610 }
1545 if (_json.containsKey("entityResultType")) { 1611 if (_json.containsKey("entityResultType")) {
1546 entityResultType = _json["entityResultType"]; 1612 entityResultType = _json["entityResultType"];
1547 } 1613 }
1548 if (_json.containsKey("entityResults")) { 1614 if (_json.containsKey("entityResults")) {
1549 entityResults = _json["entityResults"].map((value) => new EntityResult.fro mJson(value)).toList(); 1615 entityResults = _json["entityResults"].map((value) => new EntityResult.fro mJson(value)).toList();
1550 } 1616 }
1551 if (_json.containsKey("moreResults")) { 1617 if (_json.containsKey("moreResults")) {
1552 moreResults = _json["moreResults"]; 1618 moreResults = _json["moreResults"];
1553 } 1619 }
1554 if (_json.containsKey("skippedCursor")) { 1620 if (_json.containsKey("skippedCursor")) {
1555 skippedCursor = _json["skippedCursor"]; 1621 skippedCursor = _json["skippedCursor"];
1556 } 1622 }
1557 if (_json.containsKey("skippedResults")) { 1623 if (_json.containsKey("skippedResults")) {
1558 skippedResults = _json["skippedResults"]; 1624 skippedResults = _json["skippedResults"];
1559 } 1625 }
1626 if (_json.containsKey("snapshotVersion")) {
1627 snapshotVersion = _json["snapshotVersion"];
1628 }
1560 } 1629 }
1561 1630
1562 core.Map toJson() { 1631 core.Map toJson() {
1563 var _json = new core.Map(); 1632 var _json = new core.Map();
1564 if (endCursor != null) { 1633 if (endCursor != null) {
1565 _json["endCursor"] = endCursor; 1634 _json["endCursor"] = endCursor;
1566 } 1635 }
1567 if (entityResultType != null) { 1636 if (entityResultType != null) {
1568 _json["entityResultType"] = entityResultType; 1637 _json["entityResultType"] = entityResultType;
1569 } 1638 }
1570 if (entityResults != null) { 1639 if (entityResults != null) {
1571 _json["entityResults"] = entityResults.map((value) => (value).toJson()).to List(); 1640 _json["entityResults"] = entityResults.map((value) => (value).toJson()).to List();
1572 } 1641 }
1573 if (moreResults != null) { 1642 if (moreResults != null) {
1574 _json["moreResults"] = moreResults; 1643 _json["moreResults"] = moreResults;
1575 } 1644 }
1576 if (skippedCursor != null) { 1645 if (skippedCursor != null) {
1577 _json["skippedCursor"] = skippedCursor; 1646 _json["skippedCursor"] = skippedCursor;
1578 } 1647 }
1579 if (skippedResults != null) { 1648 if (skippedResults != null) {
1580 _json["skippedResults"] = skippedResults; 1649 _json["skippedResults"] = skippedResults;
1581 } 1650 }
1651 if (snapshotVersion != null) {
1652 _json["snapshotVersion"] = snapshotVersion;
1653 }
1582 return _json; 1654 return _json;
1583 } 1655 }
1584 } 1656 }
1585 1657
1586 /** The options shared by read requests. */ 1658 /** The options shared by read requests. */
1587 class ReadOptions { 1659 class ReadOptions {
1588 /** 1660 /**
1589 * The non-transactional read consistency to use. 1661 * The non-transactional read consistency to use.
1590 * Cannot be set to `STRONG` for global queries. 1662 * Cannot be set to `STRONG` for global queries.
1591 * Possible string values are: 1663 * Possible string values are:
1592 * - "READ_CONSISTENCY_UNSPECIFIED" : Unspecified. This value must not be 1664 * - "READ_CONSISTENCY_UNSPECIFIED" : Unspecified. This value must not be
1593 * used. 1665 * used.
1594 * - "STRONG" : Strong consistency. 1666 * - "STRONG" : Strong consistency.
1595 * - "EVENTUAL" : Eventual consistency. 1667 * - "EVENTUAL" : Eventual consistency.
1596 */ 1668 */
1597 core.String readConsistency; 1669 core.String readConsistency;
1598 /** 1670 /**
1599 * The identifier of the transaction in which to read. A 1671 * The identifier of the transaction in which to read. A
1600 * transaction identifier is returned by a call to 1672 * transaction identifier is returned by a call to
1601 * BeginTransaction. 1673 * Datastore.BeginTransaction.
1602 */ 1674 */
1603 core.String transaction; 1675 core.String transaction;
1604 core.List<core.int> get transactionAsBytes { 1676 core.List<core.int> get transactionAsBytes {
1605 return convert.BASE64.decode(transaction); 1677 return convert.BASE64.decode(transaction);
1606 } 1678 }
1607 1679
1608 void set transactionAsBytes(core.List<core.int> _bytes) { 1680 void set transactionAsBytes(core.List<core.int> _bytes) {
1609 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 1681 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
1610 } 1682 }
1611 1683
(...skipping 13 matching lines...) Expand all
1625 if (readConsistency != null) { 1697 if (readConsistency != null) {
1626 _json["readConsistency"] = readConsistency; 1698 _json["readConsistency"] = readConsistency;
1627 } 1699 }
1628 if (transaction != null) { 1700 if (transaction != null) {
1629 _json["transaction"] = transaction; 1701 _json["transaction"] = transaction;
1630 } 1702 }
1631 return _json; 1703 return _json;
1632 } 1704 }
1633 } 1705 }
1634 1706
1635 /** The request for google.datastore.v1beta3.Datastore.Rollback. */ 1707 /** The request for Datastore.Rollback. */
1636 class RollbackRequest { 1708 class RollbackRequest {
1637 /** 1709 /**
1638 * The transaction identifier, returned by a call to 1710 * The transaction identifier, returned by a call to
1639 * google.datastore.v1beta3.Datastore.BeginTransaction. 1711 * Datastore.BeginTransaction.
1640 */ 1712 */
1641 core.String transaction; 1713 core.String transaction;
1642 core.List<core.int> get transactionAsBytes { 1714 core.List<core.int> get transactionAsBytes {
1643 return convert.BASE64.decode(transaction); 1715 return convert.BASE64.decode(transaction);
1644 } 1716 }
1645 1717
1646 void set transactionAsBytes(core.List<core.int> _bytes) { 1718 void set transactionAsBytes(core.List<core.int> _bytes) {
1647 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 1719 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
1648 } 1720 }
1649 1721
1650 RollbackRequest(); 1722 RollbackRequest();
1651 1723
1652 RollbackRequest.fromJson(core.Map _json) { 1724 RollbackRequest.fromJson(core.Map _json) {
1653 if (_json.containsKey("transaction")) { 1725 if (_json.containsKey("transaction")) {
1654 transaction = _json["transaction"]; 1726 transaction = _json["transaction"];
1655 } 1727 }
1656 } 1728 }
1657 1729
1658 core.Map toJson() { 1730 core.Map toJson() {
1659 var _json = new core.Map(); 1731 var _json = new core.Map();
1660 if (transaction != null) { 1732 if (transaction != null) {
1661 _json["transaction"] = transaction; 1733 _json["transaction"] = transaction;
1662 } 1734 }
1663 return _json; 1735 return _json;
1664 } 1736 }
1665 } 1737 }
1666 1738
1667 /** 1739 /**
1668 * The response for google.datastore.v1beta3.Datastore.Rollback 1740 * The response for Datastore.Rollback.
1669 * (an empty message). 1741 * (an empty message).
1670 */ 1742 */
1671 class RollbackResponse { 1743 class RollbackResponse {
1672 1744
1673 RollbackResponse(); 1745 RollbackResponse();
1674 1746
1675 RollbackResponse.fromJson(core.Map _json) { 1747 RollbackResponse.fromJson(core.Map _json) {
1676 } 1748 }
1677 1749
1678 core.Map toJson() { 1750 core.Map toJson() {
1679 var _json = new core.Map(); 1751 var _json = new core.Map();
1680 return _json; 1752 return _json;
1681 } 1753 }
1682 } 1754 }
1683 1755
1684 /** The request for google.datastore.v1beta3.Datastore.RunQuery. */ 1756 /** The request for Datastore.RunQuery. */
1685 class RunQueryRequest { 1757 class RunQueryRequest {
1686 /** The GQL query to run. */ 1758 /** The GQL query to run. */
1687 GqlQuery gqlQuery; 1759 GqlQuery gqlQuery;
1688 /** 1760 /**
1689 * Entities are partitioned into subsets, identified by a partition ID. 1761 * Entities are partitioned into subsets, identified by a partition ID.
1690 * Queries are scoped to a single partition. 1762 * Queries are scoped to a single partition.
1691 * This partition ID is normalized with the standard default context 1763 * This partition ID is normalized with the standard default context
1692 * partition ID. 1764 * partition ID.
1693 */ 1765 */
1694 PartitionId partitionId; 1766 PartitionId partitionId;
(...skipping 30 matching lines...) Expand all
1725 if (query != null) { 1797 if (query != null) {
1726 _json["query"] = (query).toJson(); 1798 _json["query"] = (query).toJson();
1727 } 1799 }
1728 if (readOptions != null) { 1800 if (readOptions != null) {
1729 _json["readOptions"] = (readOptions).toJson(); 1801 _json["readOptions"] = (readOptions).toJson();
1730 } 1802 }
1731 return _json; 1803 return _json;
1732 } 1804 }
1733 } 1805 }
1734 1806
1735 /** The response for google.datastore.v1beta3.Datastore.RunQuery. */ 1807 /** The response for Datastore.RunQuery. */
1736 class RunQueryResponse { 1808 class RunQueryResponse {
1737 /** A batch of query results (always present). */ 1809 /** A batch of query results (always present). */
1738 QueryResultBatch batch; 1810 QueryResultBatch batch;
1739 /** The parsed form of the `GqlQuery` from the request, if it was set. */ 1811 /** The parsed form of the `GqlQuery` from the request, if it was set. */
1740 Query query; 1812 Query query;
1741 1813
1742 RunQueryResponse(); 1814 RunQueryResponse();
1743 1815
1744 RunQueryResponse.fromJson(core.Map _json) { 1816 RunQueryResponse.fromJson(core.Map _json) {
1745 if (_json.containsKey("batch")) { 1817 if (_json.containsKey("batch")) {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 } 1988 }
1917 if (stringValue != null) { 1989 if (stringValue != null) {
1918 _json["stringValue"] = stringValue; 1990 _json["stringValue"] = stringValue;
1919 } 1991 }
1920 if (timestampValue != null) { 1992 if (timestampValue != null) {
1921 _json["timestampValue"] = timestampValue; 1993 _json["timestampValue"] = timestampValue;
1922 } 1994 }
1923 return _json; 1995 return _json;
1924 } 1996 }
1925 } 1997 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/content/v2.dart ('k') | generated/googleapis/lib/deploymentmanager/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698