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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 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.pubsub.v1; 3 library googleapis.pubsub.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;
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 core.List<core.String> ackIds; 1223 core.List<core.String> ackIds;
1224 1224
1225 AcknowledgeRequest(); 1225 AcknowledgeRequest();
1226 1226
1227 AcknowledgeRequest.fromJson(core.Map _json) { 1227 AcknowledgeRequest.fromJson(core.Map _json) {
1228 if (_json.containsKey("ackIds")) { 1228 if (_json.containsKey("ackIds")) {
1229 ackIds = _json["ackIds"]; 1229 ackIds = _json["ackIds"];
1230 } 1230 }
1231 } 1231 }
1232 1232
1233 core.Map toJson() { 1233 core.Map<core.String, core.Object> toJson() {
1234 var _json = new core.Map(); 1234 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1235 if (ackIds != null) { 1235 if (ackIds != null) {
1236 _json["ackIds"] = ackIds; 1236 _json["ackIds"] = ackIds;
1237 } 1237 }
1238 return _json; 1238 return _json;
1239 } 1239 }
1240 } 1240 }
1241 1241
1242 /** Associates `members` with a `role`. */ 1242 /** Associates `members` with a `role`. */
1243 class Binding { 1243 class Binding {
1244 /** 1244 /**
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 1276
1277 Binding.fromJson(core.Map _json) { 1277 Binding.fromJson(core.Map _json) {
1278 if (_json.containsKey("members")) { 1278 if (_json.containsKey("members")) {
1279 members = _json["members"]; 1279 members = _json["members"];
1280 } 1280 }
1281 if (_json.containsKey("role")) { 1281 if (_json.containsKey("role")) {
1282 role = _json["role"]; 1282 role = _json["role"];
1283 } 1283 }
1284 } 1284 }
1285 1285
1286 core.Map toJson() { 1286 core.Map<core.String, core.Object> toJson() {
1287 var _json = new core.Map(); 1287 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1288 if (members != null) { 1288 if (members != null) {
1289 _json["members"] = members; 1289 _json["members"] = members;
1290 } 1290 }
1291 if (role != null) { 1291 if (role != null) {
1292 _json["role"] = role; 1292 _json["role"] = role;
1293 } 1293 }
1294 return _json; 1294 return _json;
1295 } 1295 }
1296 } 1296 }
1297 1297
1298 /** 1298 /**
1299 * A generic empty message that you can re-use to avoid defining duplicated 1299 * A generic empty message that you can re-use to avoid defining duplicated
1300 * empty messages in your APIs. A typical example is to use it as the request 1300 * empty messages in your APIs. A typical example is to use it as the request
1301 * or the response type of an API method. For instance: 1301 * or the response type of an API method. For instance:
1302 * 1302 *
1303 * service Foo { 1303 * service Foo {
1304 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 1304 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1305 * } 1305 * }
1306 * 1306 *
1307 * The JSON representation for `Empty` is empty JSON object `{}`. 1307 * The JSON representation for `Empty` is empty JSON object `{}`.
1308 */ 1308 */
1309 class Empty { 1309 class Empty {
1310 1310
1311 Empty(); 1311 Empty();
1312 1312
1313 Empty.fromJson(core.Map _json) { 1313 Empty.fromJson(core.Map _json) {
1314 } 1314 }
1315 1315
1316 core.Map toJson() { 1316 core.Map<core.String, core.Object> toJson() {
1317 var _json = new core.Map(); 1317 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1318 return _json; 1318 return _json;
1319 } 1319 }
1320 } 1320 }
1321 1321
1322 /** Response for the `ListSubscriptions` method. */ 1322 /** Response for the `ListSubscriptions` method. */
1323 class ListSubscriptionsResponse { 1323 class ListSubscriptionsResponse {
1324 /** 1324 /**
1325 * If not empty, indicates that there may be more subscriptions that match 1325 * If not empty, indicates that there may be more subscriptions that match
1326 * the request; this value should be passed in a new 1326 * the request; this value should be passed in a new
1327 * `ListSubscriptionsRequest` to get more subscriptions. 1327 * `ListSubscriptionsRequest` to get more subscriptions.
1328 */ 1328 */
1329 core.String nextPageToken; 1329 core.String nextPageToken;
1330 /** The subscriptions that match the request. */ 1330 /** The subscriptions that match the request. */
1331 core.List<Subscription> subscriptions; 1331 core.List<Subscription> subscriptions;
1332 1332
1333 ListSubscriptionsResponse(); 1333 ListSubscriptionsResponse();
1334 1334
1335 ListSubscriptionsResponse.fromJson(core.Map _json) { 1335 ListSubscriptionsResponse.fromJson(core.Map _json) {
1336 if (_json.containsKey("nextPageToken")) { 1336 if (_json.containsKey("nextPageToken")) {
1337 nextPageToken = _json["nextPageToken"]; 1337 nextPageToken = _json["nextPageToken"];
1338 } 1338 }
1339 if (_json.containsKey("subscriptions")) { 1339 if (_json.containsKey("subscriptions")) {
1340 subscriptions = _json["subscriptions"].map((value) => new Subscription.fro mJson(value)).toList(); 1340 subscriptions = _json["subscriptions"].map((value) => new Subscription.fro mJson(value)).toList();
1341 } 1341 }
1342 } 1342 }
1343 1343
1344 core.Map toJson() { 1344 core.Map<core.String, core.Object> toJson() {
1345 var _json = new core.Map(); 1345 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1346 if (nextPageToken != null) { 1346 if (nextPageToken != null) {
1347 _json["nextPageToken"] = nextPageToken; 1347 _json["nextPageToken"] = nextPageToken;
1348 } 1348 }
1349 if (subscriptions != null) { 1349 if (subscriptions != null) {
1350 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to List(); 1350 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to List();
1351 } 1351 }
1352 return _json; 1352 return _json;
1353 } 1353 }
1354 } 1354 }
1355 1355
(...skipping 12 matching lines...) Expand all
1368 1368
1369 ListTopicSubscriptionsResponse.fromJson(core.Map _json) { 1369 ListTopicSubscriptionsResponse.fromJson(core.Map _json) {
1370 if (_json.containsKey("nextPageToken")) { 1370 if (_json.containsKey("nextPageToken")) {
1371 nextPageToken = _json["nextPageToken"]; 1371 nextPageToken = _json["nextPageToken"];
1372 } 1372 }
1373 if (_json.containsKey("subscriptions")) { 1373 if (_json.containsKey("subscriptions")) {
1374 subscriptions = _json["subscriptions"]; 1374 subscriptions = _json["subscriptions"];
1375 } 1375 }
1376 } 1376 }
1377 1377
1378 core.Map toJson() { 1378 core.Map<core.String, core.Object> toJson() {
1379 var _json = new core.Map(); 1379 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1380 if (nextPageToken != null) { 1380 if (nextPageToken != null) {
1381 _json["nextPageToken"] = nextPageToken; 1381 _json["nextPageToken"] = nextPageToken;
1382 } 1382 }
1383 if (subscriptions != null) { 1383 if (subscriptions != null) {
1384 _json["subscriptions"] = subscriptions; 1384 _json["subscriptions"] = subscriptions;
1385 } 1385 }
1386 return _json; 1386 return _json;
1387 } 1387 }
1388 } 1388 }
1389 1389
(...skipping 11 matching lines...) Expand all
1401 1401
1402 ListTopicsResponse.fromJson(core.Map _json) { 1402 ListTopicsResponse.fromJson(core.Map _json) {
1403 if (_json.containsKey("nextPageToken")) { 1403 if (_json.containsKey("nextPageToken")) {
1404 nextPageToken = _json["nextPageToken"]; 1404 nextPageToken = _json["nextPageToken"];
1405 } 1405 }
1406 if (_json.containsKey("topics")) { 1406 if (_json.containsKey("topics")) {
1407 topics = _json["topics"].map((value) => new Topic.fromJson(value)).toList( ); 1407 topics = _json["topics"].map((value) => new Topic.fromJson(value)).toList( );
1408 } 1408 }
1409 } 1409 }
1410 1410
1411 core.Map toJson() { 1411 core.Map<core.String, core.Object> toJson() {
1412 var _json = new core.Map(); 1412 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1413 if (nextPageToken != null) { 1413 if (nextPageToken != null) {
1414 _json["nextPageToken"] = nextPageToken; 1414 _json["nextPageToken"] = nextPageToken;
1415 } 1415 }
1416 if (topics != null) { 1416 if (topics != null) {
1417 _json["topics"] = topics.map((value) => (value).toJson()).toList(); 1417 _json["topics"] = topics.map((value) => (value).toJson()).toList();
1418 } 1418 }
1419 return _json; 1419 return _json;
1420 } 1420 }
1421 } 1421 }
1422 1422
(...skipping 16 matching lines...) Expand all
1439 1439
1440 ModifyAckDeadlineRequest.fromJson(core.Map _json) { 1440 ModifyAckDeadlineRequest.fromJson(core.Map _json) {
1441 if (_json.containsKey("ackDeadlineSeconds")) { 1441 if (_json.containsKey("ackDeadlineSeconds")) {
1442 ackDeadlineSeconds = _json["ackDeadlineSeconds"]; 1442 ackDeadlineSeconds = _json["ackDeadlineSeconds"];
1443 } 1443 }
1444 if (_json.containsKey("ackIds")) { 1444 if (_json.containsKey("ackIds")) {
1445 ackIds = _json["ackIds"]; 1445 ackIds = _json["ackIds"];
1446 } 1446 }
1447 } 1447 }
1448 1448
1449 core.Map toJson() { 1449 core.Map<core.String, core.Object> toJson() {
1450 var _json = new core.Map(); 1450 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1451 if (ackDeadlineSeconds != null) { 1451 if (ackDeadlineSeconds != null) {
1452 _json["ackDeadlineSeconds"] = ackDeadlineSeconds; 1452 _json["ackDeadlineSeconds"] = ackDeadlineSeconds;
1453 } 1453 }
1454 if (ackIds != null) { 1454 if (ackIds != null) {
1455 _json["ackIds"] = ackIds; 1455 _json["ackIds"] = ackIds;
1456 } 1456 }
1457 return _json; 1457 return _json;
1458 } 1458 }
1459 } 1459 }
1460 1460
(...skipping 10 matching lines...) Expand all
1471 PushConfig pushConfig; 1471 PushConfig pushConfig;
1472 1472
1473 ModifyPushConfigRequest(); 1473 ModifyPushConfigRequest();
1474 1474
1475 ModifyPushConfigRequest.fromJson(core.Map _json) { 1475 ModifyPushConfigRequest.fromJson(core.Map _json) {
1476 if (_json.containsKey("pushConfig")) { 1476 if (_json.containsKey("pushConfig")) {
1477 pushConfig = new PushConfig.fromJson(_json["pushConfig"]); 1477 pushConfig = new PushConfig.fromJson(_json["pushConfig"]);
1478 } 1478 }
1479 } 1479 }
1480 1480
1481 core.Map toJson() { 1481 core.Map<core.String, core.Object> toJson() {
1482 var _json = new core.Map(); 1482 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1483 if (pushConfig != null) { 1483 if (pushConfig != null) {
1484 _json["pushConfig"] = (pushConfig).toJson(); 1484 _json["pushConfig"] = (pushConfig).toJson();
1485 } 1485 }
1486 return _json; 1486 return _json;
1487 } 1487 }
1488 } 1488 }
1489 1489
1490 /** 1490 /**
1491 * Defines an Identity and Access Management (IAM) policy. It is used to 1491 * Defines an Identity and Access Management (IAM) policy. It is used to
1492 * specify access control policies for Cloud Platform resources. 1492 * specify access control policies for Cloud Platform resources.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList(); 1557 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList();
1558 } 1558 }
1559 if (_json.containsKey("etag")) { 1559 if (_json.containsKey("etag")) {
1560 etag = _json["etag"]; 1560 etag = _json["etag"];
1561 } 1561 }
1562 if (_json.containsKey("version")) { 1562 if (_json.containsKey("version")) {
1563 version = _json["version"]; 1563 version = _json["version"];
1564 } 1564 }
1565 } 1565 }
1566 1566
1567 core.Map toJson() { 1567 core.Map<core.String, core.Object> toJson() {
1568 var _json = new core.Map(); 1568 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1569 if (bindings != null) { 1569 if (bindings != null) {
1570 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 1570 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
1571 } 1571 }
1572 if (etag != null) { 1572 if (etag != null) {
1573 _json["etag"] = etag; 1573 _json["etag"] = etag;
1574 } 1574 }
1575 if (version != null) { 1575 if (version != null) {
1576 _json["version"] = version; 1576 _json["version"] = version;
1577 } 1577 }
1578 return _json; 1578 return _json;
1579 } 1579 }
1580 } 1580 }
1581 1581
1582 /** Request for the Publish method. */ 1582 /** Request for the Publish method. */
1583 class PublishRequest { 1583 class PublishRequest {
1584 /** The messages to publish. */ 1584 /** The messages to publish. */
1585 core.List<PubsubMessage> messages; 1585 core.List<PubsubMessage> messages;
1586 1586
1587 PublishRequest(); 1587 PublishRequest();
1588 1588
1589 PublishRequest.fromJson(core.Map _json) { 1589 PublishRequest.fromJson(core.Map _json) {
1590 if (_json.containsKey("messages")) { 1590 if (_json.containsKey("messages")) {
1591 messages = _json["messages"].map((value) => new PubsubMessage.fromJson(val ue)).toList(); 1591 messages = _json["messages"].map((value) => new PubsubMessage.fromJson(val ue)).toList();
1592 } 1592 }
1593 } 1593 }
1594 1594
1595 core.Map toJson() { 1595 core.Map<core.String, core.Object> toJson() {
1596 var _json = new core.Map(); 1596 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1597 if (messages != null) { 1597 if (messages != null) {
1598 _json["messages"] = messages.map((value) => (value).toJson()).toList(); 1598 _json["messages"] = messages.map((value) => (value).toJson()).toList();
1599 } 1599 }
1600 return _json; 1600 return _json;
1601 } 1601 }
1602 } 1602 }
1603 1603
1604 /** Response for the `Publish` method. */ 1604 /** Response for the `Publish` method. */
1605 class PublishResponse { 1605 class PublishResponse {
1606 /** 1606 /**
1607 * The server-assigned ID of each published message, in the same order as 1607 * The server-assigned ID of each published message, in the same order as
1608 * the messages in the request. IDs are guaranteed to be unique within 1608 * the messages in the request. IDs are guaranteed to be unique within
1609 * the topic. 1609 * the topic.
1610 */ 1610 */
1611 core.List<core.String> messageIds; 1611 core.List<core.String> messageIds;
1612 1612
1613 PublishResponse(); 1613 PublishResponse();
1614 1614
1615 PublishResponse.fromJson(core.Map _json) { 1615 PublishResponse.fromJson(core.Map _json) {
1616 if (_json.containsKey("messageIds")) { 1616 if (_json.containsKey("messageIds")) {
1617 messageIds = _json["messageIds"]; 1617 messageIds = _json["messageIds"];
1618 } 1618 }
1619 } 1619 }
1620 1620
1621 core.Map toJson() { 1621 core.Map<core.String, core.Object> toJson() {
1622 var _json = new core.Map(); 1622 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1623 if (messageIds != null) { 1623 if (messageIds != null) {
1624 _json["messageIds"] = messageIds; 1624 _json["messageIds"] = messageIds;
1625 } 1625 }
1626 return _json; 1626 return _json;
1627 } 1627 }
1628 } 1628 }
1629 1629
1630 /** 1630 /**
1631 * A message data and its attributes. The message payload must not be empty; 1631 * A message data and its attributes. The message payload must not be empty;
1632 * it must contain either a non-empty data field, or at least one attribute. 1632 * it must contain either a non-empty data field, or at least one attribute.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 data = _json["data"]; 1667 data = _json["data"];
1668 } 1668 }
1669 if (_json.containsKey("messageId")) { 1669 if (_json.containsKey("messageId")) {
1670 messageId = _json["messageId"]; 1670 messageId = _json["messageId"];
1671 } 1671 }
1672 if (_json.containsKey("publishTime")) { 1672 if (_json.containsKey("publishTime")) {
1673 publishTime = _json["publishTime"]; 1673 publishTime = _json["publishTime"];
1674 } 1674 }
1675 } 1675 }
1676 1676
1677 core.Map toJson() { 1677 core.Map<core.String, core.Object> toJson() {
1678 var _json = new core.Map(); 1678 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1679 if (attributes != null) { 1679 if (attributes != null) {
1680 _json["attributes"] = attributes; 1680 _json["attributes"] = attributes;
1681 } 1681 }
1682 if (data != null) { 1682 if (data != null) {
1683 _json["data"] = data; 1683 _json["data"] = data;
1684 } 1684 }
1685 if (messageId != null) { 1685 if (messageId != null) {
1686 _json["messageId"] = messageId; 1686 _json["messageId"] = messageId;
1687 } 1687 }
1688 if (publishTime != null) { 1688 if (publishTime != null) {
(...skipping 24 matching lines...) Expand all
1713 1713
1714 PullRequest.fromJson(core.Map _json) { 1714 PullRequest.fromJson(core.Map _json) {
1715 if (_json.containsKey("maxMessages")) { 1715 if (_json.containsKey("maxMessages")) {
1716 maxMessages = _json["maxMessages"]; 1716 maxMessages = _json["maxMessages"];
1717 } 1717 }
1718 if (_json.containsKey("returnImmediately")) { 1718 if (_json.containsKey("returnImmediately")) {
1719 returnImmediately = _json["returnImmediately"]; 1719 returnImmediately = _json["returnImmediately"];
1720 } 1720 }
1721 } 1721 }
1722 1722
1723 core.Map toJson() { 1723 core.Map<core.String, core.Object> toJson() {
1724 var _json = new core.Map(); 1724 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1725 if (maxMessages != null) { 1725 if (maxMessages != null) {
1726 _json["maxMessages"] = maxMessages; 1726 _json["maxMessages"] = maxMessages;
1727 } 1727 }
1728 if (returnImmediately != null) { 1728 if (returnImmediately != null) {
1729 _json["returnImmediately"] = returnImmediately; 1729 _json["returnImmediately"] = returnImmediately;
1730 } 1730 }
1731 return _json; 1731 return _json;
1732 } 1732 }
1733 } 1733 }
1734 1734
1735 /** Response for the `Pull` method. */ 1735 /** Response for the `Pull` method. */
1736 class PullResponse { 1736 class PullResponse {
1737 /** 1737 /**
1738 * Received Pub/Sub messages. The Pub/Sub system will return zero messages if 1738 * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
1739 * there are no more available in the backlog. The Pub/Sub system may return 1739 * there are no more available in the backlog. The Pub/Sub system may return
1740 * fewer than the `maxMessages` requested even if there are more messages 1740 * fewer than the `maxMessages` requested even if there are more messages
1741 * available in the backlog. 1741 * available in the backlog.
1742 */ 1742 */
1743 core.List<ReceivedMessage> receivedMessages; 1743 core.List<ReceivedMessage> receivedMessages;
1744 1744
1745 PullResponse(); 1745 PullResponse();
1746 1746
1747 PullResponse.fromJson(core.Map _json) { 1747 PullResponse.fromJson(core.Map _json) {
1748 if (_json.containsKey("receivedMessages")) { 1748 if (_json.containsKey("receivedMessages")) {
1749 receivedMessages = _json["receivedMessages"].map((value) => new ReceivedMe ssage.fromJson(value)).toList(); 1749 receivedMessages = _json["receivedMessages"].map((value) => new ReceivedMe ssage.fromJson(value)).toList();
1750 } 1750 }
1751 } 1751 }
1752 1752
1753 core.Map toJson() { 1753 core.Map<core.String, core.Object> toJson() {
1754 var _json = new core.Map(); 1754 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1755 if (receivedMessages != null) { 1755 if (receivedMessages != null) {
1756 _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson ()).toList(); 1756 _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson ()).toList();
1757 } 1757 }
1758 return _json; 1758 return _json;
1759 } 1759 }
1760 } 1760 }
1761 1761
1762 /** Configuration for a push delivery endpoint. */ 1762 /** Configuration for a push delivery endpoint. */
1763 class PushConfig { 1763 class PushConfig {
1764 /** 1764 /**
(...skipping 30 matching lines...) Expand all
1795 1795
1796 PushConfig.fromJson(core.Map _json) { 1796 PushConfig.fromJson(core.Map _json) {
1797 if (_json.containsKey("attributes")) { 1797 if (_json.containsKey("attributes")) {
1798 attributes = _json["attributes"]; 1798 attributes = _json["attributes"];
1799 } 1799 }
1800 if (_json.containsKey("pushEndpoint")) { 1800 if (_json.containsKey("pushEndpoint")) {
1801 pushEndpoint = _json["pushEndpoint"]; 1801 pushEndpoint = _json["pushEndpoint"];
1802 } 1802 }
1803 } 1803 }
1804 1804
1805 core.Map toJson() { 1805 core.Map<core.String, core.Object> toJson() {
1806 var _json = new core.Map(); 1806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1807 if (attributes != null) { 1807 if (attributes != null) {
1808 _json["attributes"] = attributes; 1808 _json["attributes"] = attributes;
1809 } 1809 }
1810 if (pushEndpoint != null) { 1810 if (pushEndpoint != null) {
1811 _json["pushEndpoint"] = pushEndpoint; 1811 _json["pushEndpoint"] = pushEndpoint;
1812 } 1812 }
1813 return _json; 1813 return _json;
1814 } 1814 }
1815 } 1815 }
1816 1816
1817 /** A message and its corresponding acknowledgment ID. */ 1817 /** A message and its corresponding acknowledgment ID. */
1818 class ReceivedMessage { 1818 class ReceivedMessage {
1819 /** This ID can be used to acknowledge the received message. */ 1819 /** This ID can be used to acknowledge the received message. */
1820 core.String ackId; 1820 core.String ackId;
1821 /** The message. */ 1821 /** The message. */
1822 PubsubMessage message; 1822 PubsubMessage message;
1823 1823
1824 ReceivedMessage(); 1824 ReceivedMessage();
1825 1825
1826 ReceivedMessage.fromJson(core.Map _json) { 1826 ReceivedMessage.fromJson(core.Map _json) {
1827 if (_json.containsKey("ackId")) { 1827 if (_json.containsKey("ackId")) {
1828 ackId = _json["ackId"]; 1828 ackId = _json["ackId"];
1829 } 1829 }
1830 if (_json.containsKey("message")) { 1830 if (_json.containsKey("message")) {
1831 message = new PubsubMessage.fromJson(_json["message"]); 1831 message = new PubsubMessage.fromJson(_json["message"]);
1832 } 1832 }
1833 } 1833 }
1834 1834
1835 core.Map toJson() { 1835 core.Map<core.String, core.Object> toJson() {
1836 var _json = new core.Map(); 1836 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1837 if (ackId != null) { 1837 if (ackId != null) {
1838 _json["ackId"] = ackId; 1838 _json["ackId"] = ackId;
1839 } 1839 }
1840 if (message != null) { 1840 if (message != null) {
1841 _json["message"] = (message).toJson(); 1841 _json["message"] = (message).toJson();
1842 } 1842 }
1843 return _json; 1843 return _json;
1844 } 1844 }
1845 } 1845 }
1846 1846
1847 /** Request message for `SetIamPolicy` method. */ 1847 /** Request message for `SetIamPolicy` method. */
1848 class SetIamPolicyRequest { 1848 class SetIamPolicyRequest {
1849 /** 1849 /**
1850 * REQUIRED: The complete policy to be applied to the `resource`. The size of 1850 * REQUIRED: The complete policy to be applied to the `resource`. The size of
1851 * the policy is limited to a few 10s of KB. An empty policy is a 1851 * the policy is limited to a few 10s of KB. An empty policy is a
1852 * valid policy but certain Cloud Platform services (such as Projects) 1852 * valid policy but certain Cloud Platform services (such as Projects)
1853 * might reject them. 1853 * might reject them.
1854 */ 1854 */
1855 Policy policy; 1855 Policy policy;
1856 1856
1857 SetIamPolicyRequest(); 1857 SetIamPolicyRequest();
1858 1858
1859 SetIamPolicyRequest.fromJson(core.Map _json) { 1859 SetIamPolicyRequest.fromJson(core.Map _json) {
1860 if (_json.containsKey("policy")) { 1860 if (_json.containsKey("policy")) {
1861 policy = new Policy.fromJson(_json["policy"]); 1861 policy = new Policy.fromJson(_json["policy"]);
1862 } 1862 }
1863 } 1863 }
1864 1864
1865 core.Map toJson() { 1865 core.Map<core.String, core.Object> toJson() {
1866 var _json = new core.Map(); 1866 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1867 if (policy != null) { 1867 if (policy != null) {
1868 _json["policy"] = (policy).toJson(); 1868 _json["policy"] = (policy).toJson();
1869 } 1869 }
1870 return _json; 1870 return _json;
1871 } 1871 }
1872 } 1872 }
1873 1873
1874 /** A subscription resource. */ 1874 /** A subscription resource. */
1875 class Subscription { 1875 class Subscription {
1876 /** 1876 /**
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 name = _json["name"]; 1928 name = _json["name"];
1929 } 1929 }
1930 if (_json.containsKey("pushConfig")) { 1930 if (_json.containsKey("pushConfig")) {
1931 pushConfig = new PushConfig.fromJson(_json["pushConfig"]); 1931 pushConfig = new PushConfig.fromJson(_json["pushConfig"]);
1932 } 1932 }
1933 if (_json.containsKey("topic")) { 1933 if (_json.containsKey("topic")) {
1934 topic = _json["topic"]; 1934 topic = _json["topic"];
1935 } 1935 }
1936 } 1936 }
1937 1937
1938 core.Map toJson() { 1938 core.Map<core.String, core.Object> toJson() {
1939 var _json = new core.Map(); 1939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1940 if (ackDeadlineSeconds != null) { 1940 if (ackDeadlineSeconds != null) {
1941 _json["ackDeadlineSeconds"] = ackDeadlineSeconds; 1941 _json["ackDeadlineSeconds"] = ackDeadlineSeconds;
1942 } 1942 }
1943 if (name != null) { 1943 if (name != null) {
1944 _json["name"] = name; 1944 _json["name"] = name;
1945 } 1945 }
1946 if (pushConfig != null) { 1946 if (pushConfig != null) {
1947 _json["pushConfig"] = (pushConfig).toJson(); 1947 _json["pushConfig"] = (pushConfig).toJson();
1948 } 1948 }
1949 if (topic != null) { 1949 if (topic != null) {
(...skipping 14 matching lines...) Expand all
1964 core.List<core.String> permissions; 1964 core.List<core.String> permissions;
1965 1965
1966 TestIamPermissionsRequest(); 1966 TestIamPermissionsRequest();
1967 1967
1968 TestIamPermissionsRequest.fromJson(core.Map _json) { 1968 TestIamPermissionsRequest.fromJson(core.Map _json) {
1969 if (_json.containsKey("permissions")) { 1969 if (_json.containsKey("permissions")) {
1970 permissions = _json["permissions"]; 1970 permissions = _json["permissions"];
1971 } 1971 }
1972 } 1972 }
1973 1973
1974 core.Map toJson() { 1974 core.Map<core.String, core.Object> toJson() {
1975 var _json = new core.Map(); 1975 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1976 if (permissions != null) { 1976 if (permissions != null) {
1977 _json["permissions"] = permissions; 1977 _json["permissions"] = permissions;
1978 } 1978 }
1979 return _json; 1979 return _json;
1980 } 1980 }
1981 } 1981 }
1982 1982
1983 /** Response message for `TestIamPermissions` method. */ 1983 /** Response message for `TestIamPermissions` method. */
1984 class TestIamPermissionsResponse { 1984 class TestIamPermissionsResponse {
1985 /** 1985 /**
1986 * A subset of `TestPermissionsRequest.permissions` that the caller is 1986 * A subset of `TestPermissionsRequest.permissions` that the caller is
1987 * allowed. 1987 * allowed.
1988 */ 1988 */
1989 core.List<core.String> permissions; 1989 core.List<core.String> permissions;
1990 1990
1991 TestIamPermissionsResponse(); 1991 TestIamPermissionsResponse();
1992 1992
1993 TestIamPermissionsResponse.fromJson(core.Map _json) { 1993 TestIamPermissionsResponse.fromJson(core.Map _json) {
1994 if (_json.containsKey("permissions")) { 1994 if (_json.containsKey("permissions")) {
1995 permissions = _json["permissions"]; 1995 permissions = _json["permissions"];
1996 } 1996 }
1997 } 1997 }
1998 1998
1999 core.Map toJson() { 1999 core.Map<core.String, core.Object> toJson() {
2000 var _json = new core.Map(); 2000 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2001 if (permissions != null) { 2001 if (permissions != null) {
2002 _json["permissions"] = permissions; 2002 _json["permissions"] = permissions;
2003 } 2003 }
2004 return _json; 2004 return _json;
2005 } 2005 }
2006 } 2006 }
2007 2007
2008 /** A topic resource. */ 2008 /** A topic resource. */
2009 class Topic { 2009 class Topic {
2010 /** 2010 /**
2011 * The name of the topic. It must have the format 2011 * The name of the topic. It must have the format
2012 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, 2012 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
2013 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), 2013 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
2014 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent 2014 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
2015 * signs (`%`). It must be between 3 and 255 characters in length, and it 2015 * signs (`%`). It must be between 3 and 255 characters in length, and it
2016 * must not start with `"goog"`. 2016 * must not start with `"goog"`.
2017 */ 2017 */
2018 core.String name; 2018 core.String name;
2019 2019
2020 Topic(); 2020 Topic();
2021 2021
2022 Topic.fromJson(core.Map _json) { 2022 Topic.fromJson(core.Map _json) {
2023 if (_json.containsKey("name")) { 2023 if (_json.containsKey("name")) {
2024 name = _json["name"]; 2024 name = _json["name"];
2025 } 2025 }
2026 } 2026 }
2027 2027
2028 core.Map toJson() { 2028 core.Map<core.String, core.Object> toJson() {
2029 var _json = new core.Map(); 2029 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2030 if (name != null) { 2030 if (name != null) {
2031 _json["name"] = name; 2031 _json["name"] = name;
2032 } 2032 }
2033 return _json; 2033 return _json;
2034 } 2034 }
2035 } 2035 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/prediction/v1_6.dart ('k') | generated/googleapis/lib/qpxexpress/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698