@buildonspark/issuer-sdk 0.0.30 → 0.0.32

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.
@@ -76,15 +76,13 @@ export interface FieldRules {
76
76
  | { $case: "sfixed64"; sfixed64: SFixed64Rules }
77
77
  | { $case: "bool"; bool: BoolRules }
78
78
  | { $case: "string"; string: StringRules }
79
- | { $case: "bytes"; bytes: BytesRules }
80
- | //
79
+ | { $case: "bytes"; bytes: BytesRules } //
81
80
  /** Complex Field Types */
82
- { $case: "enum"; enum: EnumRules }
81
+ | { $case: "enum"; enum: EnumRules }
83
82
  | { $case: "repeated"; repeated: RepeatedRules }
84
- | { $case: "map"; map: MapRules }
85
- | //
83
+ | { $case: "map"; map: MapRules } //
86
84
  /** Well-Known Field Types */
87
- { $case: "any"; any: AnyRules }
85
+ | { $case: "any"; any: AnyRules }
88
86
  | { $case: "duration"; duration: DurationRules }
89
87
  | { $case: "timestamp"; timestamp: TimestampRules }
90
88
  | undefined;
@@ -93,39 +91,29 @@ export interface FieldRules {
93
91
  /** FloatRules describes the constraints applied to `float` values */
94
92
  export interface FloatRules {
95
93
  /** Const specifies that this field must be exactly the specified value */
96
- const?:
97
- | number
98
- | undefined;
94
+ const?: number | undefined;
99
95
  /**
100
96
  * Lt specifies that this field must be less than the specified value,
101
97
  * exclusive
102
98
  */
103
- lt?:
104
- | number
105
- | undefined;
99
+ lt?: number | undefined;
106
100
  /**
107
101
  * Lte specifies that this field must be less than or equal to the
108
102
  * specified value, inclusive
109
103
  */
110
- lte?:
111
- | number
112
- | undefined;
104
+ lte?: number | undefined;
113
105
  /**
114
106
  * Gt specifies that this field must be greater than the specified value,
115
107
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
116
108
  * range is reversed.
117
109
  */
118
- gt?:
119
- | number
120
- | undefined;
110
+ gt?: number | undefined;
121
111
  /**
122
112
  * Gte specifies that this field must be greater than or equal to the
123
113
  * specified value, inclusive. If the value of Gte is larger than a
124
114
  * specified Lt or Lte, the range is reversed.
125
115
  */
126
- gte?:
127
- | number
128
- | undefined;
116
+ gte?: number | undefined;
129
117
  /**
130
118
  * In specifies that this field must be equal to one of the specified
131
119
  * values
@@ -146,39 +134,29 @@ export interface FloatRules {
146
134
  /** DoubleRules describes the constraints applied to `double` values */
147
135
  export interface DoubleRules {
148
136
  /** Const specifies that this field must be exactly the specified value */
149
- const?:
150
- | number
151
- | undefined;
137
+ const?: number | undefined;
152
138
  /**
153
139
  * Lt specifies that this field must be less than the specified value,
154
140
  * exclusive
155
141
  */
156
- lt?:
157
- | number
158
- | undefined;
142
+ lt?: number | undefined;
159
143
  /**
160
144
  * Lte specifies that this field must be less than or equal to the
161
145
  * specified value, inclusive
162
146
  */
163
- lte?:
164
- | number
165
- | undefined;
147
+ lte?: number | undefined;
166
148
  /**
167
149
  * Gt specifies that this field must be greater than the specified value,
168
150
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
169
151
  * range is reversed.
170
152
  */
171
- gt?:
172
- | number
173
- | undefined;
153
+ gt?: number | undefined;
174
154
  /**
175
155
  * Gte specifies that this field must be greater than or equal to the
176
156
  * specified value, inclusive. If the value of Gte is larger than a
177
157
  * specified Lt or Lte, the range is reversed.
178
158
  */
179
- gte?:
180
- | number
181
- | undefined;
159
+ gte?: number | undefined;
182
160
  /**
183
161
  * In specifies that this field must be equal to one of the specified
184
162
  * values
@@ -199,39 +177,29 @@ export interface DoubleRules {
199
177
  /** Int32Rules describes the constraints applied to `int32` values */
200
178
  export interface Int32Rules {
201
179
  /** Const specifies that this field must be exactly the specified value */
202
- const?:
203
- | number
204
- | undefined;
180
+ const?: number | undefined;
205
181
  /**
206
182
  * Lt specifies that this field must be less than the specified value,
207
183
  * exclusive
208
184
  */
209
- lt?:
210
- | number
211
- | undefined;
185
+ lt?: number | undefined;
212
186
  /**
213
187
  * Lte specifies that this field must be less than or equal to the
214
188
  * specified value, inclusive
215
189
  */
216
- lte?:
217
- | number
218
- | undefined;
190
+ lte?: number | undefined;
219
191
  /**
220
192
  * Gt specifies that this field must be greater than the specified value,
221
193
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
222
194
  * range is reversed.
223
195
  */
224
- gt?:
225
- | number
226
- | undefined;
196
+ gt?: number | undefined;
227
197
  /**
228
198
  * Gte specifies that this field must be greater than or equal to the
229
199
  * specified value, inclusive. If the value of Gte is larger than a
230
200
  * specified Lt or Lte, the range is reversed.
231
201
  */
232
- gte?:
233
- | number
234
- | undefined;
202
+ gte?: number | undefined;
235
203
  /**
236
204
  * In specifies that this field must be equal to one of the specified
237
205
  * values
@@ -252,39 +220,29 @@ export interface Int32Rules {
252
220
  /** Int64Rules describes the constraints applied to `int64` values */
253
221
  export interface Int64Rules {
254
222
  /** Const specifies that this field must be exactly the specified value */
255
- const?:
256
- | number
257
- | undefined;
223
+ const?: number | undefined;
258
224
  /**
259
225
  * Lt specifies that this field must be less than the specified value,
260
226
  * exclusive
261
227
  */
262
- lt?:
263
- | number
264
- | undefined;
228
+ lt?: number | undefined;
265
229
  /**
266
230
  * Lte specifies that this field must be less than or equal to the
267
231
  * specified value, inclusive
268
232
  */
269
- lte?:
270
- | number
271
- | undefined;
233
+ lte?: number | undefined;
272
234
  /**
273
235
  * Gt specifies that this field must be greater than the specified value,
274
236
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
275
237
  * range is reversed.
276
238
  */
277
- gt?:
278
- | number
279
- | undefined;
239
+ gt?: number | undefined;
280
240
  /**
281
241
  * Gte specifies that this field must be greater than or equal to the
282
242
  * specified value, inclusive. If the value of Gte is larger than a
283
243
  * specified Lt or Lte, the range is reversed.
284
244
  */
285
- gte?:
286
- | number
287
- | undefined;
245
+ gte?: number | undefined;
288
246
  /**
289
247
  * In specifies that this field must be equal to one of the specified
290
248
  * values
@@ -305,39 +263,29 @@ export interface Int64Rules {
305
263
  /** UInt32Rules describes the constraints applied to `uint32` values */
306
264
  export interface UInt32Rules {
307
265
  /** Const specifies that this field must be exactly the specified value */
308
- const?:
309
- | number
310
- | undefined;
266
+ const?: number | undefined;
311
267
  /**
312
268
  * Lt specifies that this field must be less than the specified value,
313
269
  * exclusive
314
270
  */
315
- lt?:
316
- | number
317
- | undefined;
271
+ lt?: number | undefined;
318
272
  /**
319
273
  * Lte specifies that this field must be less than or equal to the
320
274
  * specified value, inclusive
321
275
  */
322
- lte?:
323
- | number
324
- | undefined;
276
+ lte?: number | undefined;
325
277
  /**
326
278
  * Gt specifies that this field must be greater than the specified value,
327
279
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
328
280
  * range is reversed.
329
281
  */
330
- gt?:
331
- | number
332
- | undefined;
282
+ gt?: number | undefined;
333
283
  /**
334
284
  * Gte specifies that this field must be greater than or equal to the
335
285
  * specified value, inclusive. If the value of Gte is larger than a
336
286
  * specified Lt or Lte, the range is reversed.
337
287
  */
338
- gte?:
339
- | number
340
- | undefined;
288
+ gte?: number | undefined;
341
289
  /**
342
290
  * In specifies that this field must be equal to one of the specified
343
291
  * values
@@ -358,39 +306,29 @@ export interface UInt32Rules {
358
306
  /** UInt64Rules describes the constraints applied to `uint64` values */
359
307
  export interface UInt64Rules {
360
308
  /** Const specifies that this field must be exactly the specified value */
361
- const?:
362
- | number
363
- | undefined;
309
+ const?: number | undefined;
364
310
  /**
365
311
  * Lt specifies that this field must be less than the specified value,
366
312
  * exclusive
367
313
  */
368
- lt?:
369
- | number
370
- | undefined;
314
+ lt?: number | undefined;
371
315
  /**
372
316
  * Lte specifies that this field must be less than or equal to the
373
317
  * specified value, inclusive
374
318
  */
375
- lte?:
376
- | number
377
- | undefined;
319
+ lte?: number | undefined;
378
320
  /**
379
321
  * Gt specifies that this field must be greater than the specified value,
380
322
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
381
323
  * range is reversed.
382
324
  */
383
- gt?:
384
- | number
385
- | undefined;
325
+ gt?: number | undefined;
386
326
  /**
387
327
  * Gte specifies that this field must be greater than or equal to the
388
328
  * specified value, inclusive. If the value of Gte is larger than a
389
329
  * specified Lt or Lte, the range is reversed.
390
330
  */
391
- gte?:
392
- | number
393
- | undefined;
331
+ gte?: number | undefined;
394
332
  /**
395
333
  * In specifies that this field must be equal to one of the specified
396
334
  * values
@@ -411,39 +349,29 @@ export interface UInt64Rules {
411
349
  /** SInt32Rules describes the constraints applied to `sint32` values */
412
350
  export interface SInt32Rules {
413
351
  /** Const specifies that this field must be exactly the specified value */
414
- const?:
415
- | number
416
- | undefined;
352
+ const?: number | undefined;
417
353
  /**
418
354
  * Lt specifies that this field must be less than the specified value,
419
355
  * exclusive
420
356
  */
421
- lt?:
422
- | number
423
- | undefined;
357
+ lt?: number | undefined;
424
358
  /**
425
359
  * Lte specifies that this field must be less than or equal to the
426
360
  * specified value, inclusive
427
361
  */
428
- lte?:
429
- | number
430
- | undefined;
362
+ lte?: number | undefined;
431
363
  /**
432
364
  * Gt specifies that this field must be greater than the specified value,
433
365
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
434
366
  * range is reversed.
435
367
  */
436
- gt?:
437
- | number
438
- | undefined;
368
+ gt?: number | undefined;
439
369
  /**
440
370
  * Gte specifies that this field must be greater than or equal to the
441
371
  * specified value, inclusive. If the value of Gte is larger than a
442
372
  * specified Lt or Lte, the range is reversed.
443
373
  */
444
- gte?:
445
- | number
446
- | undefined;
374
+ gte?: number | undefined;
447
375
  /**
448
376
  * In specifies that this field must be equal to one of the specified
449
377
  * values
@@ -464,39 +392,29 @@ export interface SInt32Rules {
464
392
  /** SInt64Rules describes the constraints applied to `sint64` values */
465
393
  export interface SInt64Rules {
466
394
  /** Const specifies that this field must be exactly the specified value */
467
- const?:
468
- | number
469
- | undefined;
395
+ const?: number | undefined;
470
396
  /**
471
397
  * Lt specifies that this field must be less than the specified value,
472
398
  * exclusive
473
399
  */
474
- lt?:
475
- | number
476
- | undefined;
400
+ lt?: number | undefined;
477
401
  /**
478
402
  * Lte specifies that this field must be less than or equal to the
479
403
  * specified value, inclusive
480
404
  */
481
- lte?:
482
- | number
483
- | undefined;
405
+ lte?: number | undefined;
484
406
  /**
485
407
  * Gt specifies that this field must be greater than the specified value,
486
408
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
487
409
  * range is reversed.
488
410
  */
489
- gt?:
490
- | number
491
- | undefined;
411
+ gt?: number | undefined;
492
412
  /**
493
413
  * Gte specifies that this field must be greater than or equal to the
494
414
  * specified value, inclusive. If the value of Gte is larger than a
495
415
  * specified Lt or Lte, the range is reversed.
496
416
  */
497
- gte?:
498
- | number
499
- | undefined;
417
+ gte?: number | undefined;
500
418
  /**
501
419
  * In specifies that this field must be equal to one of the specified
502
420
  * values
@@ -517,39 +435,29 @@ export interface SInt64Rules {
517
435
  /** Fixed32Rules describes the constraints applied to `fixed32` values */
518
436
  export interface Fixed32Rules {
519
437
  /** Const specifies that this field must be exactly the specified value */
520
- const?:
521
- | number
522
- | undefined;
438
+ const?: number | undefined;
523
439
  /**
524
440
  * Lt specifies that this field must be less than the specified value,
525
441
  * exclusive
526
442
  */
527
- lt?:
528
- | number
529
- | undefined;
443
+ lt?: number | undefined;
530
444
  /**
531
445
  * Lte specifies that this field must be less than or equal to the
532
446
  * specified value, inclusive
533
447
  */
534
- lte?:
535
- | number
536
- | undefined;
448
+ lte?: number | undefined;
537
449
  /**
538
450
  * Gt specifies that this field must be greater than the specified value,
539
451
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
540
452
  * range is reversed.
541
453
  */
542
- gt?:
543
- | number
544
- | undefined;
454
+ gt?: number | undefined;
545
455
  /**
546
456
  * Gte specifies that this field must be greater than or equal to the
547
457
  * specified value, inclusive. If the value of Gte is larger than a
548
458
  * specified Lt or Lte, the range is reversed.
549
459
  */
550
- gte?:
551
- | number
552
- | undefined;
460
+ gte?: number | undefined;
553
461
  /**
554
462
  * In specifies that this field must be equal to one of the specified
555
463
  * values
@@ -570,39 +478,29 @@ export interface Fixed32Rules {
570
478
  /** Fixed64Rules describes the constraints applied to `fixed64` values */
571
479
  export interface Fixed64Rules {
572
480
  /** Const specifies that this field must be exactly the specified value */
573
- const?:
574
- | number
575
- | undefined;
481
+ const?: number | undefined;
576
482
  /**
577
483
  * Lt specifies that this field must be less than the specified value,
578
484
  * exclusive
579
485
  */
580
- lt?:
581
- | number
582
- | undefined;
486
+ lt?: number | undefined;
583
487
  /**
584
488
  * Lte specifies that this field must be less than or equal to the
585
489
  * specified value, inclusive
586
490
  */
587
- lte?:
588
- | number
589
- | undefined;
491
+ lte?: number | undefined;
590
492
  /**
591
493
  * Gt specifies that this field must be greater than the specified value,
592
494
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
593
495
  * range is reversed.
594
496
  */
595
- gt?:
596
- | number
597
- | undefined;
497
+ gt?: number | undefined;
598
498
  /**
599
499
  * Gte specifies that this field must be greater than or equal to the
600
500
  * specified value, inclusive. If the value of Gte is larger than a
601
501
  * specified Lt or Lte, the range is reversed.
602
502
  */
603
- gte?:
604
- | number
605
- | undefined;
503
+ gte?: number | undefined;
606
504
  /**
607
505
  * In specifies that this field must be equal to one of the specified
608
506
  * values
@@ -623,39 +521,29 @@ export interface Fixed64Rules {
623
521
  /** SFixed32Rules describes the constraints applied to `sfixed32` values */
624
522
  export interface SFixed32Rules {
625
523
  /** Const specifies that this field must be exactly the specified value */
626
- const?:
627
- | number
628
- | undefined;
524
+ const?: number | undefined;
629
525
  /**
630
526
  * Lt specifies that this field must be less than the specified value,
631
527
  * exclusive
632
528
  */
633
- lt?:
634
- | number
635
- | undefined;
529
+ lt?: number | undefined;
636
530
  /**
637
531
  * Lte specifies that this field must be less than or equal to the
638
532
  * specified value, inclusive
639
533
  */
640
- lte?:
641
- | number
642
- | undefined;
534
+ lte?: number | undefined;
643
535
  /**
644
536
  * Gt specifies that this field must be greater than the specified value,
645
537
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
646
538
  * range is reversed.
647
539
  */
648
- gt?:
649
- | number
650
- | undefined;
540
+ gt?: number | undefined;
651
541
  /**
652
542
  * Gte specifies that this field must be greater than or equal to the
653
543
  * specified value, inclusive. If the value of Gte is larger than a
654
544
  * specified Lt or Lte, the range is reversed.
655
545
  */
656
- gte?:
657
- | number
658
- | undefined;
546
+ gte?: number | undefined;
659
547
  /**
660
548
  * In specifies that this field must be equal to one of the specified
661
549
  * values
@@ -676,39 +564,29 @@ export interface SFixed32Rules {
676
564
  /** SFixed64Rules describes the constraints applied to `sfixed64` values */
677
565
  export interface SFixed64Rules {
678
566
  /** Const specifies that this field must be exactly the specified value */
679
- const?:
680
- | number
681
- | undefined;
567
+ const?: number | undefined;
682
568
  /**
683
569
  * Lt specifies that this field must be less than the specified value,
684
570
  * exclusive
685
571
  */
686
- lt?:
687
- | number
688
- | undefined;
572
+ lt?: number | undefined;
689
573
  /**
690
574
  * Lte specifies that this field must be less than or equal to the
691
575
  * specified value, inclusive
692
576
  */
693
- lte?:
694
- | number
695
- | undefined;
577
+ lte?: number | undefined;
696
578
  /**
697
579
  * Gt specifies that this field must be greater than the specified value,
698
580
  * exclusive. If the value of Gt is larger than a specified Lt or Lte, the
699
581
  * range is reversed.
700
582
  */
701
- gt?:
702
- | number
703
- | undefined;
583
+ gt?: number | undefined;
704
584
  /**
705
585
  * Gte specifies that this field must be greater than or equal to the
706
586
  * specified value, inclusive. If the value of Gte is larger than a
707
587
  * specified Lt or Lte, the range is reversed.
708
588
  */
709
- gte?:
710
- | number
711
- | undefined;
589
+ gte?: number | undefined;
712
590
  /**
713
591
  * In specifies that this field must be equal to one of the specified
714
592
  * values
@@ -735,87 +613,63 @@ export interface BoolRules {
735
613
  /** StringRules describe the constraints applied to `string` values */
736
614
  export interface StringRules {
737
615
  /** Const specifies that this field must be exactly the specified value */
738
- const?:
739
- | string
740
- | undefined;
616
+ const?: string | undefined;
741
617
  /**
742
618
  * Len specifies that this field must be the specified number of
743
619
  * characters (Unicode code points). Note that the number of
744
620
  * characters may differ from the number of bytes in the string.
745
621
  */
746
- len?:
747
- | number
748
- | undefined;
622
+ len?: number | undefined;
749
623
  /**
750
624
  * MinLen specifies that this field must be the specified number of
751
625
  * characters (Unicode code points) at a minimum. Note that the number of
752
626
  * characters may differ from the number of bytes in the string.
753
627
  */
754
- minLen?:
755
- | number
756
- | undefined;
628
+ minLen?: number | undefined;
757
629
  /**
758
630
  * MaxLen specifies that this field must be the specified number of
759
631
  * characters (Unicode code points) at a maximum. Note that the number of
760
632
  * characters may differ from the number of bytes in the string.
761
633
  */
762
- maxLen?:
763
- | number
764
- | undefined;
634
+ maxLen?: number | undefined;
765
635
  /** LenBytes specifies that this field must be the specified number of bytes */
766
- lenBytes?:
767
- | number
768
- | undefined;
636
+ lenBytes?: number | undefined;
769
637
  /**
770
638
  * MinBytes specifies that this field must be the specified number of bytes
771
639
  * at a minimum
772
640
  */
773
- minBytes?:
774
- | number
775
- | undefined;
641
+ minBytes?: number | undefined;
776
642
  /**
777
643
  * MaxBytes specifies that this field must be the specified number of bytes
778
644
  * at a maximum
779
645
  */
780
- maxBytes?:
781
- | number
782
- | undefined;
646
+ maxBytes?: number | undefined;
783
647
  /**
784
648
  * Pattern specifes that this field must match against the specified
785
649
  * regular expression (RE2 syntax). The included expression should elide
786
650
  * any delimiters.
787
651
  */
788
- pattern?:
789
- | string
790
- | undefined;
652
+ pattern?: string | undefined;
791
653
  /**
792
654
  * Prefix specifies that this field must have the specified substring at
793
655
  * the beginning of the string.
794
656
  */
795
- prefix?:
796
- | string
797
- | undefined;
657
+ prefix?: string | undefined;
798
658
  /**
799
659
  * Suffix specifies that this field must have the specified substring at
800
660
  * the end of the string.
801
661
  */
802
- suffix?:
803
- | string
804
- | undefined;
662
+ suffix?: string | undefined;
805
663
  /**
806
664
  * Contains specifies that this field must have the specified substring
807
665
  * anywhere in the string.
808
666
  */
809
- contains?:
810
- | string
811
- | undefined;
667
+ contains?: string | undefined;
812
668
  /**
813
669
  * NotContains specifies that this field cannot have the specified substring
814
670
  * anywhere in the string.
815
671
  */
816
- notContains?:
817
- | string
818
- | undefined;
672
+ notContains?: string | undefined;
819
673
  /**
820
674
  * In specifies that this field must be equal to one of the specified
821
675
  * values
@@ -836,57 +690,48 @@ export interface StringRules {
836
690
  * Email specifies that the field must be a valid email address as
837
691
  * defined by RFC 5322
838
692
  */
839
- { $case: "email"; email: boolean }
840
- | //
693
+ { $case: "email"; email: boolean } //
841
694
  /**
842
695
  * Hostname specifies that the field must be a valid hostname as
843
696
  * defined by RFC 1034. This constraint does not support
844
697
  * internationalized domain names (IDNs).
845
698
  */
846
- { $case: "hostname"; hostname: boolean }
847
- | //
699
+ | { $case: "hostname"; hostname: boolean } //
848
700
  /**
849
701
  * Ip specifies that the field must be a valid IP (v4 or v6) address.
850
702
  * Valid IPv6 addresses should not include surrounding square brackets.
851
703
  */
852
- { $case: "ip"; ip: boolean }
853
- | //
704
+ | { $case: "ip"; ip: boolean } //
854
705
  /** Ipv4 specifies that the field must be a valid IPv4 address. */
855
- { $case: "ipv4"; ipv4: boolean }
856
- | //
706
+ | { $case: "ipv4"; ipv4: boolean } //
857
707
  /**
858
708
  * Ipv6 specifies that the field must be a valid IPv6 address. Valid
859
709
  * IPv6 addresses should not include surrounding square brackets.
860
710
  */
861
- { $case: "ipv6"; ipv6: boolean }
862
- | //
711
+ | { $case: "ipv6"; ipv6: boolean } //
863
712
  /**
864
713
  * Uri specifies that the field must be a valid, absolute URI as defined
865
714
  * by RFC 3986
866
715
  */
867
- { $case: "uri"; uri: boolean }
868
- | //
716
+ | { $case: "uri"; uri: boolean } //
869
717
  /**
870
718
  * UriRef specifies that the field must be a valid URI as defined by RFC
871
719
  * 3986 and may be relative or absolute.
872
720
  */
873
- { $case: "uriRef"; uriRef: boolean }
874
- | //
721
+ | { $case: "uriRef"; uriRef: boolean } //
875
722
  /**
876
723
  * Address specifies that the field must be either a valid hostname as
877
724
  * defined by RFC 1034 (which does not support internationalized domain
878
725
  * names or IDNs), or it can be a valid IP (v4 or v6).
879
726
  */
880
- { $case: "address"; address: boolean }
881
- | //
727
+ | { $case: "address"; address: boolean } //
882
728
  /**
883
729
  * Uuid specifies that the field must be a valid UUID as defined by
884
730
  * RFC 4122
885
731
  */
886
- { $case: "uuid"; uuid: boolean }
887
- | //
732
+ | { $case: "uuid"; uuid: boolean } //
888
733
  /** WellKnownRegex specifies a common well known pattern defined as a regex. */
889
- { $case: "wellKnownRegex"; wellKnownRegex: KnownRegex }
734
+ | { $case: "wellKnownRegex"; wellKnownRegex: KnownRegex }
890
735
  | undefined;
891
736
  /**
892
737
  * This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
@@ -895,9 +740,7 @@ export interface StringRules {
895
740
  * Setting to false will enable a looser validations that only disallows
896
741
  * \r\n\0 characters, which can be used to bypass header matching rules.
897
742
  */
898
- strict?:
899
- | boolean
900
- | undefined;
743
+ strict?: boolean | undefined;
901
744
  /**
902
745
  * IgnoreEmpty specifies that the validation rules of this field should be
903
746
  * evaluated only if the field is not empty
@@ -908,56 +751,40 @@ export interface StringRules {
908
751
  /** BytesRules describe the constraints applied to `bytes` values */
909
752
  export interface BytesRules {
910
753
  /** Const specifies that this field must be exactly the specified value */
911
- const?:
912
- | Uint8Array
913
- | undefined;
754
+ const?: Uint8Array | undefined;
914
755
  /** Len specifies that this field must be the specified number of bytes */
915
- len?:
916
- | number
917
- | undefined;
756
+ len?: number | undefined;
918
757
  /**
919
758
  * MinLen specifies that this field must be the specified number of bytes
920
759
  * at a minimum
921
760
  */
922
- minLen?:
923
- | number
924
- | undefined;
761
+ minLen?: number | undefined;
925
762
  /**
926
763
  * MaxLen specifies that this field must be the specified number of bytes
927
764
  * at a maximum
928
765
  */
929
- maxLen?:
930
- | number
931
- | undefined;
766
+ maxLen?: number | undefined;
932
767
  /**
933
768
  * Pattern specifes that this field must match against the specified
934
769
  * regular expression (RE2 syntax). The included expression should elide
935
770
  * any delimiters.
936
771
  */
937
- pattern?:
938
- | string
939
- | undefined;
772
+ pattern?: string | undefined;
940
773
  /**
941
774
  * Prefix specifies that this field must have the specified bytes at the
942
775
  * beginning of the string.
943
776
  */
944
- prefix?:
945
- | Uint8Array
946
- | undefined;
777
+ prefix?: Uint8Array | undefined;
947
778
  /**
948
779
  * Suffix specifies that this field must have the specified bytes at the
949
780
  * end of the string.
950
781
  */
951
- suffix?:
952
- | Uint8Array
953
- | undefined;
782
+ suffix?: Uint8Array | undefined;
954
783
  /**
955
784
  * Contains specifies that this field must have the specified bytes
956
785
  * anywhere in the string.
957
786
  */
958
- contains?:
959
- | Uint8Array
960
- | undefined;
787
+ contains?: Uint8Array | undefined;
961
788
  /**
962
789
  * In specifies that this field must be equal to one of the specified
963
790
  * values
@@ -978,19 +805,17 @@ export interface BytesRules {
978
805
  * Ip specifies that the field must be a valid IP (v4 or v6) address in
979
806
  * byte format
980
807
  */
981
- { $case: "ip"; ip: boolean }
982
- | //
808
+ { $case: "ip"; ip: boolean } //
983
809
  /**
984
810
  * Ipv4 specifies that the field must be a valid IPv4 address in byte
985
811
  * format
986
812
  */
987
- { $case: "ipv4"; ipv4: boolean }
988
- | //
813
+ | { $case: "ipv4"; ipv4: boolean } //
989
814
  /**
990
815
  * Ipv6 specifies that the field must be a valid IPv6 address in byte
991
816
  * format
992
817
  */
993
- { $case: "ipv6"; ipv6: boolean }
818
+ | { $case: "ipv6"; ipv6: boolean }
994
819
  | undefined;
995
820
  /**
996
821
  * IgnoreEmpty specifies that the validation rules of this field should be
@@ -1002,16 +827,12 @@ export interface BytesRules {
1002
827
  /** EnumRules describe the constraints applied to enum values */
1003
828
  export interface EnumRules {
1004
829
  /** Const specifies that this field must be exactly the specified value */
1005
- const?:
1006
- | number
1007
- | undefined;
830
+ const?: number | undefined;
1008
831
  /**
1009
832
  * DefinedOnly specifies that this field must be only one of the defined
1010
833
  * values for this enum, failing on any undefined value.
1011
834
  */
1012
- definedOnly?:
1013
- | boolean
1014
- | undefined;
835
+ definedOnly?: boolean | undefined;
1015
836
  /**
1016
837
  * In specifies that this field must be equal to one of the specified
1017
838
  * values
@@ -1033,9 +854,7 @@ export interface MessageRules {
1033
854
  * Skip specifies that the validation rules of this field should not be
1034
855
  * evaluated
1035
856
  */
1036
- skip?:
1037
- | boolean
1038
- | undefined;
857
+ skip?: boolean | undefined;
1039
858
  /** Required specifies that this field must be set */
1040
859
  required?: boolean | undefined;
1041
860
  }
@@ -1046,32 +865,24 @@ export interface RepeatedRules {
1046
865
  * MinItems specifies that this field must have the specified number of
1047
866
  * items at a minimum
1048
867
  */
1049
- minItems?:
1050
- | number
1051
- | undefined;
868
+ minItems?: number | undefined;
1052
869
  /**
1053
870
  * MaxItems specifies that this field must have the specified number of
1054
871
  * items at a maximum
1055
872
  */
1056
- maxItems?:
1057
- | number
1058
- | undefined;
873
+ maxItems?: number | undefined;
1059
874
  /**
1060
875
  * Unique specifies that all elements in this field must be unique. This
1061
876
  * contraint is only applicable to scalar and enum types (messages are not
1062
877
  * supported).
1063
878
  */
1064
- unique?:
1065
- | boolean
1066
- | undefined;
879
+ unique?: boolean | undefined;
1067
880
  /**
1068
881
  * Items specifies the contraints to be applied to each item in the field.
1069
882
  * Repeated message fields will still execute validation against each item
1070
883
  * unless skip is specified here.
1071
884
  */
1072
- items?:
1073
- | FieldRules
1074
- | undefined;
885
+ items?: FieldRules | undefined;
1075
886
  /**
1076
887
  * IgnoreEmpty specifies that the validation rules of this field should be
1077
888
  * evaluated only if the field is not empty
@@ -1085,35 +896,25 @@ export interface MapRules {
1085
896
  * MinPairs specifies that this field must have the specified number of
1086
897
  * KVs at a minimum
1087
898
  */
1088
- minPairs?:
1089
- | number
1090
- | undefined;
899
+ minPairs?: number | undefined;
1091
900
  /**
1092
901
  * MaxPairs specifies that this field must have the specified number of
1093
902
  * KVs at a maximum
1094
903
  */
1095
- maxPairs?:
1096
- | number
1097
- | undefined;
904
+ maxPairs?: number | undefined;
1098
905
  /**
1099
906
  * NoSparse specifies values in this field cannot be unset. This only
1100
907
  * applies to map's with message value types.
1101
908
  */
1102
- noSparse?:
1103
- | boolean
1104
- | undefined;
909
+ noSparse?: boolean | undefined;
1105
910
  /** Keys specifies the constraints to be applied to each key in the field. */
1106
- keys?:
1107
- | FieldRules
1108
- | undefined;
911
+ keys?: FieldRules | undefined;
1109
912
  /**
1110
913
  * Values specifies the constraints to be applied to the value of each key
1111
914
  * in the field. Message values will still have their validations evaluated
1112
915
  * unless skip is specified here.
1113
916
  */
1114
- values?:
1115
- | FieldRules
1116
- | undefined;
917
+ values?: FieldRules | undefined;
1117
918
  /**
1118
919
  * IgnoreEmpty specifies that the validation rules of this field should be
1119
920
  * evaluated only if the field is not empty
@@ -1127,9 +928,7 @@ export interface MapRules {
1127
928
  */
1128
929
  export interface AnyRules {
1129
930
  /** Required specifies that this field must be set */
1130
- required?:
1131
- | boolean
1132
- | undefined;
931
+ required?: boolean | undefined;
1133
932
  /**
1134
933
  * In specifies that this field's `type_url` must be equal to one of the
1135
934
  * specified values.
@@ -1148,41 +947,29 @@ export interface AnyRules {
1148
947
  */
1149
948
  export interface DurationRules {
1150
949
  /** Required specifies that this field must be set */
1151
- required?:
1152
- | boolean
1153
- | undefined;
950
+ required?: boolean | undefined;
1154
951
  /** Const specifies that this field must be exactly the specified value */
1155
- const?:
1156
- | Duration
1157
- | undefined;
952
+ const?: Duration | undefined;
1158
953
  /**
1159
954
  * Lt specifies that this field must be less than the specified value,
1160
955
  * exclusive
1161
956
  */
1162
- lt?:
1163
- | Duration
1164
- | undefined;
957
+ lt?: Duration | undefined;
1165
958
  /**
1166
959
  * Lt specifies that this field must be less than the specified value,
1167
960
  * inclusive
1168
961
  */
1169
- lte?:
1170
- | Duration
1171
- | undefined;
962
+ lte?: Duration | undefined;
1172
963
  /**
1173
964
  * Gt specifies that this field must be greater than the specified value,
1174
965
  * exclusive
1175
966
  */
1176
- gt?:
1177
- | Duration
1178
- | undefined;
967
+ gt?: Duration | undefined;
1179
968
  /**
1180
969
  * Gte specifies that this field must be greater than the specified value,
1181
970
  * inclusive
1182
971
  */
1183
- gte?:
1184
- | Duration
1185
- | undefined;
972
+ gte?: Duration | undefined;
1186
973
  /**
1187
974
  * In specifies that this field must be equal to one of the specified
1188
975
  * values
@@ -1201,55 +988,39 @@ export interface DurationRules {
1201
988
  */
1202
989
  export interface TimestampRules {
1203
990
  /** Required specifies that this field must be set */
1204
- required?:
1205
- | boolean
1206
- | undefined;
991
+ required?: boolean | undefined;
1207
992
  /** Const specifies that this field must be exactly the specified value */
1208
- const?:
1209
- | Date
1210
- | undefined;
993
+ const?: Date | undefined;
1211
994
  /**
1212
995
  * Lt specifies that this field must be less than the specified value,
1213
996
  * exclusive
1214
997
  */
1215
- lt?:
1216
- | Date
1217
- | undefined;
998
+ lt?: Date | undefined;
1218
999
  /**
1219
1000
  * Lte specifies that this field must be less than the specified value,
1220
1001
  * inclusive
1221
1002
  */
1222
- lte?:
1223
- | Date
1224
- | undefined;
1003
+ lte?: Date | undefined;
1225
1004
  /**
1226
1005
  * Gt specifies that this field must be greater than the specified value,
1227
1006
  * exclusive
1228
1007
  */
1229
- gt?:
1230
- | Date
1231
- | undefined;
1008
+ gt?: Date | undefined;
1232
1009
  /**
1233
1010
  * Gte specifies that this field must be greater than the specified value,
1234
1011
  * inclusive
1235
1012
  */
1236
- gte?:
1237
- | Date
1238
- | undefined;
1013
+ gte?: Date | undefined;
1239
1014
  /**
1240
1015
  * LtNow specifies that this must be less than the current time. LtNow
1241
1016
  * can only be used with the Within rule.
1242
1017
  */
1243
- ltNow?:
1244
- | boolean
1245
- | undefined;
1018
+ ltNow?: boolean | undefined;
1246
1019
  /**
1247
1020
  * GtNow specifies that this must be greater than the current time. GtNow
1248
1021
  * can only be used with the Within rule.
1249
1022
  */
1250
- gtNow?:
1251
- | boolean
1252
- | undefined;
1023
+ gtNow?: boolean | undefined;
1253
1024
  /**
1254
1025
  * Within specifies that this field must be within this duration of the
1255
1026
  * current time. This constraint can be used alone or with the LtNow and
@@ -1263,7 +1034,10 @@ function createBaseFieldRules(): FieldRules {
1263
1034
  }
1264
1035
 
1265
1036
  export const FieldRules: MessageFns<FieldRules> = {
1266
- encode(message: FieldRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1037
+ encode(
1038
+ message: FieldRules,
1039
+ writer: BinaryWriter = new BinaryWriter(),
1040
+ ): BinaryWriter {
1267
1041
  if (message.message !== undefined) {
1268
1042
  MessageRules.encode(message.message, writer.uint32(138).fork()).join();
1269
1043
  }
@@ -1272,7 +1046,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1272
1046
  FloatRules.encode(message.type.float, writer.uint32(10).fork()).join();
1273
1047
  break;
1274
1048
  case "double":
1275
- DoubleRules.encode(message.type.double, writer.uint32(18).fork()).join();
1049
+ DoubleRules.encode(
1050
+ message.type.double,
1051
+ writer.uint32(18).fork(),
1052
+ ).join();
1276
1053
  break;
1277
1054
  case "int32":
1278
1055
  Int32Rules.encode(message.type.int32, writer.uint32(26).fork()).join();
@@ -1281,34 +1058,61 @@ export const FieldRules: MessageFns<FieldRules> = {
1281
1058
  Int64Rules.encode(message.type.int64, writer.uint32(34).fork()).join();
1282
1059
  break;
1283
1060
  case "uint32":
1284
- UInt32Rules.encode(message.type.uint32, writer.uint32(42).fork()).join();
1061
+ UInt32Rules.encode(
1062
+ message.type.uint32,
1063
+ writer.uint32(42).fork(),
1064
+ ).join();
1285
1065
  break;
1286
1066
  case "uint64":
1287
- UInt64Rules.encode(message.type.uint64, writer.uint32(50).fork()).join();
1067
+ UInt64Rules.encode(
1068
+ message.type.uint64,
1069
+ writer.uint32(50).fork(),
1070
+ ).join();
1288
1071
  break;
1289
1072
  case "sint32":
1290
- SInt32Rules.encode(message.type.sint32, writer.uint32(58).fork()).join();
1073
+ SInt32Rules.encode(
1074
+ message.type.sint32,
1075
+ writer.uint32(58).fork(),
1076
+ ).join();
1291
1077
  break;
1292
1078
  case "sint64":
1293
- SInt64Rules.encode(message.type.sint64, writer.uint32(66).fork()).join();
1079
+ SInt64Rules.encode(
1080
+ message.type.sint64,
1081
+ writer.uint32(66).fork(),
1082
+ ).join();
1294
1083
  break;
1295
1084
  case "fixed32":
1296
- Fixed32Rules.encode(message.type.fixed32, writer.uint32(74).fork()).join();
1085
+ Fixed32Rules.encode(
1086
+ message.type.fixed32,
1087
+ writer.uint32(74).fork(),
1088
+ ).join();
1297
1089
  break;
1298
1090
  case "fixed64":
1299
- Fixed64Rules.encode(message.type.fixed64, writer.uint32(82).fork()).join();
1091
+ Fixed64Rules.encode(
1092
+ message.type.fixed64,
1093
+ writer.uint32(82).fork(),
1094
+ ).join();
1300
1095
  break;
1301
1096
  case "sfixed32":
1302
- SFixed32Rules.encode(message.type.sfixed32, writer.uint32(90).fork()).join();
1097
+ SFixed32Rules.encode(
1098
+ message.type.sfixed32,
1099
+ writer.uint32(90).fork(),
1100
+ ).join();
1303
1101
  break;
1304
1102
  case "sfixed64":
1305
- SFixed64Rules.encode(message.type.sfixed64, writer.uint32(98).fork()).join();
1103
+ SFixed64Rules.encode(
1104
+ message.type.sfixed64,
1105
+ writer.uint32(98).fork(),
1106
+ ).join();
1306
1107
  break;
1307
1108
  case "bool":
1308
1109
  BoolRules.encode(message.type.bool, writer.uint32(106).fork()).join();
1309
1110
  break;
1310
1111
  case "string":
1311
- StringRules.encode(message.type.string, writer.uint32(114).fork()).join();
1112
+ StringRules.encode(
1113
+ message.type.string,
1114
+ writer.uint32(114).fork(),
1115
+ ).join();
1312
1116
  break;
1313
1117
  case "bytes":
1314
1118
  BytesRules.encode(message.type.bytes, writer.uint32(122).fork()).join();
@@ -1317,7 +1121,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1317
1121
  EnumRules.encode(message.type.enum, writer.uint32(130).fork()).join();
1318
1122
  break;
1319
1123
  case "repeated":
1320
- RepeatedRules.encode(message.type.repeated, writer.uint32(146).fork()).join();
1124
+ RepeatedRules.encode(
1125
+ message.type.repeated,
1126
+ writer.uint32(146).fork(),
1127
+ ).join();
1321
1128
  break;
1322
1129
  case "map":
1323
1130
  MapRules.encode(message.type.map, writer.uint32(154).fork()).join();
@@ -1326,17 +1133,24 @@ export const FieldRules: MessageFns<FieldRules> = {
1326
1133
  AnyRules.encode(message.type.any, writer.uint32(162).fork()).join();
1327
1134
  break;
1328
1135
  case "duration":
1329
- DurationRules.encode(message.type.duration, writer.uint32(170).fork()).join();
1136
+ DurationRules.encode(
1137
+ message.type.duration,
1138
+ writer.uint32(170).fork(),
1139
+ ).join();
1330
1140
  break;
1331
1141
  case "timestamp":
1332
- TimestampRules.encode(message.type.timestamp, writer.uint32(178).fork()).join();
1142
+ TimestampRules.encode(
1143
+ message.type.timestamp,
1144
+ writer.uint32(178).fork(),
1145
+ ).join();
1333
1146
  break;
1334
1147
  }
1335
1148
  return writer;
1336
1149
  },
1337
1150
 
1338
1151
  decode(input: BinaryReader | Uint8Array, length?: number): FieldRules {
1339
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1152
+ const reader =
1153
+ input instanceof BinaryReader ? input : new BinaryReader(input);
1340
1154
  let end = length === undefined ? reader.len : reader.pos + length;
1341
1155
  const message = createBaseFieldRules();
1342
1156
  while (reader.pos < end) {
@@ -1355,7 +1169,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1355
1169
  break;
1356
1170
  }
1357
1171
 
1358
- message.type = { $case: "float", float: FloatRules.decode(reader, reader.uint32()) };
1172
+ message.type = {
1173
+ $case: "float",
1174
+ float: FloatRules.decode(reader, reader.uint32()),
1175
+ };
1359
1176
  continue;
1360
1177
  }
1361
1178
  case 2: {
@@ -1363,7 +1180,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1363
1180
  break;
1364
1181
  }
1365
1182
 
1366
- message.type = { $case: "double", double: DoubleRules.decode(reader, reader.uint32()) };
1183
+ message.type = {
1184
+ $case: "double",
1185
+ double: DoubleRules.decode(reader, reader.uint32()),
1186
+ };
1367
1187
  continue;
1368
1188
  }
1369
1189
  case 3: {
@@ -1371,7 +1191,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1371
1191
  break;
1372
1192
  }
1373
1193
 
1374
- message.type = { $case: "int32", int32: Int32Rules.decode(reader, reader.uint32()) };
1194
+ message.type = {
1195
+ $case: "int32",
1196
+ int32: Int32Rules.decode(reader, reader.uint32()),
1197
+ };
1375
1198
  continue;
1376
1199
  }
1377
1200
  case 4: {
@@ -1379,7 +1202,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1379
1202
  break;
1380
1203
  }
1381
1204
 
1382
- message.type = { $case: "int64", int64: Int64Rules.decode(reader, reader.uint32()) };
1205
+ message.type = {
1206
+ $case: "int64",
1207
+ int64: Int64Rules.decode(reader, reader.uint32()),
1208
+ };
1383
1209
  continue;
1384
1210
  }
1385
1211
  case 5: {
@@ -1387,7 +1213,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1387
1213
  break;
1388
1214
  }
1389
1215
 
1390
- message.type = { $case: "uint32", uint32: UInt32Rules.decode(reader, reader.uint32()) };
1216
+ message.type = {
1217
+ $case: "uint32",
1218
+ uint32: UInt32Rules.decode(reader, reader.uint32()),
1219
+ };
1391
1220
  continue;
1392
1221
  }
1393
1222
  case 6: {
@@ -1395,7 +1224,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1395
1224
  break;
1396
1225
  }
1397
1226
 
1398
- message.type = { $case: "uint64", uint64: UInt64Rules.decode(reader, reader.uint32()) };
1227
+ message.type = {
1228
+ $case: "uint64",
1229
+ uint64: UInt64Rules.decode(reader, reader.uint32()),
1230
+ };
1399
1231
  continue;
1400
1232
  }
1401
1233
  case 7: {
@@ -1403,7 +1235,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1403
1235
  break;
1404
1236
  }
1405
1237
 
1406
- message.type = { $case: "sint32", sint32: SInt32Rules.decode(reader, reader.uint32()) };
1238
+ message.type = {
1239
+ $case: "sint32",
1240
+ sint32: SInt32Rules.decode(reader, reader.uint32()),
1241
+ };
1407
1242
  continue;
1408
1243
  }
1409
1244
  case 8: {
@@ -1411,7 +1246,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1411
1246
  break;
1412
1247
  }
1413
1248
 
1414
- message.type = { $case: "sint64", sint64: SInt64Rules.decode(reader, reader.uint32()) };
1249
+ message.type = {
1250
+ $case: "sint64",
1251
+ sint64: SInt64Rules.decode(reader, reader.uint32()),
1252
+ };
1415
1253
  continue;
1416
1254
  }
1417
1255
  case 9: {
@@ -1419,7 +1257,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1419
1257
  break;
1420
1258
  }
1421
1259
 
1422
- message.type = { $case: "fixed32", fixed32: Fixed32Rules.decode(reader, reader.uint32()) };
1260
+ message.type = {
1261
+ $case: "fixed32",
1262
+ fixed32: Fixed32Rules.decode(reader, reader.uint32()),
1263
+ };
1423
1264
  continue;
1424
1265
  }
1425
1266
  case 10: {
@@ -1427,7 +1268,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1427
1268
  break;
1428
1269
  }
1429
1270
 
1430
- message.type = { $case: "fixed64", fixed64: Fixed64Rules.decode(reader, reader.uint32()) };
1271
+ message.type = {
1272
+ $case: "fixed64",
1273
+ fixed64: Fixed64Rules.decode(reader, reader.uint32()),
1274
+ };
1431
1275
  continue;
1432
1276
  }
1433
1277
  case 11: {
@@ -1435,7 +1279,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1435
1279
  break;
1436
1280
  }
1437
1281
 
1438
- message.type = { $case: "sfixed32", sfixed32: SFixed32Rules.decode(reader, reader.uint32()) };
1282
+ message.type = {
1283
+ $case: "sfixed32",
1284
+ sfixed32: SFixed32Rules.decode(reader, reader.uint32()),
1285
+ };
1439
1286
  continue;
1440
1287
  }
1441
1288
  case 12: {
@@ -1443,7 +1290,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1443
1290
  break;
1444
1291
  }
1445
1292
 
1446
- message.type = { $case: "sfixed64", sfixed64: SFixed64Rules.decode(reader, reader.uint32()) };
1293
+ message.type = {
1294
+ $case: "sfixed64",
1295
+ sfixed64: SFixed64Rules.decode(reader, reader.uint32()),
1296
+ };
1447
1297
  continue;
1448
1298
  }
1449
1299
  case 13: {
@@ -1451,7 +1301,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1451
1301
  break;
1452
1302
  }
1453
1303
 
1454
- message.type = { $case: "bool", bool: BoolRules.decode(reader, reader.uint32()) };
1304
+ message.type = {
1305
+ $case: "bool",
1306
+ bool: BoolRules.decode(reader, reader.uint32()),
1307
+ };
1455
1308
  continue;
1456
1309
  }
1457
1310
  case 14: {
@@ -1459,7 +1312,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1459
1312
  break;
1460
1313
  }
1461
1314
 
1462
- message.type = { $case: "string", string: StringRules.decode(reader, reader.uint32()) };
1315
+ message.type = {
1316
+ $case: "string",
1317
+ string: StringRules.decode(reader, reader.uint32()),
1318
+ };
1463
1319
  continue;
1464
1320
  }
1465
1321
  case 15: {
@@ -1467,7 +1323,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1467
1323
  break;
1468
1324
  }
1469
1325
 
1470
- message.type = { $case: "bytes", bytes: BytesRules.decode(reader, reader.uint32()) };
1326
+ message.type = {
1327
+ $case: "bytes",
1328
+ bytes: BytesRules.decode(reader, reader.uint32()),
1329
+ };
1471
1330
  continue;
1472
1331
  }
1473
1332
  case 16: {
@@ -1475,7 +1334,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1475
1334
  break;
1476
1335
  }
1477
1336
 
1478
- message.type = { $case: "enum", enum: EnumRules.decode(reader, reader.uint32()) };
1337
+ message.type = {
1338
+ $case: "enum",
1339
+ enum: EnumRules.decode(reader, reader.uint32()),
1340
+ };
1479
1341
  continue;
1480
1342
  }
1481
1343
  case 18: {
@@ -1483,7 +1345,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1483
1345
  break;
1484
1346
  }
1485
1347
 
1486
- message.type = { $case: "repeated", repeated: RepeatedRules.decode(reader, reader.uint32()) };
1348
+ message.type = {
1349
+ $case: "repeated",
1350
+ repeated: RepeatedRules.decode(reader, reader.uint32()),
1351
+ };
1487
1352
  continue;
1488
1353
  }
1489
1354
  case 19: {
@@ -1491,7 +1356,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1491
1356
  break;
1492
1357
  }
1493
1358
 
1494
- message.type = { $case: "map", map: MapRules.decode(reader, reader.uint32()) };
1359
+ message.type = {
1360
+ $case: "map",
1361
+ map: MapRules.decode(reader, reader.uint32()),
1362
+ };
1495
1363
  continue;
1496
1364
  }
1497
1365
  case 20: {
@@ -1499,7 +1367,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1499
1367
  break;
1500
1368
  }
1501
1369
 
1502
- message.type = { $case: "any", any: AnyRules.decode(reader, reader.uint32()) };
1370
+ message.type = {
1371
+ $case: "any",
1372
+ any: AnyRules.decode(reader, reader.uint32()),
1373
+ };
1503
1374
  continue;
1504
1375
  }
1505
1376
  case 21: {
@@ -1507,7 +1378,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1507
1378
  break;
1508
1379
  }
1509
1380
 
1510
- message.type = { $case: "duration", duration: DurationRules.decode(reader, reader.uint32()) };
1381
+ message.type = {
1382
+ $case: "duration",
1383
+ duration: DurationRules.decode(reader, reader.uint32()),
1384
+ };
1511
1385
  continue;
1512
1386
  }
1513
1387
  case 22: {
@@ -1515,7 +1389,10 @@ export const FieldRules: MessageFns<FieldRules> = {
1515
1389
  break;
1516
1390
  }
1517
1391
 
1518
- message.type = { $case: "timestamp", timestamp: TimestampRules.decode(reader, reader.uint32()) };
1392
+ message.type = {
1393
+ $case: "timestamp",
1394
+ timestamp: TimestampRules.decode(reader, reader.uint32()),
1395
+ };
1519
1396
  continue;
1520
1397
  }
1521
1398
  }
@@ -1529,50 +1406,123 @@ export const FieldRules: MessageFns<FieldRules> = {
1529
1406
 
1530
1407
  fromJSON(object: any): FieldRules {
1531
1408
  return {
1532
- message: isSet(object.message) ? MessageRules.fromJSON(object.message) : undefined,
1409
+ message: isSet(object.message)
1410
+ ? MessageRules.fromJSON(object.message)
1411
+ : undefined,
1533
1412
  type: isSet(object.float)
1534
1413
  ? { $case: "float", float: FloatRules.fromJSON(object.float) }
1535
1414
  : isSet(object.double)
1536
- ? { $case: "double", double: DoubleRules.fromJSON(object.double) }
1537
- : isSet(object.int32)
1538
- ? { $case: "int32", int32: Int32Rules.fromJSON(object.int32) }
1539
- : isSet(object.int64)
1540
- ? { $case: "int64", int64: Int64Rules.fromJSON(object.int64) }
1541
- : isSet(object.uint32)
1542
- ? { $case: "uint32", uint32: UInt32Rules.fromJSON(object.uint32) }
1543
- : isSet(object.uint64)
1544
- ? { $case: "uint64", uint64: UInt64Rules.fromJSON(object.uint64) }
1545
- : isSet(object.sint32)
1546
- ? { $case: "sint32", sint32: SInt32Rules.fromJSON(object.sint32) }
1547
- : isSet(object.sint64)
1548
- ? { $case: "sint64", sint64: SInt64Rules.fromJSON(object.sint64) }
1549
- : isSet(object.fixed32)
1550
- ? { $case: "fixed32", fixed32: Fixed32Rules.fromJSON(object.fixed32) }
1551
- : isSet(object.fixed64)
1552
- ? { $case: "fixed64", fixed64: Fixed64Rules.fromJSON(object.fixed64) }
1553
- : isSet(object.sfixed32)
1554
- ? { $case: "sfixed32", sfixed32: SFixed32Rules.fromJSON(object.sfixed32) }
1555
- : isSet(object.sfixed64)
1556
- ? { $case: "sfixed64", sfixed64: SFixed64Rules.fromJSON(object.sfixed64) }
1557
- : isSet(object.bool)
1558
- ? { $case: "bool", bool: BoolRules.fromJSON(object.bool) }
1559
- : isSet(object.string)
1560
- ? { $case: "string", string: StringRules.fromJSON(object.string) }
1561
- : isSet(object.bytes)
1562
- ? { $case: "bytes", bytes: BytesRules.fromJSON(object.bytes) }
1563
- : isSet(object.enum)
1564
- ? { $case: "enum", enum: EnumRules.fromJSON(object.enum) }
1565
- : isSet(object.repeated)
1566
- ? { $case: "repeated", repeated: RepeatedRules.fromJSON(object.repeated) }
1567
- : isSet(object.map)
1568
- ? { $case: "map", map: MapRules.fromJSON(object.map) }
1569
- : isSet(object.any)
1570
- ? { $case: "any", any: AnyRules.fromJSON(object.any) }
1571
- : isSet(object.duration)
1572
- ? { $case: "duration", duration: DurationRules.fromJSON(object.duration) }
1573
- : isSet(object.timestamp)
1574
- ? { $case: "timestamp", timestamp: TimestampRules.fromJSON(object.timestamp) }
1575
- : undefined,
1415
+ ? { $case: "double", double: DoubleRules.fromJSON(object.double) }
1416
+ : isSet(object.int32)
1417
+ ? { $case: "int32", int32: Int32Rules.fromJSON(object.int32) }
1418
+ : isSet(object.int64)
1419
+ ? { $case: "int64", int64: Int64Rules.fromJSON(object.int64) }
1420
+ : isSet(object.uint32)
1421
+ ? {
1422
+ $case: "uint32",
1423
+ uint32: UInt32Rules.fromJSON(object.uint32),
1424
+ }
1425
+ : isSet(object.uint64)
1426
+ ? {
1427
+ $case: "uint64",
1428
+ uint64: UInt64Rules.fromJSON(object.uint64),
1429
+ }
1430
+ : isSet(object.sint32)
1431
+ ? {
1432
+ $case: "sint32",
1433
+ sint32: SInt32Rules.fromJSON(object.sint32),
1434
+ }
1435
+ : isSet(object.sint64)
1436
+ ? {
1437
+ $case: "sint64",
1438
+ sint64: SInt64Rules.fromJSON(object.sint64),
1439
+ }
1440
+ : isSet(object.fixed32)
1441
+ ? {
1442
+ $case: "fixed32",
1443
+ fixed32: Fixed32Rules.fromJSON(object.fixed32),
1444
+ }
1445
+ : isSet(object.fixed64)
1446
+ ? {
1447
+ $case: "fixed64",
1448
+ fixed64: Fixed64Rules.fromJSON(object.fixed64),
1449
+ }
1450
+ : isSet(object.sfixed32)
1451
+ ? {
1452
+ $case: "sfixed32",
1453
+ sfixed32: SFixed32Rules.fromJSON(
1454
+ object.sfixed32,
1455
+ ),
1456
+ }
1457
+ : isSet(object.sfixed64)
1458
+ ? {
1459
+ $case: "sfixed64",
1460
+ sfixed64: SFixed64Rules.fromJSON(
1461
+ object.sfixed64,
1462
+ ),
1463
+ }
1464
+ : isSet(object.bool)
1465
+ ? {
1466
+ $case: "bool",
1467
+ bool: BoolRules.fromJSON(object.bool),
1468
+ }
1469
+ : isSet(object.string)
1470
+ ? {
1471
+ $case: "string",
1472
+ string: StringRules.fromJSON(
1473
+ object.string,
1474
+ ),
1475
+ }
1476
+ : isSet(object.bytes)
1477
+ ? {
1478
+ $case: "bytes",
1479
+ bytes: BytesRules.fromJSON(
1480
+ object.bytes,
1481
+ ),
1482
+ }
1483
+ : isSet(object.enum)
1484
+ ? {
1485
+ $case: "enum",
1486
+ enum: EnumRules.fromJSON(object.enum),
1487
+ }
1488
+ : isSet(object.repeated)
1489
+ ? {
1490
+ $case: "repeated",
1491
+ repeated: RepeatedRules.fromJSON(
1492
+ object.repeated,
1493
+ ),
1494
+ }
1495
+ : isSet(object.map)
1496
+ ? {
1497
+ $case: "map",
1498
+ map: MapRules.fromJSON(
1499
+ object.map,
1500
+ ),
1501
+ }
1502
+ : isSet(object.any)
1503
+ ? {
1504
+ $case: "any",
1505
+ any: AnyRules.fromJSON(
1506
+ object.any,
1507
+ ),
1508
+ }
1509
+ : isSet(object.duration)
1510
+ ? {
1511
+ $case: "duration",
1512
+ duration:
1513
+ DurationRules.fromJSON(
1514
+ object.duration,
1515
+ ),
1516
+ }
1517
+ : isSet(object.timestamp)
1518
+ ? {
1519
+ $case: "timestamp",
1520
+ timestamp:
1521
+ TimestampRules.fromJSON(
1522
+ object.timestamp,
1523
+ ),
1524
+ }
1525
+ : undefined,
1576
1526
  };
1577
1527
  },
1578
1528
 
@@ -1632,133 +1582,218 @@ export const FieldRules: MessageFns<FieldRules> = {
1632
1582
  },
1633
1583
  fromPartial(object: DeepPartial<FieldRules>): FieldRules {
1634
1584
  const message = createBaseFieldRules();
1635
- message.message = (object.message !== undefined && object.message !== null)
1636
- ? MessageRules.fromPartial(object.message)
1637
- : undefined;
1585
+ message.message =
1586
+ object.message !== undefined && object.message !== null
1587
+ ? MessageRules.fromPartial(object.message)
1588
+ : undefined;
1638
1589
  switch (object.type?.$case) {
1639
1590
  case "float": {
1640
1591
  if (object.type?.float !== undefined && object.type?.float !== null) {
1641
- message.type = { $case: "float", float: FloatRules.fromPartial(object.type.float) };
1592
+ message.type = {
1593
+ $case: "float",
1594
+ float: FloatRules.fromPartial(object.type.float),
1595
+ };
1642
1596
  }
1643
1597
  break;
1644
1598
  }
1645
1599
  case "double": {
1646
1600
  if (object.type?.double !== undefined && object.type?.double !== null) {
1647
- message.type = { $case: "double", double: DoubleRules.fromPartial(object.type.double) };
1601
+ message.type = {
1602
+ $case: "double",
1603
+ double: DoubleRules.fromPartial(object.type.double),
1604
+ };
1648
1605
  }
1649
1606
  break;
1650
1607
  }
1651
1608
  case "int32": {
1652
1609
  if (object.type?.int32 !== undefined && object.type?.int32 !== null) {
1653
- message.type = { $case: "int32", int32: Int32Rules.fromPartial(object.type.int32) };
1610
+ message.type = {
1611
+ $case: "int32",
1612
+ int32: Int32Rules.fromPartial(object.type.int32),
1613
+ };
1654
1614
  }
1655
1615
  break;
1656
1616
  }
1657
1617
  case "int64": {
1658
1618
  if (object.type?.int64 !== undefined && object.type?.int64 !== null) {
1659
- message.type = { $case: "int64", int64: Int64Rules.fromPartial(object.type.int64) };
1619
+ message.type = {
1620
+ $case: "int64",
1621
+ int64: Int64Rules.fromPartial(object.type.int64),
1622
+ };
1660
1623
  }
1661
1624
  break;
1662
1625
  }
1663
1626
  case "uint32": {
1664
1627
  if (object.type?.uint32 !== undefined && object.type?.uint32 !== null) {
1665
- message.type = { $case: "uint32", uint32: UInt32Rules.fromPartial(object.type.uint32) };
1628
+ message.type = {
1629
+ $case: "uint32",
1630
+ uint32: UInt32Rules.fromPartial(object.type.uint32),
1631
+ };
1666
1632
  }
1667
1633
  break;
1668
1634
  }
1669
1635
  case "uint64": {
1670
1636
  if (object.type?.uint64 !== undefined && object.type?.uint64 !== null) {
1671
- message.type = { $case: "uint64", uint64: UInt64Rules.fromPartial(object.type.uint64) };
1637
+ message.type = {
1638
+ $case: "uint64",
1639
+ uint64: UInt64Rules.fromPartial(object.type.uint64),
1640
+ };
1672
1641
  }
1673
1642
  break;
1674
1643
  }
1675
1644
  case "sint32": {
1676
1645
  if (object.type?.sint32 !== undefined && object.type?.sint32 !== null) {
1677
- message.type = { $case: "sint32", sint32: SInt32Rules.fromPartial(object.type.sint32) };
1646
+ message.type = {
1647
+ $case: "sint32",
1648
+ sint32: SInt32Rules.fromPartial(object.type.sint32),
1649
+ };
1678
1650
  }
1679
1651
  break;
1680
1652
  }
1681
1653
  case "sint64": {
1682
1654
  if (object.type?.sint64 !== undefined && object.type?.sint64 !== null) {
1683
- message.type = { $case: "sint64", sint64: SInt64Rules.fromPartial(object.type.sint64) };
1655
+ message.type = {
1656
+ $case: "sint64",
1657
+ sint64: SInt64Rules.fromPartial(object.type.sint64),
1658
+ };
1684
1659
  }
1685
1660
  break;
1686
1661
  }
1687
1662
  case "fixed32": {
1688
- if (object.type?.fixed32 !== undefined && object.type?.fixed32 !== null) {
1689
- message.type = { $case: "fixed32", fixed32: Fixed32Rules.fromPartial(object.type.fixed32) };
1663
+ if (
1664
+ object.type?.fixed32 !== undefined &&
1665
+ object.type?.fixed32 !== null
1666
+ ) {
1667
+ message.type = {
1668
+ $case: "fixed32",
1669
+ fixed32: Fixed32Rules.fromPartial(object.type.fixed32),
1670
+ };
1690
1671
  }
1691
1672
  break;
1692
1673
  }
1693
1674
  case "fixed64": {
1694
- if (object.type?.fixed64 !== undefined && object.type?.fixed64 !== null) {
1695
- message.type = { $case: "fixed64", fixed64: Fixed64Rules.fromPartial(object.type.fixed64) };
1675
+ if (
1676
+ object.type?.fixed64 !== undefined &&
1677
+ object.type?.fixed64 !== null
1678
+ ) {
1679
+ message.type = {
1680
+ $case: "fixed64",
1681
+ fixed64: Fixed64Rules.fromPartial(object.type.fixed64),
1682
+ };
1696
1683
  }
1697
1684
  break;
1698
1685
  }
1699
1686
  case "sfixed32": {
1700
- if (object.type?.sfixed32 !== undefined && object.type?.sfixed32 !== null) {
1701
- message.type = { $case: "sfixed32", sfixed32: SFixed32Rules.fromPartial(object.type.sfixed32) };
1687
+ if (
1688
+ object.type?.sfixed32 !== undefined &&
1689
+ object.type?.sfixed32 !== null
1690
+ ) {
1691
+ message.type = {
1692
+ $case: "sfixed32",
1693
+ sfixed32: SFixed32Rules.fromPartial(object.type.sfixed32),
1694
+ };
1702
1695
  }
1703
1696
  break;
1704
1697
  }
1705
1698
  case "sfixed64": {
1706
- if (object.type?.sfixed64 !== undefined && object.type?.sfixed64 !== null) {
1707
- message.type = { $case: "sfixed64", sfixed64: SFixed64Rules.fromPartial(object.type.sfixed64) };
1699
+ if (
1700
+ object.type?.sfixed64 !== undefined &&
1701
+ object.type?.sfixed64 !== null
1702
+ ) {
1703
+ message.type = {
1704
+ $case: "sfixed64",
1705
+ sfixed64: SFixed64Rules.fromPartial(object.type.sfixed64),
1706
+ };
1708
1707
  }
1709
1708
  break;
1710
1709
  }
1711
1710
  case "bool": {
1712
1711
  if (object.type?.bool !== undefined && object.type?.bool !== null) {
1713
- message.type = { $case: "bool", bool: BoolRules.fromPartial(object.type.bool) };
1712
+ message.type = {
1713
+ $case: "bool",
1714
+ bool: BoolRules.fromPartial(object.type.bool),
1715
+ };
1714
1716
  }
1715
1717
  break;
1716
1718
  }
1717
1719
  case "string": {
1718
1720
  if (object.type?.string !== undefined && object.type?.string !== null) {
1719
- message.type = { $case: "string", string: StringRules.fromPartial(object.type.string) };
1721
+ message.type = {
1722
+ $case: "string",
1723
+ string: StringRules.fromPartial(object.type.string),
1724
+ };
1720
1725
  }
1721
1726
  break;
1722
1727
  }
1723
1728
  case "bytes": {
1724
1729
  if (object.type?.bytes !== undefined && object.type?.bytes !== null) {
1725
- message.type = { $case: "bytes", bytes: BytesRules.fromPartial(object.type.bytes) };
1730
+ message.type = {
1731
+ $case: "bytes",
1732
+ bytes: BytesRules.fromPartial(object.type.bytes),
1733
+ };
1726
1734
  }
1727
1735
  break;
1728
1736
  }
1729
1737
  case "enum": {
1730
1738
  if (object.type?.enum !== undefined && object.type?.enum !== null) {
1731
- message.type = { $case: "enum", enum: EnumRules.fromPartial(object.type.enum) };
1739
+ message.type = {
1740
+ $case: "enum",
1741
+ enum: EnumRules.fromPartial(object.type.enum),
1742
+ };
1732
1743
  }
1733
1744
  break;
1734
1745
  }
1735
1746
  case "repeated": {
1736
- if (object.type?.repeated !== undefined && object.type?.repeated !== null) {
1737
- message.type = { $case: "repeated", repeated: RepeatedRules.fromPartial(object.type.repeated) };
1747
+ if (
1748
+ object.type?.repeated !== undefined &&
1749
+ object.type?.repeated !== null
1750
+ ) {
1751
+ message.type = {
1752
+ $case: "repeated",
1753
+ repeated: RepeatedRules.fromPartial(object.type.repeated),
1754
+ };
1738
1755
  }
1739
1756
  break;
1740
1757
  }
1741
1758
  case "map": {
1742
1759
  if (object.type?.map !== undefined && object.type?.map !== null) {
1743
- message.type = { $case: "map", map: MapRules.fromPartial(object.type.map) };
1760
+ message.type = {
1761
+ $case: "map",
1762
+ map: MapRules.fromPartial(object.type.map),
1763
+ };
1744
1764
  }
1745
1765
  break;
1746
1766
  }
1747
1767
  case "any": {
1748
1768
  if (object.type?.any !== undefined && object.type?.any !== null) {
1749
- message.type = { $case: "any", any: AnyRules.fromPartial(object.type.any) };
1769
+ message.type = {
1770
+ $case: "any",
1771
+ any: AnyRules.fromPartial(object.type.any),
1772
+ };
1750
1773
  }
1751
1774
  break;
1752
1775
  }
1753
1776
  case "duration": {
1754
- if (object.type?.duration !== undefined && object.type?.duration !== null) {
1755
- message.type = { $case: "duration", duration: DurationRules.fromPartial(object.type.duration) };
1777
+ if (
1778
+ object.type?.duration !== undefined &&
1779
+ object.type?.duration !== null
1780
+ ) {
1781
+ message.type = {
1782
+ $case: "duration",
1783
+ duration: DurationRules.fromPartial(object.type.duration),
1784
+ };
1756
1785
  }
1757
1786
  break;
1758
1787
  }
1759
1788
  case "timestamp": {
1760
- if (object.type?.timestamp !== undefined && object.type?.timestamp !== null) {
1761
- message.type = { $case: "timestamp", timestamp: TimestampRules.fromPartial(object.type.timestamp) };
1789
+ if (
1790
+ object.type?.timestamp !== undefined &&
1791
+ object.type?.timestamp !== null
1792
+ ) {
1793
+ message.type = {
1794
+ $case: "timestamp",
1795
+ timestamp: TimestampRules.fromPartial(object.type.timestamp),
1796
+ };
1762
1797
  }
1763
1798
  break;
1764
1799
  }
@@ -1768,11 +1803,23 @@ export const FieldRules: MessageFns<FieldRules> = {
1768
1803
  };
1769
1804
 
1770
1805
  function createBaseFloatRules(): FloatRules {
1771
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
1806
+ return {
1807
+ const: 0,
1808
+ lt: 0,
1809
+ lte: 0,
1810
+ gt: 0,
1811
+ gte: 0,
1812
+ in: [],
1813
+ notIn: [],
1814
+ ignoreEmpty: false,
1815
+ };
1772
1816
  }
1773
1817
 
1774
1818
  export const FloatRules: MessageFns<FloatRules> = {
1775
- encode(message: FloatRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1819
+ encode(
1820
+ message: FloatRules,
1821
+ writer: BinaryWriter = new BinaryWriter(),
1822
+ ): BinaryWriter {
1776
1823
  if (message.const !== undefined && message.const !== 0) {
1777
1824
  writer.uint32(13).float(message.const);
1778
1825
  }
@@ -1805,7 +1852,8 @@ export const FloatRules: MessageFns<FloatRules> = {
1805
1852
  },
1806
1853
 
1807
1854
  decode(input: BinaryReader | Uint8Array, length?: number): FloatRules {
1808
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1855
+ const reader =
1856
+ input instanceof BinaryReader ? input : new BinaryReader(input);
1809
1857
  let end = length === undefined ? reader.len : reader.pos + length;
1810
1858
  const message = createBaseFloatRules();
1811
1859
  while (reader.pos < end) {
@@ -1911,9 +1959,15 @@ export const FloatRules: MessageFns<FloatRules> = {
1911
1959
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
1912
1960
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
1913
1961
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
1914
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
1915
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
1916
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
1962
+ in: globalThis.Array.isArray(object?.in)
1963
+ ? object.in.map((e: any) => globalThis.Number(e))
1964
+ : [],
1965
+ notIn: globalThis.Array.isArray(object?.notIn)
1966
+ ? object.notIn.map((e: any) => globalThis.Number(e))
1967
+ : [],
1968
+ ignoreEmpty: isSet(object.ignoreEmpty)
1969
+ ? globalThis.Boolean(object.ignoreEmpty)
1970
+ : false,
1917
1971
  };
1918
1972
  },
1919
1973
 
@@ -1964,11 +2018,23 @@ export const FloatRules: MessageFns<FloatRules> = {
1964
2018
  };
1965
2019
 
1966
2020
  function createBaseDoubleRules(): DoubleRules {
1967
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
2021
+ return {
2022
+ const: 0,
2023
+ lt: 0,
2024
+ lte: 0,
2025
+ gt: 0,
2026
+ gte: 0,
2027
+ in: [],
2028
+ notIn: [],
2029
+ ignoreEmpty: false,
2030
+ };
1968
2031
  }
1969
2032
 
1970
2033
  export const DoubleRules: MessageFns<DoubleRules> = {
1971
- encode(message: DoubleRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2034
+ encode(
2035
+ message: DoubleRules,
2036
+ writer: BinaryWriter = new BinaryWriter(),
2037
+ ): BinaryWriter {
1972
2038
  if (message.const !== undefined && message.const !== 0) {
1973
2039
  writer.uint32(9).double(message.const);
1974
2040
  }
@@ -2001,7 +2067,8 @@ export const DoubleRules: MessageFns<DoubleRules> = {
2001
2067
  },
2002
2068
 
2003
2069
  decode(input: BinaryReader | Uint8Array, length?: number): DoubleRules {
2004
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2070
+ const reader =
2071
+ input instanceof BinaryReader ? input : new BinaryReader(input);
2005
2072
  let end = length === undefined ? reader.len : reader.pos + length;
2006
2073
  const message = createBaseDoubleRules();
2007
2074
  while (reader.pos < end) {
@@ -2107,9 +2174,15 @@ export const DoubleRules: MessageFns<DoubleRules> = {
2107
2174
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
2108
2175
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
2109
2176
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
2110
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
2111
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
2112
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
2177
+ in: globalThis.Array.isArray(object?.in)
2178
+ ? object.in.map((e: any) => globalThis.Number(e))
2179
+ : [],
2180
+ notIn: globalThis.Array.isArray(object?.notIn)
2181
+ ? object.notIn.map((e: any) => globalThis.Number(e))
2182
+ : [],
2183
+ ignoreEmpty: isSet(object.ignoreEmpty)
2184
+ ? globalThis.Boolean(object.ignoreEmpty)
2185
+ : false,
2113
2186
  };
2114
2187
  },
2115
2188
 
@@ -2160,11 +2233,23 @@ export const DoubleRules: MessageFns<DoubleRules> = {
2160
2233
  };
2161
2234
 
2162
2235
  function createBaseInt32Rules(): Int32Rules {
2163
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
2236
+ return {
2237
+ const: 0,
2238
+ lt: 0,
2239
+ lte: 0,
2240
+ gt: 0,
2241
+ gte: 0,
2242
+ in: [],
2243
+ notIn: [],
2244
+ ignoreEmpty: false,
2245
+ };
2164
2246
  }
2165
2247
 
2166
2248
  export const Int32Rules: MessageFns<Int32Rules> = {
2167
- encode(message: Int32Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2249
+ encode(
2250
+ message: Int32Rules,
2251
+ writer: BinaryWriter = new BinaryWriter(),
2252
+ ): BinaryWriter {
2168
2253
  if (message.const !== undefined && message.const !== 0) {
2169
2254
  writer.uint32(8).int32(message.const);
2170
2255
  }
@@ -2197,7 +2282,8 @@ export const Int32Rules: MessageFns<Int32Rules> = {
2197
2282
  },
2198
2283
 
2199
2284
  decode(input: BinaryReader | Uint8Array, length?: number): Int32Rules {
2200
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2285
+ const reader =
2286
+ input instanceof BinaryReader ? input : new BinaryReader(input);
2201
2287
  let end = length === undefined ? reader.len : reader.pos + length;
2202
2288
  const message = createBaseInt32Rules();
2203
2289
  while (reader.pos < end) {
@@ -2303,9 +2389,15 @@ export const Int32Rules: MessageFns<Int32Rules> = {
2303
2389
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
2304
2390
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
2305
2391
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
2306
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
2307
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
2308
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
2392
+ in: globalThis.Array.isArray(object?.in)
2393
+ ? object.in.map((e: any) => globalThis.Number(e))
2394
+ : [],
2395
+ notIn: globalThis.Array.isArray(object?.notIn)
2396
+ ? object.notIn.map((e: any) => globalThis.Number(e))
2397
+ : [],
2398
+ ignoreEmpty: isSet(object.ignoreEmpty)
2399
+ ? globalThis.Boolean(object.ignoreEmpty)
2400
+ : false,
2309
2401
  };
2310
2402
  },
2311
2403
 
@@ -2356,11 +2448,23 @@ export const Int32Rules: MessageFns<Int32Rules> = {
2356
2448
  };
2357
2449
 
2358
2450
  function createBaseInt64Rules(): Int64Rules {
2359
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
2451
+ return {
2452
+ const: 0,
2453
+ lt: 0,
2454
+ lte: 0,
2455
+ gt: 0,
2456
+ gte: 0,
2457
+ in: [],
2458
+ notIn: [],
2459
+ ignoreEmpty: false,
2460
+ };
2360
2461
  }
2361
2462
 
2362
2463
  export const Int64Rules: MessageFns<Int64Rules> = {
2363
- encode(message: Int64Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2464
+ encode(
2465
+ message: Int64Rules,
2466
+ writer: BinaryWriter = new BinaryWriter(),
2467
+ ): BinaryWriter {
2364
2468
  if (message.const !== undefined && message.const !== 0) {
2365
2469
  writer.uint32(8).int64(message.const);
2366
2470
  }
@@ -2393,7 +2497,8 @@ export const Int64Rules: MessageFns<Int64Rules> = {
2393
2497
  },
2394
2498
 
2395
2499
  decode(input: BinaryReader | Uint8Array, length?: number): Int64Rules {
2396
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2500
+ const reader =
2501
+ input instanceof BinaryReader ? input : new BinaryReader(input);
2397
2502
  let end = length === undefined ? reader.len : reader.pos + length;
2398
2503
  const message = createBaseInt64Rules();
2399
2504
  while (reader.pos < end) {
@@ -2499,9 +2604,15 @@ export const Int64Rules: MessageFns<Int64Rules> = {
2499
2604
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
2500
2605
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
2501
2606
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
2502
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
2503
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
2504
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
2607
+ in: globalThis.Array.isArray(object?.in)
2608
+ ? object.in.map((e: any) => globalThis.Number(e))
2609
+ : [],
2610
+ notIn: globalThis.Array.isArray(object?.notIn)
2611
+ ? object.notIn.map((e: any) => globalThis.Number(e))
2612
+ : [],
2613
+ ignoreEmpty: isSet(object.ignoreEmpty)
2614
+ ? globalThis.Boolean(object.ignoreEmpty)
2615
+ : false,
2505
2616
  };
2506
2617
  },
2507
2618
 
@@ -2552,11 +2663,23 @@ export const Int64Rules: MessageFns<Int64Rules> = {
2552
2663
  };
2553
2664
 
2554
2665
  function createBaseUInt32Rules(): UInt32Rules {
2555
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
2666
+ return {
2667
+ const: 0,
2668
+ lt: 0,
2669
+ lte: 0,
2670
+ gt: 0,
2671
+ gte: 0,
2672
+ in: [],
2673
+ notIn: [],
2674
+ ignoreEmpty: false,
2675
+ };
2556
2676
  }
2557
2677
 
2558
2678
  export const UInt32Rules: MessageFns<UInt32Rules> = {
2559
- encode(message: UInt32Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2679
+ encode(
2680
+ message: UInt32Rules,
2681
+ writer: BinaryWriter = new BinaryWriter(),
2682
+ ): BinaryWriter {
2560
2683
  if (message.const !== undefined && message.const !== 0) {
2561
2684
  writer.uint32(8).uint32(message.const);
2562
2685
  }
@@ -2589,7 +2712,8 @@ export const UInt32Rules: MessageFns<UInt32Rules> = {
2589
2712
  },
2590
2713
 
2591
2714
  decode(input: BinaryReader | Uint8Array, length?: number): UInt32Rules {
2592
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2715
+ const reader =
2716
+ input instanceof BinaryReader ? input : new BinaryReader(input);
2593
2717
  let end = length === undefined ? reader.len : reader.pos + length;
2594
2718
  const message = createBaseUInt32Rules();
2595
2719
  while (reader.pos < end) {
@@ -2695,9 +2819,15 @@ export const UInt32Rules: MessageFns<UInt32Rules> = {
2695
2819
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
2696
2820
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
2697
2821
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
2698
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
2699
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
2700
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
2822
+ in: globalThis.Array.isArray(object?.in)
2823
+ ? object.in.map((e: any) => globalThis.Number(e))
2824
+ : [],
2825
+ notIn: globalThis.Array.isArray(object?.notIn)
2826
+ ? object.notIn.map((e: any) => globalThis.Number(e))
2827
+ : [],
2828
+ ignoreEmpty: isSet(object.ignoreEmpty)
2829
+ ? globalThis.Boolean(object.ignoreEmpty)
2830
+ : false,
2701
2831
  };
2702
2832
  },
2703
2833
 
@@ -2748,11 +2878,23 @@ export const UInt32Rules: MessageFns<UInt32Rules> = {
2748
2878
  };
2749
2879
 
2750
2880
  function createBaseUInt64Rules(): UInt64Rules {
2751
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
2881
+ return {
2882
+ const: 0,
2883
+ lt: 0,
2884
+ lte: 0,
2885
+ gt: 0,
2886
+ gte: 0,
2887
+ in: [],
2888
+ notIn: [],
2889
+ ignoreEmpty: false,
2890
+ };
2752
2891
  }
2753
2892
 
2754
2893
  export const UInt64Rules: MessageFns<UInt64Rules> = {
2755
- encode(message: UInt64Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2894
+ encode(
2895
+ message: UInt64Rules,
2896
+ writer: BinaryWriter = new BinaryWriter(),
2897
+ ): BinaryWriter {
2756
2898
  if (message.const !== undefined && message.const !== 0) {
2757
2899
  writer.uint32(8).uint64(message.const);
2758
2900
  }
@@ -2785,7 +2927,8 @@ export const UInt64Rules: MessageFns<UInt64Rules> = {
2785
2927
  },
2786
2928
 
2787
2929
  decode(input: BinaryReader | Uint8Array, length?: number): UInt64Rules {
2788
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2930
+ const reader =
2931
+ input instanceof BinaryReader ? input : new BinaryReader(input);
2789
2932
  let end = length === undefined ? reader.len : reader.pos + length;
2790
2933
  const message = createBaseUInt64Rules();
2791
2934
  while (reader.pos < end) {
@@ -2891,9 +3034,15 @@ export const UInt64Rules: MessageFns<UInt64Rules> = {
2891
3034
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
2892
3035
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
2893
3036
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
2894
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
2895
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
2896
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
3037
+ in: globalThis.Array.isArray(object?.in)
3038
+ ? object.in.map((e: any) => globalThis.Number(e))
3039
+ : [],
3040
+ notIn: globalThis.Array.isArray(object?.notIn)
3041
+ ? object.notIn.map((e: any) => globalThis.Number(e))
3042
+ : [],
3043
+ ignoreEmpty: isSet(object.ignoreEmpty)
3044
+ ? globalThis.Boolean(object.ignoreEmpty)
3045
+ : false,
2897
3046
  };
2898
3047
  },
2899
3048
 
@@ -2944,11 +3093,23 @@ export const UInt64Rules: MessageFns<UInt64Rules> = {
2944
3093
  };
2945
3094
 
2946
3095
  function createBaseSInt32Rules(): SInt32Rules {
2947
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
3096
+ return {
3097
+ const: 0,
3098
+ lt: 0,
3099
+ lte: 0,
3100
+ gt: 0,
3101
+ gte: 0,
3102
+ in: [],
3103
+ notIn: [],
3104
+ ignoreEmpty: false,
3105
+ };
2948
3106
  }
2949
3107
 
2950
3108
  export const SInt32Rules: MessageFns<SInt32Rules> = {
2951
- encode(message: SInt32Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
3109
+ encode(
3110
+ message: SInt32Rules,
3111
+ writer: BinaryWriter = new BinaryWriter(),
3112
+ ): BinaryWriter {
2952
3113
  if (message.const !== undefined && message.const !== 0) {
2953
3114
  writer.uint32(8).sint32(message.const);
2954
3115
  }
@@ -2981,7 +3142,8 @@ export const SInt32Rules: MessageFns<SInt32Rules> = {
2981
3142
  },
2982
3143
 
2983
3144
  decode(input: BinaryReader | Uint8Array, length?: number): SInt32Rules {
2984
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3145
+ const reader =
3146
+ input instanceof BinaryReader ? input : new BinaryReader(input);
2985
3147
  let end = length === undefined ? reader.len : reader.pos + length;
2986
3148
  const message = createBaseSInt32Rules();
2987
3149
  while (reader.pos < end) {
@@ -3087,9 +3249,15 @@ export const SInt32Rules: MessageFns<SInt32Rules> = {
3087
3249
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
3088
3250
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
3089
3251
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
3090
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
3091
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
3092
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
3252
+ in: globalThis.Array.isArray(object?.in)
3253
+ ? object.in.map((e: any) => globalThis.Number(e))
3254
+ : [],
3255
+ notIn: globalThis.Array.isArray(object?.notIn)
3256
+ ? object.notIn.map((e: any) => globalThis.Number(e))
3257
+ : [],
3258
+ ignoreEmpty: isSet(object.ignoreEmpty)
3259
+ ? globalThis.Boolean(object.ignoreEmpty)
3260
+ : false,
3093
3261
  };
3094
3262
  },
3095
3263
 
@@ -3140,11 +3308,23 @@ export const SInt32Rules: MessageFns<SInt32Rules> = {
3140
3308
  };
3141
3309
 
3142
3310
  function createBaseSInt64Rules(): SInt64Rules {
3143
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
3311
+ return {
3312
+ const: 0,
3313
+ lt: 0,
3314
+ lte: 0,
3315
+ gt: 0,
3316
+ gte: 0,
3317
+ in: [],
3318
+ notIn: [],
3319
+ ignoreEmpty: false,
3320
+ };
3144
3321
  }
3145
3322
 
3146
3323
  export const SInt64Rules: MessageFns<SInt64Rules> = {
3147
- encode(message: SInt64Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
3324
+ encode(
3325
+ message: SInt64Rules,
3326
+ writer: BinaryWriter = new BinaryWriter(),
3327
+ ): BinaryWriter {
3148
3328
  if (message.const !== undefined && message.const !== 0) {
3149
3329
  writer.uint32(8).sint64(message.const);
3150
3330
  }
@@ -3177,7 +3357,8 @@ export const SInt64Rules: MessageFns<SInt64Rules> = {
3177
3357
  },
3178
3358
 
3179
3359
  decode(input: BinaryReader | Uint8Array, length?: number): SInt64Rules {
3180
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3360
+ const reader =
3361
+ input instanceof BinaryReader ? input : new BinaryReader(input);
3181
3362
  let end = length === undefined ? reader.len : reader.pos + length;
3182
3363
  const message = createBaseSInt64Rules();
3183
3364
  while (reader.pos < end) {
@@ -3283,9 +3464,15 @@ export const SInt64Rules: MessageFns<SInt64Rules> = {
3283
3464
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
3284
3465
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
3285
3466
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
3286
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
3287
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
3288
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
3467
+ in: globalThis.Array.isArray(object?.in)
3468
+ ? object.in.map((e: any) => globalThis.Number(e))
3469
+ : [],
3470
+ notIn: globalThis.Array.isArray(object?.notIn)
3471
+ ? object.notIn.map((e: any) => globalThis.Number(e))
3472
+ : [],
3473
+ ignoreEmpty: isSet(object.ignoreEmpty)
3474
+ ? globalThis.Boolean(object.ignoreEmpty)
3475
+ : false,
3289
3476
  };
3290
3477
  },
3291
3478
 
@@ -3336,11 +3523,23 @@ export const SInt64Rules: MessageFns<SInt64Rules> = {
3336
3523
  };
3337
3524
 
3338
3525
  function createBaseFixed32Rules(): Fixed32Rules {
3339
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
3526
+ return {
3527
+ const: 0,
3528
+ lt: 0,
3529
+ lte: 0,
3530
+ gt: 0,
3531
+ gte: 0,
3532
+ in: [],
3533
+ notIn: [],
3534
+ ignoreEmpty: false,
3535
+ };
3340
3536
  }
3341
3537
 
3342
3538
  export const Fixed32Rules: MessageFns<Fixed32Rules> = {
3343
- encode(message: Fixed32Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
3539
+ encode(
3540
+ message: Fixed32Rules,
3541
+ writer: BinaryWriter = new BinaryWriter(),
3542
+ ): BinaryWriter {
3344
3543
  if (message.const !== undefined && message.const !== 0) {
3345
3544
  writer.uint32(13).fixed32(message.const);
3346
3545
  }
@@ -3373,7 +3572,8 @@ export const Fixed32Rules: MessageFns<Fixed32Rules> = {
3373
3572
  },
3374
3573
 
3375
3574
  decode(input: BinaryReader | Uint8Array, length?: number): Fixed32Rules {
3376
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3575
+ const reader =
3576
+ input instanceof BinaryReader ? input : new BinaryReader(input);
3377
3577
  let end = length === undefined ? reader.len : reader.pos + length;
3378
3578
  const message = createBaseFixed32Rules();
3379
3579
  while (reader.pos < end) {
@@ -3479,9 +3679,15 @@ export const Fixed32Rules: MessageFns<Fixed32Rules> = {
3479
3679
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
3480
3680
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
3481
3681
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
3482
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
3483
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
3484
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
3682
+ in: globalThis.Array.isArray(object?.in)
3683
+ ? object.in.map((e: any) => globalThis.Number(e))
3684
+ : [],
3685
+ notIn: globalThis.Array.isArray(object?.notIn)
3686
+ ? object.notIn.map((e: any) => globalThis.Number(e))
3687
+ : [],
3688
+ ignoreEmpty: isSet(object.ignoreEmpty)
3689
+ ? globalThis.Boolean(object.ignoreEmpty)
3690
+ : false,
3485
3691
  };
3486
3692
  },
3487
3693
 
@@ -3532,11 +3738,23 @@ export const Fixed32Rules: MessageFns<Fixed32Rules> = {
3532
3738
  };
3533
3739
 
3534
3740
  function createBaseFixed64Rules(): Fixed64Rules {
3535
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
3741
+ return {
3742
+ const: 0,
3743
+ lt: 0,
3744
+ lte: 0,
3745
+ gt: 0,
3746
+ gte: 0,
3747
+ in: [],
3748
+ notIn: [],
3749
+ ignoreEmpty: false,
3750
+ };
3536
3751
  }
3537
3752
 
3538
3753
  export const Fixed64Rules: MessageFns<Fixed64Rules> = {
3539
- encode(message: Fixed64Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
3754
+ encode(
3755
+ message: Fixed64Rules,
3756
+ writer: BinaryWriter = new BinaryWriter(),
3757
+ ): BinaryWriter {
3540
3758
  if (message.const !== undefined && message.const !== 0) {
3541
3759
  writer.uint32(9).fixed64(message.const);
3542
3760
  }
@@ -3569,7 +3787,8 @@ export const Fixed64Rules: MessageFns<Fixed64Rules> = {
3569
3787
  },
3570
3788
 
3571
3789
  decode(input: BinaryReader | Uint8Array, length?: number): Fixed64Rules {
3572
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3790
+ const reader =
3791
+ input instanceof BinaryReader ? input : new BinaryReader(input);
3573
3792
  let end = length === undefined ? reader.len : reader.pos + length;
3574
3793
  const message = createBaseFixed64Rules();
3575
3794
  while (reader.pos < end) {
@@ -3675,9 +3894,15 @@ export const Fixed64Rules: MessageFns<Fixed64Rules> = {
3675
3894
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
3676
3895
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
3677
3896
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
3678
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
3679
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
3680
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
3897
+ in: globalThis.Array.isArray(object?.in)
3898
+ ? object.in.map((e: any) => globalThis.Number(e))
3899
+ : [],
3900
+ notIn: globalThis.Array.isArray(object?.notIn)
3901
+ ? object.notIn.map((e: any) => globalThis.Number(e))
3902
+ : [],
3903
+ ignoreEmpty: isSet(object.ignoreEmpty)
3904
+ ? globalThis.Boolean(object.ignoreEmpty)
3905
+ : false,
3681
3906
  };
3682
3907
  },
3683
3908
 
@@ -3728,11 +3953,23 @@ export const Fixed64Rules: MessageFns<Fixed64Rules> = {
3728
3953
  };
3729
3954
 
3730
3955
  function createBaseSFixed32Rules(): SFixed32Rules {
3731
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
3956
+ return {
3957
+ const: 0,
3958
+ lt: 0,
3959
+ lte: 0,
3960
+ gt: 0,
3961
+ gte: 0,
3962
+ in: [],
3963
+ notIn: [],
3964
+ ignoreEmpty: false,
3965
+ };
3732
3966
  }
3733
3967
 
3734
3968
  export const SFixed32Rules: MessageFns<SFixed32Rules> = {
3735
- encode(message: SFixed32Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
3969
+ encode(
3970
+ message: SFixed32Rules,
3971
+ writer: BinaryWriter = new BinaryWriter(),
3972
+ ): BinaryWriter {
3736
3973
  if (message.const !== undefined && message.const !== 0) {
3737
3974
  writer.uint32(13).sfixed32(message.const);
3738
3975
  }
@@ -3765,7 +4002,8 @@ export const SFixed32Rules: MessageFns<SFixed32Rules> = {
3765
4002
  },
3766
4003
 
3767
4004
  decode(input: BinaryReader | Uint8Array, length?: number): SFixed32Rules {
3768
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4005
+ const reader =
4006
+ input instanceof BinaryReader ? input : new BinaryReader(input);
3769
4007
  let end = length === undefined ? reader.len : reader.pos + length;
3770
4008
  const message = createBaseSFixed32Rules();
3771
4009
  while (reader.pos < end) {
@@ -3871,9 +4109,15 @@ export const SFixed32Rules: MessageFns<SFixed32Rules> = {
3871
4109
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
3872
4110
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
3873
4111
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
3874
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
3875
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
3876
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
4112
+ in: globalThis.Array.isArray(object?.in)
4113
+ ? object.in.map((e: any) => globalThis.Number(e))
4114
+ : [],
4115
+ notIn: globalThis.Array.isArray(object?.notIn)
4116
+ ? object.notIn.map((e: any) => globalThis.Number(e))
4117
+ : [],
4118
+ ignoreEmpty: isSet(object.ignoreEmpty)
4119
+ ? globalThis.Boolean(object.ignoreEmpty)
4120
+ : false,
3877
4121
  };
3878
4122
  },
3879
4123
 
@@ -3924,11 +4168,23 @@ export const SFixed32Rules: MessageFns<SFixed32Rules> = {
3924
4168
  };
3925
4169
 
3926
4170
  function createBaseSFixed64Rules(): SFixed64Rules {
3927
- return { const: 0, lt: 0, lte: 0, gt: 0, gte: 0, in: [], notIn: [], ignoreEmpty: false };
4171
+ return {
4172
+ const: 0,
4173
+ lt: 0,
4174
+ lte: 0,
4175
+ gt: 0,
4176
+ gte: 0,
4177
+ in: [],
4178
+ notIn: [],
4179
+ ignoreEmpty: false,
4180
+ };
3928
4181
  }
3929
4182
 
3930
4183
  export const SFixed64Rules: MessageFns<SFixed64Rules> = {
3931
- encode(message: SFixed64Rules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
4184
+ encode(
4185
+ message: SFixed64Rules,
4186
+ writer: BinaryWriter = new BinaryWriter(),
4187
+ ): BinaryWriter {
3932
4188
  if (message.const !== undefined && message.const !== 0) {
3933
4189
  writer.uint32(9).sfixed64(message.const);
3934
4190
  }
@@ -3961,7 +4217,8 @@ export const SFixed64Rules: MessageFns<SFixed64Rules> = {
3961
4217
  },
3962
4218
 
3963
4219
  decode(input: BinaryReader | Uint8Array, length?: number): SFixed64Rules {
3964
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4220
+ const reader =
4221
+ input instanceof BinaryReader ? input : new BinaryReader(input);
3965
4222
  let end = length === undefined ? reader.len : reader.pos + length;
3966
4223
  const message = createBaseSFixed64Rules();
3967
4224
  while (reader.pos < end) {
@@ -4067,9 +4324,15 @@ export const SFixed64Rules: MessageFns<SFixed64Rules> = {
4067
4324
  lte: isSet(object.lte) ? globalThis.Number(object.lte) : 0,
4068
4325
  gt: isSet(object.gt) ? globalThis.Number(object.gt) : 0,
4069
4326
  gte: isSet(object.gte) ? globalThis.Number(object.gte) : 0,
4070
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
4071
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
4072
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
4327
+ in: globalThis.Array.isArray(object?.in)
4328
+ ? object.in.map((e: any) => globalThis.Number(e))
4329
+ : [],
4330
+ notIn: globalThis.Array.isArray(object?.notIn)
4331
+ ? object.notIn.map((e: any) => globalThis.Number(e))
4332
+ : [],
4333
+ ignoreEmpty: isSet(object.ignoreEmpty)
4334
+ ? globalThis.Boolean(object.ignoreEmpty)
4335
+ : false,
4073
4336
  };
4074
4337
  },
4075
4338
 
@@ -4124,7 +4387,10 @@ function createBaseBoolRules(): BoolRules {
4124
4387
  }
4125
4388
 
4126
4389
  export const BoolRules: MessageFns<BoolRules> = {
4127
- encode(message: BoolRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
4390
+ encode(
4391
+ message: BoolRules,
4392
+ writer: BinaryWriter = new BinaryWriter(),
4393
+ ): BinaryWriter {
4128
4394
  if (message.const !== undefined && message.const !== false) {
4129
4395
  writer.uint32(8).bool(message.const);
4130
4396
  }
@@ -4132,7 +4398,8 @@ export const BoolRules: MessageFns<BoolRules> = {
4132
4398
  },
4133
4399
 
4134
4400
  decode(input: BinaryReader | Uint8Array, length?: number): BoolRules {
4135
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4401
+ const reader =
4402
+ input instanceof BinaryReader ? input : new BinaryReader(input);
4136
4403
  let end = length === undefined ? reader.len : reader.pos + length;
4137
4404
  const message = createBaseBoolRules();
4138
4405
  while (reader.pos < end) {
@@ -4156,7 +4423,9 @@ export const BoolRules: MessageFns<BoolRules> = {
4156
4423
  },
4157
4424
 
4158
4425
  fromJSON(object: any): BoolRules {
4159
- return { const: isSet(object.const) ? globalThis.Boolean(object.const) : false };
4426
+ return {
4427
+ const: isSet(object.const) ? globalThis.Boolean(object.const) : false,
4428
+ };
4160
4429
  },
4161
4430
 
4162
4431
  toJSON(message: BoolRules): unknown {
@@ -4200,7 +4469,10 @@ function createBaseStringRules(): StringRules {
4200
4469
  }
4201
4470
 
4202
4471
  export const StringRules: MessageFns<StringRules> = {
4203
- encode(message: StringRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
4472
+ encode(
4473
+ message: StringRules,
4474
+ writer: BinaryWriter = new BinaryWriter(),
4475
+ ): BinaryWriter {
4204
4476
  if (message.const !== undefined && message.const !== "") {
4205
4477
  writer.uint32(10).string(message.const);
4206
4478
  }
@@ -4285,7 +4557,8 @@ export const StringRules: MessageFns<StringRules> = {
4285
4557
  },
4286
4558
 
4287
4559
  decode(input: BinaryReader | Uint8Array, length?: number): StringRules {
4288
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4560
+ const reader =
4561
+ input instanceof BinaryReader ? input : new BinaryReader(input);
4289
4562
  let end = length === undefined ? reader.len : reader.pos + length;
4290
4563
  const message = createBaseStringRules();
4291
4564
  while (reader.pos < end) {
@@ -4480,7 +4753,10 @@ export const StringRules: MessageFns<StringRules> = {
4480
4753
  break;
4481
4754
  }
4482
4755
 
4483
- message.wellKnown = { $case: "wellKnownRegex", wellKnownRegex: reader.int32() as any };
4756
+ message.wellKnown = {
4757
+ $case: "wellKnownRegex",
4758
+ wellKnownRegex: reader.int32() as any,
4759
+ };
4484
4760
  continue;
4485
4761
  }
4486
4762
  case 25: {
@@ -4520,33 +4796,57 @@ export const StringRules: MessageFns<StringRules> = {
4520
4796
  pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "",
4521
4797
  prefix: isSet(object.prefix) ? globalThis.String(object.prefix) : "",
4522
4798
  suffix: isSet(object.suffix) ? globalThis.String(object.suffix) : "",
4523
- contains: isSet(object.contains) ? globalThis.String(object.contains) : "",
4524
- notContains: isSet(object.notContains) ? globalThis.String(object.notContains) : "",
4525
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.String(e)) : [],
4526
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.String(e)) : [],
4799
+ contains: isSet(object.contains)
4800
+ ? globalThis.String(object.contains)
4801
+ : "",
4802
+ notContains: isSet(object.notContains)
4803
+ ? globalThis.String(object.notContains)
4804
+ : "",
4805
+ in: globalThis.Array.isArray(object?.in)
4806
+ ? object.in.map((e: any) => globalThis.String(e))
4807
+ : [],
4808
+ notIn: globalThis.Array.isArray(object?.notIn)
4809
+ ? object.notIn.map((e: any) => globalThis.String(e))
4810
+ : [],
4527
4811
  wellKnown: isSet(object.email)
4528
4812
  ? { $case: "email", email: globalThis.Boolean(object.email) }
4529
4813
  : isSet(object.hostname)
4530
- ? { $case: "hostname", hostname: globalThis.Boolean(object.hostname) }
4531
- : isSet(object.ip)
4532
- ? { $case: "ip", ip: globalThis.Boolean(object.ip) }
4533
- : isSet(object.ipv4)
4534
- ? { $case: "ipv4", ipv4: globalThis.Boolean(object.ipv4) }
4535
- : isSet(object.ipv6)
4536
- ? { $case: "ipv6", ipv6: globalThis.Boolean(object.ipv6) }
4537
- : isSet(object.uri)
4538
- ? { $case: "uri", uri: globalThis.Boolean(object.uri) }
4539
- : isSet(object.uriRef)
4540
- ? { $case: "uriRef", uriRef: globalThis.Boolean(object.uriRef) }
4541
- : isSet(object.address)
4542
- ? { $case: "address", address: globalThis.Boolean(object.address) }
4543
- : isSet(object.uuid)
4544
- ? { $case: "uuid", uuid: globalThis.Boolean(object.uuid) }
4545
- : isSet(object.wellKnownRegex)
4546
- ? { $case: "wellKnownRegex", wellKnownRegex: knownRegexFromJSON(object.wellKnownRegex) }
4547
- : undefined,
4814
+ ? { $case: "hostname", hostname: globalThis.Boolean(object.hostname) }
4815
+ : isSet(object.ip)
4816
+ ? { $case: "ip", ip: globalThis.Boolean(object.ip) }
4817
+ : isSet(object.ipv4)
4818
+ ? { $case: "ipv4", ipv4: globalThis.Boolean(object.ipv4) }
4819
+ : isSet(object.ipv6)
4820
+ ? { $case: "ipv6", ipv6: globalThis.Boolean(object.ipv6) }
4821
+ : isSet(object.uri)
4822
+ ? { $case: "uri", uri: globalThis.Boolean(object.uri) }
4823
+ : isSet(object.uriRef)
4824
+ ? {
4825
+ $case: "uriRef",
4826
+ uriRef: globalThis.Boolean(object.uriRef),
4827
+ }
4828
+ : isSet(object.address)
4829
+ ? {
4830
+ $case: "address",
4831
+ address: globalThis.Boolean(object.address),
4832
+ }
4833
+ : isSet(object.uuid)
4834
+ ? {
4835
+ $case: "uuid",
4836
+ uuid: globalThis.Boolean(object.uuid),
4837
+ }
4838
+ : isSet(object.wellKnownRegex)
4839
+ ? {
4840
+ $case: "wellKnownRegex",
4841
+ wellKnownRegex: knownRegexFromJSON(
4842
+ object.wellKnownRegex,
4843
+ ),
4844
+ }
4845
+ : undefined,
4548
4846
  strict: isSet(object.strict) ? globalThis.Boolean(object.strict) : true,
4549
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
4847
+ ignoreEmpty: isSet(object.ignoreEmpty)
4848
+ ? globalThis.Boolean(object.ignoreEmpty)
4849
+ : false,
4550
4850
  };
4551
4851
  },
4552
4852
 
@@ -4645,62 +4945,104 @@ export const StringRules: MessageFns<StringRules> = {
4645
4945
  message.notIn = object.notIn?.map((e) => e) || [];
4646
4946
  switch (object.wellKnown?.$case) {
4647
4947
  case "email": {
4648
- if (object.wellKnown?.email !== undefined && object.wellKnown?.email !== null) {
4948
+ if (
4949
+ object.wellKnown?.email !== undefined &&
4950
+ object.wellKnown?.email !== null
4951
+ ) {
4649
4952
  message.wellKnown = { $case: "email", email: object.wellKnown.email };
4650
4953
  }
4651
4954
  break;
4652
4955
  }
4653
4956
  case "hostname": {
4654
- if (object.wellKnown?.hostname !== undefined && object.wellKnown?.hostname !== null) {
4655
- message.wellKnown = { $case: "hostname", hostname: object.wellKnown.hostname };
4957
+ if (
4958
+ object.wellKnown?.hostname !== undefined &&
4959
+ object.wellKnown?.hostname !== null
4960
+ ) {
4961
+ message.wellKnown = {
4962
+ $case: "hostname",
4963
+ hostname: object.wellKnown.hostname,
4964
+ };
4656
4965
  }
4657
4966
  break;
4658
4967
  }
4659
4968
  case "ip": {
4660
- if (object.wellKnown?.ip !== undefined && object.wellKnown?.ip !== null) {
4969
+ if (
4970
+ object.wellKnown?.ip !== undefined &&
4971
+ object.wellKnown?.ip !== null
4972
+ ) {
4661
4973
  message.wellKnown = { $case: "ip", ip: object.wellKnown.ip };
4662
4974
  }
4663
4975
  break;
4664
4976
  }
4665
4977
  case "ipv4": {
4666
- if (object.wellKnown?.ipv4 !== undefined && object.wellKnown?.ipv4 !== null) {
4978
+ if (
4979
+ object.wellKnown?.ipv4 !== undefined &&
4980
+ object.wellKnown?.ipv4 !== null
4981
+ ) {
4667
4982
  message.wellKnown = { $case: "ipv4", ipv4: object.wellKnown.ipv4 };
4668
4983
  }
4669
4984
  break;
4670
4985
  }
4671
4986
  case "ipv6": {
4672
- if (object.wellKnown?.ipv6 !== undefined && object.wellKnown?.ipv6 !== null) {
4987
+ if (
4988
+ object.wellKnown?.ipv6 !== undefined &&
4989
+ object.wellKnown?.ipv6 !== null
4990
+ ) {
4673
4991
  message.wellKnown = { $case: "ipv6", ipv6: object.wellKnown.ipv6 };
4674
4992
  }
4675
4993
  break;
4676
4994
  }
4677
4995
  case "uri": {
4678
- if (object.wellKnown?.uri !== undefined && object.wellKnown?.uri !== null) {
4996
+ if (
4997
+ object.wellKnown?.uri !== undefined &&
4998
+ object.wellKnown?.uri !== null
4999
+ ) {
4679
5000
  message.wellKnown = { $case: "uri", uri: object.wellKnown.uri };
4680
5001
  }
4681
5002
  break;
4682
5003
  }
4683
5004
  case "uriRef": {
4684
- if (object.wellKnown?.uriRef !== undefined && object.wellKnown?.uriRef !== null) {
4685
- message.wellKnown = { $case: "uriRef", uriRef: object.wellKnown.uriRef };
5005
+ if (
5006
+ object.wellKnown?.uriRef !== undefined &&
5007
+ object.wellKnown?.uriRef !== null
5008
+ ) {
5009
+ message.wellKnown = {
5010
+ $case: "uriRef",
5011
+ uriRef: object.wellKnown.uriRef,
5012
+ };
4686
5013
  }
4687
5014
  break;
4688
5015
  }
4689
5016
  case "address": {
4690
- if (object.wellKnown?.address !== undefined && object.wellKnown?.address !== null) {
4691
- message.wellKnown = { $case: "address", address: object.wellKnown.address };
5017
+ if (
5018
+ object.wellKnown?.address !== undefined &&
5019
+ object.wellKnown?.address !== null
5020
+ ) {
5021
+ message.wellKnown = {
5022
+ $case: "address",
5023
+ address: object.wellKnown.address,
5024
+ };
4692
5025
  }
4693
5026
  break;
4694
5027
  }
4695
5028
  case "uuid": {
4696
- if (object.wellKnown?.uuid !== undefined && object.wellKnown?.uuid !== null) {
5029
+ if (
5030
+ object.wellKnown?.uuid !== undefined &&
5031
+ object.wellKnown?.uuid !== null
5032
+ ) {
4697
5033
  message.wellKnown = { $case: "uuid", uuid: object.wellKnown.uuid };
4698
5034
  }
4699
5035
  break;
4700
5036
  }
4701
5037
  case "wellKnownRegex": {
4702
- if (object.wellKnown?.wellKnownRegex !== undefined && object.wellKnown?.wellKnownRegex !== null) {
4703
- message.wellKnown = { $case: "wellKnownRegex", wellKnownRegex: object.wellKnown.wellKnownRegex };
5038
+ if (
5039
+ object.wellKnown?.wellKnownRegex !== undefined &&
5040
+ object.wellKnown?.wellKnownRegex !== null
5041
+ ) {
5042
+ message.wellKnown = {
5043
+ $case: "wellKnownRegex",
5044
+ wellKnownRegex: object.wellKnown.wellKnownRegex,
5045
+ };
4704
5046
  }
4705
5047
  break;
4706
5048
  }
@@ -4729,7 +5071,10 @@ function createBaseBytesRules(): BytesRules {
4729
5071
  }
4730
5072
 
4731
5073
  export const BytesRules: MessageFns<BytesRules> = {
4732
- encode(message: BytesRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
5074
+ encode(
5075
+ message: BytesRules,
5076
+ writer: BinaryWriter = new BinaryWriter(),
5077
+ ): BinaryWriter {
4733
5078
  if (message.const !== undefined && message.const.length !== 0) {
4734
5079
  writer.uint32(10).bytes(message.const);
4735
5080
  }
@@ -4778,7 +5123,8 @@ export const BytesRules: MessageFns<BytesRules> = {
4778
5123
  },
4779
5124
 
4780
5125
  decode(input: BinaryReader | Uint8Array, length?: number): BytesRules {
4781
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5126
+ const reader =
5127
+ input instanceof BinaryReader ? input : new BinaryReader(input);
4782
5128
  let end = length === undefined ? reader.len : reader.pos + length;
4783
5129
  const message = createBaseBytesRules();
4784
5130
  while (reader.pos < end) {
@@ -4907,24 +5253,38 @@ export const BytesRules: MessageFns<BytesRules> = {
4907
5253
 
4908
5254
  fromJSON(object: any): BytesRules {
4909
5255
  return {
4910
- const: isSet(object.const) ? bytesFromBase64(object.const) : new Uint8Array(0),
5256
+ const: isSet(object.const)
5257
+ ? bytesFromBase64(object.const)
5258
+ : new Uint8Array(0),
4911
5259
  len: isSet(object.len) ? globalThis.Number(object.len) : 0,
4912
5260
  minLen: isSet(object.minLen) ? globalThis.Number(object.minLen) : 0,
4913
5261
  maxLen: isSet(object.maxLen) ? globalThis.Number(object.maxLen) : 0,
4914
5262
  pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "",
4915
- prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array(0),
4916
- suffix: isSet(object.suffix) ? bytesFromBase64(object.suffix) : new Uint8Array(0),
4917
- contains: isSet(object.contains) ? bytesFromBase64(object.contains) : new Uint8Array(0),
4918
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => bytesFromBase64(e)) : [],
4919
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => bytesFromBase64(e)) : [],
5263
+ prefix: isSet(object.prefix)
5264
+ ? bytesFromBase64(object.prefix)
5265
+ : new Uint8Array(0),
5266
+ suffix: isSet(object.suffix)
5267
+ ? bytesFromBase64(object.suffix)
5268
+ : new Uint8Array(0),
5269
+ contains: isSet(object.contains)
5270
+ ? bytesFromBase64(object.contains)
5271
+ : new Uint8Array(0),
5272
+ in: globalThis.Array.isArray(object?.in)
5273
+ ? object.in.map((e: any) => bytesFromBase64(e))
5274
+ : [],
5275
+ notIn: globalThis.Array.isArray(object?.notIn)
5276
+ ? object.notIn.map((e: any) => bytesFromBase64(e))
5277
+ : [],
4920
5278
  wellKnown: isSet(object.ip)
4921
5279
  ? { $case: "ip", ip: globalThis.Boolean(object.ip) }
4922
5280
  : isSet(object.ipv4)
4923
- ? { $case: "ipv4", ipv4: globalThis.Boolean(object.ipv4) }
4924
- : isSet(object.ipv6)
4925
- ? { $case: "ipv6", ipv6: globalThis.Boolean(object.ipv6) }
4926
- : undefined,
4927
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
5281
+ ? { $case: "ipv4", ipv4: globalThis.Boolean(object.ipv4) }
5282
+ : isSet(object.ipv6)
5283
+ ? { $case: "ipv6", ipv6: globalThis.Boolean(object.ipv6) }
5284
+ : undefined,
5285
+ ignoreEmpty: isSet(object.ignoreEmpty)
5286
+ ? globalThis.Boolean(object.ignoreEmpty)
5287
+ : false,
4928
5288
  };
4929
5289
  },
4930
5290
 
@@ -4990,19 +5350,28 @@ export const BytesRules: MessageFns<BytesRules> = {
4990
5350
  message.notIn = object.notIn?.map((e) => e) || [];
4991
5351
  switch (object.wellKnown?.$case) {
4992
5352
  case "ip": {
4993
- if (object.wellKnown?.ip !== undefined && object.wellKnown?.ip !== null) {
5353
+ if (
5354
+ object.wellKnown?.ip !== undefined &&
5355
+ object.wellKnown?.ip !== null
5356
+ ) {
4994
5357
  message.wellKnown = { $case: "ip", ip: object.wellKnown.ip };
4995
5358
  }
4996
5359
  break;
4997
5360
  }
4998
5361
  case "ipv4": {
4999
- if (object.wellKnown?.ipv4 !== undefined && object.wellKnown?.ipv4 !== null) {
5362
+ if (
5363
+ object.wellKnown?.ipv4 !== undefined &&
5364
+ object.wellKnown?.ipv4 !== null
5365
+ ) {
5000
5366
  message.wellKnown = { $case: "ipv4", ipv4: object.wellKnown.ipv4 };
5001
5367
  }
5002
5368
  break;
5003
5369
  }
5004
5370
  case "ipv6": {
5005
- if (object.wellKnown?.ipv6 !== undefined && object.wellKnown?.ipv6 !== null) {
5371
+ if (
5372
+ object.wellKnown?.ipv6 !== undefined &&
5373
+ object.wellKnown?.ipv6 !== null
5374
+ ) {
5006
5375
  message.wellKnown = { $case: "ipv6", ipv6: object.wellKnown.ipv6 };
5007
5376
  }
5008
5377
  break;
@@ -5018,7 +5387,10 @@ function createBaseEnumRules(): EnumRules {
5018
5387
  }
5019
5388
 
5020
5389
  export const EnumRules: MessageFns<EnumRules> = {
5021
- encode(message: EnumRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
5390
+ encode(
5391
+ message: EnumRules,
5392
+ writer: BinaryWriter = new BinaryWriter(),
5393
+ ): BinaryWriter {
5022
5394
  if (message.const !== undefined && message.const !== 0) {
5023
5395
  writer.uint32(8).int32(message.const);
5024
5396
  }
@@ -5039,7 +5411,8 @@ export const EnumRules: MessageFns<EnumRules> = {
5039
5411
  },
5040
5412
 
5041
5413
  decode(input: BinaryReader | Uint8Array, length?: number): EnumRules {
5042
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5414
+ const reader =
5415
+ input instanceof BinaryReader ? input : new BinaryReader(input);
5043
5416
  let end = length === undefined ? reader.len : reader.pos + length;
5044
5417
  const message = createBaseEnumRules();
5045
5418
  while (reader.pos < end) {
@@ -5109,9 +5482,15 @@ export const EnumRules: MessageFns<EnumRules> = {
5109
5482
  fromJSON(object: any): EnumRules {
5110
5483
  return {
5111
5484
  const: isSet(object.const) ? globalThis.Number(object.const) : 0,
5112
- definedOnly: isSet(object.definedOnly) ? globalThis.Boolean(object.definedOnly) : false,
5113
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.Number(e)) : [],
5114
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.Number(e)) : [],
5485
+ definedOnly: isSet(object.definedOnly)
5486
+ ? globalThis.Boolean(object.definedOnly)
5487
+ : false,
5488
+ in: globalThis.Array.isArray(object?.in)
5489
+ ? object.in.map((e: any) => globalThis.Number(e))
5490
+ : [],
5491
+ notIn: globalThis.Array.isArray(object?.notIn)
5492
+ ? object.notIn.map((e: any) => globalThis.Number(e))
5493
+ : [],
5115
5494
  };
5116
5495
  },
5117
5496
 
@@ -5150,7 +5529,10 @@ function createBaseMessageRules(): MessageRules {
5150
5529
  }
5151
5530
 
5152
5531
  export const MessageRules: MessageFns<MessageRules> = {
5153
- encode(message: MessageRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
5532
+ encode(
5533
+ message: MessageRules,
5534
+ writer: BinaryWriter = new BinaryWriter(),
5535
+ ): BinaryWriter {
5154
5536
  if (message.skip !== undefined && message.skip !== false) {
5155
5537
  writer.uint32(8).bool(message.skip);
5156
5538
  }
@@ -5161,7 +5543,8 @@ export const MessageRules: MessageFns<MessageRules> = {
5161
5543
  },
5162
5544
 
5163
5545
  decode(input: BinaryReader | Uint8Array, length?: number): MessageRules {
5164
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5546
+ const reader =
5547
+ input instanceof BinaryReader ? input : new BinaryReader(input);
5165
5548
  let end = length === undefined ? reader.len : reader.pos + length;
5166
5549
  const message = createBaseMessageRules();
5167
5550
  while (reader.pos < end) {
@@ -5195,7 +5578,9 @@ export const MessageRules: MessageFns<MessageRules> = {
5195
5578
  fromJSON(object: any): MessageRules {
5196
5579
  return {
5197
5580
  skip: isSet(object.skip) ? globalThis.Boolean(object.skip) : false,
5198
- required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
5581
+ required: isSet(object.required)
5582
+ ? globalThis.Boolean(object.required)
5583
+ : false,
5199
5584
  };
5200
5585
  },
5201
5586
 
@@ -5222,11 +5607,20 @@ export const MessageRules: MessageFns<MessageRules> = {
5222
5607
  };
5223
5608
 
5224
5609
  function createBaseRepeatedRules(): RepeatedRules {
5225
- return { minItems: 0, maxItems: 0, unique: false, items: undefined, ignoreEmpty: false };
5610
+ return {
5611
+ minItems: 0,
5612
+ maxItems: 0,
5613
+ unique: false,
5614
+ items: undefined,
5615
+ ignoreEmpty: false,
5616
+ };
5226
5617
  }
5227
5618
 
5228
5619
  export const RepeatedRules: MessageFns<RepeatedRules> = {
5229
- encode(message: RepeatedRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
5620
+ encode(
5621
+ message: RepeatedRules,
5622
+ writer: BinaryWriter = new BinaryWriter(),
5623
+ ): BinaryWriter {
5230
5624
  if (message.minItems !== undefined && message.minItems !== 0) {
5231
5625
  writer.uint32(8).uint64(message.minItems);
5232
5626
  }
@@ -5246,7 +5640,8 @@ export const RepeatedRules: MessageFns<RepeatedRules> = {
5246
5640
  },
5247
5641
 
5248
5642
  decode(input: BinaryReader | Uint8Array, length?: number): RepeatedRules {
5249
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5643
+ const reader =
5644
+ input instanceof BinaryReader ? input : new BinaryReader(input);
5250
5645
  let end = length === undefined ? reader.len : reader.pos + length;
5251
5646
  const message = createBaseRepeatedRules();
5252
5647
  while (reader.pos < end) {
@@ -5306,8 +5701,12 @@ export const RepeatedRules: MessageFns<RepeatedRules> = {
5306
5701
  minItems: isSet(object.minItems) ? globalThis.Number(object.minItems) : 0,
5307
5702
  maxItems: isSet(object.maxItems) ? globalThis.Number(object.maxItems) : 0,
5308
5703
  unique: isSet(object.unique) ? globalThis.Boolean(object.unique) : false,
5309
- items: isSet(object.items) ? FieldRules.fromJSON(object.items) : undefined,
5310
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
5704
+ items: isSet(object.items)
5705
+ ? FieldRules.fromJSON(object.items)
5706
+ : undefined,
5707
+ ignoreEmpty: isSet(object.ignoreEmpty)
5708
+ ? globalThis.Boolean(object.ignoreEmpty)
5709
+ : false,
5311
5710
  };
5312
5711
  },
5313
5712
 
@@ -5339,20 +5738,31 @@ export const RepeatedRules: MessageFns<RepeatedRules> = {
5339
5738
  message.minItems = object.minItems ?? 0;
5340
5739
  message.maxItems = object.maxItems ?? 0;
5341
5740
  message.unique = object.unique ?? false;
5342
- message.items = (object.items !== undefined && object.items !== null)
5343
- ? FieldRules.fromPartial(object.items)
5344
- : undefined;
5741
+ message.items =
5742
+ object.items !== undefined && object.items !== null
5743
+ ? FieldRules.fromPartial(object.items)
5744
+ : undefined;
5345
5745
  message.ignoreEmpty = object.ignoreEmpty ?? false;
5346
5746
  return message;
5347
5747
  },
5348
5748
  };
5349
5749
 
5350
5750
  function createBaseMapRules(): MapRules {
5351
- return { minPairs: 0, maxPairs: 0, noSparse: false, keys: undefined, values: undefined, ignoreEmpty: false };
5751
+ return {
5752
+ minPairs: 0,
5753
+ maxPairs: 0,
5754
+ noSparse: false,
5755
+ keys: undefined,
5756
+ values: undefined,
5757
+ ignoreEmpty: false,
5758
+ };
5352
5759
  }
5353
5760
 
5354
5761
  export const MapRules: MessageFns<MapRules> = {
5355
- encode(message: MapRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
5762
+ encode(
5763
+ message: MapRules,
5764
+ writer: BinaryWriter = new BinaryWriter(),
5765
+ ): BinaryWriter {
5356
5766
  if (message.minPairs !== undefined && message.minPairs !== 0) {
5357
5767
  writer.uint32(8).uint64(message.minPairs);
5358
5768
  }
@@ -5375,7 +5785,8 @@ export const MapRules: MessageFns<MapRules> = {
5375
5785
  },
5376
5786
 
5377
5787
  decode(input: BinaryReader | Uint8Array, length?: number): MapRules {
5378
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5788
+ const reader =
5789
+ input instanceof BinaryReader ? input : new BinaryReader(input);
5379
5790
  let end = length === undefined ? reader.len : reader.pos + length;
5380
5791
  const message = createBaseMapRules();
5381
5792
  while (reader.pos < end) {
@@ -5442,10 +5853,16 @@ export const MapRules: MessageFns<MapRules> = {
5442
5853
  return {
5443
5854
  minPairs: isSet(object.minPairs) ? globalThis.Number(object.minPairs) : 0,
5444
5855
  maxPairs: isSet(object.maxPairs) ? globalThis.Number(object.maxPairs) : 0,
5445
- noSparse: isSet(object.noSparse) ? globalThis.Boolean(object.noSparse) : false,
5856
+ noSparse: isSet(object.noSparse)
5857
+ ? globalThis.Boolean(object.noSparse)
5858
+ : false,
5446
5859
  keys: isSet(object.keys) ? FieldRules.fromJSON(object.keys) : undefined,
5447
- values: isSet(object.values) ? FieldRules.fromJSON(object.values) : undefined,
5448
- ignoreEmpty: isSet(object.ignoreEmpty) ? globalThis.Boolean(object.ignoreEmpty) : false,
5860
+ values: isSet(object.values)
5861
+ ? FieldRules.fromJSON(object.values)
5862
+ : undefined,
5863
+ ignoreEmpty: isSet(object.ignoreEmpty)
5864
+ ? globalThis.Boolean(object.ignoreEmpty)
5865
+ : false,
5449
5866
  };
5450
5867
  },
5451
5868
 
@@ -5480,12 +5897,14 @@ export const MapRules: MessageFns<MapRules> = {
5480
5897
  message.minPairs = object.minPairs ?? 0;
5481
5898
  message.maxPairs = object.maxPairs ?? 0;
5482
5899
  message.noSparse = object.noSparse ?? false;
5483
- message.keys = (object.keys !== undefined && object.keys !== null)
5484
- ? FieldRules.fromPartial(object.keys)
5485
- : undefined;
5486
- message.values = (object.values !== undefined && object.values !== null)
5487
- ? FieldRules.fromPartial(object.values)
5488
- : undefined;
5900
+ message.keys =
5901
+ object.keys !== undefined && object.keys !== null
5902
+ ? FieldRules.fromPartial(object.keys)
5903
+ : undefined;
5904
+ message.values =
5905
+ object.values !== undefined && object.values !== null
5906
+ ? FieldRules.fromPartial(object.values)
5907
+ : undefined;
5489
5908
  message.ignoreEmpty = object.ignoreEmpty ?? false;
5490
5909
  return message;
5491
5910
  },
@@ -5496,7 +5915,10 @@ function createBaseAnyRules(): AnyRules {
5496
5915
  }
5497
5916
 
5498
5917
  export const AnyRules: MessageFns<AnyRules> = {
5499
- encode(message: AnyRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
5918
+ encode(
5919
+ message: AnyRules,
5920
+ writer: BinaryWriter = new BinaryWriter(),
5921
+ ): BinaryWriter {
5500
5922
  if (message.required !== undefined && message.required !== false) {
5501
5923
  writer.uint32(8).bool(message.required);
5502
5924
  }
@@ -5510,7 +5932,8 @@ export const AnyRules: MessageFns<AnyRules> = {
5510
5932
  },
5511
5933
 
5512
5934
  decode(input: BinaryReader | Uint8Array, length?: number): AnyRules {
5513
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5935
+ const reader =
5936
+ input instanceof BinaryReader ? input : new BinaryReader(input);
5514
5937
  let end = length === undefined ? reader.len : reader.pos + length;
5515
5938
  const message = createBaseAnyRules();
5516
5939
  while (reader.pos < end) {
@@ -5551,9 +5974,15 @@ export const AnyRules: MessageFns<AnyRules> = {
5551
5974
 
5552
5975
  fromJSON(object: any): AnyRules {
5553
5976
  return {
5554
- required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
5555
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => globalThis.String(e)) : [],
5556
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => globalThis.String(e)) : [],
5977
+ required: isSet(object.required)
5978
+ ? globalThis.Boolean(object.required)
5979
+ : false,
5980
+ in: globalThis.Array.isArray(object?.in)
5981
+ ? object.in.map((e: any) => globalThis.String(e))
5982
+ : [],
5983
+ notIn: globalThis.Array.isArray(object?.notIn)
5984
+ ? object.notIn.map((e: any) => globalThis.String(e))
5985
+ : [],
5557
5986
  };
5558
5987
  },
5559
5988
 
@@ -5597,7 +6026,10 @@ function createBaseDurationRules(): DurationRules {
5597
6026
  }
5598
6027
 
5599
6028
  export const DurationRules: MessageFns<DurationRules> = {
5600
- encode(message: DurationRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
6029
+ encode(
6030
+ message: DurationRules,
6031
+ writer: BinaryWriter = new BinaryWriter(),
6032
+ ): BinaryWriter {
5601
6033
  if (message.required !== undefined && message.required !== false) {
5602
6034
  writer.uint32(8).bool(message.required);
5603
6035
  }
@@ -5626,7 +6058,8 @@ export const DurationRules: MessageFns<DurationRules> = {
5626
6058
  },
5627
6059
 
5628
6060
  decode(input: BinaryReader | Uint8Array, length?: number): DurationRules {
5629
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6061
+ const reader =
6062
+ input instanceof BinaryReader ? input : new BinaryReader(input);
5630
6063
  let end = length === undefined ? reader.len : reader.pos + length;
5631
6064
  const message = createBaseDurationRules();
5632
6065
  while (reader.pos < end) {
@@ -5707,14 +6140,20 @@ export const DurationRules: MessageFns<DurationRules> = {
5707
6140
 
5708
6141
  fromJSON(object: any): DurationRules {
5709
6142
  return {
5710
- required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
6143
+ required: isSet(object.required)
6144
+ ? globalThis.Boolean(object.required)
6145
+ : false,
5711
6146
  const: isSet(object.const) ? Duration.fromJSON(object.const) : undefined,
5712
6147
  lt: isSet(object.lt) ? Duration.fromJSON(object.lt) : undefined,
5713
6148
  lte: isSet(object.lte) ? Duration.fromJSON(object.lte) : undefined,
5714
6149
  gt: isSet(object.gt) ? Duration.fromJSON(object.gt) : undefined,
5715
6150
  gte: isSet(object.gte) ? Duration.fromJSON(object.gte) : undefined,
5716
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e: any) => Duration.fromJSON(e)) : [],
5717
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e: any) => Duration.fromJSON(e)) : [],
6151
+ in: globalThis.Array.isArray(object?.in)
6152
+ ? object.in.map((e: any) => Duration.fromJSON(e))
6153
+ : [],
6154
+ notIn: globalThis.Array.isArray(object?.notIn)
6155
+ ? object.notIn.map((e: any) => Duration.fromJSON(e))
6156
+ : [],
5718
6157
  };
5719
6158
  },
5720
6159
 
@@ -5753,13 +6192,26 @@ export const DurationRules: MessageFns<DurationRules> = {
5753
6192
  fromPartial(object: DeepPartial<DurationRules>): DurationRules {
5754
6193
  const message = createBaseDurationRules();
5755
6194
  message.required = object.required ?? false;
5756
- message.const = (object.const !== undefined && object.const !== null)
5757
- ? Duration.fromPartial(object.const)
5758
- : undefined;
5759
- message.lt = (object.lt !== undefined && object.lt !== null) ? Duration.fromPartial(object.lt) : undefined;
5760
- message.lte = (object.lte !== undefined && object.lte !== null) ? Duration.fromPartial(object.lte) : undefined;
5761
- message.gt = (object.gt !== undefined && object.gt !== null) ? Duration.fromPartial(object.gt) : undefined;
5762
- message.gte = (object.gte !== undefined && object.gte !== null) ? Duration.fromPartial(object.gte) : undefined;
6195
+ message.const =
6196
+ object.const !== undefined && object.const !== null
6197
+ ? Duration.fromPartial(object.const)
6198
+ : undefined;
6199
+ message.lt =
6200
+ object.lt !== undefined && object.lt !== null
6201
+ ? Duration.fromPartial(object.lt)
6202
+ : undefined;
6203
+ message.lte =
6204
+ object.lte !== undefined && object.lte !== null
6205
+ ? Duration.fromPartial(object.lte)
6206
+ : undefined;
6207
+ message.gt =
6208
+ object.gt !== undefined && object.gt !== null
6209
+ ? Duration.fromPartial(object.gt)
6210
+ : undefined;
6211
+ message.gte =
6212
+ object.gte !== undefined && object.gte !== null
6213
+ ? Duration.fromPartial(object.gte)
6214
+ : undefined;
5763
6215
  message.in = object.in?.map((e) => Duration.fromPartial(e)) || [];
5764
6216
  message.notIn = object.notIn?.map((e) => Duration.fromPartial(e)) || [];
5765
6217
  return message;
@@ -5781,24 +6233,42 @@ function createBaseTimestampRules(): TimestampRules {
5781
6233
  }
5782
6234
 
5783
6235
  export const TimestampRules: MessageFns<TimestampRules> = {
5784
- encode(message: TimestampRules, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
6236
+ encode(
6237
+ message: TimestampRules,
6238
+ writer: BinaryWriter = new BinaryWriter(),
6239
+ ): BinaryWriter {
5785
6240
  if (message.required !== undefined && message.required !== false) {
5786
6241
  writer.uint32(8).bool(message.required);
5787
6242
  }
5788
6243
  if (message.const !== undefined) {
5789
- Timestamp.encode(toTimestamp(message.const), writer.uint32(18).fork()).join();
6244
+ Timestamp.encode(
6245
+ toTimestamp(message.const),
6246
+ writer.uint32(18).fork(),
6247
+ ).join();
5790
6248
  }
5791
6249
  if (message.lt !== undefined) {
5792
- Timestamp.encode(toTimestamp(message.lt), writer.uint32(26).fork()).join();
6250
+ Timestamp.encode(
6251
+ toTimestamp(message.lt),
6252
+ writer.uint32(26).fork(),
6253
+ ).join();
5793
6254
  }
5794
6255
  if (message.lte !== undefined) {
5795
- Timestamp.encode(toTimestamp(message.lte), writer.uint32(34).fork()).join();
6256
+ Timestamp.encode(
6257
+ toTimestamp(message.lte),
6258
+ writer.uint32(34).fork(),
6259
+ ).join();
5796
6260
  }
5797
6261
  if (message.gt !== undefined) {
5798
- Timestamp.encode(toTimestamp(message.gt), writer.uint32(42).fork()).join();
6262
+ Timestamp.encode(
6263
+ toTimestamp(message.gt),
6264
+ writer.uint32(42).fork(),
6265
+ ).join();
5799
6266
  }
5800
6267
  if (message.gte !== undefined) {
5801
- Timestamp.encode(toTimestamp(message.gte), writer.uint32(50).fork()).join();
6268
+ Timestamp.encode(
6269
+ toTimestamp(message.gte),
6270
+ writer.uint32(50).fork(),
6271
+ ).join();
5802
6272
  }
5803
6273
  if (message.ltNow !== undefined && message.ltNow !== false) {
5804
6274
  writer.uint32(56).bool(message.ltNow);
@@ -5813,7 +6283,8 @@ export const TimestampRules: MessageFns<TimestampRules> = {
5813
6283
  },
5814
6284
 
5815
6285
  decode(input: BinaryReader | Uint8Array, length?: number): TimestampRules {
5816
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6286
+ const reader =
6287
+ input instanceof BinaryReader ? input : new BinaryReader(input);
5817
6288
  let end = length === undefined ? reader.len : reader.pos + length;
5818
6289
  const message = createBaseTimestampRules();
5819
6290
  while (reader.pos < end) {
@@ -5832,7 +6303,9 @@ export const TimestampRules: MessageFns<TimestampRules> = {
5832
6303
  break;
5833
6304
  }
5834
6305
 
5835
- message.const = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
6306
+ message.const = fromTimestamp(
6307
+ Timestamp.decode(reader, reader.uint32()),
6308
+ );
5836
6309
  continue;
5837
6310
  }
5838
6311
  case 3: {
@@ -5848,7 +6321,9 @@ export const TimestampRules: MessageFns<TimestampRules> = {
5848
6321
  break;
5849
6322
  }
5850
6323
 
5851
- message.lte = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
6324
+ message.lte = fromTimestamp(
6325
+ Timestamp.decode(reader, reader.uint32()),
6326
+ );
5852
6327
  continue;
5853
6328
  }
5854
6329
  case 5: {
@@ -5864,7 +6339,9 @@ export const TimestampRules: MessageFns<TimestampRules> = {
5864
6339
  break;
5865
6340
  }
5866
6341
 
5867
- message.gte = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
6342
+ message.gte = fromTimestamp(
6343
+ Timestamp.decode(reader, reader.uint32()),
6344
+ );
5868
6345
  continue;
5869
6346
  }
5870
6347
  case 7: {
@@ -5902,7 +6379,9 @@ export const TimestampRules: MessageFns<TimestampRules> = {
5902
6379
 
5903
6380
  fromJSON(object: any): TimestampRules {
5904
6381
  return {
5905
- required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
6382
+ required: isSet(object.required)
6383
+ ? globalThis.Boolean(object.required)
6384
+ : false,
5906
6385
  const: isSet(object.const) ? fromJsonTimestamp(object.const) : undefined,
5907
6386
  lt: isSet(object.lt) ? fromJsonTimestamp(object.lt) : undefined,
5908
6387
  lte: isSet(object.lte) ? fromJsonTimestamp(object.lte) : undefined,
@@ -5910,7 +6389,9 @@ export const TimestampRules: MessageFns<TimestampRules> = {
5910
6389
  gte: isSet(object.gte) ? fromJsonTimestamp(object.gte) : undefined,
5911
6390
  ltNow: isSet(object.ltNow) ? globalThis.Boolean(object.ltNow) : false,
5912
6391
  gtNow: isSet(object.gtNow) ? globalThis.Boolean(object.gtNow) : false,
5913
- within: isSet(object.within) ? Duration.fromJSON(object.within) : undefined,
6392
+ within: isSet(object.within)
6393
+ ? Duration.fromJSON(object.within)
6394
+ : undefined,
5914
6395
  };
5915
6396
  },
5916
6397
 
@@ -5959,9 +6440,10 @@ export const TimestampRules: MessageFns<TimestampRules> = {
5959
6440
  message.gte = object.gte ?? undefined;
5960
6441
  message.ltNow = object.ltNow ?? false;
5961
6442
  message.gtNow = object.gtNow ?? false;
5962
- message.within = (object.within !== undefined && object.within !== null)
5963
- ? Duration.fromPartial(object.within)
5964
- : undefined;
6443
+ message.within =
6444
+ object.within !== undefined && object.within !== null
6445
+ ? Duration.fromPartial(object.within)
6446
+ : undefined;
5965
6447
  return message;
5966
6448
  },
5967
6449
  };
@@ -5991,14 +6473,28 @@ function base64FromBytes(arr: Uint8Array): string {
5991
6473
  }
5992
6474
  }
5993
6475
 
5994
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
5995
-
5996
- export type DeepPartial<T> = T extends Builtin ? T
5997
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
5998
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
5999
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
6000
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
6001
- : Partial<T>;
6476
+ type Builtin =
6477
+ | Date
6478
+ | Function
6479
+ | Uint8Array
6480
+ | string
6481
+ | number
6482
+ | boolean
6483
+ | undefined;
6484
+
6485
+ export type DeepPartial<T> = T extends Builtin
6486
+ ? T
6487
+ : T extends globalThis.Array<infer U>
6488
+ ? globalThis.Array<DeepPartial<U>>
6489
+ : T extends ReadonlyArray<infer U>
6490
+ ? ReadonlyArray<DeepPartial<U>>
6491
+ : T extends { $case: string }
6492
+ ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & {
6493
+ $case: T["$case"];
6494
+ }
6495
+ : T extends {}
6496
+ ? { [K in keyof T]?: DeepPartial<T[K]> }
6497
+ : Partial<T>;
6002
6498
 
6003
6499
  function toTimestamp(date: Date): Timestamp {
6004
6500
  const seconds = Math.trunc(date.getTime() / 1_000);