@meshtrade/api-old 1.33.0 → 1.35.0
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/dist/buf/validate/validate_pb.js +627 -8
- package/dist/meshtrade/trading/limit_order/v1/index.d.ts +1 -0
- package/dist/meshtrade/trading/limit_order/v1/index.js +1 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +19 -8
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +92 -9
- package/dist/meshtrade/trading/limit_order/v1/limit_order_state.d.ts +14 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_state.js +64 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +10 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +91 -10
- package/package.json +1 -1
|
@@ -25,6 +25,8 @@ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/des
|
|
|
25
25
|
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
26
26
|
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
|
|
27
27
|
goog.object.extend(proto, google_protobuf_duration_pb);
|
|
28
|
+
var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
|
|
29
|
+
goog.object.extend(proto, google_protobuf_field_mask_pb);
|
|
28
30
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
29
31
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
30
32
|
goog.exportSymbol('proto.buf.validate.AnyRules', null, global);
|
|
@@ -38,6 +40,7 @@ goog.exportSymbol('proto.buf.validate.DurationRules', null, global);
|
|
|
38
40
|
goog.exportSymbol('proto.buf.validate.DurationRules.GreaterThanCase', null, global);
|
|
39
41
|
goog.exportSymbol('proto.buf.validate.DurationRules.LessThanCase', null, global);
|
|
40
42
|
goog.exportSymbol('proto.buf.validate.EnumRules', null, global);
|
|
43
|
+
goog.exportSymbol('proto.buf.validate.FieldMaskRules', null, global);
|
|
41
44
|
goog.exportSymbol('proto.buf.validate.FieldPath', null, global);
|
|
42
45
|
goog.exportSymbol('proto.buf.validate.FieldPathElement', null, global);
|
|
43
46
|
goog.exportSymbol('proto.buf.validate.FieldPathElement.SubscriptCase', null, global);
|
|
@@ -896,7 +899,7 @@ proto.buf.validate.BoolRules.extensionsBinary = {};
|
|
|
896
899
|
* @constructor
|
|
897
900
|
*/
|
|
898
901
|
proto.buf.validate.StringRules = function(opt_data) {
|
|
899
|
-
jspb.Message.initialize(this, opt_data, 0,
|
|
902
|
+
jspb.Message.initialize(this, opt_data, 0, 36, proto.buf.validate.StringRules.repeatedFields_, proto.buf.validate.StringRules.oneofGroups_);
|
|
900
903
|
};
|
|
901
904
|
goog.inherits(proto.buf.validate.StringRules, jspb.Message);
|
|
902
905
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -947,7 +950,7 @@ proto.buf.validate.StringRules.extensionsBinary = {};
|
|
|
947
950
|
* @constructor
|
|
948
951
|
*/
|
|
949
952
|
proto.buf.validate.BytesRules = function(opt_data) {
|
|
950
|
-
jspb.Message.initialize(this, opt_data, 0,
|
|
953
|
+
jspb.Message.initialize(this, opt_data, 0, 16, proto.buf.validate.BytesRules.repeatedFields_, proto.buf.validate.BytesRules.oneofGroups_);
|
|
951
954
|
};
|
|
952
955
|
goog.inherits(proto.buf.validate.BytesRules, jspb.Message);
|
|
953
956
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -1212,6 +1215,57 @@ proto.buf.validate.DurationRules.extensions = {};
|
|
|
1212
1215
|
*/
|
|
1213
1216
|
proto.buf.validate.DurationRules.extensionsBinary = {};
|
|
1214
1217
|
|
|
1218
|
+
/**
|
|
1219
|
+
* Generated by JsPbCodeGenerator.
|
|
1220
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1221
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1222
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1223
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1224
|
+
* valid.
|
|
1225
|
+
* @extends {jspb.Message}
|
|
1226
|
+
* @constructor
|
|
1227
|
+
*/
|
|
1228
|
+
proto.buf.validate.FieldMaskRules = function(opt_data) {
|
|
1229
|
+
jspb.Message.initialize(this, opt_data, 0, 5, proto.buf.validate.FieldMaskRules.repeatedFields_, null);
|
|
1230
|
+
};
|
|
1231
|
+
goog.inherits(proto.buf.validate.FieldMaskRules, jspb.Message);
|
|
1232
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1233
|
+
/**
|
|
1234
|
+
* @public
|
|
1235
|
+
* @override
|
|
1236
|
+
*/
|
|
1237
|
+
proto.buf.validate.FieldMaskRules.displayName = 'proto.buf.validate.FieldMaskRules';
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* The extensions registered with this message class. This is a map of
|
|
1242
|
+
* extension field number to fieldInfo object.
|
|
1243
|
+
*
|
|
1244
|
+
* For example:
|
|
1245
|
+
* { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
|
|
1246
|
+
*
|
|
1247
|
+
* fieldName contains the JsCompiler renamed field name property so that it
|
|
1248
|
+
* works in OPTIMIZED mode.
|
|
1249
|
+
*
|
|
1250
|
+
* @type {!Object<number, jspb.ExtensionFieldInfo>}
|
|
1251
|
+
*/
|
|
1252
|
+
proto.buf.validate.FieldMaskRules.extensions = {};
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* The extensions registered with this message class. This is a map of
|
|
1257
|
+
* extension field number to fieldInfo object.
|
|
1258
|
+
*
|
|
1259
|
+
* For example:
|
|
1260
|
+
* { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
|
|
1261
|
+
*
|
|
1262
|
+
* fieldName contains the JsCompiler renamed field name property so that it
|
|
1263
|
+
* works in OPTIMIZED mode.
|
|
1264
|
+
*
|
|
1265
|
+
* @type {!Object<number, jspb.ExtensionFieldBinaryInfo>}
|
|
1266
|
+
*/
|
|
1267
|
+
proto.buf.validate.FieldMaskRules.extensionsBinary = {};
|
|
1268
|
+
|
|
1215
1269
|
/**
|
|
1216
1270
|
* Generated by JsPbCodeGenerator.
|
|
1217
1271
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1597,7 +1651,7 @@ proto.buf.validate.Rule.prototype.hasExpression = function() {
|
|
|
1597
1651
|
* @private {!Array<number>}
|
|
1598
1652
|
* @const
|
|
1599
1653
|
*/
|
|
1600
|
-
proto.buf.validate.MessageRules.repeatedFields_ = [3,4];
|
|
1654
|
+
proto.buf.validate.MessageRules.repeatedFields_ = [5,3,4];
|
|
1601
1655
|
|
|
1602
1656
|
|
|
1603
1657
|
|
|
@@ -1630,6 +1684,7 @@ proto.buf.validate.MessageRules.prototype.toObject = function(opt_includeInstanc
|
|
|
1630
1684
|
*/
|
|
1631
1685
|
proto.buf.validate.MessageRules.toObject = function(includeInstance, msg) {
|
|
1632
1686
|
var f, obj = {
|
|
1687
|
+
celExpressionList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
1633
1688
|
celList: jspb.Message.toObjectList(msg.getCelList(),
|
|
1634
1689
|
proto.buf.validate.Rule.toObject, includeInstance),
|
|
1635
1690
|
oneofList: jspb.Message.toObjectList(msg.getOneofList(),
|
|
@@ -1670,6 +1725,10 @@ proto.buf.validate.MessageRules.deserializeBinaryFromReader = function(msg, read
|
|
|
1670
1725
|
}
|
|
1671
1726
|
var field = reader.getFieldNumber();
|
|
1672
1727
|
switch (field) {
|
|
1728
|
+
case 5:
|
|
1729
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1730
|
+
msg.addCelExpression(value);
|
|
1731
|
+
break;
|
|
1673
1732
|
case 3:
|
|
1674
1733
|
var value = new proto.buf.validate.Rule;
|
|
1675
1734
|
reader.readMessage(value,proto.buf.validate.Rule.deserializeBinaryFromReader);
|
|
@@ -1709,6 +1768,13 @@ proto.buf.validate.MessageRules.prototype.serializeBinary = function() {
|
|
|
1709
1768
|
*/
|
|
1710
1769
|
proto.buf.validate.MessageRules.serializeBinaryToWriter = function(message, writer) {
|
|
1711
1770
|
var f = undefined;
|
|
1771
|
+
f = message.getCelExpressionList();
|
|
1772
|
+
if (f.length > 0) {
|
|
1773
|
+
writer.writeRepeatedString(
|
|
1774
|
+
5,
|
|
1775
|
+
f
|
|
1776
|
+
);
|
|
1777
|
+
}
|
|
1712
1778
|
f = message.getCelList();
|
|
1713
1779
|
if (f.length > 0) {
|
|
1714
1780
|
writer.writeRepeatedMessage(
|
|
@@ -1728,6 +1794,43 @@ proto.buf.validate.MessageRules.serializeBinaryToWriter = function(message, writ
|
|
|
1728
1794
|
};
|
|
1729
1795
|
|
|
1730
1796
|
|
|
1797
|
+
/**
|
|
1798
|
+
* repeated string cel_expression = 5;
|
|
1799
|
+
* @return {!Array<string>}
|
|
1800
|
+
*/
|
|
1801
|
+
proto.buf.validate.MessageRules.prototype.getCelExpressionList = function() {
|
|
1802
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* @param {!Array<string>} value
|
|
1808
|
+
* @return {!proto.buf.validate.MessageRules} returns this
|
|
1809
|
+
*/
|
|
1810
|
+
proto.buf.validate.MessageRules.prototype.setCelExpressionList = function(value) {
|
|
1811
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* @param {string} value
|
|
1817
|
+
* @param {number=} opt_index
|
|
1818
|
+
* @return {!proto.buf.validate.MessageRules} returns this
|
|
1819
|
+
*/
|
|
1820
|
+
proto.buf.validate.MessageRules.prototype.addCelExpression = function(value, opt_index) {
|
|
1821
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* Clears the list making it empty but non-null.
|
|
1827
|
+
* @return {!proto.buf.validate.MessageRules} returns this
|
|
1828
|
+
*/
|
|
1829
|
+
proto.buf.validate.MessageRules.prototype.clearCelExpressionList = function() {
|
|
1830
|
+
return this.setCelExpressionList([]);
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
|
|
1731
1834
|
/**
|
|
1732
1835
|
* repeated Rule cel = 3;
|
|
1733
1836
|
* @return {!Array<!proto.buf.validate.Rule>}
|
|
@@ -2162,7 +2265,7 @@ proto.buf.validate.OneofRules.prototype.hasRequired = function() {
|
|
|
2162
2265
|
* @private {!Array<number>}
|
|
2163
2266
|
* @const
|
|
2164
2267
|
*/
|
|
2165
|
-
proto.buf.validate.FieldRules.repeatedFields_ = [23];
|
|
2268
|
+
proto.buf.validate.FieldRules.repeatedFields_ = [29,23];
|
|
2166
2269
|
|
|
2167
2270
|
/**
|
|
2168
2271
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -2172,7 +2275,7 @@ proto.buf.validate.FieldRules.repeatedFields_ = [23];
|
|
|
2172
2275
|
* @private {!Array<!Array<number>>}
|
|
2173
2276
|
* @const
|
|
2174
2277
|
*/
|
|
2175
|
-
proto.buf.validate.FieldRules.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,21,22]];
|
|
2278
|
+
proto.buf.validate.FieldRules.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,21,28,22]];
|
|
2176
2279
|
|
|
2177
2280
|
/**
|
|
2178
2281
|
* @enum {number}
|
|
@@ -2199,6 +2302,7 @@ proto.buf.validate.FieldRules.TypeCase = {
|
|
|
2199
2302
|
MAP: 19,
|
|
2200
2303
|
ANY: 20,
|
|
2201
2304
|
DURATION: 21,
|
|
2305
|
+
FIELD_MASK: 28,
|
|
2202
2306
|
TIMESTAMP: 22
|
|
2203
2307
|
};
|
|
2204
2308
|
|
|
@@ -2240,6 +2344,7 @@ proto.buf.validate.FieldRules.prototype.toObject = function(opt_includeInstance)
|
|
|
2240
2344
|
*/
|
|
2241
2345
|
proto.buf.validate.FieldRules.toObject = function(includeInstance, msg) {
|
|
2242
2346
|
var f, obj = {
|
|
2347
|
+
celExpressionList: (f = jspb.Message.getRepeatedField(msg, 29)) == null ? undefined : f,
|
|
2243
2348
|
celList: jspb.Message.toObjectList(msg.getCelList(),
|
|
2244
2349
|
proto.buf.validate.Rule.toObject, includeInstance),
|
|
2245
2350
|
required: (f = jspb.Message.getBooleanField(msg, 25)) == null ? undefined : f,
|
|
@@ -2264,6 +2369,7 @@ repeated: (f = msg.getRepeated()) && proto.buf.validate.RepeatedRules.toObject(i
|
|
|
2264
2369
|
map: (f = msg.getMap()) && proto.buf.validate.MapRules.toObject(includeInstance, f),
|
|
2265
2370
|
any: (f = msg.getAny()) && proto.buf.validate.AnyRules.toObject(includeInstance, f),
|
|
2266
2371
|
duration: (f = msg.getDuration()) && proto.buf.validate.DurationRules.toObject(includeInstance, f),
|
|
2372
|
+
fieldMask: (f = msg.getFieldMask()) && proto.buf.validate.FieldMaskRules.toObject(includeInstance, f),
|
|
2267
2373
|
timestamp: (f = msg.getTimestamp()) && proto.buf.validate.TimestampRules.toObject(includeInstance, f)
|
|
2268
2374
|
};
|
|
2269
2375
|
|
|
@@ -2301,6 +2407,10 @@ proto.buf.validate.FieldRules.deserializeBinaryFromReader = function(msg, reader
|
|
|
2301
2407
|
}
|
|
2302
2408
|
var field = reader.getFieldNumber();
|
|
2303
2409
|
switch (field) {
|
|
2410
|
+
case 29:
|
|
2411
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2412
|
+
msg.addCelExpression(value);
|
|
2413
|
+
break;
|
|
2304
2414
|
case 23:
|
|
2305
2415
|
var value = new proto.buf.validate.Rule;
|
|
2306
2416
|
reader.readMessage(value,proto.buf.validate.Rule.deserializeBinaryFromReader);
|
|
@@ -2414,6 +2524,11 @@ proto.buf.validate.FieldRules.deserializeBinaryFromReader = function(msg, reader
|
|
|
2414
2524
|
reader.readMessage(value,proto.buf.validate.DurationRules.deserializeBinaryFromReader);
|
|
2415
2525
|
msg.setDuration(value);
|
|
2416
2526
|
break;
|
|
2527
|
+
case 28:
|
|
2528
|
+
var value = new proto.buf.validate.FieldMaskRules;
|
|
2529
|
+
reader.readMessage(value,proto.buf.validate.FieldMaskRules.deserializeBinaryFromReader);
|
|
2530
|
+
msg.setFieldMask(value);
|
|
2531
|
+
break;
|
|
2417
2532
|
case 22:
|
|
2418
2533
|
var value = new proto.buf.validate.TimestampRules;
|
|
2419
2534
|
reader.readMessage(value,proto.buf.validate.TimestampRules.deserializeBinaryFromReader);
|
|
@@ -2448,6 +2563,13 @@ proto.buf.validate.FieldRules.prototype.serializeBinary = function() {
|
|
|
2448
2563
|
*/
|
|
2449
2564
|
proto.buf.validate.FieldRules.serializeBinaryToWriter = function(message, writer) {
|
|
2450
2565
|
var f = undefined;
|
|
2566
|
+
f = message.getCelExpressionList();
|
|
2567
|
+
if (f.length > 0) {
|
|
2568
|
+
writer.writeRepeatedString(
|
|
2569
|
+
29,
|
|
2570
|
+
f
|
|
2571
|
+
);
|
|
2572
|
+
}
|
|
2451
2573
|
f = message.getCelList();
|
|
2452
2574
|
if (f.length > 0) {
|
|
2453
2575
|
writer.writeRepeatedMessage(
|
|
@@ -2630,6 +2752,14 @@ proto.buf.validate.FieldRules.serializeBinaryToWriter = function(message, writer
|
|
|
2630
2752
|
proto.buf.validate.DurationRules.serializeBinaryToWriter
|
|
2631
2753
|
);
|
|
2632
2754
|
}
|
|
2755
|
+
f = message.getFieldMask();
|
|
2756
|
+
if (f != null) {
|
|
2757
|
+
writer.writeMessage(
|
|
2758
|
+
28,
|
|
2759
|
+
f,
|
|
2760
|
+
proto.buf.validate.FieldMaskRules.serializeBinaryToWriter
|
|
2761
|
+
);
|
|
2762
|
+
}
|
|
2633
2763
|
f = message.getTimestamp();
|
|
2634
2764
|
if (f != null) {
|
|
2635
2765
|
writer.writeMessage(
|
|
@@ -2641,6 +2771,43 @@ proto.buf.validate.FieldRules.serializeBinaryToWriter = function(message, writer
|
|
|
2641
2771
|
};
|
|
2642
2772
|
|
|
2643
2773
|
|
|
2774
|
+
/**
|
|
2775
|
+
* repeated string cel_expression = 29;
|
|
2776
|
+
* @return {!Array<string>}
|
|
2777
|
+
*/
|
|
2778
|
+
proto.buf.validate.FieldRules.prototype.getCelExpressionList = function() {
|
|
2779
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 29));
|
|
2780
|
+
};
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
/**
|
|
2784
|
+
* @param {!Array<string>} value
|
|
2785
|
+
* @return {!proto.buf.validate.FieldRules} returns this
|
|
2786
|
+
*/
|
|
2787
|
+
proto.buf.validate.FieldRules.prototype.setCelExpressionList = function(value) {
|
|
2788
|
+
return jspb.Message.setField(this, 29, value || []);
|
|
2789
|
+
};
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* @param {string} value
|
|
2794
|
+
* @param {number=} opt_index
|
|
2795
|
+
* @return {!proto.buf.validate.FieldRules} returns this
|
|
2796
|
+
*/
|
|
2797
|
+
proto.buf.validate.FieldRules.prototype.addCelExpression = function(value, opt_index) {
|
|
2798
|
+
return jspb.Message.addToRepeatedField(this, 29, value, opt_index);
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
/**
|
|
2803
|
+
* Clears the list making it empty but non-null.
|
|
2804
|
+
* @return {!proto.buf.validate.FieldRules} returns this
|
|
2805
|
+
*/
|
|
2806
|
+
proto.buf.validate.FieldRules.prototype.clearCelExpressionList = function() {
|
|
2807
|
+
return this.setCelExpressionList([]);
|
|
2808
|
+
};
|
|
2809
|
+
|
|
2810
|
+
|
|
2644
2811
|
/**
|
|
2645
2812
|
* repeated Rule cel = 23;
|
|
2646
2813
|
* @return {!Array<!proto.buf.validate.Rule>}
|
|
@@ -3491,6 +3658,43 @@ proto.buf.validate.FieldRules.prototype.hasDuration = function() {
|
|
|
3491
3658
|
};
|
|
3492
3659
|
|
|
3493
3660
|
|
|
3661
|
+
/**
|
|
3662
|
+
* optional FieldMaskRules field_mask = 28;
|
|
3663
|
+
* @return {?proto.buf.validate.FieldMaskRules}
|
|
3664
|
+
*/
|
|
3665
|
+
proto.buf.validate.FieldRules.prototype.getFieldMask = function() {
|
|
3666
|
+
return /** @type{?proto.buf.validate.FieldMaskRules} */ (
|
|
3667
|
+
jspb.Message.getWrapperField(this, proto.buf.validate.FieldMaskRules, 28));
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
|
|
3671
|
+
/**
|
|
3672
|
+
* @param {?proto.buf.validate.FieldMaskRules|undefined} value
|
|
3673
|
+
* @return {!proto.buf.validate.FieldRules} returns this
|
|
3674
|
+
*/
|
|
3675
|
+
proto.buf.validate.FieldRules.prototype.setFieldMask = function(value) {
|
|
3676
|
+
return jspb.Message.setOneofWrapperField(this, 28, proto.buf.validate.FieldRules.oneofGroups_[0], value);
|
|
3677
|
+
};
|
|
3678
|
+
|
|
3679
|
+
|
|
3680
|
+
/**
|
|
3681
|
+
* Clears the message field making it undefined.
|
|
3682
|
+
* @return {!proto.buf.validate.FieldRules} returns this
|
|
3683
|
+
*/
|
|
3684
|
+
proto.buf.validate.FieldRules.prototype.clearFieldMask = function() {
|
|
3685
|
+
return this.setFieldMask(undefined);
|
|
3686
|
+
};
|
|
3687
|
+
|
|
3688
|
+
|
|
3689
|
+
/**
|
|
3690
|
+
* Returns whether this field is set.
|
|
3691
|
+
* @return {boolean}
|
|
3692
|
+
*/
|
|
3693
|
+
proto.buf.validate.FieldRules.prototype.hasFieldMask = function() {
|
|
3694
|
+
return jspb.Message.getField(this, 28) != null;
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
|
|
3494
3698
|
/**
|
|
3495
3699
|
* optional TimestampRules timestamp = 22;
|
|
3496
3700
|
* @return {?proto.buf.validate.TimestampRules}
|
|
@@ -10614,7 +10818,7 @@ proto.buf.validate.StringRules.repeatedFields_ = [10,11,34];
|
|
|
10614
10818
|
* @private {!Array<!Array<number>>}
|
|
10615
10819
|
* @const
|
|
10616
10820
|
*/
|
|
10617
|
-
proto.buf.validate.StringRules.oneofGroups_ = [[12,13,14,15,16,17,18,21,22,33,26,27,28,29,30,31,32,24]];
|
|
10821
|
+
proto.buf.validate.StringRules.oneofGroups_ = [[12,13,14,15,16,17,18,21,22,33,26,27,28,29,30,31,32,35,24]];
|
|
10618
10822
|
|
|
10619
10823
|
/**
|
|
10620
10824
|
* @enum {number}
|
|
@@ -10638,6 +10842,7 @@ proto.buf.validate.StringRules.WellKnownCase = {
|
|
|
10638
10842
|
IPV4_PREFIX: 30,
|
|
10639
10843
|
IPV6_PREFIX: 31,
|
|
10640
10844
|
HOST_AND_PORT: 32,
|
|
10845
|
+
ULID: 35,
|
|
10641
10846
|
WELL_KNOWN_REGEX: 24
|
|
10642
10847
|
};
|
|
10643
10848
|
|
|
@@ -10710,6 +10915,7 @@ ipPrefix: (f = jspb.Message.getBooleanField(msg, 29)) == null ? undefined : f,
|
|
|
10710
10915
|
ipv4Prefix: (f = jspb.Message.getBooleanField(msg, 30)) == null ? undefined : f,
|
|
10711
10916
|
ipv6Prefix: (f = jspb.Message.getBooleanField(msg, 31)) == null ? undefined : f,
|
|
10712
10917
|
hostAndPort: (f = jspb.Message.getBooleanField(msg, 32)) == null ? undefined : f,
|
|
10918
|
+
ulid: (f = jspb.Message.getBooleanField(msg, 35)) == null ? undefined : f,
|
|
10713
10919
|
wellKnownRegex: (f = jspb.Message.getField(msg, 24)) == null ? undefined : f,
|
|
10714
10920
|
strict: (f = jspb.Message.getBooleanField(msg, 25)) == null ? undefined : f,
|
|
10715
10921
|
exampleList: (f = jspb.Message.getRepeatedField(msg, 34)) == null ? undefined : f
|
|
@@ -10876,6 +11082,10 @@ proto.buf.validate.StringRules.deserializeBinaryFromReader = function(msg, reade
|
|
|
10876
11082
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
10877
11083
|
msg.setHostAndPort(value);
|
|
10878
11084
|
break;
|
|
11085
|
+
case 35:
|
|
11086
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
11087
|
+
msg.setUlid(value);
|
|
11088
|
+
break;
|
|
10879
11089
|
case 24:
|
|
10880
11090
|
var value = /** @type {!proto.buf.validate.KnownRegex} */ (reader.readEnum());
|
|
10881
11091
|
msg.setWellKnownRegex(value);
|
|
@@ -11137,6 +11347,13 @@ proto.buf.validate.StringRules.serializeBinaryToWriter = function(message, write
|
|
|
11137
11347
|
f
|
|
11138
11348
|
);
|
|
11139
11349
|
}
|
|
11350
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 35));
|
|
11351
|
+
if (f != null) {
|
|
11352
|
+
writer.writeBool(
|
|
11353
|
+
35,
|
|
11354
|
+
f
|
|
11355
|
+
);
|
|
11356
|
+
}
|
|
11140
11357
|
f = /** @type {!proto.buf.validate.KnownRegex} */ (jspb.Message.getField(message, 24));
|
|
11141
11358
|
if (f != null) {
|
|
11142
11359
|
writer.writeEnum(
|
|
@@ -12281,6 +12498,42 @@ proto.buf.validate.StringRules.prototype.hasHostAndPort = function() {
|
|
|
12281
12498
|
};
|
|
12282
12499
|
|
|
12283
12500
|
|
|
12501
|
+
/**
|
|
12502
|
+
* optional bool ulid = 35;
|
|
12503
|
+
* @return {boolean}
|
|
12504
|
+
*/
|
|
12505
|
+
proto.buf.validate.StringRules.prototype.getUlid = function() {
|
|
12506
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 35, false));
|
|
12507
|
+
};
|
|
12508
|
+
|
|
12509
|
+
|
|
12510
|
+
/**
|
|
12511
|
+
* @param {boolean} value
|
|
12512
|
+
* @return {!proto.buf.validate.StringRules} returns this
|
|
12513
|
+
*/
|
|
12514
|
+
proto.buf.validate.StringRules.prototype.setUlid = function(value) {
|
|
12515
|
+
return jspb.Message.setOneofField(this, 35, proto.buf.validate.StringRules.oneofGroups_[0], value);
|
|
12516
|
+
};
|
|
12517
|
+
|
|
12518
|
+
|
|
12519
|
+
/**
|
|
12520
|
+
* Clears the field making it undefined.
|
|
12521
|
+
* @return {!proto.buf.validate.StringRules} returns this
|
|
12522
|
+
*/
|
|
12523
|
+
proto.buf.validate.StringRules.prototype.clearUlid = function() {
|
|
12524
|
+
return jspb.Message.setOneofField(this, 35, proto.buf.validate.StringRules.oneofGroups_[0], undefined);
|
|
12525
|
+
};
|
|
12526
|
+
|
|
12527
|
+
|
|
12528
|
+
/**
|
|
12529
|
+
* Returns whether this field is set.
|
|
12530
|
+
* @return {boolean}
|
|
12531
|
+
*/
|
|
12532
|
+
proto.buf.validate.StringRules.prototype.hasUlid = function() {
|
|
12533
|
+
return jspb.Message.getField(this, 35) != null;
|
|
12534
|
+
};
|
|
12535
|
+
|
|
12536
|
+
|
|
12284
12537
|
/**
|
|
12285
12538
|
* optional KnownRegex well_known_regex = 24;
|
|
12286
12539
|
* @return {!proto.buf.validate.KnownRegex}
|
|
@@ -12406,7 +12659,7 @@ proto.buf.validate.BytesRules.repeatedFields_ = [8,9,14];
|
|
|
12406
12659
|
* @private {!Array<!Array<number>>}
|
|
12407
12660
|
* @const
|
|
12408
12661
|
*/
|
|
12409
|
-
proto.buf.validate.BytesRules.oneofGroups_ = [[10,11,12]];
|
|
12662
|
+
proto.buf.validate.BytesRules.oneofGroups_ = [[10,11,12,15]];
|
|
12410
12663
|
|
|
12411
12664
|
/**
|
|
12412
12665
|
* @enum {number}
|
|
@@ -12415,7 +12668,8 @@ proto.buf.validate.BytesRules.WellKnownCase = {
|
|
|
12415
12668
|
WELL_KNOWN_NOT_SET: 0,
|
|
12416
12669
|
IP: 10,
|
|
12417
12670
|
IPV4: 11,
|
|
12418
|
-
IPV6: 12
|
|
12671
|
+
IPV6: 12,
|
|
12672
|
+
UUID: 15
|
|
12419
12673
|
};
|
|
12420
12674
|
|
|
12421
12675
|
/**
|
|
@@ -12469,6 +12723,7 @@ notInList: msg.getNotInList_asB64(),
|
|
|
12469
12723
|
ip: (f = jspb.Message.getBooleanField(msg, 10)) == null ? undefined : f,
|
|
12470
12724
|
ipv4: (f = jspb.Message.getBooleanField(msg, 11)) == null ? undefined : f,
|
|
12471
12725
|
ipv6: (f = jspb.Message.getBooleanField(msg, 12)) == null ? undefined : f,
|
|
12726
|
+
uuid: (f = jspb.Message.getBooleanField(msg, 15)) == null ? undefined : f,
|
|
12472
12727
|
exampleList: msg.getExampleList_asB64()
|
|
12473
12728
|
};
|
|
12474
12729
|
|
|
@@ -12561,6 +12816,10 @@ proto.buf.validate.BytesRules.deserializeBinaryFromReader = function(msg, reader
|
|
|
12561
12816
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
12562
12817
|
msg.setIpv6(value);
|
|
12563
12818
|
break;
|
|
12819
|
+
case 15:
|
|
12820
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
12821
|
+
msg.setUuid(value);
|
|
12822
|
+
break;
|
|
12564
12823
|
case 14:
|
|
12565
12824
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
12566
12825
|
msg.addExample(value);
|
|
@@ -12688,6 +12947,13 @@ proto.buf.validate.BytesRules.serializeBinaryToWriter = function(message, writer
|
|
|
12688
12947
|
f
|
|
12689
12948
|
);
|
|
12690
12949
|
}
|
|
12950
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 15));
|
|
12951
|
+
if (f != null) {
|
|
12952
|
+
writer.writeBool(
|
|
12953
|
+
15,
|
|
12954
|
+
f
|
|
12955
|
+
);
|
|
12956
|
+
}
|
|
12691
12957
|
f = message.getExampleList_asU8();
|
|
12692
12958
|
if (f.length > 0) {
|
|
12693
12959
|
writer.writeRepeatedBytes(
|
|
@@ -13314,6 +13580,42 @@ proto.buf.validate.BytesRules.prototype.hasIpv6 = function() {
|
|
|
13314
13580
|
};
|
|
13315
13581
|
|
|
13316
13582
|
|
|
13583
|
+
/**
|
|
13584
|
+
* optional bool uuid = 15;
|
|
13585
|
+
* @return {boolean}
|
|
13586
|
+
*/
|
|
13587
|
+
proto.buf.validate.BytesRules.prototype.getUuid = function() {
|
|
13588
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false));
|
|
13589
|
+
};
|
|
13590
|
+
|
|
13591
|
+
|
|
13592
|
+
/**
|
|
13593
|
+
* @param {boolean} value
|
|
13594
|
+
* @return {!proto.buf.validate.BytesRules} returns this
|
|
13595
|
+
*/
|
|
13596
|
+
proto.buf.validate.BytesRules.prototype.setUuid = function(value) {
|
|
13597
|
+
return jspb.Message.setOneofField(this, 15, proto.buf.validate.BytesRules.oneofGroups_[0], value);
|
|
13598
|
+
};
|
|
13599
|
+
|
|
13600
|
+
|
|
13601
|
+
/**
|
|
13602
|
+
* Clears the field making it undefined.
|
|
13603
|
+
* @return {!proto.buf.validate.BytesRules} returns this
|
|
13604
|
+
*/
|
|
13605
|
+
proto.buf.validate.BytesRules.prototype.clearUuid = function() {
|
|
13606
|
+
return jspb.Message.setOneofField(this, 15, proto.buf.validate.BytesRules.oneofGroups_[0], undefined);
|
|
13607
|
+
};
|
|
13608
|
+
|
|
13609
|
+
|
|
13610
|
+
/**
|
|
13611
|
+
* Returns whether this field is set.
|
|
13612
|
+
* @return {boolean}
|
|
13613
|
+
*/
|
|
13614
|
+
proto.buf.validate.BytesRules.prototype.hasUuid = function() {
|
|
13615
|
+
return jspb.Message.getField(this, 15) != null;
|
|
13616
|
+
};
|
|
13617
|
+
|
|
13618
|
+
|
|
13317
13619
|
/**
|
|
13318
13620
|
* repeated bytes example = 14;
|
|
13319
13621
|
* @return {!(Array<!Uint8Array>|Array<string>)}
|
|
@@ -15125,6 +15427,323 @@ proto.buf.validate.DurationRules.prototype.clearExampleList = function() {
|
|
|
15125
15427
|
|
|
15126
15428
|
|
|
15127
15429
|
|
|
15430
|
+
/**
|
|
15431
|
+
* List of repeated fields within this message type.
|
|
15432
|
+
* @private {!Array<number>}
|
|
15433
|
+
* @const
|
|
15434
|
+
*/
|
|
15435
|
+
proto.buf.validate.FieldMaskRules.repeatedFields_ = [2,3,4];
|
|
15436
|
+
|
|
15437
|
+
|
|
15438
|
+
|
|
15439
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15440
|
+
/**
|
|
15441
|
+
* Creates an object representation of this proto.
|
|
15442
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15443
|
+
* Optional fields that are not set will be set to undefined.
|
|
15444
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15445
|
+
* For the list of reserved names please see:
|
|
15446
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15447
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15448
|
+
* JSPB instance for transitional soy proto support:
|
|
15449
|
+
* http://goto/soy-param-migration
|
|
15450
|
+
* @return {!Object}
|
|
15451
|
+
*/
|
|
15452
|
+
proto.buf.validate.FieldMaskRules.prototype.toObject = function(opt_includeInstance) {
|
|
15453
|
+
return proto.buf.validate.FieldMaskRules.toObject(opt_includeInstance, this);
|
|
15454
|
+
};
|
|
15455
|
+
|
|
15456
|
+
|
|
15457
|
+
/**
|
|
15458
|
+
* Static version of the {@see toObject} method.
|
|
15459
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15460
|
+
* the JSPB instance for transitional soy proto support:
|
|
15461
|
+
* http://goto/soy-param-migration
|
|
15462
|
+
* @param {!proto.buf.validate.FieldMaskRules} msg The msg instance to transform.
|
|
15463
|
+
* @return {!Object}
|
|
15464
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15465
|
+
*/
|
|
15466
|
+
proto.buf.validate.FieldMaskRules.toObject = function(includeInstance, msg) {
|
|
15467
|
+
var f, obj = {
|
|
15468
|
+
pb_const: (f = msg.getConst()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f),
|
|
15469
|
+
inList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
15470
|
+
notInList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
15471
|
+
exampleList: jspb.Message.toObjectList(msg.getExampleList(),
|
|
15472
|
+
google_protobuf_field_mask_pb.FieldMask.toObject, includeInstance)
|
|
15473
|
+
};
|
|
15474
|
+
|
|
15475
|
+
jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
|
|
15476
|
+
proto.buf.validate.FieldMaskRules.extensions, proto.buf.validate.FieldMaskRules.prototype.getExtension,
|
|
15477
|
+
includeInstance);
|
|
15478
|
+
if (includeInstance) {
|
|
15479
|
+
obj.$jspbMessageInstance = msg;
|
|
15480
|
+
}
|
|
15481
|
+
return obj;
|
|
15482
|
+
};
|
|
15483
|
+
}
|
|
15484
|
+
|
|
15485
|
+
|
|
15486
|
+
/**
|
|
15487
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15488
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15489
|
+
* @return {!proto.buf.validate.FieldMaskRules}
|
|
15490
|
+
*/
|
|
15491
|
+
proto.buf.validate.FieldMaskRules.deserializeBinary = function(bytes) {
|
|
15492
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15493
|
+
var msg = new proto.buf.validate.FieldMaskRules;
|
|
15494
|
+
return proto.buf.validate.FieldMaskRules.deserializeBinaryFromReader(msg, reader);
|
|
15495
|
+
};
|
|
15496
|
+
|
|
15497
|
+
|
|
15498
|
+
/**
|
|
15499
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15500
|
+
* given reader into the given message object.
|
|
15501
|
+
* @param {!proto.buf.validate.FieldMaskRules} msg The message object to deserialize into.
|
|
15502
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15503
|
+
* @return {!proto.buf.validate.FieldMaskRules}
|
|
15504
|
+
*/
|
|
15505
|
+
proto.buf.validate.FieldMaskRules.deserializeBinaryFromReader = function(msg, reader) {
|
|
15506
|
+
while (reader.nextField()) {
|
|
15507
|
+
if (reader.isEndGroup()) {
|
|
15508
|
+
break;
|
|
15509
|
+
}
|
|
15510
|
+
var field = reader.getFieldNumber();
|
|
15511
|
+
switch (field) {
|
|
15512
|
+
case 1:
|
|
15513
|
+
var value = new google_protobuf_field_mask_pb.FieldMask;
|
|
15514
|
+
reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
|
|
15515
|
+
msg.setConst(value);
|
|
15516
|
+
break;
|
|
15517
|
+
case 2:
|
|
15518
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15519
|
+
msg.addIn(value);
|
|
15520
|
+
break;
|
|
15521
|
+
case 3:
|
|
15522
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15523
|
+
msg.addNotIn(value);
|
|
15524
|
+
break;
|
|
15525
|
+
case 4:
|
|
15526
|
+
var value = new google_protobuf_field_mask_pb.FieldMask;
|
|
15527
|
+
reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
|
|
15528
|
+
msg.addExample(value);
|
|
15529
|
+
break;
|
|
15530
|
+
default:
|
|
15531
|
+
jspb.Message.readBinaryExtension(msg, reader,
|
|
15532
|
+
proto.buf.validate.FieldMaskRules.extensionsBinary,
|
|
15533
|
+
proto.buf.validate.FieldMaskRules.prototype.getExtension,
|
|
15534
|
+
proto.buf.validate.FieldMaskRules.prototype.setExtension);
|
|
15535
|
+
break;
|
|
15536
|
+
}
|
|
15537
|
+
}
|
|
15538
|
+
return msg;
|
|
15539
|
+
};
|
|
15540
|
+
|
|
15541
|
+
|
|
15542
|
+
/**
|
|
15543
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15544
|
+
* @return {!Uint8Array}
|
|
15545
|
+
*/
|
|
15546
|
+
proto.buf.validate.FieldMaskRules.prototype.serializeBinary = function() {
|
|
15547
|
+
var writer = new jspb.BinaryWriter();
|
|
15548
|
+
proto.buf.validate.FieldMaskRules.serializeBinaryToWriter(this, writer);
|
|
15549
|
+
return writer.getResultBuffer();
|
|
15550
|
+
};
|
|
15551
|
+
|
|
15552
|
+
|
|
15553
|
+
/**
|
|
15554
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15555
|
+
* format), writing to the given BinaryWriter.
|
|
15556
|
+
* @param {!proto.buf.validate.FieldMaskRules} message
|
|
15557
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15558
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15559
|
+
*/
|
|
15560
|
+
proto.buf.validate.FieldMaskRules.serializeBinaryToWriter = function(message, writer) {
|
|
15561
|
+
var f = undefined;
|
|
15562
|
+
f = message.getConst();
|
|
15563
|
+
if (f != null) {
|
|
15564
|
+
writer.writeMessage(
|
|
15565
|
+
1,
|
|
15566
|
+
f,
|
|
15567
|
+
google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
|
|
15568
|
+
);
|
|
15569
|
+
}
|
|
15570
|
+
f = message.getInList();
|
|
15571
|
+
if (f.length > 0) {
|
|
15572
|
+
writer.writeRepeatedString(
|
|
15573
|
+
2,
|
|
15574
|
+
f
|
|
15575
|
+
);
|
|
15576
|
+
}
|
|
15577
|
+
f = message.getNotInList();
|
|
15578
|
+
if (f.length > 0) {
|
|
15579
|
+
writer.writeRepeatedString(
|
|
15580
|
+
3,
|
|
15581
|
+
f
|
|
15582
|
+
);
|
|
15583
|
+
}
|
|
15584
|
+
f = message.getExampleList();
|
|
15585
|
+
if (f.length > 0) {
|
|
15586
|
+
writer.writeRepeatedMessage(
|
|
15587
|
+
4,
|
|
15588
|
+
f,
|
|
15589
|
+
google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
|
|
15590
|
+
);
|
|
15591
|
+
}
|
|
15592
|
+
jspb.Message.serializeBinaryExtensions(message, writer,
|
|
15593
|
+
proto.buf.validate.FieldMaskRules.extensionsBinary, proto.buf.validate.FieldMaskRules.prototype.getExtension);
|
|
15594
|
+
};
|
|
15595
|
+
|
|
15596
|
+
|
|
15597
|
+
/**
|
|
15598
|
+
* optional google.protobuf.FieldMask const = 1;
|
|
15599
|
+
* @return {?proto.google.protobuf.FieldMask}
|
|
15600
|
+
*/
|
|
15601
|
+
proto.buf.validate.FieldMaskRules.prototype.getConst = function() {
|
|
15602
|
+
return /** @type{?proto.google.protobuf.FieldMask} */ (
|
|
15603
|
+
jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 1));
|
|
15604
|
+
};
|
|
15605
|
+
|
|
15606
|
+
|
|
15607
|
+
/**
|
|
15608
|
+
* @param {?proto.google.protobuf.FieldMask|undefined} value
|
|
15609
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15610
|
+
*/
|
|
15611
|
+
proto.buf.validate.FieldMaskRules.prototype.setConst = function(value) {
|
|
15612
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
15613
|
+
};
|
|
15614
|
+
|
|
15615
|
+
|
|
15616
|
+
/**
|
|
15617
|
+
* Clears the message field making it undefined.
|
|
15618
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15619
|
+
*/
|
|
15620
|
+
proto.buf.validate.FieldMaskRules.prototype.clearConst = function() {
|
|
15621
|
+
return this.setConst(undefined);
|
|
15622
|
+
};
|
|
15623
|
+
|
|
15624
|
+
|
|
15625
|
+
/**
|
|
15626
|
+
* Returns whether this field is set.
|
|
15627
|
+
* @return {boolean}
|
|
15628
|
+
*/
|
|
15629
|
+
proto.buf.validate.FieldMaskRules.prototype.hasConst = function() {
|
|
15630
|
+
return jspb.Message.getField(this, 1) != null;
|
|
15631
|
+
};
|
|
15632
|
+
|
|
15633
|
+
|
|
15634
|
+
/**
|
|
15635
|
+
* repeated string in = 2;
|
|
15636
|
+
* @return {!Array<string>}
|
|
15637
|
+
*/
|
|
15638
|
+
proto.buf.validate.FieldMaskRules.prototype.getInList = function() {
|
|
15639
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
15640
|
+
};
|
|
15641
|
+
|
|
15642
|
+
|
|
15643
|
+
/**
|
|
15644
|
+
* @param {!Array<string>} value
|
|
15645
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15646
|
+
*/
|
|
15647
|
+
proto.buf.validate.FieldMaskRules.prototype.setInList = function(value) {
|
|
15648
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
15649
|
+
};
|
|
15650
|
+
|
|
15651
|
+
|
|
15652
|
+
/**
|
|
15653
|
+
* @param {string} value
|
|
15654
|
+
* @param {number=} opt_index
|
|
15655
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15656
|
+
*/
|
|
15657
|
+
proto.buf.validate.FieldMaskRules.prototype.addIn = function(value, opt_index) {
|
|
15658
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
15659
|
+
};
|
|
15660
|
+
|
|
15661
|
+
|
|
15662
|
+
/**
|
|
15663
|
+
* Clears the list making it empty but non-null.
|
|
15664
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15665
|
+
*/
|
|
15666
|
+
proto.buf.validate.FieldMaskRules.prototype.clearInList = function() {
|
|
15667
|
+
return this.setInList([]);
|
|
15668
|
+
};
|
|
15669
|
+
|
|
15670
|
+
|
|
15671
|
+
/**
|
|
15672
|
+
* repeated string not_in = 3;
|
|
15673
|
+
* @return {!Array<string>}
|
|
15674
|
+
*/
|
|
15675
|
+
proto.buf.validate.FieldMaskRules.prototype.getNotInList = function() {
|
|
15676
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
15677
|
+
};
|
|
15678
|
+
|
|
15679
|
+
|
|
15680
|
+
/**
|
|
15681
|
+
* @param {!Array<string>} value
|
|
15682
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15683
|
+
*/
|
|
15684
|
+
proto.buf.validate.FieldMaskRules.prototype.setNotInList = function(value) {
|
|
15685
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
15686
|
+
};
|
|
15687
|
+
|
|
15688
|
+
|
|
15689
|
+
/**
|
|
15690
|
+
* @param {string} value
|
|
15691
|
+
* @param {number=} opt_index
|
|
15692
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15693
|
+
*/
|
|
15694
|
+
proto.buf.validate.FieldMaskRules.prototype.addNotIn = function(value, opt_index) {
|
|
15695
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
15696
|
+
};
|
|
15697
|
+
|
|
15698
|
+
|
|
15699
|
+
/**
|
|
15700
|
+
* Clears the list making it empty but non-null.
|
|
15701
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15702
|
+
*/
|
|
15703
|
+
proto.buf.validate.FieldMaskRules.prototype.clearNotInList = function() {
|
|
15704
|
+
return this.setNotInList([]);
|
|
15705
|
+
};
|
|
15706
|
+
|
|
15707
|
+
|
|
15708
|
+
/**
|
|
15709
|
+
* repeated google.protobuf.FieldMask example = 4;
|
|
15710
|
+
* @return {!Array<!proto.google.protobuf.FieldMask>}
|
|
15711
|
+
*/
|
|
15712
|
+
proto.buf.validate.FieldMaskRules.prototype.getExampleList = function() {
|
|
15713
|
+
return /** @type{!Array<!proto.google.protobuf.FieldMask>} */ (
|
|
15714
|
+
jspb.Message.getRepeatedWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 4));
|
|
15715
|
+
};
|
|
15716
|
+
|
|
15717
|
+
|
|
15718
|
+
/**
|
|
15719
|
+
* @param {!Array<!proto.google.protobuf.FieldMask>} value
|
|
15720
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15721
|
+
*/
|
|
15722
|
+
proto.buf.validate.FieldMaskRules.prototype.setExampleList = function(value) {
|
|
15723
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
15724
|
+
};
|
|
15725
|
+
|
|
15726
|
+
|
|
15727
|
+
/**
|
|
15728
|
+
* @param {!proto.google.protobuf.FieldMask=} opt_value
|
|
15729
|
+
* @param {number=} opt_index
|
|
15730
|
+
* @return {!proto.google.protobuf.FieldMask}
|
|
15731
|
+
*/
|
|
15732
|
+
proto.buf.validate.FieldMaskRules.prototype.addExample = function(opt_value, opt_index) {
|
|
15733
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.FieldMask, opt_index);
|
|
15734
|
+
};
|
|
15735
|
+
|
|
15736
|
+
|
|
15737
|
+
/**
|
|
15738
|
+
* Clears the list making it empty but non-null.
|
|
15739
|
+
* @return {!proto.buf.validate.FieldMaskRules} returns this
|
|
15740
|
+
*/
|
|
15741
|
+
proto.buf.validate.FieldMaskRules.prototype.clearExampleList = function() {
|
|
15742
|
+
return this.setExampleList([]);
|
|
15743
|
+
};
|
|
15744
|
+
|
|
15745
|
+
|
|
15746
|
+
|
|
15128
15747
|
/**
|
|
15129
15748
|
* List of repeated fields within this message type.
|
|
15130
15749
|
* @private {!Array<number>}
|
|
@@ -43,3 +43,4 @@ __exportStar(require("./service_pb"), exports);
|
|
|
43
43
|
// export * from "./my_custom_module";
|
|
44
44
|
// export { MyCustomClass } from "./another_module";
|
|
45
45
|
// ===================================================================
|
|
46
|
+
__exportStar(require("./limit_order_state"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as jspb from 'google-protobuf'
|
|
2
2
|
|
|
3
3
|
import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
|
|
4
|
+
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
|
|
4
5
|
import * as meshtrade_type_v1_amount_pb from '../../../../meshtrade/type/v1/amount_pb'; // proto import: "meshtrade/type/v1/amount.proto"
|
|
5
6
|
|
|
6
7
|
|
|
@@ -48,6 +49,14 @@ export class LimitOrder extends jspb.Message {
|
|
|
48
49
|
getState(): LimitOrderState;
|
|
49
50
|
setState(value: LimitOrderState): LimitOrder;
|
|
50
51
|
|
|
52
|
+
getNumber(): string;
|
|
53
|
+
setNumber(value: string): LimitOrder;
|
|
54
|
+
|
|
55
|
+
getSubmittedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
56
|
+
setSubmittedAt(value?: google_protobuf_timestamp_pb.Timestamp): LimitOrder;
|
|
57
|
+
hasSubmittedAt(): boolean;
|
|
58
|
+
clearSubmittedAt(): LimitOrder;
|
|
59
|
+
|
|
51
60
|
serializeBinary(): Uint8Array;
|
|
52
61
|
toObject(includeInstance?: boolean): LimitOrder.AsObject;
|
|
53
62
|
static toObject(includeInstance: boolean, msg: LimitOrder): LimitOrder.AsObject;
|
|
@@ -69,6 +78,8 @@ export namespace LimitOrder {
|
|
|
69
78
|
fillPrice?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
70
79
|
filledQuantity?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
71
80
|
state: LimitOrderState,
|
|
81
|
+
number: string,
|
|
82
|
+
submittedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
72
83
|
}
|
|
73
84
|
}
|
|
74
85
|
|
|
@@ -78,12 +89,12 @@ export enum LimitOrderSide {
|
|
|
78
89
|
LIMIT_ORDER_SIDE_SELL = 2,
|
|
79
90
|
}
|
|
80
91
|
export enum LimitOrderState {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
LIMIT_ORDER_STATE_UNSPECIFIED = 0,
|
|
93
|
+
LIMIT_ORDER_STATE_SUBMISSION_IN_PROGRESS = 1,
|
|
94
|
+
LIMIT_ORDER_STATE_SUBMISSION_FAILED = 2,
|
|
95
|
+
LIMIT_ORDER_STATE_OPEN = 3,
|
|
96
|
+
LIMIT_ORDER_STATE_COMPLETE_IN_PROGRESS = 4,
|
|
97
|
+
LIMIT_ORDER_STATE_COMPLETE = 5,
|
|
98
|
+
LIMIT_ORDER_STATE_CANCELLATION_IN_PROGRESS = 6,
|
|
99
|
+
LIMIT_ORDER_STATE_CANCELLED = 7,
|
|
89
100
|
}
|
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js');
|
|
25
25
|
goog.object.extend(proto, buf_validate_validate_pb);
|
|
26
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
28
|
var meshtrade_type_v1_amount_pb = require('../../../../meshtrade/type/v1/amount_pb.js');
|
|
27
29
|
goog.object.extend(proto, meshtrade_type_v1_amount_pb);
|
|
28
30
|
goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.LimitOrder', null, global);
|
|
@@ -98,7 +100,9 @@ limitPrice: (f = msg.getLimitPrice()) && meshtrade_type_v1_amount_pb.Amount.toOb
|
|
|
98
100
|
quantity: (f = msg.getQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
99
101
|
fillPrice: (f = msg.getFillPrice()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
100
102
|
filledQuantity: (f = msg.getFilledQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
101
|
-
state: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
103
|
+
state: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
104
|
+
number: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
105
|
+
submittedAt: (f = msg.getSubmittedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
102
106
|
};
|
|
103
107
|
|
|
104
108
|
if (includeInstance) {
|
|
@@ -183,6 +187,15 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.deserializeBinaryFromReader =
|
|
|
183
187
|
var value = /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderState} */ (reader.readEnum());
|
|
184
188
|
msg.setState(value);
|
|
185
189
|
break;
|
|
190
|
+
case 13:
|
|
191
|
+
var value = /** @type {string} */ (reader.readString());
|
|
192
|
+
msg.setNumber(value);
|
|
193
|
+
break;
|
|
194
|
+
case 14:
|
|
195
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
196
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
197
|
+
msg.setSubmittedAt(value);
|
|
198
|
+
break;
|
|
186
199
|
default:
|
|
187
200
|
reader.skipField();
|
|
188
201
|
break;
|
|
@@ -293,6 +306,21 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
293
306
|
f
|
|
294
307
|
);
|
|
295
308
|
}
|
|
309
|
+
f = message.getNumber();
|
|
310
|
+
if (f.length > 0) {
|
|
311
|
+
writer.writeString(
|
|
312
|
+
13,
|
|
313
|
+
f
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
f = message.getSubmittedAt();
|
|
317
|
+
if (f != null) {
|
|
318
|
+
writer.writeMessage(
|
|
319
|
+
14,
|
|
320
|
+
f,
|
|
321
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
322
|
+
);
|
|
323
|
+
}
|
|
296
324
|
};
|
|
297
325
|
|
|
298
326
|
|
|
@@ -589,6 +617,61 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setState = function(
|
|
|
589
617
|
};
|
|
590
618
|
|
|
591
619
|
|
|
620
|
+
/**
|
|
621
|
+
* optional string number = 13;
|
|
622
|
+
* @return {string}
|
|
623
|
+
*/
|
|
624
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getNumber = function() {
|
|
625
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* @param {string} value
|
|
631
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
632
|
+
*/
|
|
633
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setNumber = function(value) {
|
|
634
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* optional google.protobuf.Timestamp submitted_at = 14;
|
|
640
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
641
|
+
*/
|
|
642
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getSubmittedAt = function() {
|
|
643
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
644
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 14));
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
650
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
651
|
+
*/
|
|
652
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setSubmittedAt = function(value) {
|
|
653
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Clears the message field making it undefined.
|
|
659
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
660
|
+
*/
|
|
661
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.clearSubmittedAt = function() {
|
|
662
|
+
return this.setSubmittedAt(undefined);
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Returns whether this field is set.
|
|
668
|
+
* @return {boolean}
|
|
669
|
+
*/
|
|
670
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.hasSubmittedAt = function() {
|
|
671
|
+
return jspb.Message.getField(this, 14) != null;
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
|
|
592
675
|
/**
|
|
593
676
|
* @enum {number}
|
|
594
677
|
*/
|
|
@@ -602,14 +685,14 @@ proto.meshtrade.trading.limit_order.v1.LimitOrderSide = {
|
|
|
602
685
|
* @enum {number}
|
|
603
686
|
*/
|
|
604
687
|
proto.meshtrade.trading.limit_order.v1.LimitOrderState = {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
688
|
+
LIMIT_ORDER_STATE_UNSPECIFIED: 0,
|
|
689
|
+
LIMIT_ORDER_STATE_SUBMISSION_IN_PROGRESS: 1,
|
|
690
|
+
LIMIT_ORDER_STATE_SUBMISSION_FAILED: 2,
|
|
691
|
+
LIMIT_ORDER_STATE_OPEN: 3,
|
|
692
|
+
LIMIT_ORDER_STATE_COMPLETE_IN_PROGRESS: 4,
|
|
693
|
+
LIMIT_ORDER_STATE_COMPLETE: 5,
|
|
694
|
+
LIMIT_ORDER_STATE_CANCELLATION_IN_PROGRESS: 6,
|
|
695
|
+
LIMIT_ORDER_STATE_CANCELLED: 7
|
|
613
696
|
};
|
|
614
697
|
|
|
615
698
|
goog.object.extend(exports, proto.meshtrade.trading.limit_order.v1);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LimitOrderState } from "./limit_order_pb";
|
|
2
|
+
export declare const allLimitOrderStates: LimitOrderState[];
|
|
3
|
+
/**
|
|
4
|
+
* Converts a LimitOrderState enum instance to a custom string representation.
|
|
5
|
+
* @param {LimitOrderState} limitOrderState - The limitOrderState to convert.
|
|
6
|
+
* @returns {string} The custom string representation of the limitOrderState.
|
|
7
|
+
*/
|
|
8
|
+
export declare function limitOrderStateToString(limitOrderState: LimitOrderState): string;
|
|
9
|
+
/**
|
|
10
|
+
* Converts a custom string representation to a LimitOrderState enum instance.
|
|
11
|
+
* @param {string} limitOrderStateStr - The custom string representation of the limitOrderState.
|
|
12
|
+
* @returns {LimitOrderState} The corresponding LimitOrderState enum instance.
|
|
13
|
+
*/
|
|
14
|
+
export declare function stringToLimitOrderState(limitOrderStateStr: string): LimitOrderState;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allLimitOrderStates = void 0;
|
|
4
|
+
exports.limitOrderStateToString = limitOrderStateToString;
|
|
5
|
+
exports.stringToLimitOrderState = stringToLimitOrderState;
|
|
6
|
+
const limit_order_pb_1 = require("./limit_order_pb");
|
|
7
|
+
// Get all limitOrderStates as enum values
|
|
8
|
+
exports.allLimitOrderStates = Object.values(limit_order_pb_1.LimitOrderState).filter((value) => typeof value === "number");
|
|
9
|
+
// Define explicit mappings between LimitOrderState enums and custom string representations
|
|
10
|
+
const stateToStringMapping = {
|
|
11
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_UNSPECIFIED]: "-",
|
|
12
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_SUBMISSION_IN_PROGRESS]: "Submission in Progress",
|
|
13
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_SUBMISSION_FAILED]: "Submission Failed",
|
|
14
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_OPEN]: "Open",
|
|
15
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_COMPLETE_IN_PROGRESS]: "Complete in Progress",
|
|
16
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_COMPLETE]: "Complete",
|
|
17
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_CANCELLATION_IN_PROGRESS]: "Cancellation in Progress",
|
|
18
|
+
[limit_order_pb_1.LimitOrderState.LIMIT_ORDER_STATE_CANCELLED]: "Cancelled",
|
|
19
|
+
};
|
|
20
|
+
// Reverse mapping from string to LimitOrderState enum
|
|
21
|
+
const stringToLimitOrderStateMapping = {};
|
|
22
|
+
for (const [key, value] of Object.entries(stateToStringMapping)) {
|
|
23
|
+
stringToLimitOrderStateMapping[value] = Number(key);
|
|
24
|
+
}
|
|
25
|
+
class UnsupportedLimitOrderStateError extends Error {
|
|
26
|
+
constructor(limitOrderState) {
|
|
27
|
+
const message = `Unsupported LimitOrderState: ${limitOrderState}`;
|
|
28
|
+
super(message);
|
|
29
|
+
this.limitOrderState = limitOrderState;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Converts a LimitOrderState enum instance to a custom string representation.
|
|
34
|
+
* @param {LimitOrderState} limitOrderState - The limitOrderState to convert.
|
|
35
|
+
* @returns {string} The custom string representation of the limitOrderState.
|
|
36
|
+
*/
|
|
37
|
+
function limitOrderStateToString(limitOrderState) {
|
|
38
|
+
if (limitOrderState in stateToStringMapping) {
|
|
39
|
+
return stateToStringMapping[limitOrderState];
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
throw new UnsupportedLimitOrderStateError(limitOrderState);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
class UnsupportedLimitOrderStateStringError extends Error {
|
|
46
|
+
constructor(limitOrderStateStr) {
|
|
47
|
+
const message = `Unsupported limitOrderState string: ${limitOrderStateStr}`;
|
|
48
|
+
super(message);
|
|
49
|
+
this.limitOrderStateStr = limitOrderStateStr;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Converts a custom string representation to a LimitOrderState enum instance.
|
|
54
|
+
* @param {string} limitOrderStateStr - The custom string representation of the limitOrderState.
|
|
55
|
+
* @returns {LimitOrderState} The corresponding LimitOrderState enum instance.
|
|
56
|
+
*/
|
|
57
|
+
function stringToLimitOrderState(limitOrderStateStr) {
|
|
58
|
+
if (limitOrderStateStr in stringToLimitOrderStateMapping) {
|
|
59
|
+
return stringToLimitOrderStateMapping[limitOrderStateStr];
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw new UnsupportedLimitOrderStateStringError(limitOrderStateStr);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -106,6 +106,11 @@ export class Balance extends jspb.Message {
|
|
|
106
106
|
hasAmount(): boolean;
|
|
107
107
|
clearAmount(): Balance;
|
|
108
108
|
|
|
109
|
+
getAvailableAmount(): meshtrade_type_v1_amount_pb.Amount | undefined;
|
|
110
|
+
setAvailableAmount(value?: meshtrade_type_v1_amount_pb.Amount): Balance;
|
|
111
|
+
hasAvailableAmount(): boolean;
|
|
112
|
+
clearAvailableAmount(): Balance;
|
|
113
|
+
|
|
109
114
|
getInstrumentMetadata(): InstrumentMetaData | undefined;
|
|
110
115
|
setInstrumentMetadata(value?: InstrumentMetaData): Balance;
|
|
111
116
|
hasInstrumentMetadata(): boolean;
|
|
@@ -122,6 +127,7 @@ export class Balance extends jspb.Message {
|
|
|
122
127
|
export namespace Balance {
|
|
123
128
|
export type AsObject = {
|
|
124
129
|
amount?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
130
|
+
availableAmount?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
125
131
|
instrumentMetadata?: InstrumentMetaData.AsObject,
|
|
126
132
|
}
|
|
127
133
|
}
|
|
@@ -130,6 +136,9 @@ export class Signatory extends jspb.Message {
|
|
|
130
136
|
getDisplayName(): string;
|
|
131
137
|
setDisplayName(value: string): Signatory;
|
|
132
138
|
|
|
139
|
+
getResourceName(): string;
|
|
140
|
+
setResourceName(value: string): Signatory;
|
|
141
|
+
|
|
133
142
|
getLedgerId(): string;
|
|
134
143
|
setLedgerId(value: string): Signatory;
|
|
135
144
|
|
|
@@ -144,6 +153,7 @@ export class Signatory extends jspb.Message {
|
|
|
144
153
|
export namespace Signatory {
|
|
145
154
|
export type AsObject = {
|
|
146
155
|
displayName: string,
|
|
156
|
+
resourceName: string,
|
|
147
157
|
ledgerId: string,
|
|
148
158
|
}
|
|
149
159
|
}
|
|
@@ -868,6 +868,7 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.toObject = function(opt_incl
|
|
|
868
868
|
proto.meshtrade.wallet.account.v1.Balance.toObject = function(includeInstance, msg) {
|
|
869
869
|
var f, obj = {
|
|
870
870
|
amount: (f = msg.getAmount()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
871
|
+
availableAmount: (f = msg.getAvailableAmount()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
871
872
|
instrumentMetadata: (f = msg.getInstrumentMetadata()) && proto.meshtrade.wallet.account.v1.InstrumentMetaData.toObject(includeInstance, f)
|
|
872
873
|
};
|
|
873
874
|
|
|
@@ -911,6 +912,11 @@ proto.meshtrade.wallet.account.v1.Balance.deserializeBinaryFromReader = function
|
|
|
911
912
|
msg.setAmount(value);
|
|
912
913
|
break;
|
|
913
914
|
case 2:
|
|
915
|
+
var value = new meshtrade_type_v1_amount_pb.Amount;
|
|
916
|
+
reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
|
|
917
|
+
msg.setAvailableAmount(value);
|
|
918
|
+
break;
|
|
919
|
+
case 3:
|
|
914
920
|
var value = new proto.meshtrade.wallet.account.v1.InstrumentMetaData;
|
|
915
921
|
reader.readMessage(value,proto.meshtrade.wallet.account.v1.InstrumentMetaData.deserializeBinaryFromReader);
|
|
916
922
|
msg.setInstrumentMetadata(value);
|
|
@@ -952,11 +958,19 @@ proto.meshtrade.wallet.account.v1.Balance.serializeBinaryToWriter = function(mes
|
|
|
952
958
|
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
953
959
|
);
|
|
954
960
|
}
|
|
955
|
-
f = message.
|
|
961
|
+
f = message.getAvailableAmount();
|
|
956
962
|
if (f != null) {
|
|
957
963
|
writer.writeMessage(
|
|
958
964
|
2,
|
|
959
965
|
f,
|
|
966
|
+
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
f = message.getInstrumentMetadata();
|
|
970
|
+
if (f != null) {
|
|
971
|
+
writer.writeMessage(
|
|
972
|
+
3,
|
|
973
|
+
f,
|
|
960
974
|
proto.meshtrade.wallet.account.v1.InstrumentMetaData.serializeBinaryToWriter
|
|
961
975
|
);
|
|
962
976
|
}
|
|
@@ -1001,12 +1015,49 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.hasAmount = function() {
|
|
|
1001
1015
|
|
|
1002
1016
|
|
|
1003
1017
|
/**
|
|
1004
|
-
* optional
|
|
1018
|
+
* optional meshtrade.type.v1.Amount available_amount = 2;
|
|
1019
|
+
* @return {?proto.meshtrade.type.v1.Amount}
|
|
1020
|
+
*/
|
|
1021
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.getAvailableAmount = function() {
|
|
1022
|
+
return /** @type{?proto.meshtrade.type.v1.Amount} */ (
|
|
1023
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 2));
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* @param {?proto.meshtrade.type.v1.Amount|undefined} value
|
|
1029
|
+
* @return {!proto.meshtrade.wallet.account.v1.Balance} returns this
|
|
1030
|
+
*/
|
|
1031
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.setAvailableAmount = function(value) {
|
|
1032
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Clears the message field making it undefined.
|
|
1038
|
+
* @return {!proto.meshtrade.wallet.account.v1.Balance} returns this
|
|
1039
|
+
*/
|
|
1040
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.clearAvailableAmount = function() {
|
|
1041
|
+
return this.setAvailableAmount(undefined);
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns whether this field is set.
|
|
1047
|
+
* @return {boolean}
|
|
1048
|
+
*/
|
|
1049
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.hasAvailableAmount = function() {
|
|
1050
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* optional InstrumentMetaData instrument_metadata = 3;
|
|
1005
1056
|
* @return {?proto.meshtrade.wallet.account.v1.InstrumentMetaData}
|
|
1006
1057
|
*/
|
|
1007
1058
|
proto.meshtrade.wallet.account.v1.Balance.prototype.getInstrumentMetadata = function() {
|
|
1008
1059
|
return /** @type{?proto.meshtrade.wallet.account.v1.InstrumentMetaData} */ (
|
|
1009
|
-
jspb.Message.getWrapperField(this, proto.meshtrade.wallet.account.v1.InstrumentMetaData,
|
|
1060
|
+
jspb.Message.getWrapperField(this, proto.meshtrade.wallet.account.v1.InstrumentMetaData, 3));
|
|
1010
1061
|
};
|
|
1011
1062
|
|
|
1012
1063
|
|
|
@@ -1015,7 +1066,7 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.getInstrumentMetadata = func
|
|
|
1015
1066
|
* @return {!proto.meshtrade.wallet.account.v1.Balance} returns this
|
|
1016
1067
|
*/
|
|
1017
1068
|
proto.meshtrade.wallet.account.v1.Balance.prototype.setInstrumentMetadata = function(value) {
|
|
1018
|
-
return jspb.Message.setWrapperField(this,
|
|
1069
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1019
1070
|
};
|
|
1020
1071
|
|
|
1021
1072
|
|
|
@@ -1033,7 +1084,7 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.clearInstrumentMetadata = fu
|
|
|
1033
1084
|
* @return {boolean}
|
|
1034
1085
|
*/
|
|
1035
1086
|
proto.meshtrade.wallet.account.v1.Balance.prototype.hasInstrumentMetadata = function() {
|
|
1036
|
-
return jspb.Message.getField(this,
|
|
1087
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1037
1088
|
};
|
|
1038
1089
|
|
|
1039
1090
|
|
|
@@ -1070,7 +1121,8 @@ proto.meshtrade.wallet.account.v1.Signatory.prototype.toObject = function(opt_in
|
|
|
1070
1121
|
proto.meshtrade.wallet.account.v1.Signatory.toObject = function(includeInstance, msg) {
|
|
1071
1122
|
var f, obj = {
|
|
1072
1123
|
displayName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1073
|
-
|
|
1124
|
+
resourceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1125
|
+
ledgerId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1074
1126
|
};
|
|
1075
1127
|
|
|
1076
1128
|
if (includeInstance) {
|
|
@@ -1112,6 +1164,10 @@ proto.meshtrade.wallet.account.v1.Signatory.deserializeBinaryFromReader = functi
|
|
|
1112
1164
|
msg.setDisplayName(value);
|
|
1113
1165
|
break;
|
|
1114
1166
|
case 2:
|
|
1167
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1168
|
+
msg.setResourceName(value);
|
|
1169
|
+
break;
|
|
1170
|
+
case 3:
|
|
1115
1171
|
var value = /** @type {string} */ (reader.readString());
|
|
1116
1172
|
msg.setLedgerId(value);
|
|
1117
1173
|
break;
|
|
@@ -1151,13 +1207,20 @@ proto.meshtrade.wallet.account.v1.Signatory.serializeBinaryToWriter = function(m
|
|
|
1151
1207
|
f
|
|
1152
1208
|
);
|
|
1153
1209
|
}
|
|
1154
|
-
f = message.
|
|
1210
|
+
f = message.getResourceName();
|
|
1155
1211
|
if (f.length > 0) {
|
|
1156
1212
|
writer.writeString(
|
|
1157
1213
|
2,
|
|
1158
1214
|
f
|
|
1159
1215
|
);
|
|
1160
1216
|
}
|
|
1217
|
+
f = message.getLedgerId();
|
|
1218
|
+
if (f.length > 0) {
|
|
1219
|
+
writer.writeString(
|
|
1220
|
+
3,
|
|
1221
|
+
f
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1161
1224
|
};
|
|
1162
1225
|
|
|
1163
1226
|
|
|
@@ -1180,10 +1243,10 @@ proto.meshtrade.wallet.account.v1.Signatory.prototype.setDisplayName = function(
|
|
|
1180
1243
|
|
|
1181
1244
|
|
|
1182
1245
|
/**
|
|
1183
|
-
* optional string
|
|
1246
|
+
* optional string resource_name = 2;
|
|
1184
1247
|
* @return {string}
|
|
1185
1248
|
*/
|
|
1186
|
-
proto.meshtrade.wallet.account.v1.Signatory.prototype.
|
|
1249
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.getResourceName = function() {
|
|
1187
1250
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1188
1251
|
};
|
|
1189
1252
|
|
|
@@ -1192,11 +1255,29 @@ proto.meshtrade.wallet.account.v1.Signatory.prototype.getLedgerId = function() {
|
|
|
1192
1255
|
* @param {string} value
|
|
1193
1256
|
* @return {!proto.meshtrade.wallet.account.v1.Signatory} returns this
|
|
1194
1257
|
*/
|
|
1195
|
-
proto.meshtrade.wallet.account.v1.Signatory.prototype.
|
|
1258
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.setResourceName = function(value) {
|
|
1196
1259
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1197
1260
|
};
|
|
1198
1261
|
|
|
1199
1262
|
|
|
1263
|
+
/**
|
|
1264
|
+
* optional string ledger_id = 3;
|
|
1265
|
+
* @return {string}
|
|
1266
|
+
*/
|
|
1267
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.getLedgerId = function() {
|
|
1268
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* @param {string} value
|
|
1274
|
+
* @return {!proto.meshtrade.wallet.account.v1.Signatory} returns this
|
|
1275
|
+
*/
|
|
1276
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.setLedgerId = function(value) {
|
|
1277
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
|
|
1200
1281
|
/**
|
|
1201
1282
|
* @enum {number}
|
|
1202
1283
|
*/
|