@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.
@@ -31,6 +31,7 @@ var enum_pb = require('./enum_pb.js');
31
31
  goog.object.extend(proto, enum_pb);
32
32
  goog.exportSymbol('proto.ocap.AccountConfig', null, root);
33
33
  goog.exportSymbol('proto.ocap.AssetFactoryHook', null, root);
34
+ goog.exportSymbol('proto.ocap.AssetLimit', null, root);
34
35
  goog.exportSymbol('proto.ocap.BigSint', null, root);
35
36
  goog.exportSymbol('proto.ocap.BigUint', null, root);
36
37
  goog.exportSymbol('proto.ocap.BlockInfo', null, root);
@@ -38,6 +39,7 @@ goog.exportSymbol('proto.ocap.BlockInfoSimple', null, root);
38
39
  goog.exportSymbol('proto.ocap.ChainInfo', null, root);
39
40
  goog.exportSymbol('proto.ocap.ConsensusParams', null, root);
40
41
  goog.exportSymbol('proto.ocap.DelegateConfig', null, root);
42
+ goog.exportSymbol('proto.ocap.DelegateLimit', null, root);
41
43
  goog.exportSymbol('proto.ocap.Evidence', null, root);
42
44
  goog.exportSymbol('proto.ocap.ForeignToken', null, root);
43
45
  goog.exportSymbol('proto.ocap.ForgeStats', null, root);
@@ -53,6 +55,7 @@ goog.exportSymbol('proto.ocap.NFTIssuer', null, root);
53
55
  goog.exportSymbol('proto.ocap.NetInfo', null, root);
54
56
  goog.exportSymbol('proto.ocap.NodeInfo', null, root);
55
57
  goog.exportSymbol('proto.ocap.PeerInfo', null, root);
58
+ goog.exportSymbol('proto.ocap.RateLimit', null, root);
56
59
  goog.exportSymbol('proto.ocap.ReceiptChange', null, root);
57
60
  goog.exportSymbol('proto.ocap.RevokedStake', null, root);
58
61
  goog.exportSymbol('proto.ocap.RollupSignature', null, root);
@@ -60,6 +63,7 @@ goog.exportSymbol('proto.ocap.RollupValidator', null, root);
60
63
  goog.exportSymbol('proto.ocap.StakeSummary', null, root);
61
64
  goog.exportSymbol('proto.ocap.StateContext', null, root);
62
65
  goog.exportSymbol('proto.ocap.TokenInput', null, root);
66
+ goog.exportSymbol('proto.ocap.TokenLimit', null, root);
63
67
  goog.exportSymbol('proto.ocap.TokenSymbol', null, root);
64
68
  goog.exportSymbol('proto.ocap.Transaction', null, root);
65
69
  goog.exportSymbol('proto.ocap.TransactionConfig', null, root);
@@ -1151,6 +1155,90 @@ if (goog.DEBUG && !COMPILED) {
1151
1155
  */
1152
1156
  proto.ocap.GasEstimate.displayName = 'proto.ocap.GasEstimate';
1153
1157
  }
1158
+ /**
1159
+ * Generated by JsPbCodeGenerator.
1160
+ * @param {Array=} opt_data Optional initial data array, typically from a
1161
+ * server response, or constructed directly in Javascript. The array is used
1162
+ * in place and becomes part of the constructed object. It is not cloned.
1163
+ * If no data is provided, the constructed object will be empty, but still
1164
+ * valid.
1165
+ * @extends {jspb.Message}
1166
+ * @constructor
1167
+ */
1168
+ proto.ocap.RateLimit = function(opt_data) {
1169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1170
+ };
1171
+ goog.inherits(proto.ocap.RateLimit, jspb.Message);
1172
+ if (goog.DEBUG && !COMPILED) {
1173
+ /**
1174
+ * @public
1175
+ * @override
1176
+ */
1177
+ proto.ocap.RateLimit.displayName = 'proto.ocap.RateLimit';
1178
+ }
1179
+ /**
1180
+ * Generated by JsPbCodeGenerator.
1181
+ * @param {Array=} opt_data Optional initial data array, typically from a
1182
+ * server response, or constructed directly in Javascript. The array is used
1183
+ * in place and becomes part of the constructed object. It is not cloned.
1184
+ * If no data is provided, the constructed object will be empty, but still
1185
+ * valid.
1186
+ * @extends {jspb.Message}
1187
+ * @constructor
1188
+ */
1189
+ proto.ocap.TokenLimit = function(opt_data) {
1190
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.TokenLimit.repeatedFields_, null);
1191
+ };
1192
+ goog.inherits(proto.ocap.TokenLimit, jspb.Message);
1193
+ if (goog.DEBUG && !COMPILED) {
1194
+ /**
1195
+ * @public
1196
+ * @override
1197
+ */
1198
+ proto.ocap.TokenLimit.displayName = 'proto.ocap.TokenLimit';
1199
+ }
1200
+ /**
1201
+ * Generated by JsPbCodeGenerator.
1202
+ * @param {Array=} opt_data Optional initial data array, typically from a
1203
+ * server response, or constructed directly in Javascript. The array is used
1204
+ * in place and becomes part of the constructed object. It is not cloned.
1205
+ * If no data is provided, the constructed object will be empty, but still
1206
+ * valid.
1207
+ * @extends {jspb.Message}
1208
+ * @constructor
1209
+ */
1210
+ proto.ocap.AssetLimit = function(opt_data) {
1211
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.AssetLimit.repeatedFields_, null);
1212
+ };
1213
+ goog.inherits(proto.ocap.AssetLimit, jspb.Message);
1214
+ if (goog.DEBUG && !COMPILED) {
1215
+ /**
1216
+ * @public
1217
+ * @override
1218
+ */
1219
+ proto.ocap.AssetLimit.displayName = 'proto.ocap.AssetLimit';
1220
+ }
1221
+ /**
1222
+ * Generated by JsPbCodeGenerator.
1223
+ * @param {Array=} opt_data Optional initial data array, typically from a
1224
+ * server response, or constructed directly in Javascript. The array is used
1225
+ * in place and becomes part of the constructed object. It is not cloned.
1226
+ * If no data is provided, the constructed object will be empty, but still
1227
+ * valid.
1228
+ * @extends {jspb.Message}
1229
+ * @constructor
1230
+ */
1231
+ proto.ocap.DelegateLimit = function(opt_data) {
1232
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.DelegateLimit.repeatedFields_, null);
1233
+ };
1234
+ goog.inherits(proto.ocap.DelegateLimit, jspb.Message);
1235
+ if (goog.DEBUG && !COMPILED) {
1236
+ /**
1237
+ * @public
1238
+ * @override
1239
+ */
1240
+ proto.ocap.DelegateLimit.displayName = 'proto.ocap.DelegateLimit';
1241
+ }
1154
1242
 
1155
1243
 
1156
1244
 
@@ -16479,4 +16567,1200 @@ proto.ocap.GasEstimate.prototype.setMax = function(value) {
16479
16567
  };
16480
16568
 
16481
16569
 
16570
+
16571
+
16572
+
16573
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16574
+ /**
16575
+ * Creates an object representation of this proto.
16576
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16577
+ * Optional fields that are not set will be set to undefined.
16578
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16579
+ * For the list of reserved names please see:
16580
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16581
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16582
+ * JSPB instance for transitional soy proto support:
16583
+ * http://goto/soy-param-migration
16584
+ * @return {!Object}
16585
+ */
16586
+ proto.ocap.RateLimit.prototype.toObject = function(opt_includeInstance) {
16587
+ return proto.ocap.RateLimit.toObject(opt_includeInstance, this);
16588
+ };
16589
+
16590
+
16591
+ /**
16592
+ * Static version of the {@see toObject} method.
16593
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16594
+ * the JSPB instance for transitional soy proto support:
16595
+ * http://goto/soy-param-migration
16596
+ * @param {!proto.ocap.RateLimit} msg The msg instance to transform.
16597
+ * @return {!Object}
16598
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16599
+ */
16600
+ proto.ocap.RateLimit.toObject = function(includeInstance, msg) {
16601
+ var f, obj = {
16602
+ interval: jspb.Message.getFieldWithDefault(msg, 1, 0),
16603
+ anchor: jspb.Message.getFieldWithDefault(msg, 3, 0)
16604
+ };
16605
+
16606
+ if (includeInstance) {
16607
+ obj.$jspbMessageInstance = msg;
16608
+ }
16609
+ return obj;
16610
+ };
16611
+ }
16612
+
16613
+
16614
+ /**
16615
+ * Deserializes binary data (in protobuf wire format).
16616
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16617
+ * @return {!proto.ocap.RateLimit}
16618
+ */
16619
+ proto.ocap.RateLimit.deserializeBinary = function(bytes) {
16620
+ var reader = new jspb.BinaryReader(bytes);
16621
+ var msg = new proto.ocap.RateLimit;
16622
+ return proto.ocap.RateLimit.deserializeBinaryFromReader(msg, reader);
16623
+ };
16624
+
16625
+
16626
+ /**
16627
+ * Deserializes binary data (in protobuf wire format) from the
16628
+ * given reader into the given message object.
16629
+ * @param {!proto.ocap.RateLimit} msg The message object to deserialize into.
16630
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16631
+ * @return {!proto.ocap.RateLimit}
16632
+ */
16633
+ proto.ocap.RateLimit.deserializeBinaryFromReader = function(msg, reader) {
16634
+ while (reader.nextField()) {
16635
+ if (reader.isEndGroup()) {
16636
+ break;
16637
+ }
16638
+ var field = reader.getFieldNumber();
16639
+ switch (field) {
16640
+ case 1:
16641
+ var value = /** @type {number} */ (reader.readUint64());
16642
+ msg.setInterval(value);
16643
+ break;
16644
+ case 3:
16645
+ var value = /** @type {number} */ (reader.readUint64());
16646
+ msg.setAnchor(value);
16647
+ break;
16648
+ default:
16649
+ reader.skipField();
16650
+ break;
16651
+ }
16652
+ }
16653
+ return msg;
16654
+ };
16655
+
16656
+
16657
+ /**
16658
+ * Serializes the message to binary data (in protobuf wire format).
16659
+ * @return {!Uint8Array}
16660
+ */
16661
+ proto.ocap.RateLimit.prototype.serializeBinary = function() {
16662
+ var writer = new jspb.BinaryWriter();
16663
+ proto.ocap.RateLimit.serializeBinaryToWriter(this, writer);
16664
+ return writer.getResultBuffer();
16665
+ };
16666
+
16667
+
16668
+ /**
16669
+ * Serializes the given message to binary data (in protobuf wire
16670
+ * format), writing to the given BinaryWriter.
16671
+ * @param {!proto.ocap.RateLimit} message
16672
+ * @param {!jspb.BinaryWriter} writer
16673
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16674
+ */
16675
+ proto.ocap.RateLimit.serializeBinaryToWriter = function(message, writer) {
16676
+ var f = undefined;
16677
+ f = message.getInterval();
16678
+ if (f !== 0) {
16679
+ writer.writeUint64(
16680
+ 1,
16681
+ f
16682
+ );
16683
+ }
16684
+ f = message.getAnchor();
16685
+ if (f !== 0) {
16686
+ writer.writeUint64(
16687
+ 3,
16688
+ f
16689
+ );
16690
+ }
16691
+ };
16692
+
16693
+
16694
+ /**
16695
+ * optional uint64 interval = 1;
16696
+ * @return {number}
16697
+ */
16698
+ proto.ocap.RateLimit.prototype.getInterval = function() {
16699
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
16700
+ };
16701
+
16702
+
16703
+ /**
16704
+ * @param {number} value
16705
+ * @return {!proto.ocap.RateLimit} returns this
16706
+ */
16707
+ proto.ocap.RateLimit.prototype.setInterval = function(value) {
16708
+ return jspb.Message.setProto3IntField(this, 1, value);
16709
+ };
16710
+
16711
+
16712
+ /**
16713
+ * optional uint64 anchor = 3;
16714
+ * @return {number}
16715
+ */
16716
+ proto.ocap.RateLimit.prototype.getAnchor = function() {
16717
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
16718
+ };
16719
+
16720
+
16721
+ /**
16722
+ * @param {number} value
16723
+ * @return {!proto.ocap.RateLimit} returns this
16724
+ */
16725
+ proto.ocap.RateLimit.prototype.setAnchor = function(value) {
16726
+ return jspb.Message.setProto3IntField(this, 3, value);
16727
+ };
16728
+
16729
+
16730
+
16731
+ /**
16732
+ * List of repeated fields within this message type.
16733
+ * @private {!Array<number>}
16734
+ * @const
16735
+ */
16736
+ proto.ocap.TokenLimit.repeatedFields_ = [2];
16737
+
16738
+
16739
+
16740
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16741
+ /**
16742
+ * Creates an object representation of this proto.
16743
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16744
+ * Optional fields that are not set will be set to undefined.
16745
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16746
+ * For the list of reserved names please see:
16747
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16748
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16749
+ * JSPB instance for transitional soy proto support:
16750
+ * http://goto/soy-param-migration
16751
+ * @return {!Object}
16752
+ */
16753
+ proto.ocap.TokenLimit.prototype.toObject = function(opt_includeInstance) {
16754
+ return proto.ocap.TokenLimit.toObject(opt_includeInstance, this);
16755
+ };
16756
+
16757
+
16758
+ /**
16759
+ * Static version of the {@see toObject} method.
16760
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16761
+ * the JSPB instance for transitional soy proto support:
16762
+ * http://goto/soy-param-migration
16763
+ * @param {!proto.ocap.TokenLimit} msg The msg instance to transform.
16764
+ * @return {!Object}
16765
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16766
+ */
16767
+ proto.ocap.TokenLimit.toObject = function(includeInstance, msg) {
16768
+ var f, obj = {
16769
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
16770
+ toList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
16771
+ txCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
16772
+ txAllowance: jspb.Message.getFieldWithDefault(msg, 4, ""),
16773
+ totalAllowance: jspb.Message.getFieldWithDefault(msg, 5, ""),
16774
+ validUntil: jspb.Message.getFieldWithDefault(msg, 6, 0),
16775
+ rate: (f = msg.getRate()) && proto.ocap.RateLimit.toObject(includeInstance, f),
16776
+ txSent: jspb.Message.getFieldWithDefault(msg, 8, 0),
16777
+ spentAllowance: jspb.Message.getFieldWithDefault(msg, 9, ""),
16778
+ lastTx: jspb.Message.getFieldWithDefault(msg, 10, 0)
16779
+ };
16780
+
16781
+ if (includeInstance) {
16782
+ obj.$jspbMessageInstance = msg;
16783
+ }
16784
+ return obj;
16785
+ };
16786
+ }
16787
+
16788
+
16789
+ /**
16790
+ * Deserializes binary data (in protobuf wire format).
16791
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16792
+ * @return {!proto.ocap.TokenLimit}
16793
+ */
16794
+ proto.ocap.TokenLimit.deserializeBinary = function(bytes) {
16795
+ var reader = new jspb.BinaryReader(bytes);
16796
+ var msg = new proto.ocap.TokenLimit;
16797
+ return proto.ocap.TokenLimit.deserializeBinaryFromReader(msg, reader);
16798
+ };
16799
+
16800
+
16801
+ /**
16802
+ * Deserializes binary data (in protobuf wire format) from the
16803
+ * given reader into the given message object.
16804
+ * @param {!proto.ocap.TokenLimit} msg The message object to deserialize into.
16805
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16806
+ * @return {!proto.ocap.TokenLimit}
16807
+ */
16808
+ proto.ocap.TokenLimit.deserializeBinaryFromReader = function(msg, reader) {
16809
+ while (reader.nextField()) {
16810
+ if (reader.isEndGroup()) {
16811
+ break;
16812
+ }
16813
+ var field = reader.getFieldNumber();
16814
+ switch (field) {
16815
+ case 1:
16816
+ var value = /** @type {string} */ (reader.readString());
16817
+ msg.setAddress(value);
16818
+ break;
16819
+ case 2:
16820
+ var value = /** @type {string} */ (reader.readString());
16821
+ msg.addTo(value);
16822
+ break;
16823
+ case 3:
16824
+ var value = /** @type {number} */ (reader.readUint32());
16825
+ msg.setTxCount(value);
16826
+ break;
16827
+ case 4:
16828
+ var value = /** @type {string} */ (reader.readString());
16829
+ msg.setTxAllowance(value);
16830
+ break;
16831
+ case 5:
16832
+ var value = /** @type {string} */ (reader.readString());
16833
+ msg.setTotalAllowance(value);
16834
+ break;
16835
+ case 6:
16836
+ var value = /** @type {number} */ (reader.readUint64());
16837
+ msg.setValidUntil(value);
16838
+ break;
16839
+ case 7:
16840
+ var value = new proto.ocap.RateLimit;
16841
+ reader.readMessage(value,proto.ocap.RateLimit.deserializeBinaryFromReader);
16842
+ msg.setRate(value);
16843
+ break;
16844
+ case 8:
16845
+ var value = /** @type {number} */ (reader.readUint32());
16846
+ msg.setTxSent(value);
16847
+ break;
16848
+ case 9:
16849
+ var value = /** @type {string} */ (reader.readString());
16850
+ msg.setSpentAllowance(value);
16851
+ break;
16852
+ case 10:
16853
+ var value = /** @type {number} */ (reader.readUint64());
16854
+ msg.setLastTx(value);
16855
+ break;
16856
+ default:
16857
+ reader.skipField();
16858
+ break;
16859
+ }
16860
+ }
16861
+ return msg;
16862
+ };
16863
+
16864
+
16865
+ /**
16866
+ * Serializes the message to binary data (in protobuf wire format).
16867
+ * @return {!Uint8Array}
16868
+ */
16869
+ proto.ocap.TokenLimit.prototype.serializeBinary = function() {
16870
+ var writer = new jspb.BinaryWriter();
16871
+ proto.ocap.TokenLimit.serializeBinaryToWriter(this, writer);
16872
+ return writer.getResultBuffer();
16873
+ };
16874
+
16875
+
16876
+ /**
16877
+ * Serializes the given message to binary data (in protobuf wire
16878
+ * format), writing to the given BinaryWriter.
16879
+ * @param {!proto.ocap.TokenLimit} message
16880
+ * @param {!jspb.BinaryWriter} writer
16881
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16882
+ */
16883
+ proto.ocap.TokenLimit.serializeBinaryToWriter = function(message, writer) {
16884
+ var f = undefined;
16885
+ f = message.getAddress();
16886
+ if (f.length > 0) {
16887
+ writer.writeString(
16888
+ 1,
16889
+ f
16890
+ );
16891
+ }
16892
+ f = message.getToList();
16893
+ if (f.length > 0) {
16894
+ writer.writeRepeatedString(
16895
+ 2,
16896
+ f
16897
+ );
16898
+ }
16899
+ f = message.getTxCount();
16900
+ if (f !== 0) {
16901
+ writer.writeUint32(
16902
+ 3,
16903
+ f
16904
+ );
16905
+ }
16906
+ f = message.getTxAllowance();
16907
+ if (f.length > 0) {
16908
+ writer.writeString(
16909
+ 4,
16910
+ f
16911
+ );
16912
+ }
16913
+ f = message.getTotalAllowance();
16914
+ if (f.length > 0) {
16915
+ writer.writeString(
16916
+ 5,
16917
+ f
16918
+ );
16919
+ }
16920
+ f = message.getValidUntil();
16921
+ if (f !== 0) {
16922
+ writer.writeUint64(
16923
+ 6,
16924
+ f
16925
+ );
16926
+ }
16927
+ f = message.getRate();
16928
+ if (f != null) {
16929
+ writer.writeMessage(
16930
+ 7,
16931
+ f,
16932
+ proto.ocap.RateLimit.serializeBinaryToWriter
16933
+ );
16934
+ }
16935
+ f = message.getTxSent();
16936
+ if (f !== 0) {
16937
+ writer.writeUint32(
16938
+ 8,
16939
+ f
16940
+ );
16941
+ }
16942
+ f = message.getSpentAllowance();
16943
+ if (f.length > 0) {
16944
+ writer.writeString(
16945
+ 9,
16946
+ f
16947
+ );
16948
+ }
16949
+ f = message.getLastTx();
16950
+ if (f !== 0) {
16951
+ writer.writeUint64(
16952
+ 10,
16953
+ f
16954
+ );
16955
+ }
16956
+ };
16957
+
16958
+
16959
+ /**
16960
+ * optional string address = 1;
16961
+ * @return {string}
16962
+ */
16963
+ proto.ocap.TokenLimit.prototype.getAddress = function() {
16964
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16965
+ };
16966
+
16967
+
16968
+ /**
16969
+ * @param {string} value
16970
+ * @return {!proto.ocap.TokenLimit} returns this
16971
+ */
16972
+ proto.ocap.TokenLimit.prototype.setAddress = function(value) {
16973
+ return jspb.Message.setProto3StringField(this, 1, value);
16974
+ };
16975
+
16976
+
16977
+ /**
16978
+ * repeated string to = 2;
16979
+ * @return {!Array<string>}
16980
+ */
16981
+ proto.ocap.TokenLimit.prototype.getToList = function() {
16982
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
16983
+ };
16984
+
16985
+
16986
+ /**
16987
+ * @param {!Array<string>} value
16988
+ * @return {!proto.ocap.TokenLimit} returns this
16989
+ */
16990
+ proto.ocap.TokenLimit.prototype.setToList = function(value) {
16991
+ return jspb.Message.setField(this, 2, value || []);
16992
+ };
16993
+
16994
+
16995
+ /**
16996
+ * @param {string} value
16997
+ * @param {number=} opt_index
16998
+ * @return {!proto.ocap.TokenLimit} returns this
16999
+ */
17000
+ proto.ocap.TokenLimit.prototype.addTo = function(value, opt_index) {
17001
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
17002
+ };
17003
+
17004
+
17005
+ /**
17006
+ * Clears the list making it empty but non-null.
17007
+ * @return {!proto.ocap.TokenLimit} returns this
17008
+ */
17009
+ proto.ocap.TokenLimit.prototype.clearToList = function() {
17010
+ return this.setToList([]);
17011
+ };
17012
+
17013
+
17014
+ /**
17015
+ * optional uint32 tx_count = 3;
17016
+ * @return {number}
17017
+ */
17018
+ proto.ocap.TokenLimit.prototype.getTxCount = function() {
17019
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
17020
+ };
17021
+
17022
+
17023
+ /**
17024
+ * @param {number} value
17025
+ * @return {!proto.ocap.TokenLimit} returns this
17026
+ */
17027
+ proto.ocap.TokenLimit.prototype.setTxCount = function(value) {
17028
+ return jspb.Message.setProto3IntField(this, 3, value);
17029
+ };
17030
+
17031
+
17032
+ /**
17033
+ * optional string tx_allowance = 4;
17034
+ * @return {string}
17035
+ */
17036
+ proto.ocap.TokenLimit.prototype.getTxAllowance = function() {
17037
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
17038
+ };
17039
+
17040
+
17041
+ /**
17042
+ * @param {string} value
17043
+ * @return {!proto.ocap.TokenLimit} returns this
17044
+ */
17045
+ proto.ocap.TokenLimit.prototype.setTxAllowance = function(value) {
17046
+ return jspb.Message.setProto3StringField(this, 4, value);
17047
+ };
17048
+
17049
+
17050
+ /**
17051
+ * optional string total_allowance = 5;
17052
+ * @return {string}
17053
+ */
17054
+ proto.ocap.TokenLimit.prototype.getTotalAllowance = function() {
17055
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
17056
+ };
17057
+
17058
+
17059
+ /**
17060
+ * @param {string} value
17061
+ * @return {!proto.ocap.TokenLimit} returns this
17062
+ */
17063
+ proto.ocap.TokenLimit.prototype.setTotalAllowance = function(value) {
17064
+ return jspb.Message.setProto3StringField(this, 5, value);
17065
+ };
17066
+
17067
+
17068
+ /**
17069
+ * optional uint64 valid_until = 6;
17070
+ * @return {number}
17071
+ */
17072
+ proto.ocap.TokenLimit.prototype.getValidUntil = function() {
17073
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
17074
+ };
17075
+
17076
+
17077
+ /**
17078
+ * @param {number} value
17079
+ * @return {!proto.ocap.TokenLimit} returns this
17080
+ */
17081
+ proto.ocap.TokenLimit.prototype.setValidUntil = function(value) {
17082
+ return jspb.Message.setProto3IntField(this, 6, value);
17083
+ };
17084
+
17085
+
17086
+ /**
17087
+ * optional RateLimit rate = 7;
17088
+ * @return {?proto.ocap.RateLimit}
17089
+ */
17090
+ proto.ocap.TokenLimit.prototype.getRate = function() {
17091
+ return /** @type{?proto.ocap.RateLimit} */ (
17092
+ jspb.Message.getWrapperField(this, proto.ocap.RateLimit, 7));
17093
+ };
17094
+
17095
+
17096
+ /**
17097
+ * @param {?proto.ocap.RateLimit|undefined} value
17098
+ * @return {!proto.ocap.TokenLimit} returns this
17099
+ */
17100
+ proto.ocap.TokenLimit.prototype.setRate = function(value) {
17101
+ return jspb.Message.setWrapperField(this, 7, value);
17102
+ };
17103
+
17104
+
17105
+ /**
17106
+ * Clears the message field making it undefined.
17107
+ * @return {!proto.ocap.TokenLimit} returns this
17108
+ */
17109
+ proto.ocap.TokenLimit.prototype.clearRate = function() {
17110
+ return this.setRate(undefined);
17111
+ };
17112
+
17113
+
17114
+ /**
17115
+ * Returns whether this field is set.
17116
+ * @return {boolean}
17117
+ */
17118
+ proto.ocap.TokenLimit.prototype.hasRate = function() {
17119
+ return jspb.Message.getField(this, 7) != null;
17120
+ };
17121
+
17122
+
17123
+ /**
17124
+ * optional uint32 tx_sent = 8;
17125
+ * @return {number}
17126
+ */
17127
+ proto.ocap.TokenLimit.prototype.getTxSent = function() {
17128
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
17129
+ };
17130
+
17131
+
17132
+ /**
17133
+ * @param {number} value
17134
+ * @return {!proto.ocap.TokenLimit} returns this
17135
+ */
17136
+ proto.ocap.TokenLimit.prototype.setTxSent = function(value) {
17137
+ return jspb.Message.setProto3IntField(this, 8, value);
17138
+ };
17139
+
17140
+
17141
+ /**
17142
+ * optional string spent_allowance = 9;
17143
+ * @return {string}
17144
+ */
17145
+ proto.ocap.TokenLimit.prototype.getSpentAllowance = function() {
17146
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
17147
+ };
17148
+
17149
+
17150
+ /**
17151
+ * @param {string} value
17152
+ * @return {!proto.ocap.TokenLimit} returns this
17153
+ */
17154
+ proto.ocap.TokenLimit.prototype.setSpentAllowance = function(value) {
17155
+ return jspb.Message.setProto3StringField(this, 9, value);
17156
+ };
17157
+
17158
+
17159
+ /**
17160
+ * optional uint64 last_tx = 10;
17161
+ * @return {number}
17162
+ */
17163
+ proto.ocap.TokenLimit.prototype.getLastTx = function() {
17164
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
17165
+ };
17166
+
17167
+
17168
+ /**
17169
+ * @param {number} value
17170
+ * @return {!proto.ocap.TokenLimit} returns this
17171
+ */
17172
+ proto.ocap.TokenLimit.prototype.setLastTx = function(value) {
17173
+ return jspb.Message.setProto3IntField(this, 10, value);
17174
+ };
17175
+
17176
+
17177
+
17178
+ /**
17179
+ * List of repeated fields within this message type.
17180
+ * @private {!Array<number>}
17181
+ * @const
17182
+ */
17183
+ proto.ocap.AssetLimit.repeatedFields_ = [1,2];
17184
+
17185
+
17186
+
17187
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17188
+ /**
17189
+ * Creates an object representation of this proto.
17190
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17191
+ * Optional fields that are not set will be set to undefined.
17192
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17193
+ * For the list of reserved names please see:
17194
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17195
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17196
+ * JSPB instance for transitional soy proto support:
17197
+ * http://goto/soy-param-migration
17198
+ * @return {!Object}
17199
+ */
17200
+ proto.ocap.AssetLimit.prototype.toObject = function(opt_includeInstance) {
17201
+ return proto.ocap.AssetLimit.toObject(opt_includeInstance, this);
17202
+ };
17203
+
17204
+
17205
+ /**
17206
+ * Static version of the {@see toObject} method.
17207
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17208
+ * the JSPB instance for transitional soy proto support:
17209
+ * http://goto/soy-param-migration
17210
+ * @param {!proto.ocap.AssetLimit} msg The msg instance to transform.
17211
+ * @return {!Object}
17212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17213
+ */
17214
+ proto.ocap.AssetLimit.toObject = function(includeInstance, msg) {
17215
+ var f, obj = {
17216
+ addressList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
17217
+ toList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
17218
+ txCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
17219
+ validUntil: jspb.Message.getFieldWithDefault(msg, 4, 0),
17220
+ rate: (f = msg.getRate()) && proto.ocap.RateLimit.toObject(includeInstance, f),
17221
+ txSent: jspb.Message.getFieldWithDefault(msg, 6, 0),
17222
+ lastTx: jspb.Message.getFieldWithDefault(msg, 7, 0)
17223
+ };
17224
+
17225
+ if (includeInstance) {
17226
+ obj.$jspbMessageInstance = msg;
17227
+ }
17228
+ return obj;
17229
+ };
17230
+ }
17231
+
17232
+
17233
+ /**
17234
+ * Deserializes binary data (in protobuf wire format).
17235
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17236
+ * @return {!proto.ocap.AssetLimit}
17237
+ */
17238
+ proto.ocap.AssetLimit.deserializeBinary = function(bytes) {
17239
+ var reader = new jspb.BinaryReader(bytes);
17240
+ var msg = new proto.ocap.AssetLimit;
17241
+ return proto.ocap.AssetLimit.deserializeBinaryFromReader(msg, reader);
17242
+ };
17243
+
17244
+
17245
+ /**
17246
+ * Deserializes binary data (in protobuf wire format) from the
17247
+ * given reader into the given message object.
17248
+ * @param {!proto.ocap.AssetLimit} msg The message object to deserialize into.
17249
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17250
+ * @return {!proto.ocap.AssetLimit}
17251
+ */
17252
+ proto.ocap.AssetLimit.deserializeBinaryFromReader = function(msg, reader) {
17253
+ while (reader.nextField()) {
17254
+ if (reader.isEndGroup()) {
17255
+ break;
17256
+ }
17257
+ var field = reader.getFieldNumber();
17258
+ switch (field) {
17259
+ case 1:
17260
+ var value = /** @type {string} */ (reader.readString());
17261
+ msg.addAddress(value);
17262
+ break;
17263
+ case 2:
17264
+ var value = /** @type {string} */ (reader.readString());
17265
+ msg.addTo(value);
17266
+ break;
17267
+ case 3:
17268
+ var value = /** @type {number} */ (reader.readUint32());
17269
+ msg.setTxCount(value);
17270
+ break;
17271
+ case 4:
17272
+ var value = /** @type {number} */ (reader.readUint64());
17273
+ msg.setValidUntil(value);
17274
+ break;
17275
+ case 5:
17276
+ var value = new proto.ocap.RateLimit;
17277
+ reader.readMessage(value,proto.ocap.RateLimit.deserializeBinaryFromReader);
17278
+ msg.setRate(value);
17279
+ break;
17280
+ case 6:
17281
+ var value = /** @type {number} */ (reader.readUint32());
17282
+ msg.setTxSent(value);
17283
+ break;
17284
+ case 7:
17285
+ var value = /** @type {number} */ (reader.readUint64());
17286
+ msg.setLastTx(value);
17287
+ break;
17288
+ default:
17289
+ reader.skipField();
17290
+ break;
17291
+ }
17292
+ }
17293
+ return msg;
17294
+ };
17295
+
17296
+
17297
+ /**
17298
+ * Serializes the message to binary data (in protobuf wire format).
17299
+ * @return {!Uint8Array}
17300
+ */
17301
+ proto.ocap.AssetLimit.prototype.serializeBinary = function() {
17302
+ var writer = new jspb.BinaryWriter();
17303
+ proto.ocap.AssetLimit.serializeBinaryToWriter(this, writer);
17304
+ return writer.getResultBuffer();
17305
+ };
17306
+
17307
+
17308
+ /**
17309
+ * Serializes the given message to binary data (in protobuf wire
17310
+ * format), writing to the given BinaryWriter.
17311
+ * @param {!proto.ocap.AssetLimit} message
17312
+ * @param {!jspb.BinaryWriter} writer
17313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17314
+ */
17315
+ proto.ocap.AssetLimit.serializeBinaryToWriter = function(message, writer) {
17316
+ var f = undefined;
17317
+ f = message.getAddressList();
17318
+ if (f.length > 0) {
17319
+ writer.writeRepeatedString(
17320
+ 1,
17321
+ f
17322
+ );
17323
+ }
17324
+ f = message.getToList();
17325
+ if (f.length > 0) {
17326
+ writer.writeRepeatedString(
17327
+ 2,
17328
+ f
17329
+ );
17330
+ }
17331
+ f = message.getTxCount();
17332
+ if (f !== 0) {
17333
+ writer.writeUint32(
17334
+ 3,
17335
+ f
17336
+ );
17337
+ }
17338
+ f = message.getValidUntil();
17339
+ if (f !== 0) {
17340
+ writer.writeUint64(
17341
+ 4,
17342
+ f
17343
+ );
17344
+ }
17345
+ f = message.getRate();
17346
+ if (f != null) {
17347
+ writer.writeMessage(
17348
+ 5,
17349
+ f,
17350
+ proto.ocap.RateLimit.serializeBinaryToWriter
17351
+ );
17352
+ }
17353
+ f = message.getTxSent();
17354
+ if (f !== 0) {
17355
+ writer.writeUint32(
17356
+ 6,
17357
+ f
17358
+ );
17359
+ }
17360
+ f = message.getLastTx();
17361
+ if (f !== 0) {
17362
+ writer.writeUint64(
17363
+ 7,
17364
+ f
17365
+ );
17366
+ }
17367
+ };
17368
+
17369
+
17370
+ /**
17371
+ * repeated string address = 1;
17372
+ * @return {!Array<string>}
17373
+ */
17374
+ proto.ocap.AssetLimit.prototype.getAddressList = function() {
17375
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
17376
+ };
17377
+
17378
+
17379
+ /**
17380
+ * @param {!Array<string>} value
17381
+ * @return {!proto.ocap.AssetLimit} returns this
17382
+ */
17383
+ proto.ocap.AssetLimit.prototype.setAddressList = function(value) {
17384
+ return jspb.Message.setField(this, 1, value || []);
17385
+ };
17386
+
17387
+
17388
+ /**
17389
+ * @param {string} value
17390
+ * @param {number=} opt_index
17391
+ * @return {!proto.ocap.AssetLimit} returns this
17392
+ */
17393
+ proto.ocap.AssetLimit.prototype.addAddress = function(value, opt_index) {
17394
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
17395
+ };
17396
+
17397
+
17398
+ /**
17399
+ * Clears the list making it empty but non-null.
17400
+ * @return {!proto.ocap.AssetLimit} returns this
17401
+ */
17402
+ proto.ocap.AssetLimit.prototype.clearAddressList = function() {
17403
+ return this.setAddressList([]);
17404
+ };
17405
+
17406
+
17407
+ /**
17408
+ * repeated string to = 2;
17409
+ * @return {!Array<string>}
17410
+ */
17411
+ proto.ocap.AssetLimit.prototype.getToList = function() {
17412
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
17413
+ };
17414
+
17415
+
17416
+ /**
17417
+ * @param {!Array<string>} value
17418
+ * @return {!proto.ocap.AssetLimit} returns this
17419
+ */
17420
+ proto.ocap.AssetLimit.prototype.setToList = function(value) {
17421
+ return jspb.Message.setField(this, 2, value || []);
17422
+ };
17423
+
17424
+
17425
+ /**
17426
+ * @param {string} value
17427
+ * @param {number=} opt_index
17428
+ * @return {!proto.ocap.AssetLimit} returns this
17429
+ */
17430
+ proto.ocap.AssetLimit.prototype.addTo = function(value, opt_index) {
17431
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
17432
+ };
17433
+
17434
+
17435
+ /**
17436
+ * Clears the list making it empty but non-null.
17437
+ * @return {!proto.ocap.AssetLimit} returns this
17438
+ */
17439
+ proto.ocap.AssetLimit.prototype.clearToList = function() {
17440
+ return this.setToList([]);
17441
+ };
17442
+
17443
+
17444
+ /**
17445
+ * optional uint32 tx_count = 3;
17446
+ * @return {number}
17447
+ */
17448
+ proto.ocap.AssetLimit.prototype.getTxCount = function() {
17449
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
17450
+ };
17451
+
17452
+
17453
+ /**
17454
+ * @param {number} value
17455
+ * @return {!proto.ocap.AssetLimit} returns this
17456
+ */
17457
+ proto.ocap.AssetLimit.prototype.setTxCount = function(value) {
17458
+ return jspb.Message.setProto3IntField(this, 3, value);
17459
+ };
17460
+
17461
+
17462
+ /**
17463
+ * optional uint64 valid_until = 4;
17464
+ * @return {number}
17465
+ */
17466
+ proto.ocap.AssetLimit.prototype.getValidUntil = function() {
17467
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
17468
+ };
17469
+
17470
+
17471
+ /**
17472
+ * @param {number} value
17473
+ * @return {!proto.ocap.AssetLimit} returns this
17474
+ */
17475
+ proto.ocap.AssetLimit.prototype.setValidUntil = function(value) {
17476
+ return jspb.Message.setProto3IntField(this, 4, value);
17477
+ };
17478
+
17479
+
17480
+ /**
17481
+ * optional RateLimit rate = 5;
17482
+ * @return {?proto.ocap.RateLimit}
17483
+ */
17484
+ proto.ocap.AssetLimit.prototype.getRate = function() {
17485
+ return /** @type{?proto.ocap.RateLimit} */ (
17486
+ jspb.Message.getWrapperField(this, proto.ocap.RateLimit, 5));
17487
+ };
17488
+
17489
+
17490
+ /**
17491
+ * @param {?proto.ocap.RateLimit|undefined} value
17492
+ * @return {!proto.ocap.AssetLimit} returns this
17493
+ */
17494
+ proto.ocap.AssetLimit.prototype.setRate = function(value) {
17495
+ return jspb.Message.setWrapperField(this, 5, value);
17496
+ };
17497
+
17498
+
17499
+ /**
17500
+ * Clears the message field making it undefined.
17501
+ * @return {!proto.ocap.AssetLimit} returns this
17502
+ */
17503
+ proto.ocap.AssetLimit.prototype.clearRate = function() {
17504
+ return this.setRate(undefined);
17505
+ };
17506
+
17507
+
17508
+ /**
17509
+ * Returns whether this field is set.
17510
+ * @return {boolean}
17511
+ */
17512
+ proto.ocap.AssetLimit.prototype.hasRate = function() {
17513
+ return jspb.Message.getField(this, 5) != null;
17514
+ };
17515
+
17516
+
17517
+ /**
17518
+ * optional uint32 tx_sent = 6;
17519
+ * @return {number}
17520
+ */
17521
+ proto.ocap.AssetLimit.prototype.getTxSent = function() {
17522
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
17523
+ };
17524
+
17525
+
17526
+ /**
17527
+ * @param {number} value
17528
+ * @return {!proto.ocap.AssetLimit} returns this
17529
+ */
17530
+ proto.ocap.AssetLimit.prototype.setTxSent = function(value) {
17531
+ return jspb.Message.setProto3IntField(this, 6, value);
17532
+ };
17533
+
17534
+
17535
+ /**
17536
+ * optional uint64 last_tx = 7;
17537
+ * @return {number}
17538
+ */
17539
+ proto.ocap.AssetLimit.prototype.getLastTx = function() {
17540
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
17541
+ };
17542
+
17543
+
17544
+ /**
17545
+ * @param {number} value
17546
+ * @return {!proto.ocap.AssetLimit} returns this
17547
+ */
17548
+ proto.ocap.AssetLimit.prototype.setLastTx = function(value) {
17549
+ return jspb.Message.setProto3IntField(this, 7, value);
17550
+ };
17551
+
17552
+
17553
+
17554
+ /**
17555
+ * List of repeated fields within this message type.
17556
+ * @private {!Array<number>}
17557
+ * @const
17558
+ */
17559
+ proto.ocap.DelegateLimit.repeatedFields_ = [1,2];
17560
+
17561
+
17562
+
17563
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17564
+ /**
17565
+ * Creates an object representation of this proto.
17566
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17567
+ * Optional fields that are not set will be set to undefined.
17568
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17569
+ * For the list of reserved names please see:
17570
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17571
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17572
+ * JSPB instance for transitional soy proto support:
17573
+ * http://goto/soy-param-migration
17574
+ * @return {!Object}
17575
+ */
17576
+ proto.ocap.DelegateLimit.prototype.toObject = function(opt_includeInstance) {
17577
+ return proto.ocap.DelegateLimit.toObject(opt_includeInstance, this);
17578
+ };
17579
+
17580
+
17581
+ /**
17582
+ * Static version of the {@see toObject} method.
17583
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17584
+ * the JSPB instance for transitional soy proto support:
17585
+ * http://goto/soy-param-migration
17586
+ * @param {!proto.ocap.DelegateLimit} msg The msg instance to transform.
17587
+ * @return {!Object}
17588
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17589
+ */
17590
+ proto.ocap.DelegateLimit.toObject = function(includeInstance, msg) {
17591
+ var f, obj = {
17592
+ tokensList: jspb.Message.toObjectList(msg.getTokensList(),
17593
+ proto.ocap.TokenLimit.toObject, includeInstance),
17594
+ assetsList: jspb.Message.toObjectList(msg.getAssetsList(),
17595
+ proto.ocap.AssetLimit.toObject, includeInstance)
17596
+ };
17597
+
17598
+ if (includeInstance) {
17599
+ obj.$jspbMessageInstance = msg;
17600
+ }
17601
+ return obj;
17602
+ };
17603
+ }
17604
+
17605
+
17606
+ /**
17607
+ * Deserializes binary data (in protobuf wire format).
17608
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17609
+ * @return {!proto.ocap.DelegateLimit}
17610
+ */
17611
+ proto.ocap.DelegateLimit.deserializeBinary = function(bytes) {
17612
+ var reader = new jspb.BinaryReader(bytes);
17613
+ var msg = new proto.ocap.DelegateLimit;
17614
+ return proto.ocap.DelegateLimit.deserializeBinaryFromReader(msg, reader);
17615
+ };
17616
+
17617
+
17618
+ /**
17619
+ * Deserializes binary data (in protobuf wire format) from the
17620
+ * given reader into the given message object.
17621
+ * @param {!proto.ocap.DelegateLimit} msg The message object to deserialize into.
17622
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17623
+ * @return {!proto.ocap.DelegateLimit}
17624
+ */
17625
+ proto.ocap.DelegateLimit.deserializeBinaryFromReader = function(msg, reader) {
17626
+ while (reader.nextField()) {
17627
+ if (reader.isEndGroup()) {
17628
+ break;
17629
+ }
17630
+ var field = reader.getFieldNumber();
17631
+ switch (field) {
17632
+ case 1:
17633
+ var value = new proto.ocap.TokenLimit;
17634
+ reader.readMessage(value,proto.ocap.TokenLimit.deserializeBinaryFromReader);
17635
+ msg.addTokens(value);
17636
+ break;
17637
+ case 2:
17638
+ var value = new proto.ocap.AssetLimit;
17639
+ reader.readMessage(value,proto.ocap.AssetLimit.deserializeBinaryFromReader);
17640
+ msg.addAssets(value);
17641
+ break;
17642
+ default:
17643
+ reader.skipField();
17644
+ break;
17645
+ }
17646
+ }
17647
+ return msg;
17648
+ };
17649
+
17650
+
17651
+ /**
17652
+ * Serializes the message to binary data (in protobuf wire format).
17653
+ * @return {!Uint8Array}
17654
+ */
17655
+ proto.ocap.DelegateLimit.prototype.serializeBinary = function() {
17656
+ var writer = new jspb.BinaryWriter();
17657
+ proto.ocap.DelegateLimit.serializeBinaryToWriter(this, writer);
17658
+ return writer.getResultBuffer();
17659
+ };
17660
+
17661
+
17662
+ /**
17663
+ * Serializes the given message to binary data (in protobuf wire
17664
+ * format), writing to the given BinaryWriter.
17665
+ * @param {!proto.ocap.DelegateLimit} message
17666
+ * @param {!jspb.BinaryWriter} writer
17667
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17668
+ */
17669
+ proto.ocap.DelegateLimit.serializeBinaryToWriter = function(message, writer) {
17670
+ var f = undefined;
17671
+ f = message.getTokensList();
17672
+ if (f.length > 0) {
17673
+ writer.writeRepeatedMessage(
17674
+ 1,
17675
+ f,
17676
+ proto.ocap.TokenLimit.serializeBinaryToWriter
17677
+ );
17678
+ }
17679
+ f = message.getAssetsList();
17680
+ if (f.length > 0) {
17681
+ writer.writeRepeatedMessage(
17682
+ 2,
17683
+ f,
17684
+ proto.ocap.AssetLimit.serializeBinaryToWriter
17685
+ );
17686
+ }
17687
+ };
17688
+
17689
+
17690
+ /**
17691
+ * repeated TokenLimit tokens = 1;
17692
+ * @return {!Array<!proto.ocap.TokenLimit>}
17693
+ */
17694
+ proto.ocap.DelegateLimit.prototype.getTokensList = function() {
17695
+ return /** @type{!Array<!proto.ocap.TokenLimit>} */ (
17696
+ jspb.Message.getRepeatedWrapperField(this, proto.ocap.TokenLimit, 1));
17697
+ };
17698
+
17699
+
17700
+ /**
17701
+ * @param {!Array<!proto.ocap.TokenLimit>} value
17702
+ * @return {!proto.ocap.DelegateLimit} returns this
17703
+ */
17704
+ proto.ocap.DelegateLimit.prototype.setTokensList = function(value) {
17705
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
17706
+ };
17707
+
17708
+
17709
+ /**
17710
+ * @param {!proto.ocap.TokenLimit=} opt_value
17711
+ * @param {number=} opt_index
17712
+ * @return {!proto.ocap.TokenLimit}
17713
+ */
17714
+ proto.ocap.DelegateLimit.prototype.addTokens = function(opt_value, opt_index) {
17715
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ocap.TokenLimit, opt_index);
17716
+ };
17717
+
17718
+
17719
+ /**
17720
+ * Clears the list making it empty but non-null.
17721
+ * @return {!proto.ocap.DelegateLimit} returns this
17722
+ */
17723
+ proto.ocap.DelegateLimit.prototype.clearTokensList = function() {
17724
+ return this.setTokensList([]);
17725
+ };
17726
+
17727
+
17728
+ /**
17729
+ * repeated AssetLimit assets = 2;
17730
+ * @return {!Array<!proto.ocap.AssetLimit>}
17731
+ */
17732
+ proto.ocap.DelegateLimit.prototype.getAssetsList = function() {
17733
+ return /** @type{!Array<!proto.ocap.AssetLimit>} */ (
17734
+ jspb.Message.getRepeatedWrapperField(this, proto.ocap.AssetLimit, 2));
17735
+ };
17736
+
17737
+
17738
+ /**
17739
+ * @param {!Array<!proto.ocap.AssetLimit>} value
17740
+ * @return {!proto.ocap.DelegateLimit} returns this
17741
+ */
17742
+ proto.ocap.DelegateLimit.prototype.setAssetsList = function(value) {
17743
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
17744
+ };
17745
+
17746
+
17747
+ /**
17748
+ * @param {!proto.ocap.AssetLimit=} opt_value
17749
+ * @param {number=} opt_index
17750
+ * @return {!proto.ocap.AssetLimit}
17751
+ */
17752
+ proto.ocap.DelegateLimit.prototype.addAssets = function(opt_value, opt_index) {
17753
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ocap.AssetLimit, opt_index);
17754
+ };
17755
+
17756
+
17757
+ /**
17758
+ * Clears the list making it empty but non-null.
17759
+ * @return {!proto.ocap.DelegateLimit} returns this
17760
+ */
17761
+ proto.ocap.DelegateLimit.prototype.clearAssetsList = function() {
17762
+ return this.setAssetsList([]);
17763
+ };
17764
+
17765
+
16482
17766
  goog.object.extend(exports, proto.ocap);