@ocap/proto 1.18.95 → 1.18.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/gen/tx_pb.js CHANGED
@@ -119,16 +119,16 @@ if (goog.DEBUG && !COMPILED) {
119
119
  * @extends {jspb.Message}
120
120
  * @constructor
121
121
  */
122
- proto.ocap.DelegateTx = function(opt_data) {
123
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.DelegateTx.repeatedFields_, null);
122
+ proto.ocap.DelegateOp = function(opt_data) {
123
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.DelegateOp.repeatedFields_, null);
124
124
  };
125
- goog.inherits(proto.ocap.DelegateTx, jspb.Message);
125
+ goog.inherits(proto.ocap.DelegateOp, jspb.Message);
126
126
  if (goog.DEBUG && !COMPILED) {
127
127
  /**
128
128
  * @public
129
129
  * @override
130
130
  */
131
- proto.ocap.DelegateTx.displayName = 'proto.ocap.DelegateTx';
131
+ proto.ocap.DelegateOp.displayName = 'proto.ocap.DelegateOp';
132
132
  }
133
133
  /**
134
134
  * Generated by JsPbCodeGenerator.
@@ -140,16 +140,16 @@ if (goog.DEBUG && !COMPILED) {
140
140
  * @extends {jspb.Message}
141
141
  * @constructor
142
142
  */
143
- proto.ocap.DelegateOp = function(opt_data) {
144
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.DelegateOp.repeatedFields_, null);
143
+ proto.ocap.DelegateTx = function(opt_data) {
144
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.DelegateTx.repeatedFields_, null);
145
145
  };
146
- goog.inherits(proto.ocap.DelegateOp, jspb.Message);
146
+ goog.inherits(proto.ocap.DelegateTx, jspb.Message);
147
147
  if (goog.DEBUG && !COMPILED) {
148
148
  /**
149
149
  * @public
150
150
  * @override
151
151
  */
152
- proto.ocap.DelegateOp.displayName = 'proto.ocap.DelegateOp';
152
+ proto.ocap.DelegateTx.displayName = 'proto.ocap.DelegateTx';
153
153
  }
154
154
  /**
155
155
  * Generated by JsPbCodeGenerator.
@@ -1389,7 +1389,7 @@ proto.ocap.DeclareTx.prototype.hasData = function() {
1389
1389
  * @private {!Array<number>}
1390
1390
  * @const
1391
1391
  */
1392
- proto.ocap.DelegateTx.repeatedFields_ = [3];
1392
+ proto.ocap.DelegateOp.repeatedFields_ = [2];
1393
1393
 
1394
1394
 
1395
1395
 
@@ -1406,8 +1406,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1406
1406
  * http://goto/soy-param-migration
1407
1407
  * @return {!Object}
1408
1408
  */
1409
- proto.ocap.DelegateTx.prototype.toObject = function(opt_includeInstance) {
1410
- return proto.ocap.DelegateTx.toObject(opt_includeInstance, this);
1409
+ proto.ocap.DelegateOp.prototype.toObject = function(opt_includeInstance) {
1410
+ return proto.ocap.DelegateOp.toObject(opt_includeInstance, this);
1411
1411
  };
1412
1412
 
1413
1413
 
@@ -1416,17 +1416,15 @@ proto.ocap.DelegateTx.prototype.toObject = function(opt_includeInstance) {
1416
1416
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1417
1417
  * the JSPB instance for transitional soy proto support:
1418
1418
  * http://goto/soy-param-migration
1419
- * @param {!proto.ocap.DelegateTx} msg The msg instance to transform.
1419
+ * @param {!proto.ocap.DelegateOp} msg The msg instance to transform.
1420
1420
  * @return {!Object}
1421
1421
  * @suppress {unusedLocalVariables} f is only used for nested messages
1422
1422
  */
1423
- proto.ocap.DelegateTx.toObject = function(includeInstance, msg) {
1423
+ proto.ocap.DelegateOp.toObject = function(includeInstance, msg) {
1424
1424
  var f, obj = {
1425
- address: jspb.Message.getFieldWithDefault(msg, 1, ""),
1426
- to: jspb.Message.getFieldWithDefault(msg, 2, ""),
1427
- opsList: jspb.Message.toObjectList(msg.getOpsList(),
1428
- proto.ocap.DelegateOp.toObject, includeInstance),
1429
- data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
1425
+ typeUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
1426
+ rulesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
1427
+ limit: (f = msg.getLimit()) && type_pb.DelegateLimit.toObject(includeInstance, f)
1430
1428
  };
1431
1429
 
1432
1430
  if (includeInstance) {
@@ -1440,23 +1438,23 @@ proto.ocap.DelegateTx.toObject = function(includeInstance, msg) {
1440
1438
  /**
1441
1439
  * Deserializes binary data (in protobuf wire format).
1442
1440
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1443
- * @return {!proto.ocap.DelegateTx}
1441
+ * @return {!proto.ocap.DelegateOp}
1444
1442
  */
1445
- proto.ocap.DelegateTx.deserializeBinary = function(bytes) {
1443
+ proto.ocap.DelegateOp.deserializeBinary = function(bytes) {
1446
1444
  var reader = new jspb.BinaryReader(bytes);
1447
- var msg = new proto.ocap.DelegateTx;
1448
- return proto.ocap.DelegateTx.deserializeBinaryFromReader(msg, reader);
1445
+ var msg = new proto.ocap.DelegateOp;
1446
+ return proto.ocap.DelegateOp.deserializeBinaryFromReader(msg, reader);
1449
1447
  };
1450
1448
 
1451
1449
 
1452
1450
  /**
1453
1451
  * Deserializes binary data (in protobuf wire format) from the
1454
1452
  * given reader into the given message object.
1455
- * @param {!proto.ocap.DelegateTx} msg The message object to deserialize into.
1453
+ * @param {!proto.ocap.DelegateOp} msg The message object to deserialize into.
1456
1454
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1457
- * @return {!proto.ocap.DelegateTx}
1455
+ * @return {!proto.ocap.DelegateOp}
1458
1456
  */
1459
- proto.ocap.DelegateTx.deserializeBinaryFromReader = function(msg, reader) {
1457
+ proto.ocap.DelegateOp.deserializeBinaryFromReader = function(msg, reader) {
1460
1458
  while (reader.nextField()) {
1461
1459
  if (reader.isEndGroup()) {
1462
1460
  break;
@@ -1465,21 +1463,16 @@ proto.ocap.DelegateTx.deserializeBinaryFromReader = function(msg, reader) {
1465
1463
  switch (field) {
1466
1464
  case 1:
1467
1465
  var value = /** @type {string} */ (reader.readString());
1468
- msg.setAddress(value);
1466
+ msg.setTypeUrl(value);
1469
1467
  break;
1470
1468
  case 2:
1471
1469
  var value = /** @type {string} */ (reader.readString());
1472
- msg.setTo(value);
1470
+ msg.addRules(value);
1473
1471
  break;
1474
1472
  case 3:
1475
- var value = new proto.ocap.DelegateOp;
1476
- reader.readMessage(value,proto.ocap.DelegateOp.deserializeBinaryFromReader);
1477
- msg.addOps(value);
1478
- break;
1479
- case 15:
1480
- var value = new google_protobuf_any_pb.Any;
1481
- reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
1482
- msg.setData(value);
1473
+ var value = new type_pb.DelegateLimit;
1474
+ reader.readMessage(value,type_pb.DelegateLimit.deserializeBinaryFromReader);
1475
+ msg.setLimit(value);
1483
1476
  break;
1484
1477
  default:
1485
1478
  reader.skipField();
@@ -1494,9 +1487,9 @@ proto.ocap.DelegateTx.deserializeBinaryFromReader = function(msg, reader) {
1494
1487
  * Serializes the message to binary data (in protobuf wire format).
1495
1488
  * @return {!Uint8Array}
1496
1489
  */
1497
- proto.ocap.DelegateTx.prototype.serializeBinary = function() {
1490
+ proto.ocap.DelegateOp.prototype.serializeBinary = function() {
1498
1491
  var writer = new jspb.BinaryWriter();
1499
- proto.ocap.DelegateTx.serializeBinaryToWriter(this, writer);
1492
+ proto.ocap.DelegateOp.serializeBinaryToWriter(this, writer);
1500
1493
  return writer.getResultBuffer();
1501
1494
  };
1502
1495
 
@@ -1504,144 +1497,117 @@ proto.ocap.DelegateTx.prototype.serializeBinary = function() {
1504
1497
  /**
1505
1498
  * Serializes the given message to binary data (in protobuf wire
1506
1499
  * format), writing to the given BinaryWriter.
1507
- * @param {!proto.ocap.DelegateTx} message
1500
+ * @param {!proto.ocap.DelegateOp} message
1508
1501
  * @param {!jspb.BinaryWriter} writer
1509
1502
  * @suppress {unusedLocalVariables} f is only used for nested messages
1510
1503
  */
1511
- proto.ocap.DelegateTx.serializeBinaryToWriter = function(message, writer) {
1504
+ proto.ocap.DelegateOp.serializeBinaryToWriter = function(message, writer) {
1512
1505
  var f = undefined;
1513
- f = message.getAddress();
1506
+ f = message.getTypeUrl();
1514
1507
  if (f.length > 0) {
1515
1508
  writer.writeString(
1516
1509
  1,
1517
1510
  f
1518
1511
  );
1519
1512
  }
1520
- f = message.getTo();
1513
+ f = message.getRulesList();
1521
1514
  if (f.length > 0) {
1522
- writer.writeString(
1515
+ writer.writeRepeatedString(
1523
1516
  2,
1524
1517
  f
1525
1518
  );
1526
1519
  }
1527
- f = message.getOpsList();
1528
- if (f.length > 0) {
1529
- writer.writeRepeatedMessage(
1530
- 3,
1531
- f,
1532
- proto.ocap.DelegateOp.serializeBinaryToWriter
1533
- );
1534
- }
1535
- f = message.getData();
1520
+ f = message.getLimit();
1536
1521
  if (f != null) {
1537
1522
  writer.writeMessage(
1538
- 15,
1523
+ 3,
1539
1524
  f,
1540
- google_protobuf_any_pb.Any.serializeBinaryToWriter
1525
+ type_pb.DelegateLimit.serializeBinaryToWriter
1541
1526
  );
1542
1527
  }
1543
1528
  };
1544
1529
 
1545
1530
 
1546
1531
  /**
1547
- * optional string address = 1;
1532
+ * optional string type_url = 1;
1548
1533
  * @return {string}
1549
1534
  */
1550
- proto.ocap.DelegateTx.prototype.getAddress = function() {
1535
+ proto.ocap.DelegateOp.prototype.getTypeUrl = function() {
1551
1536
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1552
1537
  };
1553
1538
 
1554
1539
 
1555
1540
  /**
1556
1541
  * @param {string} value
1557
- * @return {!proto.ocap.DelegateTx} returns this
1542
+ * @return {!proto.ocap.DelegateOp} returns this
1558
1543
  */
1559
- proto.ocap.DelegateTx.prototype.setAddress = function(value) {
1544
+ proto.ocap.DelegateOp.prototype.setTypeUrl = function(value) {
1560
1545
  return jspb.Message.setProto3StringField(this, 1, value);
1561
1546
  };
1562
1547
 
1563
1548
 
1564
1549
  /**
1565
- * optional string to = 2;
1566
- * @return {string}
1567
- */
1568
- proto.ocap.DelegateTx.prototype.getTo = function() {
1569
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1570
- };
1571
-
1572
-
1573
- /**
1574
- * @param {string} value
1575
- * @return {!proto.ocap.DelegateTx} returns this
1550
+ * repeated string rules = 2;
1551
+ * @return {!Array<string>}
1576
1552
  */
1577
- proto.ocap.DelegateTx.prototype.setTo = function(value) {
1578
- return jspb.Message.setProto3StringField(this, 2, value);
1553
+ proto.ocap.DelegateOp.prototype.getRulesList = function() {
1554
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1579
1555
  };
1580
1556
 
1581
1557
 
1582
1558
  /**
1583
- * repeated DelegateOp ops = 3;
1584
- * @return {!Array<!proto.ocap.DelegateOp>}
1559
+ * @param {!Array<string>} value
1560
+ * @return {!proto.ocap.DelegateOp} returns this
1585
1561
  */
1586
- proto.ocap.DelegateTx.prototype.getOpsList = function() {
1587
- return /** @type{!Array<!proto.ocap.DelegateOp>} */ (
1588
- jspb.Message.getRepeatedWrapperField(this, proto.ocap.DelegateOp, 3));
1589
- };
1590
-
1591
-
1592
- /**
1593
- * @param {!Array<!proto.ocap.DelegateOp>} value
1594
- * @return {!proto.ocap.DelegateTx} returns this
1595
- */
1596
- proto.ocap.DelegateTx.prototype.setOpsList = function(value) {
1597
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
1562
+ proto.ocap.DelegateOp.prototype.setRulesList = function(value) {
1563
+ return jspb.Message.setField(this, 2, value || []);
1598
1564
  };
1599
1565
 
1600
1566
 
1601
1567
  /**
1602
- * @param {!proto.ocap.DelegateOp=} opt_value
1568
+ * @param {string} value
1603
1569
  * @param {number=} opt_index
1604
- * @return {!proto.ocap.DelegateOp}
1570
+ * @return {!proto.ocap.DelegateOp} returns this
1605
1571
  */
1606
- proto.ocap.DelegateTx.prototype.addOps = function(opt_value, opt_index) {
1607
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ocap.DelegateOp, opt_index);
1572
+ proto.ocap.DelegateOp.prototype.addRules = function(value, opt_index) {
1573
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1608
1574
  };
1609
1575
 
1610
1576
 
1611
1577
  /**
1612
1578
  * Clears the list making it empty but non-null.
1613
- * @return {!proto.ocap.DelegateTx} returns this
1579
+ * @return {!proto.ocap.DelegateOp} returns this
1614
1580
  */
1615
- proto.ocap.DelegateTx.prototype.clearOpsList = function() {
1616
- return this.setOpsList([]);
1581
+ proto.ocap.DelegateOp.prototype.clearRulesList = function() {
1582
+ return this.setRulesList([]);
1617
1583
  };
1618
1584
 
1619
1585
 
1620
1586
  /**
1621
- * optional google.protobuf.Any data = 15;
1622
- * @return {?proto.google.protobuf.Any}
1587
+ * optional DelegateLimit limit = 3;
1588
+ * @return {?proto.ocap.DelegateLimit}
1623
1589
  */
1624
- proto.ocap.DelegateTx.prototype.getData = function() {
1625
- return /** @type{?proto.google.protobuf.Any} */ (
1626
- jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 15));
1590
+ proto.ocap.DelegateOp.prototype.getLimit = function() {
1591
+ return /** @type{?proto.ocap.DelegateLimit} */ (
1592
+ jspb.Message.getWrapperField(this, type_pb.DelegateLimit, 3));
1627
1593
  };
1628
1594
 
1629
1595
 
1630
1596
  /**
1631
- * @param {?proto.google.protobuf.Any|undefined} value
1632
- * @return {!proto.ocap.DelegateTx} returns this
1597
+ * @param {?proto.ocap.DelegateLimit|undefined} value
1598
+ * @return {!proto.ocap.DelegateOp} returns this
1633
1599
  */
1634
- proto.ocap.DelegateTx.prototype.setData = function(value) {
1635
- return jspb.Message.setWrapperField(this, 15, value);
1600
+ proto.ocap.DelegateOp.prototype.setLimit = function(value) {
1601
+ return jspb.Message.setWrapperField(this, 3, value);
1636
1602
  };
1637
1603
 
1638
1604
 
1639
1605
  /**
1640
1606
  * Clears the message field making it undefined.
1641
- * @return {!proto.ocap.DelegateTx} returns this
1607
+ * @return {!proto.ocap.DelegateOp} returns this
1642
1608
  */
1643
- proto.ocap.DelegateTx.prototype.clearData = function() {
1644
- return this.setData(undefined);
1609
+ proto.ocap.DelegateOp.prototype.clearLimit = function() {
1610
+ return this.setLimit(undefined);
1645
1611
  };
1646
1612
 
1647
1613
 
@@ -1649,8 +1615,8 @@ proto.ocap.DelegateTx.prototype.clearData = function() {
1649
1615
  * Returns whether this field is set.
1650
1616
  * @return {boolean}
1651
1617
  */
1652
- proto.ocap.DelegateTx.prototype.hasData = function() {
1653
- return jspb.Message.getField(this, 15) != null;
1618
+ proto.ocap.DelegateOp.prototype.hasLimit = function() {
1619
+ return jspb.Message.getField(this, 3) != null;
1654
1620
  };
1655
1621
 
1656
1622
 
@@ -1660,7 +1626,7 @@ proto.ocap.DelegateTx.prototype.hasData = function() {
1660
1626
  * @private {!Array<number>}
1661
1627
  * @const
1662
1628
  */
1663
- proto.ocap.DelegateOp.repeatedFields_ = [2];
1629
+ proto.ocap.DelegateTx.repeatedFields_ = [3];
1664
1630
 
1665
1631
 
1666
1632
 
@@ -1677,8 +1643,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1677
1643
  * http://goto/soy-param-migration
1678
1644
  * @return {!Object}
1679
1645
  */
1680
- proto.ocap.DelegateOp.prototype.toObject = function(opt_includeInstance) {
1681
- return proto.ocap.DelegateOp.toObject(opt_includeInstance, this);
1646
+ proto.ocap.DelegateTx.prototype.toObject = function(opt_includeInstance) {
1647
+ return proto.ocap.DelegateTx.toObject(opt_includeInstance, this);
1682
1648
  };
1683
1649
 
1684
1650
 
@@ -1687,14 +1653,17 @@ proto.ocap.DelegateOp.prototype.toObject = function(opt_includeInstance) {
1687
1653
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1688
1654
  * the JSPB instance for transitional soy proto support:
1689
1655
  * http://goto/soy-param-migration
1690
- * @param {!proto.ocap.DelegateOp} msg The msg instance to transform.
1656
+ * @param {!proto.ocap.DelegateTx} msg The msg instance to transform.
1691
1657
  * @return {!Object}
1692
1658
  * @suppress {unusedLocalVariables} f is only used for nested messages
1693
1659
  */
1694
- proto.ocap.DelegateOp.toObject = function(includeInstance, msg) {
1660
+ proto.ocap.DelegateTx.toObject = function(includeInstance, msg) {
1695
1661
  var f, obj = {
1696
- typeUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
1697
- rulesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1662
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
1663
+ to: jspb.Message.getFieldWithDefault(msg, 2, ""),
1664
+ opsList: jspb.Message.toObjectList(msg.getOpsList(),
1665
+ proto.ocap.DelegateOp.toObject, includeInstance),
1666
+ data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
1698
1667
  };
1699
1668
 
1700
1669
  if (includeInstance) {
@@ -1708,23 +1677,23 @@ proto.ocap.DelegateOp.toObject = function(includeInstance, msg) {
1708
1677
  /**
1709
1678
  * Deserializes binary data (in protobuf wire format).
1710
1679
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1711
- * @return {!proto.ocap.DelegateOp}
1680
+ * @return {!proto.ocap.DelegateTx}
1712
1681
  */
1713
- proto.ocap.DelegateOp.deserializeBinary = function(bytes) {
1682
+ proto.ocap.DelegateTx.deserializeBinary = function(bytes) {
1714
1683
  var reader = new jspb.BinaryReader(bytes);
1715
- var msg = new proto.ocap.DelegateOp;
1716
- return proto.ocap.DelegateOp.deserializeBinaryFromReader(msg, reader);
1684
+ var msg = new proto.ocap.DelegateTx;
1685
+ return proto.ocap.DelegateTx.deserializeBinaryFromReader(msg, reader);
1717
1686
  };
1718
1687
 
1719
1688
 
1720
1689
  /**
1721
1690
  * Deserializes binary data (in protobuf wire format) from the
1722
1691
  * given reader into the given message object.
1723
- * @param {!proto.ocap.DelegateOp} msg The message object to deserialize into.
1692
+ * @param {!proto.ocap.DelegateTx} msg The message object to deserialize into.
1724
1693
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1725
- * @return {!proto.ocap.DelegateOp}
1694
+ * @return {!proto.ocap.DelegateTx}
1726
1695
  */
1727
- proto.ocap.DelegateOp.deserializeBinaryFromReader = function(msg, reader) {
1696
+ proto.ocap.DelegateTx.deserializeBinaryFromReader = function(msg, reader) {
1728
1697
  while (reader.nextField()) {
1729
1698
  if (reader.isEndGroup()) {
1730
1699
  break;
@@ -1733,11 +1702,21 @@ proto.ocap.DelegateOp.deserializeBinaryFromReader = function(msg, reader) {
1733
1702
  switch (field) {
1734
1703
  case 1:
1735
1704
  var value = /** @type {string} */ (reader.readString());
1736
- msg.setTypeUrl(value);
1705
+ msg.setAddress(value);
1737
1706
  break;
1738
1707
  case 2:
1739
1708
  var value = /** @type {string} */ (reader.readString());
1740
- msg.addRules(value);
1709
+ msg.setTo(value);
1710
+ break;
1711
+ case 3:
1712
+ var value = new proto.ocap.DelegateOp;
1713
+ reader.readMessage(value,proto.ocap.DelegateOp.deserializeBinaryFromReader);
1714
+ msg.addOps(value);
1715
+ break;
1716
+ case 15:
1717
+ var value = new google_protobuf_any_pb.Any;
1718
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
1719
+ msg.setData(value);
1741
1720
  break;
1742
1721
  default:
1743
1722
  reader.skipField();
@@ -1752,9 +1731,9 @@ proto.ocap.DelegateOp.deserializeBinaryFromReader = function(msg, reader) {
1752
1731
  * Serializes the message to binary data (in protobuf wire format).
1753
1732
  * @return {!Uint8Array}
1754
1733
  */
1755
- proto.ocap.DelegateOp.prototype.serializeBinary = function() {
1734
+ proto.ocap.DelegateTx.prototype.serializeBinary = function() {
1756
1735
  var writer = new jspb.BinaryWriter();
1757
- proto.ocap.DelegateOp.serializeBinaryToWriter(this, writer);
1736
+ proto.ocap.DelegateTx.serializeBinaryToWriter(this, writer);
1758
1737
  return writer.getResultBuffer();
1759
1738
  };
1760
1739
 
@@ -1762,81 +1741,153 @@ proto.ocap.DelegateOp.prototype.serializeBinary = function() {
1762
1741
  /**
1763
1742
  * Serializes the given message to binary data (in protobuf wire
1764
1743
  * format), writing to the given BinaryWriter.
1765
- * @param {!proto.ocap.DelegateOp} message
1744
+ * @param {!proto.ocap.DelegateTx} message
1766
1745
  * @param {!jspb.BinaryWriter} writer
1767
1746
  * @suppress {unusedLocalVariables} f is only used for nested messages
1768
1747
  */
1769
- proto.ocap.DelegateOp.serializeBinaryToWriter = function(message, writer) {
1748
+ proto.ocap.DelegateTx.serializeBinaryToWriter = function(message, writer) {
1770
1749
  var f = undefined;
1771
- f = message.getTypeUrl();
1750
+ f = message.getAddress();
1772
1751
  if (f.length > 0) {
1773
1752
  writer.writeString(
1774
1753
  1,
1775
1754
  f
1776
1755
  );
1777
1756
  }
1778
- f = message.getRulesList();
1757
+ f = message.getTo();
1779
1758
  if (f.length > 0) {
1780
- writer.writeRepeatedString(
1759
+ writer.writeString(
1781
1760
  2,
1782
1761
  f
1783
1762
  );
1784
1763
  }
1764
+ f = message.getOpsList();
1765
+ if (f.length > 0) {
1766
+ writer.writeRepeatedMessage(
1767
+ 3,
1768
+ f,
1769
+ proto.ocap.DelegateOp.serializeBinaryToWriter
1770
+ );
1771
+ }
1772
+ f = message.getData();
1773
+ if (f != null) {
1774
+ writer.writeMessage(
1775
+ 15,
1776
+ f,
1777
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
1778
+ );
1779
+ }
1785
1780
  };
1786
1781
 
1787
1782
 
1788
1783
  /**
1789
- * optional string type_url = 1;
1784
+ * optional string address = 1;
1790
1785
  * @return {string}
1791
1786
  */
1792
- proto.ocap.DelegateOp.prototype.getTypeUrl = function() {
1787
+ proto.ocap.DelegateTx.prototype.getAddress = function() {
1793
1788
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1794
1789
  };
1795
1790
 
1796
1791
 
1797
1792
  /**
1798
1793
  * @param {string} value
1799
- * @return {!proto.ocap.DelegateOp} returns this
1794
+ * @return {!proto.ocap.DelegateTx} returns this
1800
1795
  */
1801
- proto.ocap.DelegateOp.prototype.setTypeUrl = function(value) {
1796
+ proto.ocap.DelegateTx.prototype.setAddress = function(value) {
1802
1797
  return jspb.Message.setProto3StringField(this, 1, value);
1803
1798
  };
1804
1799
 
1805
1800
 
1806
1801
  /**
1807
- * repeated string rules = 2;
1808
- * @return {!Array<string>}
1802
+ * optional string to = 2;
1803
+ * @return {string}
1809
1804
  */
1810
- proto.ocap.DelegateOp.prototype.getRulesList = function() {
1811
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1805
+ proto.ocap.DelegateTx.prototype.getTo = function() {
1806
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1812
1807
  };
1813
1808
 
1814
1809
 
1815
1810
  /**
1816
- * @param {!Array<string>} value
1817
- * @return {!proto.ocap.DelegateOp} returns this
1811
+ * @param {string} value
1812
+ * @return {!proto.ocap.DelegateTx} returns this
1818
1813
  */
1819
- proto.ocap.DelegateOp.prototype.setRulesList = function(value) {
1820
- return jspb.Message.setField(this, 2, value || []);
1814
+ proto.ocap.DelegateTx.prototype.setTo = function(value) {
1815
+ return jspb.Message.setProto3StringField(this, 2, value);
1821
1816
  };
1822
1817
 
1823
1818
 
1824
1819
  /**
1825
- * @param {string} value
1820
+ * repeated DelegateOp ops = 3;
1821
+ * @return {!Array<!proto.ocap.DelegateOp>}
1822
+ */
1823
+ proto.ocap.DelegateTx.prototype.getOpsList = function() {
1824
+ return /** @type{!Array<!proto.ocap.DelegateOp>} */ (
1825
+ jspb.Message.getRepeatedWrapperField(this, proto.ocap.DelegateOp, 3));
1826
+ };
1827
+
1828
+
1829
+ /**
1830
+ * @param {!Array<!proto.ocap.DelegateOp>} value
1831
+ * @return {!proto.ocap.DelegateTx} returns this
1832
+ */
1833
+ proto.ocap.DelegateTx.prototype.setOpsList = function(value) {
1834
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * @param {!proto.ocap.DelegateOp=} opt_value
1826
1840
  * @param {number=} opt_index
1827
- * @return {!proto.ocap.DelegateOp} returns this
1841
+ * @return {!proto.ocap.DelegateOp}
1828
1842
  */
1829
- proto.ocap.DelegateOp.prototype.addRules = function(value, opt_index) {
1830
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1843
+ proto.ocap.DelegateTx.prototype.addOps = function(opt_value, opt_index) {
1844
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ocap.DelegateOp, opt_index);
1831
1845
  };
1832
1846
 
1833
1847
 
1834
1848
  /**
1835
1849
  * Clears the list making it empty but non-null.
1836
- * @return {!proto.ocap.DelegateOp} returns this
1850
+ * @return {!proto.ocap.DelegateTx} returns this
1837
1851
  */
1838
- proto.ocap.DelegateOp.prototype.clearRulesList = function() {
1839
- return this.setRulesList([]);
1852
+ proto.ocap.DelegateTx.prototype.clearOpsList = function() {
1853
+ return this.setOpsList([]);
1854
+ };
1855
+
1856
+
1857
+ /**
1858
+ * optional google.protobuf.Any data = 15;
1859
+ * @return {?proto.google.protobuf.Any}
1860
+ */
1861
+ proto.ocap.DelegateTx.prototype.getData = function() {
1862
+ return /** @type{?proto.google.protobuf.Any} */ (
1863
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 15));
1864
+ };
1865
+
1866
+
1867
+ /**
1868
+ * @param {?proto.google.protobuf.Any|undefined} value
1869
+ * @return {!proto.ocap.DelegateTx} returns this
1870
+ */
1871
+ proto.ocap.DelegateTx.prototype.setData = function(value) {
1872
+ return jspb.Message.setWrapperField(this, 15, value);
1873
+ };
1874
+
1875
+
1876
+ /**
1877
+ * Clears the message field making it undefined.
1878
+ * @return {!proto.ocap.DelegateTx} returns this
1879
+ */
1880
+ proto.ocap.DelegateTx.prototype.clearData = function() {
1881
+ return this.setData(undefined);
1882
+ };
1883
+
1884
+
1885
+ /**
1886
+ * Returns whether this field is set.
1887
+ * @return {boolean}
1888
+ */
1889
+ proto.ocap.DelegateTx.prototype.hasData = function() {
1890
+ return jspb.Message.getField(this, 15) != null;
1840
1891
  };
1841
1892
 
1842
1893