@meshtrade/api-old 1.33.0 → 1.34.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 +12 -8
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +39 -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/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);
|
|
@@ -48,6 +48,9 @@ export class LimitOrder extends jspb.Message {
|
|
|
48
48
|
getState(): LimitOrderState;
|
|
49
49
|
setState(value: LimitOrderState): LimitOrder;
|
|
50
50
|
|
|
51
|
+
getNumber(): string;
|
|
52
|
+
setNumber(value: string): LimitOrder;
|
|
53
|
+
|
|
51
54
|
serializeBinary(): Uint8Array;
|
|
52
55
|
toObject(includeInstance?: boolean): LimitOrder.AsObject;
|
|
53
56
|
static toObject(includeInstance: boolean, msg: LimitOrder): LimitOrder.AsObject;
|
|
@@ -69,6 +72,7 @@ export namespace LimitOrder {
|
|
|
69
72
|
fillPrice?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
70
73
|
filledQuantity?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
71
74
|
state: LimitOrderState,
|
|
75
|
+
number: string,
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
|
|
@@ -78,12 +82,12 @@ export enum LimitOrderSide {
|
|
|
78
82
|
LIMIT_ORDER_SIDE_SELL = 2,
|
|
79
83
|
}
|
|
80
84
|
export enum LimitOrderState {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
LIMIT_ORDER_STATE_UNSPECIFIED = 0,
|
|
86
|
+
LIMIT_ORDER_STATE_SUBMISSION_IN_PROGRESS = 1,
|
|
87
|
+
LIMIT_ORDER_STATE_SUBMISSION_FAILED = 2,
|
|
88
|
+
LIMIT_ORDER_STATE_OPEN = 3,
|
|
89
|
+
LIMIT_ORDER_STATE_COMPLETE_IN_PROGRESS = 4,
|
|
90
|
+
LIMIT_ORDER_STATE_COMPLETE = 5,
|
|
91
|
+
LIMIT_ORDER_STATE_CANCELLATION_IN_PROGRESS = 6,
|
|
92
|
+
LIMIT_ORDER_STATE_CANCELLED = 7,
|
|
89
93
|
}
|
|
@@ -98,7 +98,8 @@ limitPrice: (f = msg.getLimitPrice()) && meshtrade_type_v1_amount_pb.Amount.toOb
|
|
|
98
98
|
quantity: (f = msg.getQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
99
99
|
fillPrice: (f = msg.getFillPrice()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
100
100
|
filledQuantity: (f = msg.getFilledQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
101
|
-
state: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
101
|
+
state: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
102
|
+
number: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
102
103
|
};
|
|
103
104
|
|
|
104
105
|
if (includeInstance) {
|
|
@@ -183,6 +184,10 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.deserializeBinaryFromReader =
|
|
|
183
184
|
var value = /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderState} */ (reader.readEnum());
|
|
184
185
|
msg.setState(value);
|
|
185
186
|
break;
|
|
187
|
+
case 13:
|
|
188
|
+
var value = /** @type {string} */ (reader.readString());
|
|
189
|
+
msg.setNumber(value);
|
|
190
|
+
break;
|
|
186
191
|
default:
|
|
187
192
|
reader.skipField();
|
|
188
193
|
break;
|
|
@@ -293,6 +298,13 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
293
298
|
f
|
|
294
299
|
);
|
|
295
300
|
}
|
|
301
|
+
f = message.getNumber();
|
|
302
|
+
if (f.length > 0) {
|
|
303
|
+
writer.writeString(
|
|
304
|
+
13,
|
|
305
|
+
f
|
|
306
|
+
);
|
|
307
|
+
}
|
|
296
308
|
};
|
|
297
309
|
|
|
298
310
|
|
|
@@ -589,6 +601,24 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setState = function(
|
|
|
589
601
|
};
|
|
590
602
|
|
|
591
603
|
|
|
604
|
+
/**
|
|
605
|
+
* optional string number = 13;
|
|
606
|
+
* @return {string}
|
|
607
|
+
*/
|
|
608
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getNumber = function() {
|
|
609
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* @param {string} value
|
|
615
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
616
|
+
*/
|
|
617
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setNumber = function(value) {
|
|
618
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
|
|
592
622
|
/**
|
|
593
623
|
* @enum {number}
|
|
594
624
|
*/
|
|
@@ -602,14 +632,14 @@ proto.meshtrade.trading.limit_order.v1.LimitOrderSide = {
|
|
|
602
632
|
* @enum {number}
|
|
603
633
|
*/
|
|
604
634
|
proto.meshtrade.trading.limit_order.v1.LimitOrderState = {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
635
|
+
LIMIT_ORDER_STATE_UNSPECIFIED: 0,
|
|
636
|
+
LIMIT_ORDER_STATE_SUBMISSION_IN_PROGRESS: 1,
|
|
637
|
+
LIMIT_ORDER_STATE_SUBMISSION_FAILED: 2,
|
|
638
|
+
LIMIT_ORDER_STATE_OPEN: 3,
|
|
639
|
+
LIMIT_ORDER_STATE_COMPLETE_IN_PROGRESS: 4,
|
|
640
|
+
LIMIT_ORDER_STATE_COMPLETE: 5,
|
|
641
|
+
LIMIT_ORDER_STATE_CANCELLATION_IN_PROGRESS: 6,
|
|
642
|
+
LIMIT_ORDER_STATE_CANCELLED: 7
|
|
613
643
|
};
|
|
614
644
|
|
|
615
645
|
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
|
+
}
|