@kernelminds/scailo-sdk 0.0.111 → 0.0.113

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.
Files changed (73) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +148 -0
  3. package/lib/cjs/index.js +0 -1
  4. package/lib/cjs/src/base.scailo_pb.js +42 -0
  5. package/lib/cjs/src/components.scailo_pb.js +36 -0
  6. package/lib/cjs/src/equipments.scailo_pb.js +36 -0
  7. package/lib/cjs/src/feedstocks.scailo_pb.js +36 -0
  8. package/lib/cjs/src/infrastructures.scailo_pb.js +36 -0
  9. package/lib/cjs/src/merchandises.scailo_pb.js +36 -0
  10. package/lib/cjs/src/products.scailo_pb.js +36 -0
  11. package/lib/cjs/src/vault_commons.scailo_pb.js +2 -2
  12. package/lib/cjs/types/index.d.ts +0 -1
  13. package/lib/cjs/types/index.d.ts.map +1 -1
  14. package/lib/cjs/types/src/base.scailo_pb.d.ts +37 -1
  15. package/lib/cjs/types/src/base.scailo_pb.d.ts.map +1 -1
  16. package/lib/cjs/types/src/components.scailo_pb.d.ts +31 -0
  17. package/lib/cjs/types/src/components.scailo_pb.d.ts.map +1 -1
  18. package/lib/cjs/types/src/equipments.scailo_pb.d.ts +31 -0
  19. package/lib/cjs/types/src/equipments.scailo_pb.d.ts.map +1 -1
  20. package/lib/cjs/types/src/feedstocks.scailo_pb.d.ts +31 -0
  21. package/lib/cjs/types/src/feedstocks.scailo_pb.d.ts.map +1 -1
  22. package/lib/cjs/types/src/infrastructures.scailo_pb.d.ts +31 -0
  23. package/lib/cjs/types/src/infrastructures.scailo_pb.d.ts.map +1 -1
  24. package/lib/cjs/types/src/merchandises.scailo_pb.d.ts +31 -0
  25. package/lib/cjs/types/src/merchandises.scailo_pb.d.ts.map +1 -1
  26. package/lib/cjs/types/src/products.scailo_pb.d.ts +31 -0
  27. package/lib/cjs/types/src/products.scailo_pb.d.ts.map +1 -1
  28. package/lib/cjs/types/src/vault_commons.scailo_pb.d.ts +2 -2
  29. package/lib/esm/index.js +0 -1
  30. package/lib/esm/src/base.scailo_pb.js +42 -0
  31. package/lib/esm/src/components.scailo_pb.js +36 -0
  32. package/lib/esm/src/equipments.scailo_pb.js +36 -0
  33. package/lib/esm/src/feedstocks.scailo_pb.js +36 -0
  34. package/lib/esm/src/infrastructures.scailo_pb.js +36 -0
  35. package/lib/esm/src/merchandises.scailo_pb.js +36 -0
  36. package/lib/esm/src/products.scailo_pb.js +36 -0
  37. package/lib/esm/src/vault_commons.scailo_pb.js +2 -2
  38. package/lib/esm/types/index.d.ts +0 -1
  39. package/lib/esm/types/index.d.ts.map +1 -1
  40. package/lib/esm/types/src/base.scailo_pb.d.ts +37 -1
  41. package/lib/esm/types/src/base.scailo_pb.d.ts.map +1 -1
  42. package/lib/esm/types/src/components.scailo_pb.d.ts +31 -0
  43. package/lib/esm/types/src/components.scailo_pb.d.ts.map +1 -1
  44. package/lib/esm/types/src/equipments.scailo_pb.d.ts +31 -0
  45. package/lib/esm/types/src/equipments.scailo_pb.d.ts.map +1 -1
  46. package/lib/esm/types/src/feedstocks.scailo_pb.d.ts +31 -0
  47. package/lib/esm/types/src/feedstocks.scailo_pb.d.ts.map +1 -1
  48. package/lib/esm/types/src/infrastructures.scailo_pb.d.ts +31 -0
  49. package/lib/esm/types/src/infrastructures.scailo_pb.d.ts.map +1 -1
  50. package/lib/esm/types/src/merchandises.scailo_pb.d.ts +31 -0
  51. package/lib/esm/types/src/merchandises.scailo_pb.d.ts.map +1 -1
  52. package/lib/esm/types/src/products.scailo_pb.d.ts +31 -0
  53. package/lib/esm/types/src/products.scailo_pb.d.ts.map +1 -1
  54. package/lib/esm/types/src/vault_commons.scailo_pb.d.ts +2 -2
  55. package/package.json +6 -6
  56. package/lib/cjs/src/genesis.validate.scailo_pb.js +0 -1141
  57. package/lib/cjs/src/google/protobuf/duration_pb.js +0 -183
  58. package/lib/cjs/src/google/protobuf/timestamp_pb.js +0 -227
  59. package/lib/cjs/types/src/genesis.validate.scailo_pb.d.ts +0 -1796
  60. package/lib/cjs/types/src/genesis.validate.scailo_pb.d.ts.map +0 -1
  61. package/lib/cjs/types/src/google/protobuf/duration_pb.d.ts +0 -97
  62. package/lib/cjs/types/src/google/protobuf/duration_pb.d.ts.map +0 -1
  63. package/lib/cjs/types/src/google/protobuf/timestamp_pb.d.ts +0 -129
  64. package/lib/cjs/types/src/google/protobuf/timestamp_pb.d.ts.map +0 -1
  65. package/lib/esm/src/genesis.validate.scailo_pb.js +0 -2045
  66. package/lib/esm/src/google/protobuf/duration_pb.js +0 -183
  67. package/lib/esm/src/google/protobuf/timestamp_pb.js +0 -227
  68. package/lib/esm/types/src/genesis.validate.scailo_pb.d.ts +0 -1796
  69. package/lib/esm/types/src/genesis.validate.scailo_pb.d.ts.map +0 -1
  70. package/lib/esm/types/src/google/protobuf/duration_pb.d.ts +0 -97
  71. package/lib/esm/types/src/google/protobuf/duration_pb.d.ts.map +0 -1
  72. package/lib/esm/types/src/google/protobuf/timestamp_pb.d.ts +0 -129
  73. package/lib/esm/types/src/google/protobuf/timestamp_pb.d.ts.map +0 -1
@@ -1,2045 +0,0 @@
1
- "use strict";
2
- // @generated by protoc-gen-es v1.5.1 with parameter "target=ts"
3
- // @generated from file genesis.validate.scailo.proto (package genesis_validate, syntax proto2)
4
- /* eslint-disable */
5
- // @ts-nocheck
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TimestampRules = exports.DurationRules = exports.AnyRules = exports.MapRules = exports.RepeatedRules = exports.MessageRules = exports.EnumRules = exports.BytesRules = exports.StringRules = exports.BoolRules = exports.SFixed64Rules = exports.SFixed32Rules = exports.Fixed64Rules = exports.Fixed32Rules = exports.SInt64Rules = exports.SInt32Rules = exports.UInt64Rules = exports.UInt32Rules = exports.Int64Rules = exports.Int32Rules = exports.DoubleRules = exports.FloatRules = exports.FieldRules = exports.KnownRegex = void 0;
8
- const protobuf_1 = require("@bufbuild/protobuf");
9
- const duration_pb_js_1 = require("./google/protobuf/duration_pb.js");
10
- const timestamp_pb_js_1 = require("./google/protobuf/timestamp_pb.js");
11
- /**
12
- * WellKnownRegex contain some well-known patterns.
13
- *
14
- * @generated from enum genesis_validate.KnownRegex
15
- */
16
- var KnownRegex;
17
- (function (KnownRegex) {
18
- /**
19
- * @generated from enum value: UNKNOWN = 0;
20
- */
21
- KnownRegex[KnownRegex["UNKNOWN"] = 0] = "UNKNOWN";
22
- /**
23
- * HTTP header name as defined by RFC 7230.
24
- *
25
- * @generated from enum value: HTTP_HEADER_NAME = 1;
26
- */
27
- KnownRegex[KnownRegex["HTTP_HEADER_NAME"] = 1] = "HTTP_HEADER_NAME";
28
- /**
29
- * HTTP header value as defined by RFC 7230.
30
- *
31
- * @generated from enum value: HTTP_HEADER_VALUE = 2;
32
- */
33
- KnownRegex[KnownRegex["HTTP_HEADER_VALUE"] = 2] = "HTTP_HEADER_VALUE";
34
- })(KnownRegex || (exports.KnownRegex = KnownRegex = {}));
35
- // Retrieve enum metadata with: proto2.getEnumType(KnownRegex)
36
- protobuf_1.proto2.util.setEnumType(KnownRegex, "genesis_validate.KnownRegex", [
37
- { no: 0, name: "UNKNOWN" },
38
- { no: 1, name: "HTTP_HEADER_NAME" },
39
- { no: 2, name: "HTTP_HEADER_VALUE" },
40
- ]);
41
- /**
42
- * FieldRules encapsulates the rules for each type of field. Depending on the
43
- * field, the correct set should be used to ensure proper validations.
44
- *
45
- * @generated from message genesis_validate.FieldRules
46
- */
47
- class FieldRules extends protobuf_1.Message {
48
- /**
49
- * @generated from field: optional genesis_validate.MessageRules message = 17;
50
- */
51
- message;
52
- /**
53
- * @generated from oneof genesis_validate.FieldRules.type
54
- */
55
- type = { case: undefined };
56
- constructor(data) {
57
- super();
58
- protobuf_1.proto2.util.initPartial(data, this);
59
- }
60
- static runtime = protobuf_1.proto2;
61
- static typeName = "genesis_validate.FieldRules";
62
- static fields = protobuf_1.proto2.util.newFieldList(() => [
63
- { no: 17, name: "message", kind: "message", T: MessageRules, opt: true },
64
- { no: 1, name: "float", kind: "message", T: FloatRules, oneof: "type" },
65
- { no: 2, name: "double", kind: "message", T: DoubleRules, oneof: "type" },
66
- { no: 3, name: "int32", kind: "message", T: Int32Rules, oneof: "type" },
67
- { no: 4, name: "int64", kind: "message", T: Int64Rules, oneof: "type" },
68
- { no: 5, name: "uint32", kind: "message", T: UInt32Rules, oneof: "type" },
69
- { no: 6, name: "uint64", kind: "message", T: UInt64Rules, oneof: "type" },
70
- { no: 7, name: "sint32", kind: "message", T: SInt32Rules, oneof: "type" },
71
- { no: 8, name: "sint64", kind: "message", T: SInt64Rules, oneof: "type" },
72
- { no: 9, name: "fixed32", kind: "message", T: Fixed32Rules, oneof: "type" },
73
- { no: 10, name: "fixed64", kind: "message", T: Fixed64Rules, oneof: "type" },
74
- { no: 11, name: "sfixed32", kind: "message", T: SFixed32Rules, oneof: "type" },
75
- { no: 12, name: "sfixed64", kind: "message", T: SFixed64Rules, oneof: "type" },
76
- { no: 13, name: "bool", kind: "message", T: BoolRules, oneof: "type" },
77
- { no: 14, name: "string", kind: "message", T: StringRules, oneof: "type" },
78
- { no: 15, name: "bytes", kind: "message", T: BytesRules, oneof: "type" },
79
- { no: 16, name: "enum", kind: "message", T: EnumRules, oneof: "type" },
80
- { no: 18, name: "repeated", kind: "message", T: RepeatedRules, oneof: "type" },
81
- { no: 19, name: "map", kind: "message", T: MapRules, oneof: "type" },
82
- { no: 20, name: "any", kind: "message", T: AnyRules, oneof: "type" },
83
- { no: 21, name: "duration", kind: "message", T: DurationRules, oneof: "type" },
84
- { no: 22, name: "timestamp", kind: "message", T: TimestampRules, oneof: "type" },
85
- ]);
86
- static fromBinary(bytes, options) {
87
- return new FieldRules().fromBinary(bytes, options);
88
- }
89
- static fromJson(jsonValue, options) {
90
- return new FieldRules().fromJson(jsonValue, options);
91
- }
92
- static fromJsonString(jsonString, options) {
93
- return new FieldRules().fromJsonString(jsonString, options);
94
- }
95
- static equals(a, b) {
96
- return protobuf_1.proto2.util.equals(FieldRules, a, b);
97
- }
98
- }
99
- exports.FieldRules = FieldRules;
100
- /**
101
- * FloatRules describes the constraints applied to `float` values
102
- *
103
- * @generated from message genesis_validate.FloatRules
104
- */
105
- class FloatRules extends protobuf_1.Message {
106
- /**
107
- * Const specifies that this field must be exactly the specified value
108
- *
109
- * @generated from field: optional float const = 1;
110
- */
111
- const;
112
- /**
113
- * Lt specifies that this field must be less than the specified value,
114
- * exclusive
115
- *
116
- * @generated from field: optional float lt = 2;
117
- */
118
- lt;
119
- /**
120
- * Lte specifies that this field must be less than or equal to the
121
- * specified value, inclusive
122
- *
123
- * @generated from field: optional float lte = 3;
124
- */
125
- lte;
126
- /**
127
- * Gt specifies that this field must be greater than the specified value,
128
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
129
- * range is reversed.
130
- *
131
- * @generated from field: optional float gt = 4;
132
- */
133
- gt;
134
- /**
135
- * Gte specifies that this field must be greater than or equal to the
136
- * specified value, inclusive. If the value of Gte is larger than a
137
- * specified Lt or Lte, the range is reversed.
138
- *
139
- * @generated from field: optional float gte = 5;
140
- */
141
- gte;
142
- /**
143
- * In specifies that this field must be equal to one of the specified
144
- * values
145
- *
146
- * @generated from field: repeated float in = 6;
147
- */
148
- in = [];
149
- /**
150
- * NotIn specifies that this field cannot be equal to one of the specified
151
- * values
152
- *
153
- * @generated from field: repeated float not_in = 7;
154
- */
155
- notIn = [];
156
- /**
157
- * IgnoreEmpty specifies that the validation rules of this field should be
158
- * evaluated only if the field is not empty
159
- *
160
- * @generated from field: optional bool ignore_empty = 8;
161
- */
162
- ignoreEmpty;
163
- constructor(data) {
164
- super();
165
- protobuf_1.proto2.util.initPartial(data, this);
166
- }
167
- static runtime = protobuf_1.proto2;
168
- static typeName = "genesis_validate.FloatRules";
169
- static fields = protobuf_1.proto2.util.newFieldList(() => [
170
- { no: 1, name: "const", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
171
- { no: 2, name: "lt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
172
- { no: 3, name: "lte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
173
- { no: 4, name: "gt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
174
- { no: 5, name: "gte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
175
- { no: 6, name: "in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
176
- { no: 7, name: "not_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
177
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
178
- ]);
179
- static fromBinary(bytes, options) {
180
- return new FloatRules().fromBinary(bytes, options);
181
- }
182
- static fromJson(jsonValue, options) {
183
- return new FloatRules().fromJson(jsonValue, options);
184
- }
185
- static fromJsonString(jsonString, options) {
186
- return new FloatRules().fromJsonString(jsonString, options);
187
- }
188
- static equals(a, b) {
189
- return protobuf_1.proto2.util.equals(FloatRules, a, b);
190
- }
191
- }
192
- exports.FloatRules = FloatRules;
193
- /**
194
- * DoubleRules describes the constraints applied to `double` values
195
- *
196
- * @generated from message genesis_validate.DoubleRules
197
- */
198
- class DoubleRules extends protobuf_1.Message {
199
- /**
200
- * Const specifies that this field must be exactly the specified value
201
- *
202
- * @generated from field: optional double const = 1;
203
- */
204
- const;
205
- /**
206
- * Lt specifies that this field must be less than the specified value,
207
- * exclusive
208
- *
209
- * @generated from field: optional double lt = 2;
210
- */
211
- lt;
212
- /**
213
- * Lte specifies that this field must be less than or equal to the
214
- * specified value, inclusive
215
- *
216
- * @generated from field: optional double lte = 3;
217
- */
218
- lte;
219
- /**
220
- * Gt specifies that this field must be greater than the specified value,
221
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
222
- * range is reversed.
223
- *
224
- * @generated from field: optional double gt = 4;
225
- */
226
- gt;
227
- /**
228
- * Gte specifies that this field must be greater than or equal to the
229
- * specified value, inclusive. If the value of Gte is larger than a
230
- * specified Lt or Lte, the range is reversed.
231
- *
232
- * @generated from field: optional double gte = 5;
233
- */
234
- gte;
235
- /**
236
- * In specifies that this field must be equal to one of the specified
237
- * values
238
- *
239
- * @generated from field: repeated double in = 6;
240
- */
241
- in = [];
242
- /**
243
- * NotIn specifies that this field cannot be equal to one of the specified
244
- * values
245
- *
246
- * @generated from field: repeated double not_in = 7;
247
- */
248
- notIn = [];
249
- /**
250
- * IgnoreEmpty specifies that the validation rules of this field should be
251
- * evaluated only if the field is not empty
252
- *
253
- * @generated from field: optional bool ignore_empty = 8;
254
- */
255
- ignoreEmpty;
256
- constructor(data) {
257
- super();
258
- protobuf_1.proto2.util.initPartial(data, this);
259
- }
260
- static runtime = protobuf_1.proto2;
261
- static typeName = "genesis_validate.DoubleRules";
262
- static fields = protobuf_1.proto2.util.newFieldList(() => [
263
- { no: 1, name: "const", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
264
- { no: 2, name: "lt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
265
- { no: 3, name: "lte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
266
- { no: 4, name: "gt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
267
- { no: 5, name: "gte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
268
- { no: 6, name: "in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
269
- { no: 7, name: "not_in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
270
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
271
- ]);
272
- static fromBinary(bytes, options) {
273
- return new DoubleRules().fromBinary(bytes, options);
274
- }
275
- static fromJson(jsonValue, options) {
276
- return new DoubleRules().fromJson(jsonValue, options);
277
- }
278
- static fromJsonString(jsonString, options) {
279
- return new DoubleRules().fromJsonString(jsonString, options);
280
- }
281
- static equals(a, b) {
282
- return protobuf_1.proto2.util.equals(DoubleRules, a, b);
283
- }
284
- }
285
- exports.DoubleRules = DoubleRules;
286
- /**
287
- * Int32Rules describes the constraints applied to `int32` values
288
- *
289
- * @generated from message genesis_validate.Int32Rules
290
- */
291
- class Int32Rules extends protobuf_1.Message {
292
- /**
293
- * Const specifies that this field must be exactly the specified value
294
- *
295
- * @generated from field: optional int32 const = 1;
296
- */
297
- const;
298
- /**
299
- * Lt specifies that this field must be less than the specified value,
300
- * exclusive
301
- *
302
- * @generated from field: optional int32 lt = 2;
303
- */
304
- lt;
305
- /**
306
- * Lte specifies that this field must be less than or equal to the
307
- * specified value, inclusive
308
- *
309
- * @generated from field: optional int32 lte = 3;
310
- */
311
- lte;
312
- /**
313
- * Gt specifies that this field must be greater than the specified value,
314
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
315
- * range is reversed.
316
- *
317
- * @generated from field: optional int32 gt = 4;
318
- */
319
- gt;
320
- /**
321
- * Gte specifies that this field must be greater than or equal to the
322
- * specified value, inclusive. If the value of Gte is larger than a
323
- * specified Lt or Lte, the range is reversed.
324
- *
325
- * @generated from field: optional int32 gte = 5;
326
- */
327
- gte;
328
- /**
329
- * In specifies that this field must be equal to one of the specified
330
- * values
331
- *
332
- * @generated from field: repeated int32 in = 6;
333
- */
334
- in = [];
335
- /**
336
- * NotIn specifies that this field cannot be equal to one of the specified
337
- * values
338
- *
339
- * @generated from field: repeated int32 not_in = 7;
340
- */
341
- notIn = [];
342
- /**
343
- * IgnoreEmpty specifies that the validation rules of this field should be
344
- * evaluated only if the field is not empty
345
- *
346
- * @generated from field: optional bool ignore_empty = 8;
347
- */
348
- ignoreEmpty;
349
- constructor(data) {
350
- super();
351
- protobuf_1.proto2.util.initPartial(data, this);
352
- }
353
- static runtime = protobuf_1.proto2;
354
- static typeName = "genesis_validate.Int32Rules";
355
- static fields = protobuf_1.proto2.util.newFieldList(() => [
356
- { no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
357
- { no: 2, name: "lt", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
358
- { no: 3, name: "lte", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
359
- { no: 4, name: "gt", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
360
- { no: 5, name: "gte", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
361
- { no: 6, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
362
- { no: 7, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
363
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
364
- ]);
365
- static fromBinary(bytes, options) {
366
- return new Int32Rules().fromBinary(bytes, options);
367
- }
368
- static fromJson(jsonValue, options) {
369
- return new Int32Rules().fromJson(jsonValue, options);
370
- }
371
- static fromJsonString(jsonString, options) {
372
- return new Int32Rules().fromJsonString(jsonString, options);
373
- }
374
- static equals(a, b) {
375
- return protobuf_1.proto2.util.equals(Int32Rules, a, b);
376
- }
377
- }
378
- exports.Int32Rules = Int32Rules;
379
- /**
380
- * Int64Rules describes the constraints applied to `int64` values
381
- *
382
- * @generated from message genesis_validate.Int64Rules
383
- */
384
- class Int64Rules extends protobuf_1.Message {
385
- /**
386
- * Const specifies that this field must be exactly the specified value
387
- *
388
- * @generated from field: optional int64 const = 1;
389
- */
390
- const;
391
- /**
392
- * Lt specifies that this field must be less than the specified value,
393
- * exclusive
394
- *
395
- * @generated from field: optional int64 lt = 2;
396
- */
397
- lt;
398
- /**
399
- * Lte specifies that this field must be less than or equal to the
400
- * specified value, inclusive
401
- *
402
- * @generated from field: optional int64 lte = 3;
403
- */
404
- lte;
405
- /**
406
- * Gt specifies that this field must be greater than the specified value,
407
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
408
- * range is reversed.
409
- *
410
- * @generated from field: optional int64 gt = 4;
411
- */
412
- gt;
413
- /**
414
- * Gte specifies that this field must be greater than or equal to the
415
- * specified value, inclusive. If the value of Gte is larger than a
416
- * specified Lt or Lte, the range is reversed.
417
- *
418
- * @generated from field: optional int64 gte = 5;
419
- */
420
- gte;
421
- /**
422
- * In specifies that this field must be equal to one of the specified
423
- * values
424
- *
425
- * @generated from field: repeated int64 in = 6;
426
- */
427
- in = [];
428
- /**
429
- * NotIn specifies that this field cannot be equal to one of the specified
430
- * values
431
- *
432
- * @generated from field: repeated int64 not_in = 7;
433
- */
434
- notIn = [];
435
- /**
436
- * IgnoreEmpty specifies that the validation rules of this field should be
437
- * evaluated only if the field is not empty
438
- *
439
- * @generated from field: optional bool ignore_empty = 8;
440
- */
441
- ignoreEmpty;
442
- constructor(data) {
443
- super();
444
- protobuf_1.proto2.util.initPartial(data, this);
445
- }
446
- static runtime = protobuf_1.proto2;
447
- static typeName = "genesis_validate.Int64Rules";
448
- static fields = protobuf_1.proto2.util.newFieldList(() => [
449
- { no: 1, name: "const", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
450
- { no: 2, name: "lt", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
451
- { no: 3, name: "lte", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
452
- { no: 4, name: "gt", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
453
- { no: 5, name: "gte", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
454
- { no: 6, name: "in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
455
- { no: 7, name: "not_in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
456
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
457
- ]);
458
- static fromBinary(bytes, options) {
459
- return new Int64Rules().fromBinary(bytes, options);
460
- }
461
- static fromJson(jsonValue, options) {
462
- return new Int64Rules().fromJson(jsonValue, options);
463
- }
464
- static fromJsonString(jsonString, options) {
465
- return new Int64Rules().fromJsonString(jsonString, options);
466
- }
467
- static equals(a, b) {
468
- return protobuf_1.proto2.util.equals(Int64Rules, a, b);
469
- }
470
- }
471
- exports.Int64Rules = Int64Rules;
472
- /**
473
- * UInt32Rules describes the constraints applied to `uint32` values
474
- *
475
- * @generated from message genesis_validate.UInt32Rules
476
- */
477
- class UInt32Rules extends protobuf_1.Message {
478
- /**
479
- * Const specifies that this field must be exactly the specified value
480
- *
481
- * @generated from field: optional uint32 const = 1;
482
- */
483
- const;
484
- /**
485
- * Lt specifies that this field must be less than the specified value,
486
- * exclusive
487
- *
488
- * @generated from field: optional uint32 lt = 2;
489
- */
490
- lt;
491
- /**
492
- * Lte specifies that this field must be less than or equal to the
493
- * specified value, inclusive
494
- *
495
- * @generated from field: optional uint32 lte = 3;
496
- */
497
- lte;
498
- /**
499
- * Gt specifies that this field must be greater than the specified value,
500
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
501
- * range is reversed.
502
- *
503
- * @generated from field: optional uint32 gt = 4;
504
- */
505
- gt;
506
- /**
507
- * Gte specifies that this field must be greater than or equal to the
508
- * specified value, inclusive. If the value of Gte is larger than a
509
- * specified Lt or Lte, the range is reversed.
510
- *
511
- * @generated from field: optional uint32 gte = 5;
512
- */
513
- gte;
514
- /**
515
- * In specifies that this field must be equal to one of the specified
516
- * values
517
- *
518
- * @generated from field: repeated uint32 in = 6;
519
- */
520
- in = [];
521
- /**
522
- * NotIn specifies that this field cannot be equal to one of the specified
523
- * values
524
- *
525
- * @generated from field: repeated uint32 not_in = 7;
526
- */
527
- notIn = [];
528
- /**
529
- * IgnoreEmpty specifies that the validation rules of this field should be
530
- * evaluated only if the field is not empty
531
- *
532
- * @generated from field: optional bool ignore_empty = 8;
533
- */
534
- ignoreEmpty;
535
- constructor(data) {
536
- super();
537
- protobuf_1.proto2.util.initPartial(data, this);
538
- }
539
- static runtime = protobuf_1.proto2;
540
- static typeName = "genesis_validate.UInt32Rules";
541
- static fields = protobuf_1.proto2.util.newFieldList(() => [
542
- { no: 1, name: "const", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
543
- { no: 2, name: "lt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
544
- { no: 3, name: "lte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
545
- { no: 4, name: "gt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
546
- { no: 5, name: "gte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
547
- { no: 6, name: "in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
548
- { no: 7, name: "not_in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
549
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
550
- ]);
551
- static fromBinary(bytes, options) {
552
- return new UInt32Rules().fromBinary(bytes, options);
553
- }
554
- static fromJson(jsonValue, options) {
555
- return new UInt32Rules().fromJson(jsonValue, options);
556
- }
557
- static fromJsonString(jsonString, options) {
558
- return new UInt32Rules().fromJsonString(jsonString, options);
559
- }
560
- static equals(a, b) {
561
- return protobuf_1.proto2.util.equals(UInt32Rules, a, b);
562
- }
563
- }
564
- exports.UInt32Rules = UInt32Rules;
565
- /**
566
- * UInt64Rules describes the constraints applied to `uint64` values
567
- *
568
- * @generated from message genesis_validate.UInt64Rules
569
- */
570
- class UInt64Rules extends protobuf_1.Message {
571
- /**
572
- * Const specifies that this field must be exactly the specified value
573
- *
574
- * @generated from field: optional uint64 const = 1;
575
- */
576
- const;
577
- /**
578
- * Lt specifies that this field must be less than the specified value,
579
- * exclusive
580
- *
581
- * @generated from field: optional uint64 lt = 2;
582
- */
583
- lt;
584
- /**
585
- * Lte specifies that this field must be less than or equal to the
586
- * specified value, inclusive
587
- *
588
- * @generated from field: optional uint64 lte = 3;
589
- */
590
- lte;
591
- /**
592
- * Gt specifies that this field must be greater than the specified value,
593
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
594
- * range is reversed.
595
- *
596
- * @generated from field: optional uint64 gt = 4;
597
- */
598
- gt;
599
- /**
600
- * Gte specifies that this field must be greater than or equal to the
601
- * specified value, inclusive. If the value of Gte is larger than a
602
- * specified Lt or Lte, the range is reversed.
603
- *
604
- * @generated from field: optional uint64 gte = 5;
605
- */
606
- gte;
607
- /**
608
- * In specifies that this field must be equal to one of the specified
609
- * values
610
- *
611
- * @generated from field: repeated uint64 in = 6;
612
- */
613
- in = [];
614
- /**
615
- * NotIn specifies that this field cannot be equal to one of the specified
616
- * values
617
- *
618
- * @generated from field: repeated uint64 not_in = 7;
619
- */
620
- notIn = [];
621
- /**
622
- * IgnoreEmpty specifies that the validation rules of this field should be
623
- * evaluated only if the field is not empty
624
- *
625
- * @generated from field: optional bool ignore_empty = 8;
626
- */
627
- ignoreEmpty;
628
- constructor(data) {
629
- super();
630
- protobuf_1.proto2.util.initPartial(data, this);
631
- }
632
- static runtime = protobuf_1.proto2;
633
- static typeName = "genesis_validate.UInt64Rules";
634
- static fields = protobuf_1.proto2.util.newFieldList(() => [
635
- { no: 1, name: "const", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
636
- { no: 2, name: "lt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
637
- { no: 3, name: "lte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
638
- { no: 4, name: "gt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
639
- { no: 5, name: "gte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
640
- { no: 6, name: "in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
641
- { no: 7, name: "not_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
642
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
643
- ]);
644
- static fromBinary(bytes, options) {
645
- return new UInt64Rules().fromBinary(bytes, options);
646
- }
647
- static fromJson(jsonValue, options) {
648
- return new UInt64Rules().fromJson(jsonValue, options);
649
- }
650
- static fromJsonString(jsonString, options) {
651
- return new UInt64Rules().fromJsonString(jsonString, options);
652
- }
653
- static equals(a, b) {
654
- return protobuf_1.proto2.util.equals(UInt64Rules, a, b);
655
- }
656
- }
657
- exports.UInt64Rules = UInt64Rules;
658
- /**
659
- * SInt32Rules describes the constraints applied to `sint32` values
660
- *
661
- * @generated from message genesis_validate.SInt32Rules
662
- */
663
- class SInt32Rules extends protobuf_1.Message {
664
- /**
665
- * Const specifies that this field must be exactly the specified value
666
- *
667
- * @generated from field: optional sint32 const = 1;
668
- */
669
- const;
670
- /**
671
- * Lt specifies that this field must be less than the specified value,
672
- * exclusive
673
- *
674
- * @generated from field: optional sint32 lt = 2;
675
- */
676
- lt;
677
- /**
678
- * Lte specifies that this field must be less than or equal to the
679
- * specified value, inclusive
680
- *
681
- * @generated from field: optional sint32 lte = 3;
682
- */
683
- lte;
684
- /**
685
- * Gt specifies that this field must be greater than the specified value,
686
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
687
- * range is reversed.
688
- *
689
- * @generated from field: optional sint32 gt = 4;
690
- */
691
- gt;
692
- /**
693
- * Gte specifies that this field must be greater than or equal to the
694
- * specified value, inclusive. If the value of Gte is larger than a
695
- * specified Lt or Lte, the range is reversed.
696
- *
697
- * @generated from field: optional sint32 gte = 5;
698
- */
699
- gte;
700
- /**
701
- * In specifies that this field must be equal to one of the specified
702
- * values
703
- *
704
- * @generated from field: repeated sint32 in = 6;
705
- */
706
- in = [];
707
- /**
708
- * NotIn specifies that this field cannot be equal to one of the specified
709
- * values
710
- *
711
- * @generated from field: repeated sint32 not_in = 7;
712
- */
713
- notIn = [];
714
- /**
715
- * IgnoreEmpty specifies that the validation rules of this field should be
716
- * evaluated only if the field is not empty
717
- *
718
- * @generated from field: optional bool ignore_empty = 8;
719
- */
720
- ignoreEmpty;
721
- constructor(data) {
722
- super();
723
- protobuf_1.proto2.util.initPartial(data, this);
724
- }
725
- static runtime = protobuf_1.proto2;
726
- static typeName = "genesis_validate.SInt32Rules";
727
- static fields = protobuf_1.proto2.util.newFieldList(() => [
728
- { no: 1, name: "const", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
729
- { no: 2, name: "lt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
730
- { no: 3, name: "lte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
731
- { no: 4, name: "gt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
732
- { no: 5, name: "gte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
733
- { no: 6, name: "in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
734
- { no: 7, name: "not_in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
735
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
736
- ]);
737
- static fromBinary(bytes, options) {
738
- return new SInt32Rules().fromBinary(bytes, options);
739
- }
740
- static fromJson(jsonValue, options) {
741
- return new SInt32Rules().fromJson(jsonValue, options);
742
- }
743
- static fromJsonString(jsonString, options) {
744
- return new SInt32Rules().fromJsonString(jsonString, options);
745
- }
746
- static equals(a, b) {
747
- return protobuf_1.proto2.util.equals(SInt32Rules, a, b);
748
- }
749
- }
750
- exports.SInt32Rules = SInt32Rules;
751
- /**
752
- * SInt64Rules describes the constraints applied to `sint64` values
753
- *
754
- * @generated from message genesis_validate.SInt64Rules
755
- */
756
- class SInt64Rules extends protobuf_1.Message {
757
- /**
758
- * Const specifies that this field must be exactly the specified value
759
- *
760
- * @generated from field: optional sint64 const = 1;
761
- */
762
- const;
763
- /**
764
- * Lt specifies that this field must be less than the specified value,
765
- * exclusive
766
- *
767
- * @generated from field: optional sint64 lt = 2;
768
- */
769
- lt;
770
- /**
771
- * Lte specifies that this field must be less than or equal to the
772
- * specified value, inclusive
773
- *
774
- * @generated from field: optional sint64 lte = 3;
775
- */
776
- lte;
777
- /**
778
- * Gt specifies that this field must be greater than the specified value,
779
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
780
- * range is reversed.
781
- *
782
- * @generated from field: optional sint64 gt = 4;
783
- */
784
- gt;
785
- /**
786
- * Gte specifies that this field must be greater than or equal to the
787
- * specified value, inclusive. If the value of Gte is larger than a
788
- * specified Lt or Lte, the range is reversed.
789
- *
790
- * @generated from field: optional sint64 gte = 5;
791
- */
792
- gte;
793
- /**
794
- * In specifies that this field must be equal to one of the specified
795
- * values
796
- *
797
- * @generated from field: repeated sint64 in = 6;
798
- */
799
- in = [];
800
- /**
801
- * NotIn specifies that this field cannot be equal to one of the specified
802
- * values
803
- *
804
- * @generated from field: repeated sint64 not_in = 7;
805
- */
806
- notIn = [];
807
- /**
808
- * IgnoreEmpty specifies that the validation rules of this field should be
809
- * evaluated only if the field is not empty
810
- *
811
- * @generated from field: optional bool ignore_empty = 8;
812
- */
813
- ignoreEmpty;
814
- constructor(data) {
815
- super();
816
- protobuf_1.proto2.util.initPartial(data, this);
817
- }
818
- static runtime = protobuf_1.proto2;
819
- static typeName = "genesis_validate.SInt64Rules";
820
- static fields = protobuf_1.proto2.util.newFieldList(() => [
821
- { no: 1, name: "const", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
822
- { no: 2, name: "lt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
823
- { no: 3, name: "lte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
824
- { no: 4, name: "gt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
825
- { no: 5, name: "gte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
826
- { no: 6, name: "in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
827
- { no: 7, name: "not_in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
828
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
829
- ]);
830
- static fromBinary(bytes, options) {
831
- return new SInt64Rules().fromBinary(bytes, options);
832
- }
833
- static fromJson(jsonValue, options) {
834
- return new SInt64Rules().fromJson(jsonValue, options);
835
- }
836
- static fromJsonString(jsonString, options) {
837
- return new SInt64Rules().fromJsonString(jsonString, options);
838
- }
839
- static equals(a, b) {
840
- return protobuf_1.proto2.util.equals(SInt64Rules, a, b);
841
- }
842
- }
843
- exports.SInt64Rules = SInt64Rules;
844
- /**
845
- * Fixed32Rules describes the constraints applied to `fixed32` values
846
- *
847
- * @generated from message genesis_validate.Fixed32Rules
848
- */
849
- class Fixed32Rules extends protobuf_1.Message {
850
- /**
851
- * Const specifies that this field must be exactly the specified value
852
- *
853
- * @generated from field: optional fixed32 const = 1;
854
- */
855
- const;
856
- /**
857
- * Lt specifies that this field must be less than the specified value,
858
- * exclusive
859
- *
860
- * @generated from field: optional fixed32 lt = 2;
861
- */
862
- lt;
863
- /**
864
- * Lte specifies that this field must be less than or equal to the
865
- * specified value, inclusive
866
- *
867
- * @generated from field: optional fixed32 lte = 3;
868
- */
869
- lte;
870
- /**
871
- * Gt specifies that this field must be greater than the specified value,
872
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
873
- * range is reversed.
874
- *
875
- * @generated from field: optional fixed32 gt = 4;
876
- */
877
- gt;
878
- /**
879
- * Gte specifies that this field must be greater than or equal to the
880
- * specified value, inclusive. If the value of Gte is larger than a
881
- * specified Lt or Lte, the range is reversed.
882
- *
883
- * @generated from field: optional fixed32 gte = 5;
884
- */
885
- gte;
886
- /**
887
- * In specifies that this field must be equal to one of the specified
888
- * values
889
- *
890
- * @generated from field: repeated fixed32 in = 6;
891
- */
892
- in = [];
893
- /**
894
- * NotIn specifies that this field cannot be equal to one of the specified
895
- * values
896
- *
897
- * @generated from field: repeated fixed32 not_in = 7;
898
- */
899
- notIn = [];
900
- /**
901
- * IgnoreEmpty specifies that the validation rules of this field should be
902
- * evaluated only if the field is not empty
903
- *
904
- * @generated from field: optional bool ignore_empty = 8;
905
- */
906
- ignoreEmpty;
907
- constructor(data) {
908
- super();
909
- protobuf_1.proto2.util.initPartial(data, this);
910
- }
911
- static runtime = protobuf_1.proto2;
912
- static typeName = "genesis_validate.Fixed32Rules";
913
- static fields = protobuf_1.proto2.util.newFieldList(() => [
914
- { no: 1, name: "const", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
915
- { no: 2, name: "lt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
916
- { no: 3, name: "lte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
917
- { no: 4, name: "gt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
918
- { no: 5, name: "gte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
919
- { no: 6, name: "in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
920
- { no: 7, name: "not_in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
921
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
922
- ]);
923
- static fromBinary(bytes, options) {
924
- return new Fixed32Rules().fromBinary(bytes, options);
925
- }
926
- static fromJson(jsonValue, options) {
927
- return new Fixed32Rules().fromJson(jsonValue, options);
928
- }
929
- static fromJsonString(jsonString, options) {
930
- return new Fixed32Rules().fromJsonString(jsonString, options);
931
- }
932
- static equals(a, b) {
933
- return protobuf_1.proto2.util.equals(Fixed32Rules, a, b);
934
- }
935
- }
936
- exports.Fixed32Rules = Fixed32Rules;
937
- /**
938
- * Fixed64Rules describes the constraints applied to `fixed64` values
939
- *
940
- * @generated from message genesis_validate.Fixed64Rules
941
- */
942
- class Fixed64Rules extends protobuf_1.Message {
943
- /**
944
- * Const specifies that this field must be exactly the specified value
945
- *
946
- * @generated from field: optional fixed64 const = 1;
947
- */
948
- const;
949
- /**
950
- * Lt specifies that this field must be less than the specified value,
951
- * exclusive
952
- *
953
- * @generated from field: optional fixed64 lt = 2;
954
- */
955
- lt;
956
- /**
957
- * Lte specifies that this field must be less than or equal to the
958
- * specified value, inclusive
959
- *
960
- * @generated from field: optional fixed64 lte = 3;
961
- */
962
- lte;
963
- /**
964
- * Gt specifies that this field must be greater than the specified value,
965
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
966
- * range is reversed.
967
- *
968
- * @generated from field: optional fixed64 gt = 4;
969
- */
970
- gt;
971
- /**
972
- * Gte specifies that this field must be greater than or equal to the
973
- * specified value, inclusive. If the value of Gte is larger than a
974
- * specified Lt or Lte, the range is reversed.
975
- *
976
- * @generated from field: optional fixed64 gte = 5;
977
- */
978
- gte;
979
- /**
980
- * In specifies that this field must be equal to one of the specified
981
- * values
982
- *
983
- * @generated from field: repeated fixed64 in = 6;
984
- */
985
- in = [];
986
- /**
987
- * NotIn specifies that this field cannot be equal to one of the specified
988
- * values
989
- *
990
- * @generated from field: repeated fixed64 not_in = 7;
991
- */
992
- notIn = [];
993
- /**
994
- * IgnoreEmpty specifies that the validation rules of this field should be
995
- * evaluated only if the field is not empty
996
- *
997
- * @generated from field: optional bool ignore_empty = 8;
998
- */
999
- ignoreEmpty;
1000
- constructor(data) {
1001
- super();
1002
- protobuf_1.proto2.util.initPartial(data, this);
1003
- }
1004
- static runtime = protobuf_1.proto2;
1005
- static typeName = "genesis_validate.Fixed64Rules";
1006
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1007
- { no: 1, name: "const", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
1008
- { no: 2, name: "lt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
1009
- { no: 3, name: "lte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
1010
- { no: 4, name: "gt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
1011
- { no: 5, name: "gte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
1012
- { no: 6, name: "in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
1013
- { no: 7, name: "not_in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
1014
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1015
- ]);
1016
- static fromBinary(bytes, options) {
1017
- return new Fixed64Rules().fromBinary(bytes, options);
1018
- }
1019
- static fromJson(jsonValue, options) {
1020
- return new Fixed64Rules().fromJson(jsonValue, options);
1021
- }
1022
- static fromJsonString(jsonString, options) {
1023
- return new Fixed64Rules().fromJsonString(jsonString, options);
1024
- }
1025
- static equals(a, b) {
1026
- return protobuf_1.proto2.util.equals(Fixed64Rules, a, b);
1027
- }
1028
- }
1029
- exports.Fixed64Rules = Fixed64Rules;
1030
- /**
1031
- * SFixed32Rules describes the constraints applied to `sfixed32` values
1032
- *
1033
- * @generated from message genesis_validate.SFixed32Rules
1034
- */
1035
- class SFixed32Rules extends protobuf_1.Message {
1036
- /**
1037
- * Const specifies that this field must be exactly the specified value
1038
- *
1039
- * @generated from field: optional sfixed32 const = 1;
1040
- */
1041
- const;
1042
- /**
1043
- * Lt specifies that this field must be less than the specified value,
1044
- * exclusive
1045
- *
1046
- * @generated from field: optional sfixed32 lt = 2;
1047
- */
1048
- lt;
1049
- /**
1050
- * Lte specifies that this field must be less than or equal to the
1051
- * specified value, inclusive
1052
- *
1053
- * @generated from field: optional sfixed32 lte = 3;
1054
- */
1055
- lte;
1056
- /**
1057
- * Gt specifies that this field must be greater than the specified value,
1058
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
1059
- * range is reversed.
1060
- *
1061
- * @generated from field: optional sfixed32 gt = 4;
1062
- */
1063
- gt;
1064
- /**
1065
- * Gte specifies that this field must be greater than or equal to the
1066
- * specified value, inclusive. If the value of Gte is larger than a
1067
- * specified Lt or Lte, the range is reversed.
1068
- *
1069
- * @generated from field: optional sfixed32 gte = 5;
1070
- */
1071
- gte;
1072
- /**
1073
- * In specifies that this field must be equal to one of the specified
1074
- * values
1075
- *
1076
- * @generated from field: repeated sfixed32 in = 6;
1077
- */
1078
- in = [];
1079
- /**
1080
- * NotIn specifies that this field cannot be equal to one of the specified
1081
- * values
1082
- *
1083
- * @generated from field: repeated sfixed32 not_in = 7;
1084
- */
1085
- notIn = [];
1086
- /**
1087
- * IgnoreEmpty specifies that the validation rules of this field should be
1088
- * evaluated only if the field is not empty
1089
- *
1090
- * @generated from field: optional bool ignore_empty = 8;
1091
- */
1092
- ignoreEmpty;
1093
- constructor(data) {
1094
- super();
1095
- protobuf_1.proto2.util.initPartial(data, this);
1096
- }
1097
- static runtime = protobuf_1.proto2;
1098
- static typeName = "genesis_validate.SFixed32Rules";
1099
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1100
- { no: 1, name: "const", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
1101
- { no: 2, name: "lt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
1102
- { no: 3, name: "lte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
1103
- { no: 4, name: "gt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
1104
- { no: 5, name: "gte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
1105
- { no: 6, name: "in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
1106
- { no: 7, name: "not_in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
1107
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1108
- ]);
1109
- static fromBinary(bytes, options) {
1110
- return new SFixed32Rules().fromBinary(bytes, options);
1111
- }
1112
- static fromJson(jsonValue, options) {
1113
- return new SFixed32Rules().fromJson(jsonValue, options);
1114
- }
1115
- static fromJsonString(jsonString, options) {
1116
- return new SFixed32Rules().fromJsonString(jsonString, options);
1117
- }
1118
- static equals(a, b) {
1119
- return protobuf_1.proto2.util.equals(SFixed32Rules, a, b);
1120
- }
1121
- }
1122
- exports.SFixed32Rules = SFixed32Rules;
1123
- /**
1124
- * SFixed64Rules describes the constraints applied to `sfixed64` values
1125
- *
1126
- * @generated from message genesis_validate.SFixed64Rules
1127
- */
1128
- class SFixed64Rules extends protobuf_1.Message {
1129
- /**
1130
- * Const specifies that this field must be exactly the specified value
1131
- *
1132
- * @generated from field: optional sfixed64 const = 1;
1133
- */
1134
- const;
1135
- /**
1136
- * Lt specifies that this field must be less than the specified value,
1137
- * exclusive
1138
- *
1139
- * @generated from field: optional sfixed64 lt = 2;
1140
- */
1141
- lt;
1142
- /**
1143
- * Lte specifies that this field must be less than or equal to the
1144
- * specified value, inclusive
1145
- *
1146
- * @generated from field: optional sfixed64 lte = 3;
1147
- */
1148
- lte;
1149
- /**
1150
- * Gt specifies that this field must be greater than the specified value,
1151
- * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
1152
- * range is reversed.
1153
- *
1154
- * @generated from field: optional sfixed64 gt = 4;
1155
- */
1156
- gt;
1157
- /**
1158
- * Gte specifies that this field must be greater than or equal to the
1159
- * specified value, inclusive. If the value of Gte is larger than a
1160
- * specified Lt or Lte, the range is reversed.
1161
- *
1162
- * @generated from field: optional sfixed64 gte = 5;
1163
- */
1164
- gte;
1165
- /**
1166
- * In specifies that this field must be equal to one of the specified
1167
- * values
1168
- *
1169
- * @generated from field: repeated sfixed64 in = 6;
1170
- */
1171
- in = [];
1172
- /**
1173
- * NotIn specifies that this field cannot be equal to one of the specified
1174
- * values
1175
- *
1176
- * @generated from field: repeated sfixed64 not_in = 7;
1177
- */
1178
- notIn = [];
1179
- /**
1180
- * IgnoreEmpty specifies that the validation rules of this field should be
1181
- * evaluated only if the field is not empty
1182
- *
1183
- * @generated from field: optional bool ignore_empty = 8;
1184
- */
1185
- ignoreEmpty;
1186
- constructor(data) {
1187
- super();
1188
- protobuf_1.proto2.util.initPartial(data, this);
1189
- }
1190
- static runtime = protobuf_1.proto2;
1191
- static typeName = "genesis_validate.SFixed64Rules";
1192
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1193
- { no: 1, name: "const", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
1194
- { no: 2, name: "lt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
1195
- { no: 3, name: "lte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
1196
- { no: 4, name: "gt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
1197
- { no: 5, name: "gte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
1198
- { no: 6, name: "in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
1199
- { no: 7, name: "not_in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
1200
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1201
- ]);
1202
- static fromBinary(bytes, options) {
1203
- return new SFixed64Rules().fromBinary(bytes, options);
1204
- }
1205
- static fromJson(jsonValue, options) {
1206
- return new SFixed64Rules().fromJson(jsonValue, options);
1207
- }
1208
- static fromJsonString(jsonString, options) {
1209
- return new SFixed64Rules().fromJsonString(jsonString, options);
1210
- }
1211
- static equals(a, b) {
1212
- return protobuf_1.proto2.util.equals(SFixed64Rules, a, b);
1213
- }
1214
- }
1215
- exports.SFixed64Rules = SFixed64Rules;
1216
- /**
1217
- * BoolRules describes the constraints applied to `bool` values
1218
- *
1219
- * @generated from message genesis_validate.BoolRules
1220
- */
1221
- class BoolRules extends protobuf_1.Message {
1222
- /**
1223
- * Const specifies that this field must be exactly the specified value
1224
- *
1225
- * @generated from field: optional bool const = 1;
1226
- */
1227
- const;
1228
- constructor(data) {
1229
- super();
1230
- protobuf_1.proto2.util.initPartial(data, this);
1231
- }
1232
- static runtime = protobuf_1.proto2;
1233
- static typeName = "genesis_validate.BoolRules";
1234
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1235
- { no: 1, name: "const", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1236
- ]);
1237
- static fromBinary(bytes, options) {
1238
- return new BoolRules().fromBinary(bytes, options);
1239
- }
1240
- static fromJson(jsonValue, options) {
1241
- return new BoolRules().fromJson(jsonValue, options);
1242
- }
1243
- static fromJsonString(jsonString, options) {
1244
- return new BoolRules().fromJsonString(jsonString, options);
1245
- }
1246
- static equals(a, b) {
1247
- return protobuf_1.proto2.util.equals(BoolRules, a, b);
1248
- }
1249
- }
1250
- exports.BoolRules = BoolRules;
1251
- /**
1252
- * StringRules describe the constraints applied to `string` values
1253
- *
1254
- * @generated from message genesis_validate.StringRules
1255
- */
1256
- class StringRules extends protobuf_1.Message {
1257
- /**
1258
- * Const specifies that this field must be exactly the specified value
1259
- *
1260
- * @generated from field: optional string const = 1;
1261
- */
1262
- const;
1263
- /**
1264
- * Len specifies that this field must be the specified number of
1265
- * characters (Unicode code points). Note that the number of
1266
- * characters may differ from the number of bytes in the string.
1267
- *
1268
- * @generated from field: optional uint64 len = 19;
1269
- */
1270
- len;
1271
- /**
1272
- * MinLen specifies that this field must be the specified number of
1273
- * characters (Unicode code points) at a minimum. Note that the number of
1274
- * characters may differ from the number of bytes in the string.
1275
- *
1276
- * @generated from field: optional uint64 min_len = 2;
1277
- */
1278
- minLen;
1279
- /**
1280
- * MaxLen specifies that this field must be the specified number of
1281
- * characters (Unicode code points) at a maximum. Note that the number of
1282
- * characters may differ from the number of bytes in the string.
1283
- *
1284
- * @generated from field: optional uint64 max_len = 3;
1285
- */
1286
- maxLen;
1287
- /**
1288
- * LenBytes specifies that this field must be the specified number of bytes
1289
- *
1290
- * @generated from field: optional uint64 len_bytes = 20;
1291
- */
1292
- lenBytes;
1293
- /**
1294
- * MinBytes specifies that this field must be the specified number of bytes
1295
- * at a minimum
1296
- *
1297
- * @generated from field: optional uint64 min_bytes = 4;
1298
- */
1299
- minBytes;
1300
- /**
1301
- * MaxBytes specifies that this field must be the specified number of bytes
1302
- * at a maximum
1303
- *
1304
- * @generated from field: optional uint64 max_bytes = 5;
1305
- */
1306
- maxBytes;
1307
- /**
1308
- * Pattern specifes that this field must match against the specified
1309
- * regular expression (RE2 syntax). The included expression should elide
1310
- * any delimiters.
1311
- *
1312
- * @generated from field: optional string pattern = 6;
1313
- */
1314
- pattern;
1315
- /**
1316
- * Prefix specifies that this field must have the specified substring at
1317
- * the beginning of the string.
1318
- *
1319
- * @generated from field: optional string prefix = 7;
1320
- */
1321
- prefix;
1322
- /**
1323
- * Suffix specifies that this field must have the specified substring at
1324
- * the end of the string.
1325
- *
1326
- * @generated from field: optional string suffix = 8;
1327
- */
1328
- suffix;
1329
- /**
1330
- * Contains specifies that this field must have the specified substring
1331
- * anywhere in the string.
1332
- *
1333
- * @generated from field: optional string contains = 9;
1334
- */
1335
- contains;
1336
- /**
1337
- * NotContains specifies that this field cannot have the specified substring
1338
- * anywhere in the string.
1339
- *
1340
- * @generated from field: optional string not_contains = 23;
1341
- */
1342
- notContains;
1343
- /**
1344
- * In specifies that this field must be equal to one of the specified
1345
- * values
1346
- *
1347
- * @generated from field: repeated string in = 10;
1348
- */
1349
- in = [];
1350
- /**
1351
- * NotIn specifies that this field cannot be equal to one of the specified
1352
- * values
1353
- *
1354
- * @generated from field: repeated string not_in = 11;
1355
- */
1356
- notIn = [];
1357
- /**
1358
- * WellKnown rules provide advanced constraints against common string
1359
- * patterns
1360
- *
1361
- * @generated from oneof genesis_validate.StringRules.well_known
1362
- */
1363
- wellKnown = { case: undefined };
1364
- /**
1365
- * This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
1366
- * strict header validation.
1367
- * By default, this is true, and HTTP header validations are RFC-compliant.
1368
- * Setting to false will enable a looser validations that only disallows
1369
- * \r\n\0 characters, which can be used to bypass header matching rules.
1370
- *
1371
- * @generated from field: optional bool strict = 25 [default = true];
1372
- */
1373
- strict;
1374
- /**
1375
- * IgnoreEmpty specifies that the validation rules of this field should be
1376
- * evaluated only if the field is not empty
1377
- *
1378
- * @generated from field: optional bool ignore_empty = 26;
1379
- */
1380
- ignoreEmpty;
1381
- constructor(data) {
1382
- super();
1383
- protobuf_1.proto2.util.initPartial(data, this);
1384
- }
1385
- static runtime = protobuf_1.proto2;
1386
- static typeName = "genesis_validate.StringRules";
1387
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1388
- { no: 1, name: "const", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1389
- { no: 19, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1390
- { no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1391
- { no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1392
- { no: 20, name: "len_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1393
- { no: 4, name: "min_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1394
- { no: 5, name: "max_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1395
- { no: 6, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1396
- { no: 7, name: "prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1397
- { no: 8, name: "suffix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1398
- { no: 9, name: "contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1399
- { no: 23, name: "not_contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1400
- { no: 10, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1401
- { no: 11, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1402
- { no: 12, name: "email", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1403
- { no: 13, name: "hostname", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1404
- { no: 14, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1405
- { no: 15, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1406
- { no: 16, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1407
- { no: 17, name: "uri", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1408
- { no: 18, name: "uri_ref", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1409
- { no: 21, name: "address", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1410
- { no: 22, name: "uuid", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1411
- { no: 24, name: "well_known_regex", kind: "enum", T: protobuf_1.proto2.getEnumType(KnownRegex), oneof: "well_known" },
1412
- { no: 25, name: "strict", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: true },
1413
- { no: 26, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1414
- ]);
1415
- static fromBinary(bytes, options) {
1416
- return new StringRules().fromBinary(bytes, options);
1417
- }
1418
- static fromJson(jsonValue, options) {
1419
- return new StringRules().fromJson(jsonValue, options);
1420
- }
1421
- static fromJsonString(jsonString, options) {
1422
- return new StringRules().fromJsonString(jsonString, options);
1423
- }
1424
- static equals(a, b) {
1425
- return protobuf_1.proto2.util.equals(StringRules, a, b);
1426
- }
1427
- }
1428
- exports.StringRules = StringRules;
1429
- /**
1430
- * BytesRules describe the constraints applied to `bytes` values
1431
- *
1432
- * @generated from message genesis_validate.BytesRules
1433
- */
1434
- class BytesRules extends protobuf_1.Message {
1435
- /**
1436
- * Const specifies that this field must be exactly the specified value
1437
- *
1438
- * @generated from field: optional bytes const = 1;
1439
- */
1440
- const;
1441
- /**
1442
- * Len specifies that this field must be the specified number of bytes
1443
- *
1444
- * @generated from field: optional uint64 len = 13;
1445
- */
1446
- len;
1447
- /**
1448
- * MinLen specifies that this field must be the specified number of bytes
1449
- * at a minimum
1450
- *
1451
- * @generated from field: optional uint64 min_len = 2;
1452
- */
1453
- minLen;
1454
- /**
1455
- * MaxLen specifies that this field must be the specified number of bytes
1456
- * at a maximum
1457
- *
1458
- * @generated from field: optional uint64 max_len = 3;
1459
- */
1460
- maxLen;
1461
- /**
1462
- * Pattern specifes that this field must match against the specified
1463
- * regular expression (RE2 syntax). The included expression should elide
1464
- * any delimiters.
1465
- *
1466
- * @generated from field: optional string pattern = 4;
1467
- */
1468
- pattern;
1469
- /**
1470
- * Prefix specifies that this field must have the specified bytes at the
1471
- * beginning of the string.
1472
- *
1473
- * @generated from field: optional bytes prefix = 5;
1474
- */
1475
- prefix;
1476
- /**
1477
- * Suffix specifies that this field must have the specified bytes at the
1478
- * end of the string.
1479
- *
1480
- * @generated from field: optional bytes suffix = 6;
1481
- */
1482
- suffix;
1483
- /**
1484
- * Contains specifies that this field must have the specified bytes
1485
- * anywhere in the string.
1486
- *
1487
- * @generated from field: optional bytes contains = 7;
1488
- */
1489
- contains;
1490
- /**
1491
- * In specifies that this field must be equal to one of the specified
1492
- * values
1493
- *
1494
- * @generated from field: repeated bytes in = 8;
1495
- */
1496
- in = [];
1497
- /**
1498
- * NotIn specifies that this field cannot be equal to one of the specified
1499
- * values
1500
- *
1501
- * @generated from field: repeated bytes not_in = 9;
1502
- */
1503
- notIn = [];
1504
- /**
1505
- * WellKnown rules provide advanced constraints against common byte
1506
- * patterns
1507
- *
1508
- * @generated from oneof genesis_validate.BytesRules.well_known
1509
- */
1510
- wellKnown = { case: undefined };
1511
- /**
1512
- * IgnoreEmpty specifies that the validation rules of this field should be
1513
- * evaluated only if the field is not empty
1514
- *
1515
- * @generated from field: optional bool ignore_empty = 14;
1516
- */
1517
- ignoreEmpty;
1518
- constructor(data) {
1519
- super();
1520
- protobuf_1.proto2.util.initPartial(data, this);
1521
- }
1522
- static runtime = protobuf_1.proto2;
1523
- static typeName = "genesis_validate.BytesRules";
1524
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1525
- { no: 1, name: "const", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
1526
- { no: 13, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1527
- { no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1528
- { no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1529
- { no: 4, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1530
- { no: 5, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
1531
- { no: 6, name: "suffix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
1532
- { no: 7, name: "contains", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
1533
- { no: 8, name: "in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
1534
- { no: 9, name: "not_in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
1535
- { no: 10, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1536
- { no: 11, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1537
- { no: 12, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
1538
- { no: 14, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1539
- ]);
1540
- static fromBinary(bytes, options) {
1541
- return new BytesRules().fromBinary(bytes, options);
1542
- }
1543
- static fromJson(jsonValue, options) {
1544
- return new BytesRules().fromJson(jsonValue, options);
1545
- }
1546
- static fromJsonString(jsonString, options) {
1547
- return new BytesRules().fromJsonString(jsonString, options);
1548
- }
1549
- static equals(a, b) {
1550
- return protobuf_1.proto2.util.equals(BytesRules, a, b);
1551
- }
1552
- }
1553
- exports.BytesRules = BytesRules;
1554
- /**
1555
- * EnumRules describe the constraints applied to enum values
1556
- *
1557
- * @generated from message genesis_validate.EnumRules
1558
- */
1559
- class EnumRules extends protobuf_1.Message {
1560
- /**
1561
- * Const specifies that this field must be exactly the specified value
1562
- *
1563
- * @generated from field: optional int32 const = 1;
1564
- */
1565
- const;
1566
- /**
1567
- * DefinedOnly specifies that this field must be only one of the defined
1568
- * values for this enum, failing on any undefined value.
1569
- *
1570
- * @generated from field: optional bool defined_only = 2;
1571
- */
1572
- definedOnly;
1573
- /**
1574
- * In specifies that this field must be equal to one of the specified
1575
- * values
1576
- *
1577
- * @generated from field: repeated int32 in = 3;
1578
- */
1579
- in = [];
1580
- /**
1581
- * NotIn specifies that this field cannot be equal to one of the specified
1582
- * values
1583
- *
1584
- * @generated from field: repeated int32 not_in = 4;
1585
- */
1586
- notIn = [];
1587
- constructor(data) {
1588
- super();
1589
- protobuf_1.proto2.util.initPartial(data, this);
1590
- }
1591
- static runtime = protobuf_1.proto2;
1592
- static typeName = "genesis_validate.EnumRules";
1593
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1594
- { no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1595
- { no: 2, name: "defined_only", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1596
- { no: 3, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
1597
- { no: 4, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
1598
- ]);
1599
- static fromBinary(bytes, options) {
1600
- return new EnumRules().fromBinary(bytes, options);
1601
- }
1602
- static fromJson(jsonValue, options) {
1603
- return new EnumRules().fromJson(jsonValue, options);
1604
- }
1605
- static fromJsonString(jsonString, options) {
1606
- return new EnumRules().fromJsonString(jsonString, options);
1607
- }
1608
- static equals(a, b) {
1609
- return protobuf_1.proto2.util.equals(EnumRules, a, b);
1610
- }
1611
- }
1612
- exports.EnumRules = EnumRules;
1613
- /**
1614
- * MessageRules describe the constraints applied to embedded message values.
1615
- * For message-type fields, validation is performed recursively.
1616
- *
1617
- * @generated from message genesis_validate.MessageRules
1618
- */
1619
- class MessageRules extends protobuf_1.Message {
1620
- /**
1621
- * Skip specifies that the validation rules of this field should not be
1622
- * evaluated
1623
- *
1624
- * @generated from field: optional bool skip = 1;
1625
- */
1626
- skip;
1627
- /**
1628
- * Required specifies that this field must be set
1629
- *
1630
- * @generated from field: optional bool required = 2;
1631
- */
1632
- required;
1633
- constructor(data) {
1634
- super();
1635
- protobuf_1.proto2.util.initPartial(data, this);
1636
- }
1637
- static runtime = protobuf_1.proto2;
1638
- static typeName = "genesis_validate.MessageRules";
1639
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1640
- { no: 1, name: "skip", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1641
- { no: 2, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1642
- ]);
1643
- static fromBinary(bytes, options) {
1644
- return new MessageRules().fromBinary(bytes, options);
1645
- }
1646
- static fromJson(jsonValue, options) {
1647
- return new MessageRules().fromJson(jsonValue, options);
1648
- }
1649
- static fromJsonString(jsonString, options) {
1650
- return new MessageRules().fromJsonString(jsonString, options);
1651
- }
1652
- static equals(a, b) {
1653
- return protobuf_1.proto2.util.equals(MessageRules, a, b);
1654
- }
1655
- }
1656
- exports.MessageRules = MessageRules;
1657
- /**
1658
- * RepeatedRules describe the constraints applied to `repeated` values
1659
- *
1660
- * @generated from message genesis_validate.RepeatedRules
1661
- */
1662
- class RepeatedRules extends protobuf_1.Message {
1663
- /**
1664
- * MinItems specifies that this field must have the specified number of
1665
- * items at a minimum
1666
- *
1667
- * @generated from field: optional uint64 min_items = 1;
1668
- */
1669
- minItems;
1670
- /**
1671
- * MaxItems specifies that this field must have the specified number of
1672
- * items at a maximum
1673
- *
1674
- * @generated from field: optional uint64 max_items = 2;
1675
- */
1676
- maxItems;
1677
- /**
1678
- * Unique specifies that all elements in this field must be unique. This
1679
- * contraint is only applicable to scalar and enum types (messages are not
1680
- * supported).
1681
- *
1682
- * @generated from field: optional bool unique = 3;
1683
- */
1684
- unique;
1685
- /**
1686
- * Items specifies the contraints to be applied to each item in the field.
1687
- * Repeated message fields will still execute validation against each item
1688
- * unless skip is specified here.
1689
- *
1690
- * @generated from field: optional genesis_validate.FieldRules items = 4;
1691
- */
1692
- items;
1693
- /**
1694
- * IgnoreEmpty specifies that the validation rules of this field should be
1695
- * evaluated only if the field is not empty
1696
- *
1697
- * @generated from field: optional bool ignore_empty = 5;
1698
- */
1699
- ignoreEmpty;
1700
- constructor(data) {
1701
- super();
1702
- protobuf_1.proto2.util.initPartial(data, this);
1703
- }
1704
- static runtime = protobuf_1.proto2;
1705
- static typeName = "genesis_validate.RepeatedRules";
1706
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1707
- { no: 1, name: "min_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1708
- { no: 2, name: "max_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1709
- { no: 3, name: "unique", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1710
- { no: 4, name: "items", kind: "message", T: FieldRules, opt: true },
1711
- { no: 5, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1712
- ]);
1713
- static fromBinary(bytes, options) {
1714
- return new RepeatedRules().fromBinary(bytes, options);
1715
- }
1716
- static fromJson(jsonValue, options) {
1717
- return new RepeatedRules().fromJson(jsonValue, options);
1718
- }
1719
- static fromJsonString(jsonString, options) {
1720
- return new RepeatedRules().fromJsonString(jsonString, options);
1721
- }
1722
- static equals(a, b) {
1723
- return protobuf_1.proto2.util.equals(RepeatedRules, a, b);
1724
- }
1725
- }
1726
- exports.RepeatedRules = RepeatedRules;
1727
- /**
1728
- * MapRules describe the constraints applied to `map` values
1729
- *
1730
- * @generated from message genesis_validate.MapRules
1731
- */
1732
- class MapRules extends protobuf_1.Message {
1733
- /**
1734
- * MinPairs specifies that this field must have the specified number of
1735
- * KVs at a minimum
1736
- *
1737
- * @generated from field: optional uint64 min_pairs = 1;
1738
- */
1739
- minPairs;
1740
- /**
1741
- * MaxPairs specifies that this field must have the specified number of
1742
- * KVs at a maximum
1743
- *
1744
- * @generated from field: optional uint64 max_pairs = 2;
1745
- */
1746
- maxPairs;
1747
- /**
1748
- * NoSparse specifies values in this field cannot be unset. This only
1749
- * applies to map's with message value types.
1750
- *
1751
- * @generated from field: optional bool no_sparse = 3;
1752
- */
1753
- noSparse;
1754
- /**
1755
- * Keys specifies the constraints to be applied to each key in the field.
1756
- *
1757
- * @generated from field: optional genesis_validate.FieldRules keys = 4;
1758
- */
1759
- keys;
1760
- /**
1761
- * Values specifies the constraints to be applied to the value of each key
1762
- * in the field. Message values will still have their validations evaluated
1763
- * unless skip is specified here.
1764
- *
1765
- * @generated from field: optional genesis_validate.FieldRules values = 5;
1766
- */
1767
- values;
1768
- /**
1769
- * IgnoreEmpty specifies that the validation rules of this field should be
1770
- * evaluated only if the field is not empty
1771
- *
1772
- * @generated from field: optional bool ignore_empty = 6;
1773
- */
1774
- ignoreEmpty;
1775
- constructor(data) {
1776
- super();
1777
- protobuf_1.proto2.util.initPartial(data, this);
1778
- }
1779
- static runtime = protobuf_1.proto2;
1780
- static typeName = "genesis_validate.MapRules";
1781
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1782
- { no: 1, name: "min_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1783
- { no: 2, name: "max_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1784
- { no: 3, name: "no_sparse", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1785
- { no: 4, name: "keys", kind: "message", T: FieldRules, opt: true },
1786
- { no: 5, name: "values", kind: "message", T: FieldRules, opt: true },
1787
- { no: 6, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1788
- ]);
1789
- static fromBinary(bytes, options) {
1790
- return new MapRules().fromBinary(bytes, options);
1791
- }
1792
- static fromJson(jsonValue, options) {
1793
- return new MapRules().fromJson(jsonValue, options);
1794
- }
1795
- static fromJsonString(jsonString, options) {
1796
- return new MapRules().fromJsonString(jsonString, options);
1797
- }
1798
- static equals(a, b) {
1799
- return protobuf_1.proto2.util.equals(MapRules, a, b);
1800
- }
1801
- }
1802
- exports.MapRules = MapRules;
1803
- /**
1804
- * AnyRules describe constraints applied exclusively to the
1805
- * `google.protobuf.Any` well-known type
1806
- *
1807
- * @generated from message genesis_validate.AnyRules
1808
- */
1809
- class AnyRules extends protobuf_1.Message {
1810
- /**
1811
- * Required specifies that this field must be set
1812
- *
1813
- * @generated from field: optional bool required = 1;
1814
- */
1815
- required;
1816
- /**
1817
- * In specifies that this field's `type_url` must be equal to one of the
1818
- * specified values.
1819
- *
1820
- * @generated from field: repeated string in = 2;
1821
- */
1822
- in = [];
1823
- /**
1824
- * NotIn specifies that this field's `type_url` must not be equal to any of
1825
- * the specified values.
1826
- *
1827
- * @generated from field: repeated string not_in = 3;
1828
- */
1829
- notIn = [];
1830
- constructor(data) {
1831
- super();
1832
- protobuf_1.proto2.util.initPartial(data, this);
1833
- }
1834
- static runtime = protobuf_1.proto2;
1835
- static typeName = "genesis_validate.AnyRules";
1836
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1837
- { no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1838
- { no: 2, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1839
- { no: 3, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1840
- ]);
1841
- static fromBinary(bytes, options) {
1842
- return new AnyRules().fromBinary(bytes, options);
1843
- }
1844
- static fromJson(jsonValue, options) {
1845
- return new AnyRules().fromJson(jsonValue, options);
1846
- }
1847
- static fromJsonString(jsonString, options) {
1848
- return new AnyRules().fromJsonString(jsonString, options);
1849
- }
1850
- static equals(a, b) {
1851
- return protobuf_1.proto2.util.equals(AnyRules, a, b);
1852
- }
1853
- }
1854
- exports.AnyRules = AnyRules;
1855
- /**
1856
- * DurationRules describe the constraints applied exclusively to the
1857
- * `google.protobuf.Duration` well-known type
1858
- *
1859
- * @generated from message genesis_validate.DurationRules
1860
- */
1861
- class DurationRules extends protobuf_1.Message {
1862
- /**
1863
- * Required specifies that this field must be set
1864
- *
1865
- * @generated from field: optional bool required = 1;
1866
- */
1867
- required;
1868
- /**
1869
- * Const specifies that this field must be exactly the specified value
1870
- *
1871
- * @generated from field: optional google.protobuf.Duration const = 2;
1872
- */
1873
- const;
1874
- /**
1875
- * Lt specifies that this field must be less than the specified value,
1876
- * exclusive
1877
- *
1878
- * @generated from field: optional google.protobuf.Duration lt = 3;
1879
- */
1880
- lt;
1881
- /**
1882
- * Lt specifies that this field must be less than the specified value,
1883
- * inclusive
1884
- *
1885
- * @generated from field: optional google.protobuf.Duration lte = 4;
1886
- */
1887
- lte;
1888
- /**
1889
- * Gt specifies that this field must be greater than the specified value,
1890
- * exclusive
1891
- *
1892
- * @generated from field: optional google.protobuf.Duration gt = 5;
1893
- */
1894
- gt;
1895
- /**
1896
- * Gte specifies that this field must be greater than the specified value,
1897
- * inclusive
1898
- *
1899
- * @generated from field: optional google.protobuf.Duration gte = 6;
1900
- */
1901
- gte;
1902
- /**
1903
- * In specifies that this field must be equal to one of the specified
1904
- * values
1905
- *
1906
- * @generated from field: repeated google.protobuf.Duration in = 7;
1907
- */
1908
- in = [];
1909
- /**
1910
- * NotIn specifies that this field cannot be equal to one of the specified
1911
- * values
1912
- *
1913
- * @generated from field: repeated google.protobuf.Duration not_in = 8;
1914
- */
1915
- notIn = [];
1916
- constructor(data) {
1917
- super();
1918
- protobuf_1.proto2.util.initPartial(data, this);
1919
- }
1920
- static runtime = protobuf_1.proto2;
1921
- static typeName = "genesis_validate.DurationRules";
1922
- static fields = protobuf_1.proto2.util.newFieldList(() => [
1923
- { no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1924
- { no: 2, name: "const", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1925
- { no: 3, name: "lt", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1926
- { no: 4, name: "lte", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1927
- { no: 5, name: "gt", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1928
- { no: 6, name: "gte", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1929
- { no: 7, name: "in", kind: "message", T: duration_pb_js_1.Duration, repeated: true },
1930
- { no: 8, name: "not_in", kind: "message", T: duration_pb_js_1.Duration, repeated: true },
1931
- ]);
1932
- static fromBinary(bytes, options) {
1933
- return new DurationRules().fromBinary(bytes, options);
1934
- }
1935
- static fromJson(jsonValue, options) {
1936
- return new DurationRules().fromJson(jsonValue, options);
1937
- }
1938
- static fromJsonString(jsonString, options) {
1939
- return new DurationRules().fromJsonString(jsonString, options);
1940
- }
1941
- static equals(a, b) {
1942
- return protobuf_1.proto2.util.equals(DurationRules, a, b);
1943
- }
1944
- }
1945
- exports.DurationRules = DurationRules;
1946
- /**
1947
- * TimestampRules describe the constraints applied exclusively to the
1948
- * `google.protobuf.Timestamp` well-known type
1949
- *
1950
- * @generated from message genesis_validate.TimestampRules
1951
- */
1952
- class TimestampRules extends protobuf_1.Message {
1953
- /**
1954
- * Required specifies that this field must be set
1955
- *
1956
- * @generated from field: optional bool required = 1;
1957
- */
1958
- required;
1959
- /**
1960
- * Const specifies that this field must be exactly the specified value
1961
- *
1962
- * @generated from field: optional google.protobuf.Timestamp const = 2;
1963
- */
1964
- const;
1965
- /**
1966
- * Lt specifies that this field must be less than the specified value,
1967
- * exclusive
1968
- *
1969
- * @generated from field: optional google.protobuf.Timestamp lt = 3;
1970
- */
1971
- lt;
1972
- /**
1973
- * Lte specifies that this field must be less than the specified value,
1974
- * inclusive
1975
- *
1976
- * @generated from field: optional google.protobuf.Timestamp lte = 4;
1977
- */
1978
- lte;
1979
- /**
1980
- * Gt specifies that this field must be greater than the specified value,
1981
- * exclusive
1982
- *
1983
- * @generated from field: optional google.protobuf.Timestamp gt = 5;
1984
- */
1985
- gt;
1986
- /**
1987
- * Gte specifies that this field must be greater than the specified value,
1988
- * inclusive
1989
- *
1990
- * @generated from field: optional google.protobuf.Timestamp gte = 6;
1991
- */
1992
- gte;
1993
- /**
1994
- * LtNow specifies that this must be less than the current time. LtNow
1995
- * can only be used with the Within rule.
1996
- *
1997
- * @generated from field: optional bool lt_now = 7;
1998
- */
1999
- ltNow;
2000
- /**
2001
- * GtNow specifies that this must be greater than the current time. GtNow
2002
- * can only be used with the Within rule.
2003
- *
2004
- * @generated from field: optional bool gt_now = 8;
2005
- */
2006
- gtNow;
2007
- /**
2008
- * Within specifies that this field must be within this duration of the
2009
- * current time. This constraint can be used alone or with the LtNow and
2010
- * GtNow rules.
2011
- *
2012
- * @generated from field: optional google.protobuf.Duration within = 9;
2013
- */
2014
- within;
2015
- constructor(data) {
2016
- super();
2017
- protobuf_1.proto2.util.initPartial(data, this);
2018
- }
2019
- static runtime = protobuf_1.proto2;
2020
- static typeName = "genesis_validate.TimestampRules";
2021
- static fields = protobuf_1.proto2.util.newFieldList(() => [
2022
- { no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2023
- { no: 2, name: "const", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
2024
- { no: 3, name: "lt", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
2025
- { no: 4, name: "lte", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
2026
- { no: 5, name: "gt", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
2027
- { no: 6, name: "gte", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
2028
- { no: 7, name: "lt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2029
- { no: 8, name: "gt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2030
- { no: 9, name: "within", kind: "message", T: duration_pb_js_1.Duration, opt: true },
2031
- ]);
2032
- static fromBinary(bytes, options) {
2033
- return new TimestampRules().fromBinary(bytes, options);
2034
- }
2035
- static fromJson(jsonValue, options) {
2036
- return new TimestampRules().fromJson(jsonValue, options);
2037
- }
2038
- static fromJsonString(jsonString, options) {
2039
- return new TimestampRules().fromJsonString(jsonString, options);
2040
- }
2041
- static equals(a, b) {
2042
- return protobuf_1.proto2.util.equals(TimestampRules, a, b);
2043
- }
2044
- }
2045
- exports.TimestampRules = TimestampRules;