@eide/foir-proto-ts 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@
39
39
  //
40
40
  // These rules are enforced at runtime by language-specific libraries.
41
41
  // See the [developer quickstart](https://protovalidate.com/quickstart/) to get started, or go directly to the runtime library for your language:
42
- // [Go](https://github.com/bufbuild/protovalidate-go)
42
+ // [Go](https://github.com/bufbuild/protovalidate-go),
43
43
  // [JavaScript/TypeScript](https://github.com/bufbuild/protovalidate-es),
44
44
  // [Java](https://github.com/bufbuild/protovalidate-java),
45
45
  // [Python](https://github.com/bufbuild/protovalidate-python),
@@ -151,7 +151,7 @@ export declare type MessageRules = Message<"buf.validate.MessageRules"> & {
151
151
  * // The field `foo` must be greater than 42.
152
152
  * option (buf.validate.message).cel = {
153
153
  * id: "my_message.value",
154
- * message: "value must be greater than 42",
154
+ * message: "must be greater than 42",
155
155
  * expression: "this.foo > 42",
156
156
  * };
157
157
  * optional int32 foo = 1;
@@ -310,7 +310,7 @@ export declare type FieldRules = Message<"buf.validate.FieldRules"> & {
310
310
  * // The field `value` must be greater than 42.
311
311
  * optional int32 value = 1 [(buf.validate.field).cel = {
312
312
  * id: "my_message.value",
313
- * message: "value must be greater than 42",
313
+ * message: "must be greater than 42",
314
314
  * expression: "this > 42",
315
315
  * }];
316
316
  * }
@@ -567,7 +567,7 @@ export declare type PredefinedRules = Message<"buf.validate.PredefinedRules"> &
567
567
  * // The field `value` must be greater than 42.
568
568
  * optional int32 value = 1 [(buf.validate.predefined).cel = {
569
569
  * id: "my_message.value",
570
- * message: "value must be greater than 42",
570
+ * message: "must be greater than 42",
571
571
  * expression: "this > 42",
572
572
  * }];
573
573
  * }
@@ -617,7 +617,7 @@ export declare type FloatRules = Message<"buf.validate.FloatRules"> & {
617
617
  *
618
618
  * ```proto
619
619
  * message MyFloat {
620
- * // value must be less than 10.0
620
+ * // must be less than 10.0
621
621
  * float value = 1 [(buf.validate.field).float.lt = 10.0];
622
622
  * }
623
623
  * ```
@@ -634,7 +634,7 @@ export declare type FloatRules = Message<"buf.validate.FloatRules"> & {
634
634
  *
635
635
  * ```proto
636
636
  * message MyFloat {
637
- * // value must be less than or equal to 10.0
637
+ * // must be less than or equal to 10.0
638
638
  * float value = 1 [(buf.validate.field).float.lte = 10.0];
639
639
  * }
640
640
  * ```
@@ -658,13 +658,13 @@ export declare type FloatRules = Message<"buf.validate.FloatRules"> & {
658
658
  *
659
659
  * ```proto
660
660
  * message MyFloat {
661
- * // value must be greater than 5.0 [float.gt]
661
+ * // must be greater than 5.0 [float.gt]
662
662
  * float value = 1 [(buf.validate.field).float.gt = 5.0];
663
663
  *
664
- * // value must be greater than 5 and less than 10.0 [float.gt_lt]
664
+ * // must be greater than 5 and less than 10.0 [float.gt_lt]
665
665
  * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
666
666
  *
667
- * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
667
+ * // must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
668
668
  * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
669
669
  * }
670
670
  * ```
@@ -683,13 +683,13 @@ export declare type FloatRules = Message<"buf.validate.FloatRules"> & {
683
683
  *
684
684
  * ```proto
685
685
  * message MyFloat {
686
- * // value must be greater than or equal to 5.0 [float.gte]
686
+ * // must be greater than or equal to 5.0 [float.gte]
687
687
  * float value = 1 [(buf.validate.field).float.gte = 5.0];
688
688
  *
689
- * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
689
+ * // must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
690
690
  * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
691
691
  *
692
- * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
692
+ * // must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
693
693
  * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
694
694
  * }
695
695
  * ```
@@ -707,7 +707,7 @@ export declare type FloatRules = Message<"buf.validate.FloatRules"> & {
707
707
  *
708
708
  * ```proto
709
709
  * message MyFloat {
710
- * // value must be in list [1.0, 2.0, 3.0]
710
+ * // must be in list [1.0, 2.0, 3.0]
711
711
  * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
712
712
  * }
713
713
  * ```
@@ -717,7 +717,7 @@ export declare type FloatRules = Message<"buf.validate.FloatRules"> & {
717
717
  in: number[];
718
718
 
719
719
  /**
720
- * `in` requires the field value to not be equal to any of the specified
720
+ * `not_in` requires the field value to not be equal to any of the specified
721
721
  * values. If the field value is one of the specified values, an error
722
722
  * message is generated.
723
723
  *
@@ -798,7 +798,7 @@ export declare type DoubleRules = Message<"buf.validate.DoubleRules"> & {
798
798
  *
799
799
  * ```proto
800
800
  * message MyDouble {
801
- * // value must be less than 10.0
801
+ * // must be less than 10.0
802
802
  * double value = 1 [(buf.validate.field).double.lt = 10.0];
803
803
  * }
804
804
  * ```
@@ -815,7 +815,7 @@ export declare type DoubleRules = Message<"buf.validate.DoubleRules"> & {
815
815
  *
816
816
  * ```proto
817
817
  * message MyDouble {
818
- * // value must be less than or equal to 10.0
818
+ * // must be less than or equal to 10.0
819
819
  * double value = 1 [(buf.validate.field).double.lte = 10.0];
820
820
  * }
821
821
  * ```
@@ -839,13 +839,13 @@ export declare type DoubleRules = Message<"buf.validate.DoubleRules"> & {
839
839
  *
840
840
  * ```proto
841
841
  * message MyDouble {
842
- * // value must be greater than 5.0 [double.gt]
842
+ * // must be greater than 5.0 [double.gt]
843
843
  * double value = 1 [(buf.validate.field).double.gt = 5.0];
844
844
  *
845
- * // value must be greater than 5 and less than 10.0 [double.gt_lt]
845
+ * // must be greater than 5 and less than 10.0 [double.gt_lt]
846
846
  * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
847
847
  *
848
- * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
848
+ * // must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
849
849
  * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
850
850
  * }
851
851
  * ```
@@ -864,13 +864,13 @@ export declare type DoubleRules = Message<"buf.validate.DoubleRules"> & {
864
864
  *
865
865
  * ```proto
866
866
  * message MyDouble {
867
- * // value must be greater than or equal to 5.0 [double.gte]
867
+ * // must be greater than or equal to 5.0 [double.gte]
868
868
  * double value = 1 [(buf.validate.field).double.gte = 5.0];
869
869
  *
870
- * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
870
+ * // must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
871
871
  * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
872
872
  *
873
- * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
873
+ * // must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
874
874
  * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
875
875
  * }
876
876
  * ```
@@ -888,7 +888,7 @@ export declare type DoubleRules = Message<"buf.validate.DoubleRules"> & {
888
888
  *
889
889
  * ```proto
890
890
  * message MyDouble {
891
- * // value must be in list [1.0, 2.0, 3.0]
891
+ * // must be in list [1.0, 2.0, 3.0]
892
892
  * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
893
893
  * }
894
894
  * ```
@@ -979,7 +979,7 @@ export declare type Int32Rules = Message<"buf.validate.Int32Rules"> & {
979
979
  *
980
980
  * ```proto
981
981
  * message MyInt32 {
982
- * // value must be less than 10
982
+ * // must be less than 10
983
983
  * int32 value = 1 [(buf.validate.field).int32.lt = 10];
984
984
  * }
985
985
  * ```
@@ -996,7 +996,7 @@ export declare type Int32Rules = Message<"buf.validate.Int32Rules"> & {
996
996
  *
997
997
  * ```proto
998
998
  * message MyInt32 {
999
- * // value must be less than or equal to 10
999
+ * // must be less than or equal to 10
1000
1000
  * int32 value = 1 [(buf.validate.field).int32.lte = 10];
1001
1001
  * }
1002
1002
  * ```
@@ -1020,13 +1020,13 @@ export declare type Int32Rules = Message<"buf.validate.Int32Rules"> & {
1020
1020
  *
1021
1021
  * ```proto
1022
1022
  * message MyInt32 {
1023
- * // value must be greater than 5 [int32.gt]
1023
+ * // must be greater than 5 [int32.gt]
1024
1024
  * int32 value = 1 [(buf.validate.field).int32.gt = 5];
1025
1025
  *
1026
- * // value must be greater than 5 and less than 10 [int32.gt_lt]
1026
+ * // must be greater than 5 and less than 10 [int32.gt_lt]
1027
1027
  * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
1028
1028
  *
1029
- * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
1029
+ * // must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
1030
1030
  * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
1031
1031
  * }
1032
1032
  * ```
@@ -1045,13 +1045,13 @@ export declare type Int32Rules = Message<"buf.validate.Int32Rules"> & {
1045
1045
  *
1046
1046
  * ```proto
1047
1047
  * message MyInt32 {
1048
- * // value must be greater than or equal to 5 [int32.gte]
1048
+ * // must be greater than or equal to 5 [int32.gte]
1049
1049
  * int32 value = 1 [(buf.validate.field).int32.gte = 5];
1050
1050
  *
1051
- * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
1051
+ * // must be greater than or equal to 5 and less than 10 [int32.gte_lt]
1052
1052
  * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
1053
1053
  *
1054
- * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
1054
+ * // must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
1055
1055
  * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
1056
1056
  * }
1057
1057
  * ```
@@ -1069,7 +1069,7 @@ export declare type Int32Rules = Message<"buf.validate.Int32Rules"> & {
1069
1069
  *
1070
1070
  * ```proto
1071
1071
  * message MyInt32 {
1072
- * // value must be in list [1, 2, 3]
1072
+ * // must be in list [1, 2, 3]
1073
1073
  * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
1074
1074
  * }
1075
1075
  * ```
@@ -1152,7 +1152,7 @@ export declare type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1152
1152
  *
1153
1153
  * ```proto
1154
1154
  * message MyInt64 {
1155
- * // value must be less than 10
1155
+ * // must be less than 10
1156
1156
  * int64 value = 1 [(buf.validate.field).int64.lt = 10];
1157
1157
  * }
1158
1158
  * ```
@@ -1169,7 +1169,7 @@ export declare type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1169
1169
  *
1170
1170
  * ```proto
1171
1171
  * message MyInt64 {
1172
- * // value must be less than or equal to 10
1172
+ * // must be less than or equal to 10
1173
1173
  * int64 value = 1 [(buf.validate.field).int64.lte = 10];
1174
1174
  * }
1175
1175
  * ```
@@ -1193,13 +1193,13 @@ export declare type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1193
1193
  *
1194
1194
  * ```proto
1195
1195
  * message MyInt64 {
1196
- * // value must be greater than 5 [int64.gt]
1196
+ * // must be greater than 5 [int64.gt]
1197
1197
  * int64 value = 1 [(buf.validate.field).int64.gt = 5];
1198
1198
  *
1199
- * // value must be greater than 5 and less than 10 [int64.gt_lt]
1199
+ * // must be greater than 5 and less than 10 [int64.gt_lt]
1200
1200
  * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
1201
1201
  *
1202
- * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
1202
+ * // must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
1203
1203
  * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
1204
1204
  * }
1205
1205
  * ```
@@ -1218,13 +1218,13 @@ export declare type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1218
1218
  *
1219
1219
  * ```proto
1220
1220
  * message MyInt64 {
1221
- * // value must be greater than or equal to 5 [int64.gte]
1221
+ * // must be greater than or equal to 5 [int64.gte]
1222
1222
  * int64 value = 1 [(buf.validate.field).int64.gte = 5];
1223
1223
  *
1224
- * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
1224
+ * // must be greater than or equal to 5 and less than 10 [int64.gte_lt]
1225
1225
  * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
1226
1226
  *
1227
- * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
1227
+ * // must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
1228
1228
  * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
1229
1229
  * }
1230
1230
  * ```
@@ -1242,7 +1242,7 @@ export declare type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1242
1242
  *
1243
1243
  * ```proto
1244
1244
  * message MyInt64 {
1245
- * // value must be in list [1, 2, 3]
1245
+ * // must be in list [1, 2, 3]
1246
1246
  * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
1247
1247
  * }
1248
1248
  * ```
@@ -1325,7 +1325,7 @@ export declare type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1325
1325
  *
1326
1326
  * ```proto
1327
1327
  * message MyUInt32 {
1328
- * // value must be less than 10
1328
+ * // must be less than 10
1329
1329
  * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
1330
1330
  * }
1331
1331
  * ```
@@ -1342,7 +1342,7 @@ export declare type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1342
1342
  *
1343
1343
  * ```proto
1344
1344
  * message MyUInt32 {
1345
- * // value must be less than or equal to 10
1345
+ * // must be less than or equal to 10
1346
1346
  * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
1347
1347
  * }
1348
1348
  * ```
@@ -1366,13 +1366,13 @@ export declare type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1366
1366
  *
1367
1367
  * ```proto
1368
1368
  * message MyUInt32 {
1369
- * // value must be greater than 5 [uint32.gt]
1369
+ * // must be greater than 5 [uint32.gt]
1370
1370
  * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
1371
1371
  *
1372
- * // value must be greater than 5 and less than 10 [uint32.gt_lt]
1372
+ * // must be greater than 5 and less than 10 [uint32.gt_lt]
1373
1373
  * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
1374
1374
  *
1375
- * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
1375
+ * // must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
1376
1376
  * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
1377
1377
  * }
1378
1378
  * ```
@@ -1391,13 +1391,13 @@ export declare type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1391
1391
  *
1392
1392
  * ```proto
1393
1393
  * message MyUInt32 {
1394
- * // value must be greater than or equal to 5 [uint32.gte]
1394
+ * // must be greater than or equal to 5 [uint32.gte]
1395
1395
  * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
1396
1396
  *
1397
- * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
1397
+ * // must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
1398
1398
  * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
1399
1399
  *
1400
- * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
1400
+ * // must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
1401
1401
  * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
1402
1402
  * }
1403
1403
  * ```
@@ -1415,7 +1415,7 @@ export declare type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1415
1415
  *
1416
1416
  * ```proto
1417
1417
  * message MyUInt32 {
1418
- * // value must be in list [1, 2, 3]
1418
+ * // must be in list [1, 2, 3]
1419
1419
  * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
1420
1420
  * }
1421
1421
  * ```
@@ -1498,7 +1498,7 @@ export declare type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1498
1498
  *
1499
1499
  * ```proto
1500
1500
  * message MyUInt64 {
1501
- * // value must be less than 10
1501
+ * // must be less than 10
1502
1502
  * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
1503
1503
  * }
1504
1504
  * ```
@@ -1515,7 +1515,7 @@ export declare type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1515
1515
  *
1516
1516
  * ```proto
1517
1517
  * message MyUInt64 {
1518
- * // value must be less than or equal to 10
1518
+ * // must be less than or equal to 10
1519
1519
  * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
1520
1520
  * }
1521
1521
  * ```
@@ -1539,13 +1539,13 @@ export declare type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1539
1539
  *
1540
1540
  * ```proto
1541
1541
  * message MyUInt64 {
1542
- * // value must be greater than 5 [uint64.gt]
1542
+ * // must be greater than 5 [uint64.gt]
1543
1543
  * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
1544
1544
  *
1545
- * // value must be greater than 5 and less than 10 [uint64.gt_lt]
1545
+ * // must be greater than 5 and less than 10 [uint64.gt_lt]
1546
1546
  * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
1547
1547
  *
1548
- * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
1548
+ * // must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
1549
1549
  * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
1550
1550
  * }
1551
1551
  * ```
@@ -1564,13 +1564,13 @@ export declare type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1564
1564
  *
1565
1565
  * ```proto
1566
1566
  * message MyUInt64 {
1567
- * // value must be greater than or equal to 5 [uint64.gte]
1567
+ * // must be greater than or equal to 5 [uint64.gte]
1568
1568
  * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
1569
1569
  *
1570
- * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
1570
+ * // must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
1571
1571
  * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
1572
1572
  *
1573
- * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
1573
+ * // must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
1574
1574
  * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
1575
1575
  * }
1576
1576
  * ```
@@ -1588,7 +1588,7 @@ export declare type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1588
1588
  *
1589
1589
  * ```proto
1590
1590
  * message MyUInt64 {
1591
- * // value must be in list [1, 2, 3]
1591
+ * // must be in list [1, 2, 3]
1592
1592
  * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
1593
1593
  * }
1594
1594
  * ```
@@ -1670,7 +1670,7 @@ export declare type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1670
1670
  *
1671
1671
  * ```proto
1672
1672
  * message MySInt32 {
1673
- * // value must be less than 10
1673
+ * // must be less than 10
1674
1674
  * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
1675
1675
  * }
1676
1676
  * ```
@@ -1687,7 +1687,7 @@ export declare type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1687
1687
  *
1688
1688
  * ```proto
1689
1689
  * message MySInt32 {
1690
- * // value must be less than or equal to 10
1690
+ * // must be less than or equal to 10
1691
1691
  * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
1692
1692
  * }
1693
1693
  * ```
@@ -1711,13 +1711,13 @@ export declare type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1711
1711
  *
1712
1712
  * ```proto
1713
1713
  * message MySInt32 {
1714
- * // value must be greater than 5 [sint32.gt]
1714
+ * // must be greater than 5 [sint32.gt]
1715
1715
  * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
1716
1716
  *
1717
- * // value must be greater than 5 and less than 10 [sint32.gt_lt]
1717
+ * // must be greater than 5 and less than 10 [sint32.gt_lt]
1718
1718
  * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
1719
1719
  *
1720
- * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
1720
+ * // must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
1721
1721
  * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
1722
1722
  * }
1723
1723
  * ```
@@ -1736,13 +1736,13 @@ export declare type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1736
1736
  *
1737
1737
  * ```proto
1738
1738
  * message MySInt32 {
1739
- * // value must be greater than or equal to 5 [sint32.gte]
1739
+ * // must be greater than or equal to 5 [sint32.gte]
1740
1740
  * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
1741
1741
  *
1742
- * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
1742
+ * // must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
1743
1743
  * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
1744
1744
  *
1745
- * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
1745
+ * // must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
1746
1746
  * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
1747
1747
  * }
1748
1748
  * ```
@@ -1760,7 +1760,7 @@ export declare type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1760
1760
  *
1761
1761
  * ```proto
1762
1762
  * message MySInt32 {
1763
- * // value must be in list [1, 2, 3]
1763
+ * // must be in list [1, 2, 3]
1764
1764
  * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
1765
1765
  * }
1766
1766
  * ```
@@ -1842,7 +1842,7 @@ export declare type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1842
1842
  *
1843
1843
  * ```proto
1844
1844
  * message MySInt64 {
1845
- * // value must be less than 10
1845
+ * // must be less than 10
1846
1846
  * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
1847
1847
  * }
1848
1848
  * ```
@@ -1859,7 +1859,7 @@ export declare type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1859
1859
  *
1860
1860
  * ```proto
1861
1861
  * message MySInt64 {
1862
- * // value must be less than or equal to 10
1862
+ * // must be less than or equal to 10
1863
1863
  * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
1864
1864
  * }
1865
1865
  * ```
@@ -1883,13 +1883,13 @@ export declare type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1883
1883
  *
1884
1884
  * ```proto
1885
1885
  * message MySInt64 {
1886
- * // value must be greater than 5 [sint64.gt]
1886
+ * // must be greater than 5 [sint64.gt]
1887
1887
  * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
1888
1888
  *
1889
- * // value must be greater than 5 and less than 10 [sint64.gt_lt]
1889
+ * // must be greater than 5 and less than 10 [sint64.gt_lt]
1890
1890
  * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
1891
1891
  *
1892
- * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
1892
+ * // must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
1893
1893
  * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
1894
1894
  * }
1895
1895
  * ```
@@ -1908,13 +1908,13 @@ export declare type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1908
1908
  *
1909
1909
  * ```proto
1910
1910
  * message MySInt64 {
1911
- * // value must be greater than or equal to 5 [sint64.gte]
1911
+ * // must be greater than or equal to 5 [sint64.gte]
1912
1912
  * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
1913
1913
  *
1914
- * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
1914
+ * // must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
1915
1915
  * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
1916
1916
  *
1917
- * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
1917
+ * // must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
1918
1918
  * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
1919
1919
  * }
1920
1920
  * ```
@@ -1932,7 +1932,7 @@ export declare type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1932
1932
  *
1933
1933
  * ```proto
1934
1934
  * message MySInt64 {
1935
- * // value must be in list [1, 2, 3]
1935
+ * // must be in list [1, 2, 3]
1936
1936
  * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
1937
1937
  * }
1938
1938
  * ```
@@ -2014,7 +2014,7 @@ export declare type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
2014
2014
  *
2015
2015
  * ```proto
2016
2016
  * message MyFixed32 {
2017
- * // value must be less than 10
2017
+ * // must be less than 10
2018
2018
  * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
2019
2019
  * }
2020
2020
  * ```
@@ -2031,7 +2031,7 @@ export declare type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
2031
2031
  *
2032
2032
  * ```proto
2033
2033
  * message MyFixed32 {
2034
- * // value must be less than or equal to 10
2034
+ * // must be less than or equal to 10
2035
2035
  * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
2036
2036
  * }
2037
2037
  * ```
@@ -2055,13 +2055,13 @@ export declare type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
2055
2055
  *
2056
2056
  * ```proto
2057
2057
  * message MyFixed32 {
2058
- * // value must be greater than 5 [fixed32.gt]
2058
+ * // must be greater than 5 [fixed32.gt]
2059
2059
  * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
2060
2060
  *
2061
- * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
2061
+ * // must be greater than 5 and less than 10 [fixed32.gt_lt]
2062
2062
  * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
2063
2063
  *
2064
- * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
2064
+ * // must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
2065
2065
  * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
2066
2066
  * }
2067
2067
  * ```
@@ -2080,13 +2080,13 @@ export declare type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
2080
2080
  *
2081
2081
  * ```proto
2082
2082
  * message MyFixed32 {
2083
- * // value must be greater than or equal to 5 [fixed32.gte]
2083
+ * // must be greater than or equal to 5 [fixed32.gte]
2084
2084
  * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
2085
2085
  *
2086
- * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
2086
+ * // must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
2087
2087
  * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
2088
2088
  *
2089
- * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
2089
+ * // must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
2090
2090
  * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
2091
2091
  * }
2092
2092
  * ```
@@ -2104,7 +2104,7 @@ export declare type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
2104
2104
  *
2105
2105
  * ```proto
2106
2106
  * message MyFixed32 {
2107
- * // value must be in list [1, 2, 3]
2107
+ * // must be in list [1, 2, 3]
2108
2108
  * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
2109
2109
  * }
2110
2110
  * ```
@@ -2186,7 +2186,7 @@ export declare type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2186
2186
  *
2187
2187
  * ```proto
2188
2188
  * message MyFixed64 {
2189
- * // value must be less than 10
2189
+ * // must be less than 10
2190
2190
  * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
2191
2191
  * }
2192
2192
  * ```
@@ -2203,7 +2203,7 @@ export declare type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2203
2203
  *
2204
2204
  * ```proto
2205
2205
  * message MyFixed64 {
2206
- * // value must be less than or equal to 10
2206
+ * // must be less than or equal to 10
2207
2207
  * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
2208
2208
  * }
2209
2209
  * ```
@@ -2227,13 +2227,13 @@ export declare type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2227
2227
  *
2228
2228
  * ```proto
2229
2229
  * message MyFixed64 {
2230
- * // value must be greater than 5 [fixed64.gt]
2230
+ * // must be greater than 5 [fixed64.gt]
2231
2231
  * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
2232
2232
  *
2233
- * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
2233
+ * // must be greater than 5 and less than 10 [fixed64.gt_lt]
2234
2234
  * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
2235
2235
  *
2236
- * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
2236
+ * // must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
2237
2237
  * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
2238
2238
  * }
2239
2239
  * ```
@@ -2252,13 +2252,13 @@ export declare type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2252
2252
  *
2253
2253
  * ```proto
2254
2254
  * message MyFixed64 {
2255
- * // value must be greater than or equal to 5 [fixed64.gte]
2255
+ * // must be greater than or equal to 5 [fixed64.gte]
2256
2256
  * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
2257
2257
  *
2258
- * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
2258
+ * // must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
2259
2259
  * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
2260
2260
  *
2261
- * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
2261
+ * // must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
2262
2262
  * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
2263
2263
  * }
2264
2264
  * ```
@@ -2276,7 +2276,7 @@ export declare type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2276
2276
  *
2277
2277
  * ```proto
2278
2278
  * message MyFixed64 {
2279
- * // value must be in list [1, 2, 3]
2279
+ * // must be in list [1, 2, 3]
2280
2280
  * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
2281
2281
  * }
2282
2282
  * ```
@@ -2358,7 +2358,7 @@ export declare type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2358
2358
  *
2359
2359
  * ```proto
2360
2360
  * message MySFixed32 {
2361
- * // value must be less than 10
2361
+ * // must be less than 10
2362
2362
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
2363
2363
  * }
2364
2364
  * ```
@@ -2375,7 +2375,7 @@ export declare type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2375
2375
  *
2376
2376
  * ```proto
2377
2377
  * message MySFixed32 {
2378
- * // value must be less than or equal to 10
2378
+ * // must be less than or equal to 10
2379
2379
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
2380
2380
  * }
2381
2381
  * ```
@@ -2399,13 +2399,13 @@ export declare type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2399
2399
  *
2400
2400
  * ```proto
2401
2401
  * message MySFixed32 {
2402
- * // value must be greater than 5 [sfixed32.gt]
2402
+ * // must be greater than 5 [sfixed32.gt]
2403
2403
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
2404
2404
  *
2405
- * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
2405
+ * // must be greater than 5 and less than 10 [sfixed32.gt_lt]
2406
2406
  * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
2407
2407
  *
2408
- * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
2408
+ * // must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
2409
2409
  * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
2410
2410
  * }
2411
2411
  * ```
@@ -2424,13 +2424,13 @@ export declare type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2424
2424
  *
2425
2425
  * ```proto
2426
2426
  * message MySFixed32 {
2427
- * // value must be greater than or equal to 5 [sfixed32.gte]
2427
+ * // must be greater than or equal to 5 [sfixed32.gte]
2428
2428
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
2429
2429
  *
2430
- * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
2430
+ * // must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
2431
2431
  * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
2432
2432
  *
2433
- * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
2433
+ * // must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
2434
2434
  * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
2435
2435
  * }
2436
2436
  * ```
@@ -2448,7 +2448,7 @@ export declare type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2448
2448
  *
2449
2449
  * ```proto
2450
2450
  * message MySFixed32 {
2451
- * // value must be in list [1, 2, 3]
2451
+ * // must be in list [1, 2, 3]
2452
2452
  * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
2453
2453
  * }
2454
2454
  * ```
@@ -2530,7 +2530,7 @@ export declare type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2530
2530
  *
2531
2531
  * ```proto
2532
2532
  * message MySFixed64 {
2533
- * // value must be less than 10
2533
+ * // must be less than 10
2534
2534
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
2535
2535
  * }
2536
2536
  * ```
@@ -2547,7 +2547,7 @@ export declare type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2547
2547
  *
2548
2548
  * ```proto
2549
2549
  * message MySFixed64 {
2550
- * // value must be less than or equal to 10
2550
+ * // must be less than or equal to 10
2551
2551
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
2552
2552
  * }
2553
2553
  * ```
@@ -2571,13 +2571,13 @@ export declare type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2571
2571
  *
2572
2572
  * ```proto
2573
2573
  * message MySFixed64 {
2574
- * // value must be greater than 5 [sfixed64.gt]
2574
+ * // must be greater than 5 [sfixed64.gt]
2575
2575
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
2576
2576
  *
2577
- * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
2577
+ * // must be greater than 5 and less than 10 [sfixed64.gt_lt]
2578
2578
  * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
2579
2579
  *
2580
- * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
2580
+ * // must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
2581
2581
  * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
2582
2582
  * }
2583
2583
  * ```
@@ -2596,13 +2596,13 @@ export declare type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2596
2596
  *
2597
2597
  * ```proto
2598
2598
  * message MySFixed64 {
2599
- * // value must be greater than or equal to 5 [sfixed64.gte]
2599
+ * // must be greater than or equal to 5 [sfixed64.gte]
2600
2600
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
2601
2601
  *
2602
- * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
2602
+ * // must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
2603
2603
  * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
2604
2604
  *
2605
- * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
2605
+ * // must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
2606
2606
  * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
2607
2607
  * }
2608
2608
  * ```
@@ -2620,7 +2620,7 @@ export declare type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2620
2620
  *
2621
2621
  * ```proto
2622
2622
  * message MySFixed64 {
2623
- * // value must be in list [1, 2, 3]
2623
+ * // must be in list [1, 2, 3]
2624
2624
  * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
2625
2625
  * }
2626
2626
  * ```
@@ -2928,7 +2928,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
2928
2928
  *
2929
2929
  * ```proto
2930
2930
  * message MyString {
2931
- * // value must be in list ["apple", "banana"]
2931
+ * // must be in list ["apple", "banana"]
2932
2932
  * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
2933
2933
  * }
2934
2934
  * ```
@@ -2972,7 +2972,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
2972
2972
  *
2973
2973
  * ```proto
2974
2974
  * message MyString {
2975
- * // value must be a valid email address
2975
+ * // must be a valid email address
2976
2976
  * string value = 1 [(buf.validate.field).string.email = true];
2977
2977
  * }
2978
2978
  * ```
@@ -2998,7 +2998,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
2998
2998
  *
2999
2999
  * ```proto
3000
3000
  * message MyString {
3001
- * // value must be a valid hostname
3001
+ * // must be a valid hostname
3002
3002
  * string value = 1 [(buf.validate.field).string.hostname = true];
3003
3003
  * }
3004
3004
  * ```
@@ -3023,7 +3023,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3023
3023
  *
3024
3024
  * ```proto
3025
3025
  * message MyString {
3026
- * // value must be a valid IP address
3026
+ * // must be a valid IP address
3027
3027
  * string value = 1 [(buf.validate.field).string.ip = true];
3028
3028
  * }
3029
3029
  * ```
@@ -3040,7 +3040,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3040
3040
  *
3041
3041
  * ```proto
3042
3042
  * message MyString {
3043
- * // value must be a valid IPv4 address
3043
+ * // must be a valid IPv4 address
3044
3044
  * string value = 1 [(buf.validate.field).string.ipv4 = true];
3045
3045
  * }
3046
3046
  * ```
@@ -3057,7 +3057,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3057
3057
  *
3058
3058
  * ```proto
3059
3059
  * message MyString {
3060
- * // value must be a valid IPv6 address
3060
+ * // must be a valid IPv6 address
3061
3061
  * string value = 1 [(buf.validate.field).string.ipv6 = true];
3062
3062
  * }
3063
3063
  * ```
@@ -3078,7 +3078,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3078
3078
  *
3079
3079
  * ```proto
3080
3080
  * message MyString {
3081
- * // value must be a valid URI
3081
+ * // must be a valid URI
3082
3082
  * string value = 1 [(buf.validate.field).string.uri = true];
3083
3083
  * }
3084
3084
  * ```
@@ -3102,7 +3102,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3102
3102
  *
3103
3103
  * ```proto
3104
3104
  * message MyString {
3105
- * // value must be a valid URI Reference
3105
+ * // must be a valid URI Reference
3106
3106
  * string value = 1 [(buf.validate.field).string.uri_ref = true];
3107
3107
  * }
3108
3108
  * ```
@@ -3120,7 +3120,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3120
3120
  *
3121
3121
  * ```proto
3122
3122
  * message MyString {
3123
- * // value must be a valid hostname, or ip address
3123
+ * // must be a valid hostname, or ip address
3124
3124
  * string value = 1 [(buf.validate.field).string.address = true];
3125
3125
  * }
3126
3126
  * ```
@@ -3137,7 +3137,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3137
3137
  *
3138
3138
  * ```proto
3139
3139
  * message MyString {
3140
- * // value must be a valid UUID
3140
+ * // must be a valid UUID
3141
3141
  * string value = 1 [(buf.validate.field).string.uuid = true];
3142
3142
  * }
3143
3143
  * ```
@@ -3155,7 +3155,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3155
3155
  *
3156
3156
  * ```proto
3157
3157
  * message MyString {
3158
- * // value must be a valid trimmed UUID
3158
+ * // must be a valid trimmed UUID
3159
3159
  * string value = 1 [(buf.validate.field).string.tuuid = true];
3160
3160
  * }
3161
3161
  * ```
@@ -3173,7 +3173,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3173
3173
  *
3174
3174
  * ```proto
3175
3175
  * message MyString {
3176
- * // value must be a valid IP with prefix length
3176
+ * // must be a valid IP with prefix length
3177
3177
  * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
3178
3178
  * }
3179
3179
  * ```
@@ -3191,7 +3191,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3191
3191
  *
3192
3192
  * ```proto
3193
3193
  * message MyString {
3194
- * // value must be a valid IPv4 address with prefix length
3194
+ * // must be a valid IPv4 address with prefix length
3195
3195
  * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
3196
3196
  * }
3197
3197
  * ```
@@ -3209,7 +3209,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3209
3209
  *
3210
3210
  * ```proto
3211
3211
  * message MyString {
3212
- * // value must be a valid IPv6 address prefix length
3212
+ * // must be a valid IPv6 address prefix length
3213
3213
  * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
3214
3214
  * }
3215
3215
  * ```
@@ -3232,7 +3232,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3232
3232
  *
3233
3233
  * ```proto
3234
3234
  * message MyString {
3235
- * // value must be a valid IP prefix
3235
+ * // must be a valid IP prefix
3236
3236
  * string value = 1 [(buf.validate.field).string.ip_prefix = true];
3237
3237
  * }
3238
3238
  * ```
@@ -3255,7 +3255,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3255
3255
  *
3256
3256
  * ```proto
3257
3257
  * message MyString {
3258
- * // value must be a valid IPv4 prefix
3258
+ * // must be a valid IPv4 prefix
3259
3259
  * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
3260
3260
  * }
3261
3261
  * ```
@@ -3278,7 +3278,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3278
3278
  *
3279
3279
  * ```proto
3280
3280
  * message MyString {
3281
- * // value must be a valid IPv6 prefix
3281
+ * // must be a valid IPv6 prefix
3282
3282
  * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
3283
3283
  * }
3284
3284
  * ```
@@ -3289,7 +3289,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3289
3289
  case: "ipv6Prefix";
3290
3290
  } | {
3291
3291
  /**
3292
- * `host_and_port` specifies that the field value must be valid host/port
3292
+ * `host_and_port` specifies that the field value must be a valid host/port
3293
3293
  * pair—for example, "example.com:8080".
3294
3294
  *
3295
3295
  * The host can be one of:
@@ -3312,7 +3312,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3312
3312
  *
3313
3313
  * ```proto
3314
3314
  * message MyString {
3315
- * // value must be a valid ULID
3315
+ * // must be a valid ULID
3316
3316
  * string value = 1 [(buf.validate.field).string.ulid = true];
3317
3317
  * }
3318
3318
  * ```
@@ -3321,6 +3321,68 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3321
3321
  */
3322
3322
  value: boolean;
3323
3323
  case: "ulid";
3324
+ } | {
3325
+ /**
3326
+ * `protobuf_fqn` specifies that the field value must be a valid fully-qualified
3327
+ * Protobuf name as defined by the [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
3328
+ *
3329
+ * A fully-qualified Protobuf name is a dot-separated list of Protobuf identifiers,
3330
+ * where each identifier starts with a letter or underscore and is followed by zero or
3331
+ * more letters, underscores, or digits.
3332
+ *
3333
+ * Examples: "buf.validate", "google.protobuf.Timestamp", "my_package.MyMessage".
3334
+ *
3335
+ * Note: historically, fully-qualified Protobuf names were represented with a leading
3336
+ * dot (for example, ".buf.validate.StringRules"). Modern Protobuf does not use the
3337
+ * leading dot, and most fully-qualified names are represented without it. Use
3338
+ * `protobuf_dot_fqn` if a leading dot is required.
3339
+ *
3340
+ * If the field value isn't a valid fully-qualified Protobuf name, an error message
3341
+ * will be generated.
3342
+ *
3343
+ * ```proto
3344
+ * message MyString {
3345
+ * // value must be a valid fully-qualified Protobuf name
3346
+ * string value = 1 [(buf.validate.field).string.protobuf_fqn = true];
3347
+ * }
3348
+ * ```
3349
+ *
3350
+ * @generated from field: bool protobuf_fqn = 37;
3351
+ */
3352
+ value: boolean;
3353
+ case: "protobufFqn";
3354
+ } | {
3355
+ /**
3356
+ * `protobuf_dot_fqn` specifies that the field value must be a valid fully-qualified
3357
+ * Protobuf name with a leading dot, as defined by the
3358
+ * [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
3359
+ *
3360
+ * A fully-qualified Protobuf name with a leading dot is a dot followed by a
3361
+ * dot-separated list of Protobuf identifiers, where each identifier starts with a
3362
+ * letter or underscore and is followed by zero or more letters, underscores, or
3363
+ * digits.
3364
+ *
3365
+ * Examples: ".buf.validate", ".google.protobuf.Timestamp", ".my_package.MyMessage".
3366
+ *
3367
+ * Note: this is the historical representation of fully-qualified Protobuf names,
3368
+ * where a leading dot denotes an absolute reference. Modern Protobuf does not use
3369
+ * the leading dot, and most fully-qualified names are represented without it. Most
3370
+ * users will want to use `protobuf_fqn` instead.
3371
+ *
3372
+ * If the field value isn't a valid fully-qualified Protobuf name with a leading dot,
3373
+ * an error message will be generated.
3374
+ *
3375
+ * ```proto
3376
+ * message MyString {
3377
+ * // value must be a valid fully-qualified Protobuf name with a leading dot
3378
+ * string value = 1 [(buf.validate.field).string.protobuf_dot_fqn = true];
3379
+ * }
3380
+ * ```
3381
+ *
3382
+ * @generated from field: bool protobuf_dot_fqn = 38;
3383
+ */
3384
+ value: boolean;
3385
+ case: "protobufDotFqn";
3324
3386
  } | {
3325
3387
  /**
3326
3388
  * `well_known_regex` specifies a common well-known pattern
@@ -3329,7 +3391,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
3329
3391
  *
3330
3392
  * ```proto
3331
3393
  * message MyString {
3332
- * // value must be a valid HTTP header value
3394
+ * // must be a valid HTTP header value
3333
3395
  * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
3334
3396
  * }
3335
3397
  * ```
@@ -3406,7 +3468,7 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
3406
3468
  *
3407
3469
  * ```proto
3408
3470
  * message MyBytes {
3409
- * // value must be "\x01\x02\x03\x04"
3471
+ * // must be "\x01\x02\x03\x04"
3410
3472
  * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
3411
3473
  * }
3412
3474
  * ```
@@ -3453,7 +3515,7 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
3453
3515
  *
3454
3516
  * ```proto
3455
3517
  * message MyBytes {
3456
- * // value must be at most 6 bytes.
3518
+ * // must be at most 6 bytes.
3457
3519
  * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
3458
3520
  * }
3459
3521
  * ```
@@ -3574,7 +3636,7 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
3574
3636
  *
3575
3637
  * ```proto
3576
3638
  * message MyBytes {
3577
- * // value must be a valid IP address
3639
+ * // must be a valid IP address
3578
3640
  * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
3579
3641
  * }
3580
3642
  * ```
@@ -3590,7 +3652,7 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
3590
3652
  *
3591
3653
  * ```proto
3592
3654
  * message MyBytes {
3593
- * // value must be a valid IPv4 address
3655
+ * // must be a valid IPv4 address
3594
3656
  * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
3595
3657
  * }
3596
3658
  * ```
@@ -3605,7 +3667,7 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
3605
3667
  * If the field value doesn't meet this rule, an error message is generated.
3606
3668
  * ```proto
3607
3669
  * message MyBytes {
3608
- * // value must be a valid IPv6 address
3670
+ * // must be a valid IPv6 address
3609
3671
  * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
3610
3672
  * }
3611
3673
  * ```
@@ -3616,15 +3678,14 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
3616
3678
  case: "ipv6";
3617
3679
  } | {
3618
3680
  /**
3619
- * `uuid` ensures that the field `value` encodes the 128-bit UUID data as
3620
- * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
3621
- * The field must contain exactly 16 bytes
3622
- * representing the UUID. If the field value isn't a valid UUID, an error
3623
- * message will be generated.
3681
+ * `uuid` ensures that the field value encodes 128-bit UUID data as defined
3682
+ * by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
3683
+ * The field must contain exactly 16 bytes representing the UUID. If the
3684
+ * field value isn't a valid UUID, an error message will be generated.
3624
3685
  *
3625
3686
  * ```proto
3626
3687
  * message MyBytes {
3627
- * // value must be a valid UUID
3688
+ * // must be a valid UUID
3628
3689
  * optional bytes value = 1 [(buf.validate.field).bytes.uuid = true];
3629
3690
  * }
3630
3691
  * ```
@@ -3979,7 +4040,7 @@ export declare type AnyRules = Message<"buf.validate.AnyRules"> & {
3979
4040
  in: string[];
3980
4041
 
3981
4042
  /**
3982
- * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
4043
+ * `not_in` requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
3983
4044
  *
3984
4045
  * ```proto
3985
4046
  * message MyAny {
@@ -4034,7 +4095,7 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
4034
4095
  *
4035
4096
  * ```proto
4036
4097
  * message MyDuration {
4037
- * // value must be less than 5s
4098
+ * // must be less than 5s
4038
4099
  * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
4039
4100
  * }
4040
4101
  * ```
@@ -4051,7 +4112,7 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
4051
4112
  *
4052
4113
  * ```proto
4053
4114
  * message MyDuration {
4054
- * // value must be less than or equal to 10s
4115
+ * // must be less than or equal to 10s
4055
4116
  * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
4056
4117
  * }
4057
4118
  * ```
@@ -4124,7 +4185,7 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
4124
4185
  *
4125
4186
  * ```proto
4126
4187
  * message MyDuration {
4127
- * // value must be in list [1s, 2s, 3s]
4188
+ * // must be in list [1s, 2s, 3s]
4128
4189
  * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
4129
4190
  * }
4130
4191
  * ```
@@ -4289,12 +4350,12 @@ export declare type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4289
4350
  */
4290
4351
  lessThan: {
4291
4352
  /**
4292
- * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
4353
+ * `lt` requires the timestamp field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
4293
4354
  *
4294
4355
  * ```proto
4295
- * message MyDuration {
4296
- * // duration must be less than 'P3D' [duration.lt]
4297
- * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
4356
+ * message MyTimestamp {
4357
+ * // timestamp must be less than '2023-01-01T00:00:00Z' [timestamp.lt]
4358
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lt = { seconds: 1672444800 }];
4298
4359
  * }
4299
4360
  * ```
4300
4361
  *
@@ -4304,7 +4365,7 @@ export declare type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4304
4365
  case: "lt";
4305
4366
  } | {
4306
4367
  /**
4307
- * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
4368
+ * `lte` requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
4308
4369
  *
4309
4370
  * ```proto
4310
4371
  * message MyTimestamp {
@@ -4323,7 +4384,7 @@ export declare type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4323
4384
  *
4324
4385
  * ```proto
4325
4386
  * message MyTimestamp {
4326
- * // value must be less than now
4387
+ * // must be less than now
4327
4388
  * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
4328
4389
  * }
4329
4390
  * ```
@@ -4393,7 +4454,7 @@ export declare type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4393
4454
  *
4394
4455
  * ```proto
4395
4456
  * message MyTimestamp {
4396
- * // value must be greater than now
4457
+ * // must be greater than now
4397
4458
  * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
4398
4459
  * }
4399
4460
  * ```
@@ -4409,7 +4470,7 @@ export declare type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4409
4470
  *
4410
4471
  * ```proto
4411
4472
  * message MyTimestamp {
4412
- * // value must be within 1 hour of now
4473
+ * // must be within 1 hour of now
4413
4474
  * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
4414
4475
  * }
4415
4476
  * ```
@@ -4910,7 +4971,7 @@ export declare const field: GenExtension<FieldOptions, FieldRules>;
4910
4971
  * extend buf.validate.Int32Rules {
4911
4972
  * bool is_zero [(buf.validate.predefined).cel = {
4912
4973
  * id: "int32.is_zero",
4913
- * message: "value must be zero",
4974
+ * message: "must be zero",
4914
4975
  * expression: "!rule || this == 0",
4915
4976
  * }];
4916
4977
  * }