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

Side by Side Diff: generated/googleapis/lib/gmail/v1.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.gmail.v1; 3 library googleapis.gmail.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: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, Media, UploadOptions, 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
15 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
16 ByteRange; 15 ByteRange;
17 16
18 const core.String USER_AGENT = 'dart-api-client gmail/v1'; 17 const core.String USER_AGENT = 'dart-api-client gmail/v1';
19 18
20 /** Access Gmail mailboxes including sending user email. */ 19 /** Access Gmail mailboxes including sending user email. */
(...skipping 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 core.List<core.String> labelIds; 2411 core.List<core.String> labelIds;
2413 /** The parsed email structure in the message parts. */ 2412 /** The parsed email structure in the message parts. */
2414 MessagePart payload; 2413 MessagePart payload;
2415 /** 2414 /**
2416 * The entire email message in an RFC 2822 formatted and base64url encoded 2415 * The entire email message in an RFC 2822 formatted and base64url encoded
2417 * string. Returned in messages.get and drafts.get responses when the 2416 * string. Returned in messages.get and drafts.get responses when the
2418 * format=RAW parameter is supplied. 2417 * format=RAW parameter is supplied.
2419 */ 2418 */
2420 core.String raw; 2419 core.String raw;
2421 core.List<core.int> get rawAsBytes { 2420 core.List<core.int> get rawAsBytes {
2422 return crypto.CryptoUtils.base64StringToBytes(raw); 2421 return convert.BASE64.decode(raw);
2423 } 2422 }
2424 2423
2425 void set rawAsBytes(core.List<core.int> _bytes) { 2424 void set rawAsBytes(core.List<core.int> _bytes) {
2426 raw = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 2425 raw = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-" );
2427 } 2426 }
2428 /** Estimated size in bytes of the message. */ 2427 /** Estimated size in bytes of the message. */
2429 core.int sizeEstimate; 2428 core.int sizeEstimate;
2430 /** A short part of the message text. */ 2429 /** A short part of the message text. */
2431 core.String snippet; 2430 core.String snippet;
2432 /** 2431 /**
2433 * The ID of the thread the message belongs to. To add a message or draft to a 2432 * The ID of the thread the message belongs to. To add a message or draft to a
2434 * thread, the following criteria must be met: 2433 * thread, the following criteria must be met:
2435 * - The requested threadId must be specified on the Message or Draft.Message 2434 * - The requested threadId must be specified on the Message or Draft.Message
2436 * you supply with your request. 2435 * you supply with your request.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2591 */ 2590 */
2592 core.String attachmentId; 2591 core.String attachmentId;
2593 /** 2592 /**
2594 * The body data of a MIME message part. May be empty for MIME container types 2593 * The body data of a MIME message part. May be empty for MIME container types
2595 * that have no message body or when the body data is sent as a separate 2594 * that have no message body or when the body data is sent as a separate
2596 * attachment. An attachment ID is present if the body data is contained in a 2595 * attachment. An attachment ID is present if the body data is contained in a
2597 * separate attachment. 2596 * separate attachment.
2598 */ 2597 */
2599 core.String data; 2598 core.String data;
2600 core.List<core.int> get dataAsBytes { 2599 core.List<core.int> get dataAsBytes {
2601 return crypto.CryptoUtils.base64StringToBytes(data); 2600 return convert.BASE64.decode(data);
2602 } 2601 }
2603 2602
2604 void set dataAsBytes(core.List<core.int> _bytes) { 2603 void set dataAsBytes(core.List<core.int> _bytes) {
2605 data = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 2604 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
2606 } 2605 }
2607 /** Total number of bytes in the body of the message part. */ 2606 /** Total number of bytes in the body of the message part. */
2608 core.int size; 2607 core.int size;
2609 2608
2610 MessagePartBody(); 2609 MessagePartBody();
2611 2610
2612 MessagePartBody.fromJson(core.Map _json) { 2611 MessagePartBody.fromJson(core.Map _json) {
2613 if (_json.containsKey("attachmentId")) { 2612 if (_json.containsKey("attachmentId")) {
2614 attachmentId = _json["attachmentId"]; 2613 attachmentId = _json["attachmentId"];
2615 } 2614 }
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
2899 var _json = new core.Map(); 2898 var _json = new core.Map();
2900 if (expiration != null) { 2899 if (expiration != null) {
2901 _json["expiration"] = expiration; 2900 _json["expiration"] = expiration;
2902 } 2901 }
2903 if (historyId != null) { 2902 if (historyId != null) {
2904 _json["historyId"] = historyId; 2903 _json["historyId"] = historyId;
2905 } 2904 }
2906 return _json; 2905 return _json;
2907 } 2906 }
2908 } 2907 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/genomics/v1.dart ('k') | generated/googleapis/lib/groupssettings/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698