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

Side by Side Diff: generated/googleapis_beta/lib/pubsub/v1beta2.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.pubsub.v1beta2; 3 library googleapis_beta.pubsub.v1beta2;
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 pubsub/v1beta2'; 15 const core.String USER_AGENT = 'dart-api-client pubsub/v1beta2';
17 16
18 /** 17 /**
19 * Provides reliable, many-to-many, asynchronous messaging between applications. 18 * Provides reliable, many-to-many, asynchronous messaging between applications.
20 */ 19 */
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 * strongly suggested that systems make use of the `etag` in the 1326 * strongly suggested that systems make use of the `etag` in the
1328 * read-modify-write cycle to perform policy updates in order to avoid race 1327 * read-modify-write cycle to perform policy updates in order to avoid race
1329 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 1328 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
1330 * systems are expected to put that etag in the request to `setIamPolicy` to 1329 * systems are expected to put that etag in the request to `setIamPolicy` to
1331 * ensure that their change will be applied to the same version of the policy. 1330 * ensure that their change will be applied to the same version of the policy.
1332 * If no `etag` is provided in the call to `setIamPolicy`, then the existing 1331 * If no `etag` is provided in the call to `setIamPolicy`, then the existing
1333 * policy is overwritten blindly. 1332 * policy is overwritten blindly.
1334 */ 1333 */
1335 core.String etag; 1334 core.String etag;
1336 core.List<core.int> get etagAsBytes { 1335 core.List<core.int> get etagAsBytes {
1337 return crypto.CryptoUtils.base64StringToBytes(etag); 1336 return convert.BASE64.decode(etag);
1338 } 1337 }
1339 1338
1340 void set etagAsBytes(core.List<core.int> _bytes) { 1339 void set etagAsBytes(core.List<core.int> _bytes) {
1341 etag = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1340 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
1342 } 1341 }
1343 /** Version of the `Policy`. The default version is 0. */ 1342 /** Version of the `Policy`. The default version is 0. */
1344 core.int version; 1343 core.int version;
1345 1344
1346 Policy(); 1345 Policy();
1347 1346
1348 Policy.fromJson(core.Map _json) { 1347 Policy.fromJson(core.Map _json) {
1349 if (_json.containsKey("bindings")) { 1348 if (_json.containsKey("bindings")) {
1350 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList(); 1349 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList();
1351 } 1350 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 */ 1424 */
1426 class PubsubMessage { 1425 class PubsubMessage {
1427 /** Optional attributes for this message. */ 1426 /** Optional attributes for this message. */
1428 core.Map<core.String, core.String> attributes; 1427 core.Map<core.String, core.String> attributes;
1429 /** 1428 /**
1430 * The message payload. For JSON requests, the value of this field must be 1429 * The message payload. For JSON requests, the value of this field must be
1431 * base64-encoded. 1430 * base64-encoded.
1432 */ 1431 */
1433 core.String data; 1432 core.String data;
1434 core.List<core.int> get dataAsBytes { 1433 core.List<core.int> get dataAsBytes {
1435 return crypto.CryptoUtils.base64StringToBytes(data); 1434 return convert.BASE64.decode(data);
1436 } 1435 }
1437 1436
1438 void set dataAsBytes(core.List<core.int> _bytes) { 1437 void set dataAsBytes(core.List<core.int> _bytes) {
1439 data = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1438 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
1440 } 1439 }
1441 /** 1440 /**
1442 * ID of this message, assigned by the server when the message is published. 1441 * ID of this message, assigned by the server when the message is published.
1443 * Guaranteed to be unique within the topic. This value may be read by a 1442 * Guaranteed to be unique within the topic. This value may be read by a
1444 * subscriber that receives a `PubsubMessage` via a `Pull` call or a push 1443 * subscriber that receives a `PubsubMessage` via a `Pull` call or a push
1445 * delivery. It must not be populated by the publisher in a `Publish` call. 1444 * delivery. It must not be populated by the publisher in a `Publish` call.
1446 */ 1445 */
1447 core.String messageId; 1446 core.String messageId;
1448 /** 1447 /**
1449 * The time at which the message was published, populated by the server when 1448 * The time at which the message was published, populated by the server when
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 } 1801 }
1803 1802
1804 core.Map toJson() { 1803 core.Map toJson() {
1805 var _json = new core.Map(); 1804 var _json = new core.Map();
1806 if (name != null) { 1805 if (name != null) {
1807 _json["name"] = name; 1806 _json["name"] = name;
1808 } 1807 }
1809 return _json; 1808 return _json;
1810 } 1809 }
1811 } 1810 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart ('k') | generated/googleapis_beta/lib/replicapool/v1beta2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698