@mochabug/adapt-sdk 0.4.20 → 0.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api.cjs +1 -1
- package/dist/cjs/api.cjs.map +2 -2
- package/dist/cjs/router.cjs +1 -1
- package/dist/cjs/router.cjs.map +2 -2
- package/dist/esm/api.mjs +1 -1
- package/dist/esm/api.mjs.map +2 -2
- package/dist/esm/router.mjs +1 -1
- package/dist/esm/router.mjs.map +2 -2
- package/dist/genproto/buf/validate/validate_pb.d.ts +438 -320
- package/dist/genproto/buf/validate/validate_pb.d.ts.map +1 -1
- package/dist/genproto/google/api/client_pb.d.ts +471 -103
- package/dist/genproto/google/api/client_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +26 -26
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +8 -8
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +4 -4
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +3 -3
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +2 -2
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +2 -2
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts +12 -12
- package/dist/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +2 -2
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +8 -8
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +5 -5
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +13 -13
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +5 -5
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +2 -2
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +2 -2
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +2 -2
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +4 -4
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/configurator_service_pb.d.ts +16 -14
- package/dist/genproto/mochabugapis/adapt/runtime/v1/configurator_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/executor_service_pb.d.ts +16 -14
- package/dist/genproto/mochabugapis/adapt/runtime/v1/executor_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/fileforge_service_pb.d.ts +130 -130
- package/dist/genproto/mochabugapis/adapt/runtime/v1/fileforge_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +7 -7
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/plugin_service_pb.d.ts +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/plugin_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +26 -24
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -145,7 +145,7 @@ export type MessageRules = Message<"buf.validate.MessageRules"> & {
|
|
|
145
145
|
* // The field `foo` must be greater than 42.
|
|
146
146
|
* option (buf.validate.message).cel = {
|
|
147
147
|
* id: "my_message.value",
|
|
148
|
-
* message: "
|
|
148
|
+
* message: "must be greater than 42",
|
|
149
149
|
* expression: "this.foo > 42",
|
|
150
150
|
* };
|
|
151
151
|
* optional int32 foo = 1;
|
|
@@ -236,7 +236,7 @@ export type MessageRulesJson = {
|
|
|
236
236
|
* // The field `foo` must be greater than 42.
|
|
237
237
|
* option (buf.validate.message).cel = {
|
|
238
238
|
* id: "my_message.value",
|
|
239
|
-
* message: "
|
|
239
|
+
* message: "must be greater than 42",
|
|
240
240
|
* expression: "this.foo > 42",
|
|
241
241
|
* };
|
|
242
242
|
* optional int32 foo = 1;
|
|
@@ -440,7 +440,7 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & {
|
|
|
440
440
|
* // The field `value` must be greater than 42.
|
|
441
441
|
* optional int32 value = 1 [(buf.validate.field).cel = {
|
|
442
442
|
* id: "my_message.value",
|
|
443
|
-
* message: "
|
|
443
|
+
* message: "must be greater than 42",
|
|
444
444
|
* expression: "this > 42",
|
|
445
445
|
* }];
|
|
446
446
|
* }
|
|
@@ -710,7 +710,7 @@ export type FieldRulesJson = {
|
|
|
710
710
|
* // The field `value` must be greater than 42.
|
|
711
711
|
* optional int32 value = 1 [(buf.validate.field).cel = {
|
|
712
712
|
* id: "my_message.value",
|
|
713
|
-
* message: "
|
|
713
|
+
* message: "must be greater than 42",
|
|
714
714
|
* expression: "this > 42",
|
|
715
715
|
* }];
|
|
716
716
|
* }
|
|
@@ -916,7 +916,7 @@ export type PredefinedRules = Message<"buf.validate.PredefinedRules"> & {
|
|
|
916
916
|
* // The field `value` must be greater than 42.
|
|
917
917
|
* optional int32 value = 1 [(buf.validate.predefined).cel = {
|
|
918
918
|
* id: "my_message.value",
|
|
919
|
-
* message: "
|
|
919
|
+
* message: "must be greater than 42",
|
|
920
920
|
* expression: "this > 42",
|
|
921
921
|
* }];
|
|
922
922
|
* }
|
|
@@ -943,7 +943,7 @@ export type PredefinedRulesJson = {
|
|
|
943
943
|
* // The field `value` must be greater than 42.
|
|
944
944
|
* optional int32 value = 1 [(buf.validate.predefined).cel = {
|
|
945
945
|
* id: "my_message.value",
|
|
946
|
-
* message: "
|
|
946
|
+
* message: "must be greater than 42",
|
|
947
947
|
* expression: "this > 42",
|
|
948
948
|
* }];
|
|
949
949
|
* }
|
|
@@ -992,7 +992,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
992
992
|
*
|
|
993
993
|
* ```proto
|
|
994
994
|
* message MyFloat {
|
|
995
|
-
* //
|
|
995
|
+
* // must be less than 10.0
|
|
996
996
|
* float value = 1 [(buf.validate.field).float.lt = 10.0];
|
|
997
997
|
* }
|
|
998
998
|
* ```
|
|
@@ -1009,7 +1009,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
1009
1009
|
*
|
|
1010
1010
|
* ```proto
|
|
1011
1011
|
* message MyFloat {
|
|
1012
|
-
* //
|
|
1012
|
+
* // must be less than or equal to 10.0
|
|
1013
1013
|
* float value = 1 [(buf.validate.field).float.lte = 10.0];
|
|
1014
1014
|
* }
|
|
1015
1015
|
* ```
|
|
@@ -1035,13 +1035,13 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
1035
1035
|
*
|
|
1036
1036
|
* ```proto
|
|
1037
1037
|
* message MyFloat {
|
|
1038
|
-
* //
|
|
1038
|
+
* // must be greater than 5.0 [float.gt]
|
|
1039
1039
|
* float value = 1 [(buf.validate.field).float.gt = 5.0];
|
|
1040
1040
|
*
|
|
1041
|
-
* //
|
|
1041
|
+
* // must be greater than 5 and less than 10.0 [float.gt_lt]
|
|
1042
1042
|
* float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
|
|
1043
1043
|
*
|
|
1044
|
-
* //
|
|
1044
|
+
* // must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
|
|
1045
1045
|
* float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
|
|
1046
1046
|
* }
|
|
1047
1047
|
* ```
|
|
@@ -1060,13 +1060,13 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
1060
1060
|
*
|
|
1061
1061
|
* ```proto
|
|
1062
1062
|
* message MyFloat {
|
|
1063
|
-
* //
|
|
1063
|
+
* // must be greater than or equal to 5.0 [float.gte]
|
|
1064
1064
|
* float value = 1 [(buf.validate.field).float.gte = 5.0];
|
|
1065
1065
|
*
|
|
1066
|
-
* //
|
|
1066
|
+
* // must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
|
|
1067
1067
|
* float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
|
|
1068
1068
|
*
|
|
1069
|
-
* //
|
|
1069
|
+
* // must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
|
|
1070
1070
|
* float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
|
|
1071
1071
|
* }
|
|
1072
1072
|
* ```
|
|
@@ -1086,7 +1086,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
1086
1086
|
*
|
|
1087
1087
|
* ```proto
|
|
1088
1088
|
* message MyFloat {
|
|
1089
|
-
* //
|
|
1089
|
+
* // must be in list [1.0, 2.0, 3.0]
|
|
1090
1090
|
* float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
|
|
1091
1091
|
* }
|
|
1092
1092
|
* ```
|
|
@@ -1095,7 +1095,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
1095
1095
|
*/
|
|
1096
1096
|
in: number[];
|
|
1097
1097
|
/**
|
|
1098
|
-
* `
|
|
1098
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1099
1099
|
* values. If the field value is one of the specified values, an error
|
|
1100
1100
|
* message is generated.
|
|
1101
1101
|
*
|
|
@@ -1162,7 +1162,7 @@ export type FloatRulesJson = {
|
|
|
1162
1162
|
*
|
|
1163
1163
|
* ```proto
|
|
1164
1164
|
* message MyFloat {
|
|
1165
|
-
* //
|
|
1165
|
+
* // must be less than 10.0
|
|
1166
1166
|
* float value = 1 [(buf.validate.field).float.lt = 10.0];
|
|
1167
1167
|
* }
|
|
1168
1168
|
* ```
|
|
@@ -1177,7 +1177,7 @@ export type FloatRulesJson = {
|
|
|
1177
1177
|
*
|
|
1178
1178
|
* ```proto
|
|
1179
1179
|
* message MyFloat {
|
|
1180
|
-
* //
|
|
1180
|
+
* // must be less than or equal to 10.0
|
|
1181
1181
|
* float value = 1 [(buf.validate.field).float.lte = 10.0];
|
|
1182
1182
|
* }
|
|
1183
1183
|
* ```
|
|
@@ -1194,13 +1194,13 @@ export type FloatRulesJson = {
|
|
|
1194
1194
|
*
|
|
1195
1195
|
* ```proto
|
|
1196
1196
|
* message MyFloat {
|
|
1197
|
-
* //
|
|
1197
|
+
* // must be greater than 5.0 [float.gt]
|
|
1198
1198
|
* float value = 1 [(buf.validate.field).float.gt = 5.0];
|
|
1199
1199
|
*
|
|
1200
|
-
* //
|
|
1200
|
+
* // must be greater than 5 and less than 10.0 [float.gt_lt]
|
|
1201
1201
|
* float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
|
|
1202
1202
|
*
|
|
1203
|
-
* //
|
|
1203
|
+
* // must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
|
|
1204
1204
|
* float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
|
|
1205
1205
|
* }
|
|
1206
1206
|
* ```
|
|
@@ -1217,13 +1217,13 @@ export type FloatRulesJson = {
|
|
|
1217
1217
|
*
|
|
1218
1218
|
* ```proto
|
|
1219
1219
|
* message MyFloat {
|
|
1220
|
-
* //
|
|
1220
|
+
* // must be greater than or equal to 5.0 [float.gte]
|
|
1221
1221
|
* float value = 1 [(buf.validate.field).float.gte = 5.0];
|
|
1222
1222
|
*
|
|
1223
|
-
* //
|
|
1223
|
+
* // must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
|
|
1224
1224
|
* float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
|
|
1225
1225
|
*
|
|
1226
|
-
* //
|
|
1226
|
+
* // must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
|
|
1227
1227
|
* float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
|
|
1228
1228
|
* }
|
|
1229
1229
|
* ```
|
|
@@ -1238,7 +1238,7 @@ export type FloatRulesJson = {
|
|
|
1238
1238
|
*
|
|
1239
1239
|
* ```proto
|
|
1240
1240
|
* message MyFloat {
|
|
1241
|
-
* //
|
|
1241
|
+
* // must be in list [1.0, 2.0, 3.0]
|
|
1242
1242
|
* float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
|
|
1243
1243
|
* }
|
|
1244
1244
|
* ```
|
|
@@ -1247,7 +1247,7 @@ export type FloatRulesJson = {
|
|
|
1247
1247
|
*/
|
|
1248
1248
|
in?: (number | "NaN" | "Infinity" | "-Infinity")[];
|
|
1249
1249
|
/**
|
|
1250
|
-
* `
|
|
1250
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1251
1251
|
* values. If the field value is one of the specified values, an error
|
|
1252
1252
|
* message is generated.
|
|
1253
1253
|
*
|
|
@@ -1325,7 +1325,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
|
|
|
1325
1325
|
*
|
|
1326
1326
|
* ```proto
|
|
1327
1327
|
* message MyDouble {
|
|
1328
|
-
* //
|
|
1328
|
+
* // must be less than 10.0
|
|
1329
1329
|
* double value = 1 [(buf.validate.field).double.lt = 10.0];
|
|
1330
1330
|
* }
|
|
1331
1331
|
* ```
|
|
@@ -1342,7 +1342,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
|
|
|
1342
1342
|
*
|
|
1343
1343
|
* ```proto
|
|
1344
1344
|
* message MyDouble {
|
|
1345
|
-
* //
|
|
1345
|
+
* // must be less than or equal to 10.0
|
|
1346
1346
|
* double value = 1 [(buf.validate.field).double.lte = 10.0];
|
|
1347
1347
|
* }
|
|
1348
1348
|
* ```
|
|
@@ -1368,13 +1368,13 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
|
|
|
1368
1368
|
*
|
|
1369
1369
|
* ```proto
|
|
1370
1370
|
* message MyDouble {
|
|
1371
|
-
* //
|
|
1371
|
+
* // must be greater than 5.0 [double.gt]
|
|
1372
1372
|
* double value = 1 [(buf.validate.field).double.gt = 5.0];
|
|
1373
1373
|
*
|
|
1374
|
-
* //
|
|
1374
|
+
* // must be greater than 5 and less than 10.0 [double.gt_lt]
|
|
1375
1375
|
* double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
|
|
1376
1376
|
*
|
|
1377
|
-
* //
|
|
1377
|
+
* // must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
|
|
1378
1378
|
* double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
|
|
1379
1379
|
* }
|
|
1380
1380
|
* ```
|
|
@@ -1393,13 +1393,13 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
|
|
|
1393
1393
|
*
|
|
1394
1394
|
* ```proto
|
|
1395
1395
|
* message MyDouble {
|
|
1396
|
-
* //
|
|
1396
|
+
* // must be greater than or equal to 5.0 [double.gte]
|
|
1397
1397
|
* double value = 1 [(buf.validate.field).double.gte = 5.0];
|
|
1398
1398
|
*
|
|
1399
|
-
* //
|
|
1399
|
+
* // must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
|
|
1400
1400
|
* double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
|
|
1401
1401
|
*
|
|
1402
|
-
* //
|
|
1402
|
+
* // must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
|
|
1403
1403
|
* double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
|
|
1404
1404
|
* }
|
|
1405
1405
|
* ```
|
|
@@ -1419,7 +1419,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
|
|
|
1419
1419
|
*
|
|
1420
1420
|
* ```proto
|
|
1421
1421
|
* message MyDouble {
|
|
1422
|
-
* //
|
|
1422
|
+
* // must be in list [1.0, 2.0, 3.0]
|
|
1423
1423
|
* double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
|
|
1424
1424
|
* }
|
|
1425
1425
|
* ```
|
|
@@ -1495,7 +1495,7 @@ export type DoubleRulesJson = {
|
|
|
1495
1495
|
*
|
|
1496
1496
|
* ```proto
|
|
1497
1497
|
* message MyDouble {
|
|
1498
|
-
* //
|
|
1498
|
+
* // must be less than 10.0
|
|
1499
1499
|
* double value = 1 [(buf.validate.field).double.lt = 10.0];
|
|
1500
1500
|
* }
|
|
1501
1501
|
* ```
|
|
@@ -1510,7 +1510,7 @@ export type DoubleRulesJson = {
|
|
|
1510
1510
|
*
|
|
1511
1511
|
* ```proto
|
|
1512
1512
|
* message MyDouble {
|
|
1513
|
-
* //
|
|
1513
|
+
* // must be less than or equal to 10.0
|
|
1514
1514
|
* double value = 1 [(buf.validate.field).double.lte = 10.0];
|
|
1515
1515
|
* }
|
|
1516
1516
|
* ```
|
|
@@ -1527,13 +1527,13 @@ export type DoubleRulesJson = {
|
|
|
1527
1527
|
*
|
|
1528
1528
|
* ```proto
|
|
1529
1529
|
* message MyDouble {
|
|
1530
|
-
* //
|
|
1530
|
+
* // must be greater than 5.0 [double.gt]
|
|
1531
1531
|
* double value = 1 [(buf.validate.field).double.gt = 5.0];
|
|
1532
1532
|
*
|
|
1533
|
-
* //
|
|
1533
|
+
* // must be greater than 5 and less than 10.0 [double.gt_lt]
|
|
1534
1534
|
* double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
|
|
1535
1535
|
*
|
|
1536
|
-
* //
|
|
1536
|
+
* // must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
|
|
1537
1537
|
* double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
|
|
1538
1538
|
* }
|
|
1539
1539
|
* ```
|
|
@@ -1550,13 +1550,13 @@ export type DoubleRulesJson = {
|
|
|
1550
1550
|
*
|
|
1551
1551
|
* ```proto
|
|
1552
1552
|
* message MyDouble {
|
|
1553
|
-
* //
|
|
1553
|
+
* // must be greater than or equal to 5.0 [double.gte]
|
|
1554
1554
|
* double value = 1 [(buf.validate.field).double.gte = 5.0];
|
|
1555
1555
|
*
|
|
1556
|
-
* //
|
|
1556
|
+
* // must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
|
|
1557
1557
|
* double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
|
|
1558
1558
|
*
|
|
1559
|
-
* //
|
|
1559
|
+
* // must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
|
|
1560
1560
|
* double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
|
|
1561
1561
|
* }
|
|
1562
1562
|
* ```
|
|
@@ -1571,7 +1571,7 @@ export type DoubleRulesJson = {
|
|
|
1571
1571
|
*
|
|
1572
1572
|
* ```proto
|
|
1573
1573
|
* message MyDouble {
|
|
1574
|
-
* //
|
|
1574
|
+
* // must be in list [1.0, 2.0, 3.0]
|
|
1575
1575
|
* double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
|
|
1576
1576
|
* }
|
|
1577
1577
|
* ```
|
|
@@ -1658,7 +1658,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
|
|
|
1658
1658
|
*
|
|
1659
1659
|
* ```proto
|
|
1660
1660
|
* message MyInt32 {
|
|
1661
|
-
* //
|
|
1661
|
+
* // must be less than 10
|
|
1662
1662
|
* int32 value = 1 [(buf.validate.field).int32.lt = 10];
|
|
1663
1663
|
* }
|
|
1664
1664
|
* ```
|
|
@@ -1675,7 +1675,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
|
|
|
1675
1675
|
*
|
|
1676
1676
|
* ```proto
|
|
1677
1677
|
* message MyInt32 {
|
|
1678
|
-
* //
|
|
1678
|
+
* // must be less than or equal to 10
|
|
1679
1679
|
* int32 value = 1 [(buf.validate.field).int32.lte = 10];
|
|
1680
1680
|
* }
|
|
1681
1681
|
* ```
|
|
@@ -1701,13 +1701,13 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
|
|
|
1701
1701
|
*
|
|
1702
1702
|
* ```proto
|
|
1703
1703
|
* message MyInt32 {
|
|
1704
|
-
* //
|
|
1704
|
+
* // must be greater than 5 [int32.gt]
|
|
1705
1705
|
* int32 value = 1 [(buf.validate.field).int32.gt = 5];
|
|
1706
1706
|
*
|
|
1707
|
-
* //
|
|
1707
|
+
* // must be greater than 5 and less than 10 [int32.gt_lt]
|
|
1708
1708
|
* int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
|
|
1709
1709
|
*
|
|
1710
|
-
* //
|
|
1710
|
+
* // must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
|
|
1711
1711
|
* int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
|
|
1712
1712
|
* }
|
|
1713
1713
|
* ```
|
|
@@ -1726,13 +1726,13 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
|
|
|
1726
1726
|
*
|
|
1727
1727
|
* ```proto
|
|
1728
1728
|
* message MyInt32 {
|
|
1729
|
-
* //
|
|
1729
|
+
* // must be greater than or equal to 5 [int32.gte]
|
|
1730
1730
|
* int32 value = 1 [(buf.validate.field).int32.gte = 5];
|
|
1731
1731
|
*
|
|
1732
|
-
* //
|
|
1732
|
+
* // must be greater than or equal to 5 and less than 10 [int32.gte_lt]
|
|
1733
1733
|
* int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
|
|
1734
1734
|
*
|
|
1735
|
-
* //
|
|
1735
|
+
* // must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
|
|
1736
1736
|
* int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
|
|
1737
1737
|
* }
|
|
1738
1738
|
* ```
|
|
@@ -1752,7 +1752,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
|
|
|
1752
1752
|
*
|
|
1753
1753
|
* ```proto
|
|
1754
1754
|
* message MyInt32 {
|
|
1755
|
-
* //
|
|
1755
|
+
* // must be in list [1, 2, 3]
|
|
1756
1756
|
* int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
|
|
1757
1757
|
* }
|
|
1758
1758
|
* ```
|
|
@@ -1821,7 +1821,7 @@ export type Int32RulesJson = {
|
|
|
1821
1821
|
*
|
|
1822
1822
|
* ```proto
|
|
1823
1823
|
* message MyInt32 {
|
|
1824
|
-
* //
|
|
1824
|
+
* // must be less than 10
|
|
1825
1825
|
* int32 value = 1 [(buf.validate.field).int32.lt = 10];
|
|
1826
1826
|
* }
|
|
1827
1827
|
* ```
|
|
@@ -1836,7 +1836,7 @@ export type Int32RulesJson = {
|
|
|
1836
1836
|
*
|
|
1837
1837
|
* ```proto
|
|
1838
1838
|
* message MyInt32 {
|
|
1839
|
-
* //
|
|
1839
|
+
* // must be less than or equal to 10
|
|
1840
1840
|
* int32 value = 1 [(buf.validate.field).int32.lte = 10];
|
|
1841
1841
|
* }
|
|
1842
1842
|
* ```
|
|
@@ -1853,13 +1853,13 @@ export type Int32RulesJson = {
|
|
|
1853
1853
|
*
|
|
1854
1854
|
* ```proto
|
|
1855
1855
|
* message MyInt32 {
|
|
1856
|
-
* //
|
|
1856
|
+
* // must be greater than 5 [int32.gt]
|
|
1857
1857
|
* int32 value = 1 [(buf.validate.field).int32.gt = 5];
|
|
1858
1858
|
*
|
|
1859
|
-
* //
|
|
1859
|
+
* // must be greater than 5 and less than 10 [int32.gt_lt]
|
|
1860
1860
|
* int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
|
|
1861
1861
|
*
|
|
1862
|
-
* //
|
|
1862
|
+
* // must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
|
|
1863
1863
|
* int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
|
|
1864
1864
|
* }
|
|
1865
1865
|
* ```
|
|
@@ -1876,13 +1876,13 @@ export type Int32RulesJson = {
|
|
|
1876
1876
|
*
|
|
1877
1877
|
* ```proto
|
|
1878
1878
|
* message MyInt32 {
|
|
1879
|
-
* //
|
|
1879
|
+
* // must be greater than or equal to 5 [int32.gte]
|
|
1880
1880
|
* int32 value = 1 [(buf.validate.field).int32.gte = 5];
|
|
1881
1881
|
*
|
|
1882
|
-
* //
|
|
1882
|
+
* // must be greater than or equal to 5 and less than 10 [int32.gte_lt]
|
|
1883
1883
|
* int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
|
|
1884
1884
|
*
|
|
1885
|
-
* //
|
|
1885
|
+
* // must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
|
|
1886
1886
|
* int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
|
|
1887
1887
|
* }
|
|
1888
1888
|
* ```
|
|
@@ -1897,7 +1897,7 @@ export type Int32RulesJson = {
|
|
|
1897
1897
|
*
|
|
1898
1898
|
* ```proto
|
|
1899
1899
|
* message MyInt32 {
|
|
1900
|
-
* //
|
|
1900
|
+
* // must be in list [1, 2, 3]
|
|
1901
1901
|
* int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
|
|
1902
1902
|
* }
|
|
1903
1903
|
* ```
|
|
@@ -1977,7 +1977,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
|
|
|
1977
1977
|
*
|
|
1978
1978
|
* ```proto
|
|
1979
1979
|
* message MyInt64 {
|
|
1980
|
-
* //
|
|
1980
|
+
* // must be less than 10
|
|
1981
1981
|
* int64 value = 1 [(buf.validate.field).int64.lt = 10];
|
|
1982
1982
|
* }
|
|
1983
1983
|
* ```
|
|
@@ -1994,7 +1994,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
|
|
|
1994
1994
|
*
|
|
1995
1995
|
* ```proto
|
|
1996
1996
|
* message MyInt64 {
|
|
1997
|
-
* //
|
|
1997
|
+
* // must be less than or equal to 10
|
|
1998
1998
|
* int64 value = 1 [(buf.validate.field).int64.lte = 10];
|
|
1999
1999
|
* }
|
|
2000
2000
|
* ```
|
|
@@ -2020,13 +2020,13 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
|
|
|
2020
2020
|
*
|
|
2021
2021
|
* ```proto
|
|
2022
2022
|
* message MyInt64 {
|
|
2023
|
-
* //
|
|
2023
|
+
* // must be greater than 5 [int64.gt]
|
|
2024
2024
|
* int64 value = 1 [(buf.validate.field).int64.gt = 5];
|
|
2025
2025
|
*
|
|
2026
|
-
* //
|
|
2026
|
+
* // must be greater than 5 and less than 10 [int64.gt_lt]
|
|
2027
2027
|
* int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
|
|
2028
2028
|
*
|
|
2029
|
-
* //
|
|
2029
|
+
* // must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
|
|
2030
2030
|
* int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
|
|
2031
2031
|
* }
|
|
2032
2032
|
* ```
|
|
@@ -2045,13 +2045,13 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
|
|
|
2045
2045
|
*
|
|
2046
2046
|
* ```proto
|
|
2047
2047
|
* message MyInt64 {
|
|
2048
|
-
* //
|
|
2048
|
+
* // must be greater than or equal to 5 [int64.gte]
|
|
2049
2049
|
* int64 value = 1 [(buf.validate.field).int64.gte = 5];
|
|
2050
2050
|
*
|
|
2051
|
-
* //
|
|
2051
|
+
* // must be greater than or equal to 5 and less than 10 [int64.gte_lt]
|
|
2052
2052
|
* int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
|
|
2053
2053
|
*
|
|
2054
|
-
* //
|
|
2054
|
+
* // must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
|
|
2055
2055
|
* int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
|
|
2056
2056
|
* }
|
|
2057
2057
|
* ```
|
|
@@ -2071,7 +2071,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
|
|
|
2071
2071
|
*
|
|
2072
2072
|
* ```proto
|
|
2073
2073
|
* message MyInt64 {
|
|
2074
|
-
* //
|
|
2074
|
+
* // must be in list [1, 2, 3]
|
|
2075
2075
|
* int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
|
|
2076
2076
|
* }
|
|
2077
2077
|
* ```
|
|
@@ -2140,7 +2140,7 @@ export type Int64RulesJson = {
|
|
|
2140
2140
|
*
|
|
2141
2141
|
* ```proto
|
|
2142
2142
|
* message MyInt64 {
|
|
2143
|
-
* //
|
|
2143
|
+
* // must be less than 10
|
|
2144
2144
|
* int64 value = 1 [(buf.validate.field).int64.lt = 10];
|
|
2145
2145
|
* }
|
|
2146
2146
|
* ```
|
|
@@ -2155,7 +2155,7 @@ export type Int64RulesJson = {
|
|
|
2155
2155
|
*
|
|
2156
2156
|
* ```proto
|
|
2157
2157
|
* message MyInt64 {
|
|
2158
|
-
* //
|
|
2158
|
+
* // must be less than or equal to 10
|
|
2159
2159
|
* int64 value = 1 [(buf.validate.field).int64.lte = 10];
|
|
2160
2160
|
* }
|
|
2161
2161
|
* ```
|
|
@@ -2172,13 +2172,13 @@ export type Int64RulesJson = {
|
|
|
2172
2172
|
*
|
|
2173
2173
|
* ```proto
|
|
2174
2174
|
* message MyInt64 {
|
|
2175
|
-
* //
|
|
2175
|
+
* // must be greater than 5 [int64.gt]
|
|
2176
2176
|
* int64 value = 1 [(buf.validate.field).int64.gt = 5];
|
|
2177
2177
|
*
|
|
2178
|
-
* //
|
|
2178
|
+
* // must be greater than 5 and less than 10 [int64.gt_lt]
|
|
2179
2179
|
* int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
|
|
2180
2180
|
*
|
|
2181
|
-
* //
|
|
2181
|
+
* // must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
|
|
2182
2182
|
* int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
|
|
2183
2183
|
* }
|
|
2184
2184
|
* ```
|
|
@@ -2195,13 +2195,13 @@ export type Int64RulesJson = {
|
|
|
2195
2195
|
*
|
|
2196
2196
|
* ```proto
|
|
2197
2197
|
* message MyInt64 {
|
|
2198
|
-
* //
|
|
2198
|
+
* // must be greater than or equal to 5 [int64.gte]
|
|
2199
2199
|
* int64 value = 1 [(buf.validate.field).int64.gte = 5];
|
|
2200
2200
|
*
|
|
2201
|
-
* //
|
|
2201
|
+
* // must be greater than or equal to 5 and less than 10 [int64.gte_lt]
|
|
2202
2202
|
* int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
|
|
2203
2203
|
*
|
|
2204
|
-
* //
|
|
2204
|
+
* // must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
|
|
2205
2205
|
* int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
|
|
2206
2206
|
* }
|
|
2207
2207
|
* ```
|
|
@@ -2216,7 +2216,7 @@ export type Int64RulesJson = {
|
|
|
2216
2216
|
*
|
|
2217
2217
|
* ```proto
|
|
2218
2218
|
* message MyInt64 {
|
|
2219
|
-
* //
|
|
2219
|
+
* // must be in list [1, 2, 3]
|
|
2220
2220
|
* int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
|
|
2221
2221
|
* }
|
|
2222
2222
|
* ```
|
|
@@ -2296,7 +2296,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
|
|
|
2296
2296
|
*
|
|
2297
2297
|
* ```proto
|
|
2298
2298
|
* message MyUInt32 {
|
|
2299
|
-
* //
|
|
2299
|
+
* // must be less than 10
|
|
2300
2300
|
* uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
|
|
2301
2301
|
* }
|
|
2302
2302
|
* ```
|
|
@@ -2313,7 +2313,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
|
|
|
2313
2313
|
*
|
|
2314
2314
|
* ```proto
|
|
2315
2315
|
* message MyUInt32 {
|
|
2316
|
-
* //
|
|
2316
|
+
* // must be less than or equal to 10
|
|
2317
2317
|
* uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
|
|
2318
2318
|
* }
|
|
2319
2319
|
* ```
|
|
@@ -2339,13 +2339,13 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
|
|
|
2339
2339
|
*
|
|
2340
2340
|
* ```proto
|
|
2341
2341
|
* message MyUInt32 {
|
|
2342
|
-
* //
|
|
2342
|
+
* // must be greater than 5 [uint32.gt]
|
|
2343
2343
|
* uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
|
|
2344
2344
|
*
|
|
2345
|
-
* //
|
|
2345
|
+
* // must be greater than 5 and less than 10 [uint32.gt_lt]
|
|
2346
2346
|
* uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
|
|
2347
2347
|
*
|
|
2348
|
-
* //
|
|
2348
|
+
* // must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
|
|
2349
2349
|
* uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
|
|
2350
2350
|
* }
|
|
2351
2351
|
* ```
|
|
@@ -2364,13 +2364,13 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
|
|
|
2364
2364
|
*
|
|
2365
2365
|
* ```proto
|
|
2366
2366
|
* message MyUInt32 {
|
|
2367
|
-
* //
|
|
2367
|
+
* // must be greater than or equal to 5 [uint32.gte]
|
|
2368
2368
|
* uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
|
|
2369
2369
|
*
|
|
2370
|
-
* //
|
|
2370
|
+
* // must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
|
|
2371
2371
|
* uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
|
|
2372
2372
|
*
|
|
2373
|
-
* //
|
|
2373
|
+
* // must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
|
|
2374
2374
|
* uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
|
|
2375
2375
|
* }
|
|
2376
2376
|
* ```
|
|
@@ -2390,7 +2390,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
|
|
|
2390
2390
|
*
|
|
2391
2391
|
* ```proto
|
|
2392
2392
|
* message MyUInt32 {
|
|
2393
|
-
* //
|
|
2393
|
+
* // must be in list [1, 2, 3]
|
|
2394
2394
|
* uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
|
|
2395
2395
|
* }
|
|
2396
2396
|
* ```
|
|
@@ -2459,7 +2459,7 @@ export type UInt32RulesJson = {
|
|
|
2459
2459
|
*
|
|
2460
2460
|
* ```proto
|
|
2461
2461
|
* message MyUInt32 {
|
|
2462
|
-
* //
|
|
2462
|
+
* // must be less than 10
|
|
2463
2463
|
* uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
|
|
2464
2464
|
* }
|
|
2465
2465
|
* ```
|
|
@@ -2474,7 +2474,7 @@ export type UInt32RulesJson = {
|
|
|
2474
2474
|
*
|
|
2475
2475
|
* ```proto
|
|
2476
2476
|
* message MyUInt32 {
|
|
2477
|
-
* //
|
|
2477
|
+
* // must be less than or equal to 10
|
|
2478
2478
|
* uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
|
|
2479
2479
|
* }
|
|
2480
2480
|
* ```
|
|
@@ -2491,13 +2491,13 @@ export type UInt32RulesJson = {
|
|
|
2491
2491
|
*
|
|
2492
2492
|
* ```proto
|
|
2493
2493
|
* message MyUInt32 {
|
|
2494
|
-
* //
|
|
2494
|
+
* // must be greater than 5 [uint32.gt]
|
|
2495
2495
|
* uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
|
|
2496
2496
|
*
|
|
2497
|
-
* //
|
|
2497
|
+
* // must be greater than 5 and less than 10 [uint32.gt_lt]
|
|
2498
2498
|
* uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
|
|
2499
2499
|
*
|
|
2500
|
-
* //
|
|
2500
|
+
* // must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
|
|
2501
2501
|
* uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
|
|
2502
2502
|
* }
|
|
2503
2503
|
* ```
|
|
@@ -2514,13 +2514,13 @@ export type UInt32RulesJson = {
|
|
|
2514
2514
|
*
|
|
2515
2515
|
* ```proto
|
|
2516
2516
|
* message MyUInt32 {
|
|
2517
|
-
* //
|
|
2517
|
+
* // must be greater than or equal to 5 [uint32.gte]
|
|
2518
2518
|
* uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
|
|
2519
2519
|
*
|
|
2520
|
-
* //
|
|
2520
|
+
* // must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
|
|
2521
2521
|
* uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
|
|
2522
2522
|
*
|
|
2523
|
-
* //
|
|
2523
|
+
* // must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
|
|
2524
2524
|
* uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
|
|
2525
2525
|
* }
|
|
2526
2526
|
* ```
|
|
@@ -2535,7 +2535,7 @@ export type UInt32RulesJson = {
|
|
|
2535
2535
|
*
|
|
2536
2536
|
* ```proto
|
|
2537
2537
|
* message MyUInt32 {
|
|
2538
|
-
* //
|
|
2538
|
+
* // must be in list [1, 2, 3]
|
|
2539
2539
|
* uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
|
|
2540
2540
|
* }
|
|
2541
2541
|
* ```
|
|
@@ -2615,7 +2615,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
2615
2615
|
*
|
|
2616
2616
|
* ```proto
|
|
2617
2617
|
* message MyUInt64 {
|
|
2618
|
-
* //
|
|
2618
|
+
* // must be less than 10
|
|
2619
2619
|
* uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
|
|
2620
2620
|
* }
|
|
2621
2621
|
* ```
|
|
@@ -2632,7 +2632,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
2632
2632
|
*
|
|
2633
2633
|
* ```proto
|
|
2634
2634
|
* message MyUInt64 {
|
|
2635
|
-
* //
|
|
2635
|
+
* // must be less than or equal to 10
|
|
2636
2636
|
* uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
|
|
2637
2637
|
* }
|
|
2638
2638
|
* ```
|
|
@@ -2658,13 +2658,13 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
2658
2658
|
*
|
|
2659
2659
|
* ```proto
|
|
2660
2660
|
* message MyUInt64 {
|
|
2661
|
-
* //
|
|
2661
|
+
* // must be greater than 5 [uint64.gt]
|
|
2662
2662
|
* uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
|
|
2663
2663
|
*
|
|
2664
|
-
* //
|
|
2664
|
+
* // must be greater than 5 and less than 10 [uint64.gt_lt]
|
|
2665
2665
|
* uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
|
|
2666
2666
|
*
|
|
2667
|
-
* //
|
|
2667
|
+
* // must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
|
|
2668
2668
|
* uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
|
|
2669
2669
|
* }
|
|
2670
2670
|
* ```
|
|
@@ -2683,13 +2683,13 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
2683
2683
|
*
|
|
2684
2684
|
* ```proto
|
|
2685
2685
|
* message MyUInt64 {
|
|
2686
|
-
* //
|
|
2686
|
+
* // must be greater than or equal to 5 [uint64.gte]
|
|
2687
2687
|
* uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
|
|
2688
2688
|
*
|
|
2689
|
-
* //
|
|
2689
|
+
* // must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
|
|
2690
2690
|
* uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
|
|
2691
2691
|
*
|
|
2692
|
-
* //
|
|
2692
|
+
* // must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
|
|
2693
2693
|
* uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
|
|
2694
2694
|
* }
|
|
2695
2695
|
* ```
|
|
@@ -2709,7 +2709,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
2709
2709
|
*
|
|
2710
2710
|
* ```proto
|
|
2711
2711
|
* message MyUInt64 {
|
|
2712
|
-
* //
|
|
2712
|
+
* // must be in list [1, 2, 3]
|
|
2713
2713
|
* uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
|
|
2714
2714
|
* }
|
|
2715
2715
|
* ```
|
|
@@ -2778,7 +2778,7 @@ export type UInt64RulesJson = {
|
|
|
2778
2778
|
*
|
|
2779
2779
|
* ```proto
|
|
2780
2780
|
* message MyUInt64 {
|
|
2781
|
-
* //
|
|
2781
|
+
* // must be less than 10
|
|
2782
2782
|
* uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
|
|
2783
2783
|
* }
|
|
2784
2784
|
* ```
|
|
@@ -2793,7 +2793,7 @@ export type UInt64RulesJson = {
|
|
|
2793
2793
|
*
|
|
2794
2794
|
* ```proto
|
|
2795
2795
|
* message MyUInt64 {
|
|
2796
|
-
* //
|
|
2796
|
+
* // must be less than or equal to 10
|
|
2797
2797
|
* uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
|
|
2798
2798
|
* }
|
|
2799
2799
|
* ```
|
|
@@ -2810,13 +2810,13 @@ export type UInt64RulesJson = {
|
|
|
2810
2810
|
*
|
|
2811
2811
|
* ```proto
|
|
2812
2812
|
* message MyUInt64 {
|
|
2813
|
-
* //
|
|
2813
|
+
* // must be greater than 5 [uint64.gt]
|
|
2814
2814
|
* uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
|
|
2815
2815
|
*
|
|
2816
|
-
* //
|
|
2816
|
+
* // must be greater than 5 and less than 10 [uint64.gt_lt]
|
|
2817
2817
|
* uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
|
|
2818
2818
|
*
|
|
2819
|
-
* //
|
|
2819
|
+
* // must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
|
|
2820
2820
|
* uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
|
|
2821
2821
|
* }
|
|
2822
2822
|
* ```
|
|
@@ -2833,13 +2833,13 @@ export type UInt64RulesJson = {
|
|
|
2833
2833
|
*
|
|
2834
2834
|
* ```proto
|
|
2835
2835
|
* message MyUInt64 {
|
|
2836
|
-
* //
|
|
2836
|
+
* // must be greater than or equal to 5 [uint64.gte]
|
|
2837
2837
|
* uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
|
|
2838
2838
|
*
|
|
2839
|
-
* //
|
|
2839
|
+
* // must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
|
|
2840
2840
|
* uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
|
|
2841
2841
|
*
|
|
2842
|
-
* //
|
|
2842
|
+
* // must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
|
|
2843
2843
|
* uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
|
|
2844
2844
|
* }
|
|
2845
2845
|
* ```
|
|
@@ -2854,7 +2854,7 @@ export type UInt64RulesJson = {
|
|
|
2854
2854
|
*
|
|
2855
2855
|
* ```proto
|
|
2856
2856
|
* message MyUInt64 {
|
|
2857
|
-
* //
|
|
2857
|
+
* // must be in list [1, 2, 3]
|
|
2858
2858
|
* uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
|
|
2859
2859
|
* }
|
|
2860
2860
|
* ```
|
|
@@ -2933,7 +2933,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
|
|
|
2933
2933
|
*
|
|
2934
2934
|
* ```proto
|
|
2935
2935
|
* message MySInt32 {
|
|
2936
|
-
* //
|
|
2936
|
+
* // must be less than 10
|
|
2937
2937
|
* sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
|
|
2938
2938
|
* }
|
|
2939
2939
|
* ```
|
|
@@ -2950,7 +2950,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
|
|
|
2950
2950
|
*
|
|
2951
2951
|
* ```proto
|
|
2952
2952
|
* message MySInt32 {
|
|
2953
|
-
* //
|
|
2953
|
+
* // must be less than or equal to 10
|
|
2954
2954
|
* sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
|
|
2955
2955
|
* }
|
|
2956
2956
|
* ```
|
|
@@ -2976,13 +2976,13 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
|
|
|
2976
2976
|
*
|
|
2977
2977
|
* ```proto
|
|
2978
2978
|
* message MySInt32 {
|
|
2979
|
-
* //
|
|
2979
|
+
* // must be greater than 5 [sint32.gt]
|
|
2980
2980
|
* sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
|
|
2981
2981
|
*
|
|
2982
|
-
* //
|
|
2982
|
+
* // must be greater than 5 and less than 10 [sint32.gt_lt]
|
|
2983
2983
|
* sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
|
|
2984
2984
|
*
|
|
2985
|
-
* //
|
|
2985
|
+
* // must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
|
|
2986
2986
|
* sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
|
|
2987
2987
|
* }
|
|
2988
2988
|
* ```
|
|
@@ -3001,13 +3001,13 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
|
|
|
3001
3001
|
*
|
|
3002
3002
|
* ```proto
|
|
3003
3003
|
* message MySInt32 {
|
|
3004
|
-
* //
|
|
3004
|
+
* // must be greater than or equal to 5 [sint32.gte]
|
|
3005
3005
|
* sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
|
|
3006
3006
|
*
|
|
3007
|
-
* //
|
|
3007
|
+
* // must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
|
|
3008
3008
|
* sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
|
|
3009
3009
|
*
|
|
3010
|
-
* //
|
|
3010
|
+
* // must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
|
|
3011
3011
|
* sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
|
|
3012
3012
|
* }
|
|
3013
3013
|
* ```
|
|
@@ -3027,7 +3027,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
|
|
|
3027
3027
|
*
|
|
3028
3028
|
* ```proto
|
|
3029
3029
|
* message MySInt32 {
|
|
3030
|
-
* //
|
|
3030
|
+
* // must be in list [1, 2, 3]
|
|
3031
3031
|
* sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
|
|
3032
3032
|
* }
|
|
3033
3033
|
* ```
|
|
@@ -3095,7 +3095,7 @@ export type SInt32RulesJson = {
|
|
|
3095
3095
|
*
|
|
3096
3096
|
* ```proto
|
|
3097
3097
|
* message MySInt32 {
|
|
3098
|
-
* //
|
|
3098
|
+
* // must be less than 10
|
|
3099
3099
|
* sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
|
|
3100
3100
|
* }
|
|
3101
3101
|
* ```
|
|
@@ -3110,7 +3110,7 @@ export type SInt32RulesJson = {
|
|
|
3110
3110
|
*
|
|
3111
3111
|
* ```proto
|
|
3112
3112
|
* message MySInt32 {
|
|
3113
|
-
* //
|
|
3113
|
+
* // must be less than or equal to 10
|
|
3114
3114
|
* sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
|
|
3115
3115
|
* }
|
|
3116
3116
|
* ```
|
|
@@ -3127,13 +3127,13 @@ export type SInt32RulesJson = {
|
|
|
3127
3127
|
*
|
|
3128
3128
|
* ```proto
|
|
3129
3129
|
* message MySInt32 {
|
|
3130
|
-
* //
|
|
3130
|
+
* // must be greater than 5 [sint32.gt]
|
|
3131
3131
|
* sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
|
|
3132
3132
|
*
|
|
3133
|
-
* //
|
|
3133
|
+
* // must be greater than 5 and less than 10 [sint32.gt_lt]
|
|
3134
3134
|
* sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
|
|
3135
3135
|
*
|
|
3136
|
-
* //
|
|
3136
|
+
* // must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
|
|
3137
3137
|
* sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
|
|
3138
3138
|
* }
|
|
3139
3139
|
* ```
|
|
@@ -3150,13 +3150,13 @@ export type SInt32RulesJson = {
|
|
|
3150
3150
|
*
|
|
3151
3151
|
* ```proto
|
|
3152
3152
|
* message MySInt32 {
|
|
3153
|
-
* //
|
|
3153
|
+
* // must be greater than or equal to 5 [sint32.gte]
|
|
3154
3154
|
* sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
|
|
3155
3155
|
*
|
|
3156
|
-
* //
|
|
3156
|
+
* // must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
|
|
3157
3157
|
* sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
|
|
3158
3158
|
*
|
|
3159
|
-
* //
|
|
3159
|
+
* // must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
|
|
3160
3160
|
* sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
|
|
3161
3161
|
* }
|
|
3162
3162
|
* ```
|
|
@@ -3171,7 +3171,7 @@ export type SInt32RulesJson = {
|
|
|
3171
3171
|
*
|
|
3172
3172
|
* ```proto
|
|
3173
3173
|
* message MySInt32 {
|
|
3174
|
-
* //
|
|
3174
|
+
* // must be in list [1, 2, 3]
|
|
3175
3175
|
* sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
|
|
3176
3176
|
* }
|
|
3177
3177
|
* ```
|
|
@@ -3250,7 +3250,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
|
|
|
3250
3250
|
*
|
|
3251
3251
|
* ```proto
|
|
3252
3252
|
* message MySInt64 {
|
|
3253
|
-
* //
|
|
3253
|
+
* // must be less than 10
|
|
3254
3254
|
* sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
|
|
3255
3255
|
* }
|
|
3256
3256
|
* ```
|
|
@@ -3267,7 +3267,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
|
|
|
3267
3267
|
*
|
|
3268
3268
|
* ```proto
|
|
3269
3269
|
* message MySInt64 {
|
|
3270
|
-
* //
|
|
3270
|
+
* // must be less than or equal to 10
|
|
3271
3271
|
* sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
|
|
3272
3272
|
* }
|
|
3273
3273
|
* ```
|
|
@@ -3293,13 +3293,13 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
|
|
|
3293
3293
|
*
|
|
3294
3294
|
* ```proto
|
|
3295
3295
|
* message MySInt64 {
|
|
3296
|
-
* //
|
|
3296
|
+
* // must be greater than 5 [sint64.gt]
|
|
3297
3297
|
* sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
|
|
3298
3298
|
*
|
|
3299
|
-
* //
|
|
3299
|
+
* // must be greater than 5 and less than 10 [sint64.gt_lt]
|
|
3300
3300
|
* sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
|
|
3301
3301
|
*
|
|
3302
|
-
* //
|
|
3302
|
+
* // must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
|
|
3303
3303
|
* sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
|
|
3304
3304
|
* }
|
|
3305
3305
|
* ```
|
|
@@ -3318,13 +3318,13 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
|
|
|
3318
3318
|
*
|
|
3319
3319
|
* ```proto
|
|
3320
3320
|
* message MySInt64 {
|
|
3321
|
-
* //
|
|
3321
|
+
* // must be greater than or equal to 5 [sint64.gte]
|
|
3322
3322
|
* sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
|
|
3323
3323
|
*
|
|
3324
|
-
* //
|
|
3324
|
+
* // must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
|
|
3325
3325
|
* sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
|
|
3326
3326
|
*
|
|
3327
|
-
* //
|
|
3327
|
+
* // must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
|
|
3328
3328
|
* sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
|
|
3329
3329
|
* }
|
|
3330
3330
|
* ```
|
|
@@ -3344,7 +3344,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
|
|
|
3344
3344
|
*
|
|
3345
3345
|
* ```proto
|
|
3346
3346
|
* message MySInt64 {
|
|
3347
|
-
* //
|
|
3347
|
+
* // must be in list [1, 2, 3]
|
|
3348
3348
|
* sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
|
|
3349
3349
|
* }
|
|
3350
3350
|
* ```
|
|
@@ -3412,7 +3412,7 @@ export type SInt64RulesJson = {
|
|
|
3412
3412
|
*
|
|
3413
3413
|
* ```proto
|
|
3414
3414
|
* message MySInt64 {
|
|
3415
|
-
* //
|
|
3415
|
+
* // must be less than 10
|
|
3416
3416
|
* sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
|
|
3417
3417
|
* }
|
|
3418
3418
|
* ```
|
|
@@ -3427,7 +3427,7 @@ export type SInt64RulesJson = {
|
|
|
3427
3427
|
*
|
|
3428
3428
|
* ```proto
|
|
3429
3429
|
* message MySInt64 {
|
|
3430
|
-
* //
|
|
3430
|
+
* // must be less than or equal to 10
|
|
3431
3431
|
* sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
|
|
3432
3432
|
* }
|
|
3433
3433
|
* ```
|
|
@@ -3444,13 +3444,13 @@ export type SInt64RulesJson = {
|
|
|
3444
3444
|
*
|
|
3445
3445
|
* ```proto
|
|
3446
3446
|
* message MySInt64 {
|
|
3447
|
-
* //
|
|
3447
|
+
* // must be greater than 5 [sint64.gt]
|
|
3448
3448
|
* sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
|
|
3449
3449
|
*
|
|
3450
|
-
* //
|
|
3450
|
+
* // must be greater than 5 and less than 10 [sint64.gt_lt]
|
|
3451
3451
|
* sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
|
|
3452
3452
|
*
|
|
3453
|
-
* //
|
|
3453
|
+
* // must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
|
|
3454
3454
|
* sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
|
|
3455
3455
|
* }
|
|
3456
3456
|
* ```
|
|
@@ -3467,13 +3467,13 @@ export type SInt64RulesJson = {
|
|
|
3467
3467
|
*
|
|
3468
3468
|
* ```proto
|
|
3469
3469
|
* message MySInt64 {
|
|
3470
|
-
* //
|
|
3470
|
+
* // must be greater than or equal to 5 [sint64.gte]
|
|
3471
3471
|
* sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
|
|
3472
3472
|
*
|
|
3473
|
-
* //
|
|
3473
|
+
* // must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
|
|
3474
3474
|
* sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
|
|
3475
3475
|
*
|
|
3476
|
-
* //
|
|
3476
|
+
* // must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
|
|
3477
3477
|
* sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
|
|
3478
3478
|
* }
|
|
3479
3479
|
* ```
|
|
@@ -3488,7 +3488,7 @@ export type SInt64RulesJson = {
|
|
|
3488
3488
|
*
|
|
3489
3489
|
* ```proto
|
|
3490
3490
|
* message MySInt64 {
|
|
3491
|
-
* //
|
|
3491
|
+
* // must be in list [1, 2, 3]
|
|
3492
3492
|
* sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
|
|
3493
3493
|
* }
|
|
3494
3494
|
* ```
|
|
@@ -3567,7 +3567,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
|
|
|
3567
3567
|
*
|
|
3568
3568
|
* ```proto
|
|
3569
3569
|
* message MyFixed32 {
|
|
3570
|
-
* //
|
|
3570
|
+
* // must be less than 10
|
|
3571
3571
|
* fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
|
|
3572
3572
|
* }
|
|
3573
3573
|
* ```
|
|
@@ -3584,7 +3584,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
|
|
|
3584
3584
|
*
|
|
3585
3585
|
* ```proto
|
|
3586
3586
|
* message MyFixed32 {
|
|
3587
|
-
* //
|
|
3587
|
+
* // must be less than or equal to 10
|
|
3588
3588
|
* fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
|
|
3589
3589
|
* }
|
|
3590
3590
|
* ```
|
|
@@ -3610,13 +3610,13 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
|
|
|
3610
3610
|
*
|
|
3611
3611
|
* ```proto
|
|
3612
3612
|
* message MyFixed32 {
|
|
3613
|
-
* //
|
|
3613
|
+
* // must be greater than 5 [fixed32.gt]
|
|
3614
3614
|
* fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
|
|
3615
3615
|
*
|
|
3616
|
-
* //
|
|
3616
|
+
* // must be greater than 5 and less than 10 [fixed32.gt_lt]
|
|
3617
3617
|
* fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
|
|
3618
3618
|
*
|
|
3619
|
-
* //
|
|
3619
|
+
* // must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
|
|
3620
3620
|
* fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
|
|
3621
3621
|
* }
|
|
3622
3622
|
* ```
|
|
@@ -3635,13 +3635,13 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
|
|
|
3635
3635
|
*
|
|
3636
3636
|
* ```proto
|
|
3637
3637
|
* message MyFixed32 {
|
|
3638
|
-
* //
|
|
3638
|
+
* // must be greater than or equal to 5 [fixed32.gte]
|
|
3639
3639
|
* fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
|
|
3640
3640
|
*
|
|
3641
|
-
* //
|
|
3641
|
+
* // must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
|
|
3642
3642
|
* fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
|
|
3643
3643
|
*
|
|
3644
|
-
* //
|
|
3644
|
+
* // must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
|
|
3645
3645
|
* fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
|
|
3646
3646
|
* }
|
|
3647
3647
|
* ```
|
|
@@ -3661,7 +3661,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
|
|
|
3661
3661
|
*
|
|
3662
3662
|
* ```proto
|
|
3663
3663
|
* message MyFixed32 {
|
|
3664
|
-
* //
|
|
3664
|
+
* // must be in list [1, 2, 3]
|
|
3665
3665
|
* fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
|
|
3666
3666
|
* }
|
|
3667
3667
|
* ```
|
|
@@ -3729,7 +3729,7 @@ export type Fixed32RulesJson = {
|
|
|
3729
3729
|
*
|
|
3730
3730
|
* ```proto
|
|
3731
3731
|
* message MyFixed32 {
|
|
3732
|
-
* //
|
|
3732
|
+
* // must be less than 10
|
|
3733
3733
|
* fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
|
|
3734
3734
|
* }
|
|
3735
3735
|
* ```
|
|
@@ -3744,7 +3744,7 @@ export type Fixed32RulesJson = {
|
|
|
3744
3744
|
*
|
|
3745
3745
|
* ```proto
|
|
3746
3746
|
* message MyFixed32 {
|
|
3747
|
-
* //
|
|
3747
|
+
* // must be less than or equal to 10
|
|
3748
3748
|
* fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
|
|
3749
3749
|
* }
|
|
3750
3750
|
* ```
|
|
@@ -3761,13 +3761,13 @@ export type Fixed32RulesJson = {
|
|
|
3761
3761
|
*
|
|
3762
3762
|
* ```proto
|
|
3763
3763
|
* message MyFixed32 {
|
|
3764
|
-
* //
|
|
3764
|
+
* // must be greater than 5 [fixed32.gt]
|
|
3765
3765
|
* fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
|
|
3766
3766
|
*
|
|
3767
|
-
* //
|
|
3767
|
+
* // must be greater than 5 and less than 10 [fixed32.gt_lt]
|
|
3768
3768
|
* fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
|
|
3769
3769
|
*
|
|
3770
|
-
* //
|
|
3770
|
+
* // must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
|
|
3771
3771
|
* fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
|
|
3772
3772
|
* }
|
|
3773
3773
|
* ```
|
|
@@ -3784,13 +3784,13 @@ export type Fixed32RulesJson = {
|
|
|
3784
3784
|
*
|
|
3785
3785
|
* ```proto
|
|
3786
3786
|
* message MyFixed32 {
|
|
3787
|
-
* //
|
|
3787
|
+
* // must be greater than or equal to 5 [fixed32.gte]
|
|
3788
3788
|
* fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
|
|
3789
3789
|
*
|
|
3790
|
-
* //
|
|
3790
|
+
* // must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
|
|
3791
3791
|
* fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
|
|
3792
3792
|
*
|
|
3793
|
-
* //
|
|
3793
|
+
* // must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
|
|
3794
3794
|
* fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
|
|
3795
3795
|
* }
|
|
3796
3796
|
* ```
|
|
@@ -3805,7 +3805,7 @@ export type Fixed32RulesJson = {
|
|
|
3805
3805
|
*
|
|
3806
3806
|
* ```proto
|
|
3807
3807
|
* message MyFixed32 {
|
|
3808
|
-
* //
|
|
3808
|
+
* // must be in list [1, 2, 3]
|
|
3809
3809
|
* fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
|
|
3810
3810
|
* }
|
|
3811
3811
|
* ```
|
|
@@ -3884,7 +3884,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
|
|
|
3884
3884
|
*
|
|
3885
3885
|
* ```proto
|
|
3886
3886
|
* message MyFixed64 {
|
|
3887
|
-
* //
|
|
3887
|
+
* // must be less than 10
|
|
3888
3888
|
* fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
|
|
3889
3889
|
* }
|
|
3890
3890
|
* ```
|
|
@@ -3901,7 +3901,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
|
|
|
3901
3901
|
*
|
|
3902
3902
|
* ```proto
|
|
3903
3903
|
* message MyFixed64 {
|
|
3904
|
-
* //
|
|
3904
|
+
* // must be less than or equal to 10
|
|
3905
3905
|
* fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
|
|
3906
3906
|
* }
|
|
3907
3907
|
* ```
|
|
@@ -3927,13 +3927,13 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
|
|
|
3927
3927
|
*
|
|
3928
3928
|
* ```proto
|
|
3929
3929
|
* message MyFixed64 {
|
|
3930
|
-
* //
|
|
3930
|
+
* // must be greater than 5 [fixed64.gt]
|
|
3931
3931
|
* fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
|
|
3932
3932
|
*
|
|
3933
|
-
* //
|
|
3933
|
+
* // must be greater than 5 and less than 10 [fixed64.gt_lt]
|
|
3934
3934
|
* fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
|
|
3935
3935
|
*
|
|
3936
|
-
* //
|
|
3936
|
+
* // must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
|
|
3937
3937
|
* fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
|
|
3938
3938
|
* }
|
|
3939
3939
|
* ```
|
|
@@ -3952,13 +3952,13 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
|
|
|
3952
3952
|
*
|
|
3953
3953
|
* ```proto
|
|
3954
3954
|
* message MyFixed64 {
|
|
3955
|
-
* //
|
|
3955
|
+
* // must be greater than or equal to 5 [fixed64.gte]
|
|
3956
3956
|
* fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
|
|
3957
3957
|
*
|
|
3958
|
-
* //
|
|
3958
|
+
* // must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
|
|
3959
3959
|
* fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
|
|
3960
3960
|
*
|
|
3961
|
-
* //
|
|
3961
|
+
* // must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
|
|
3962
3962
|
* fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
|
|
3963
3963
|
* }
|
|
3964
3964
|
* ```
|
|
@@ -3978,7 +3978,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
|
|
|
3978
3978
|
*
|
|
3979
3979
|
* ```proto
|
|
3980
3980
|
* message MyFixed64 {
|
|
3981
|
-
* //
|
|
3981
|
+
* // must be in list [1, 2, 3]
|
|
3982
3982
|
* fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
|
|
3983
3983
|
* }
|
|
3984
3984
|
* ```
|
|
@@ -4046,7 +4046,7 @@ export type Fixed64RulesJson = {
|
|
|
4046
4046
|
*
|
|
4047
4047
|
* ```proto
|
|
4048
4048
|
* message MyFixed64 {
|
|
4049
|
-
* //
|
|
4049
|
+
* // must be less than 10
|
|
4050
4050
|
* fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
|
|
4051
4051
|
* }
|
|
4052
4052
|
* ```
|
|
@@ -4061,7 +4061,7 @@ export type Fixed64RulesJson = {
|
|
|
4061
4061
|
*
|
|
4062
4062
|
* ```proto
|
|
4063
4063
|
* message MyFixed64 {
|
|
4064
|
-
* //
|
|
4064
|
+
* // must be less than or equal to 10
|
|
4065
4065
|
* fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
|
|
4066
4066
|
* }
|
|
4067
4067
|
* ```
|
|
@@ -4078,13 +4078,13 @@ export type Fixed64RulesJson = {
|
|
|
4078
4078
|
*
|
|
4079
4079
|
* ```proto
|
|
4080
4080
|
* message MyFixed64 {
|
|
4081
|
-
* //
|
|
4081
|
+
* // must be greater than 5 [fixed64.gt]
|
|
4082
4082
|
* fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
|
|
4083
4083
|
*
|
|
4084
|
-
* //
|
|
4084
|
+
* // must be greater than 5 and less than 10 [fixed64.gt_lt]
|
|
4085
4085
|
* fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
|
|
4086
4086
|
*
|
|
4087
|
-
* //
|
|
4087
|
+
* // must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
|
|
4088
4088
|
* fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
|
|
4089
4089
|
* }
|
|
4090
4090
|
* ```
|
|
@@ -4101,13 +4101,13 @@ export type Fixed64RulesJson = {
|
|
|
4101
4101
|
*
|
|
4102
4102
|
* ```proto
|
|
4103
4103
|
* message MyFixed64 {
|
|
4104
|
-
* //
|
|
4104
|
+
* // must be greater than or equal to 5 [fixed64.gte]
|
|
4105
4105
|
* fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
|
|
4106
4106
|
*
|
|
4107
|
-
* //
|
|
4107
|
+
* // must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
|
|
4108
4108
|
* fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
|
|
4109
4109
|
*
|
|
4110
|
-
* //
|
|
4110
|
+
* // must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
|
|
4111
4111
|
* fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
|
|
4112
4112
|
* }
|
|
4113
4113
|
* ```
|
|
@@ -4122,7 +4122,7 @@ export type Fixed64RulesJson = {
|
|
|
4122
4122
|
*
|
|
4123
4123
|
* ```proto
|
|
4124
4124
|
* message MyFixed64 {
|
|
4125
|
-
* //
|
|
4125
|
+
* // must be in list [1, 2, 3]
|
|
4126
4126
|
* fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
|
|
4127
4127
|
* }
|
|
4128
4128
|
* ```
|
|
@@ -4201,7 +4201,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
|
|
|
4201
4201
|
*
|
|
4202
4202
|
* ```proto
|
|
4203
4203
|
* message MySFixed32 {
|
|
4204
|
-
* //
|
|
4204
|
+
* // must be less than 10
|
|
4205
4205
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
|
|
4206
4206
|
* }
|
|
4207
4207
|
* ```
|
|
@@ -4218,7 +4218,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
|
|
|
4218
4218
|
*
|
|
4219
4219
|
* ```proto
|
|
4220
4220
|
* message MySFixed32 {
|
|
4221
|
-
* //
|
|
4221
|
+
* // must be less than or equal to 10
|
|
4222
4222
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
|
|
4223
4223
|
* }
|
|
4224
4224
|
* ```
|
|
@@ -4244,13 +4244,13 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
|
|
|
4244
4244
|
*
|
|
4245
4245
|
* ```proto
|
|
4246
4246
|
* message MySFixed32 {
|
|
4247
|
-
* //
|
|
4247
|
+
* // must be greater than 5 [sfixed32.gt]
|
|
4248
4248
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
|
|
4249
4249
|
*
|
|
4250
|
-
* //
|
|
4250
|
+
* // must be greater than 5 and less than 10 [sfixed32.gt_lt]
|
|
4251
4251
|
* sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
|
|
4252
4252
|
*
|
|
4253
|
-
* //
|
|
4253
|
+
* // must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
|
|
4254
4254
|
* sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
|
|
4255
4255
|
* }
|
|
4256
4256
|
* ```
|
|
@@ -4269,13 +4269,13 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
|
|
|
4269
4269
|
*
|
|
4270
4270
|
* ```proto
|
|
4271
4271
|
* message MySFixed32 {
|
|
4272
|
-
* //
|
|
4272
|
+
* // must be greater than or equal to 5 [sfixed32.gte]
|
|
4273
4273
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
|
|
4274
4274
|
*
|
|
4275
|
-
* //
|
|
4275
|
+
* // must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
|
|
4276
4276
|
* sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
|
|
4277
4277
|
*
|
|
4278
|
-
* //
|
|
4278
|
+
* // must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
|
|
4279
4279
|
* sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
|
|
4280
4280
|
* }
|
|
4281
4281
|
* ```
|
|
@@ -4295,7 +4295,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
|
|
|
4295
4295
|
*
|
|
4296
4296
|
* ```proto
|
|
4297
4297
|
* message MySFixed32 {
|
|
4298
|
-
* //
|
|
4298
|
+
* // must be in list [1, 2, 3]
|
|
4299
4299
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
|
|
4300
4300
|
* }
|
|
4301
4301
|
* ```
|
|
@@ -4363,7 +4363,7 @@ export type SFixed32RulesJson = {
|
|
|
4363
4363
|
*
|
|
4364
4364
|
* ```proto
|
|
4365
4365
|
* message MySFixed32 {
|
|
4366
|
-
* //
|
|
4366
|
+
* // must be less than 10
|
|
4367
4367
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
|
|
4368
4368
|
* }
|
|
4369
4369
|
* ```
|
|
@@ -4378,7 +4378,7 @@ export type SFixed32RulesJson = {
|
|
|
4378
4378
|
*
|
|
4379
4379
|
* ```proto
|
|
4380
4380
|
* message MySFixed32 {
|
|
4381
|
-
* //
|
|
4381
|
+
* // must be less than or equal to 10
|
|
4382
4382
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
|
|
4383
4383
|
* }
|
|
4384
4384
|
* ```
|
|
@@ -4395,13 +4395,13 @@ export type SFixed32RulesJson = {
|
|
|
4395
4395
|
*
|
|
4396
4396
|
* ```proto
|
|
4397
4397
|
* message MySFixed32 {
|
|
4398
|
-
* //
|
|
4398
|
+
* // must be greater than 5 [sfixed32.gt]
|
|
4399
4399
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
|
|
4400
4400
|
*
|
|
4401
|
-
* //
|
|
4401
|
+
* // must be greater than 5 and less than 10 [sfixed32.gt_lt]
|
|
4402
4402
|
* sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
|
|
4403
4403
|
*
|
|
4404
|
-
* //
|
|
4404
|
+
* // must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
|
|
4405
4405
|
* sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
|
|
4406
4406
|
* }
|
|
4407
4407
|
* ```
|
|
@@ -4418,13 +4418,13 @@ export type SFixed32RulesJson = {
|
|
|
4418
4418
|
*
|
|
4419
4419
|
* ```proto
|
|
4420
4420
|
* message MySFixed32 {
|
|
4421
|
-
* //
|
|
4421
|
+
* // must be greater than or equal to 5 [sfixed32.gte]
|
|
4422
4422
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
|
|
4423
4423
|
*
|
|
4424
|
-
* //
|
|
4424
|
+
* // must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
|
|
4425
4425
|
* sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
|
|
4426
4426
|
*
|
|
4427
|
-
* //
|
|
4427
|
+
* // must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
|
|
4428
4428
|
* sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
|
|
4429
4429
|
* }
|
|
4430
4430
|
* ```
|
|
@@ -4439,7 +4439,7 @@ export type SFixed32RulesJson = {
|
|
|
4439
4439
|
*
|
|
4440
4440
|
* ```proto
|
|
4441
4441
|
* message MySFixed32 {
|
|
4442
|
-
* //
|
|
4442
|
+
* // must be in list [1, 2, 3]
|
|
4443
4443
|
* sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
|
|
4444
4444
|
* }
|
|
4445
4445
|
* ```
|
|
@@ -4518,7 +4518,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
|
|
|
4518
4518
|
*
|
|
4519
4519
|
* ```proto
|
|
4520
4520
|
* message MySFixed64 {
|
|
4521
|
-
* //
|
|
4521
|
+
* // must be less than 10
|
|
4522
4522
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
|
|
4523
4523
|
* }
|
|
4524
4524
|
* ```
|
|
@@ -4535,7 +4535,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
|
|
|
4535
4535
|
*
|
|
4536
4536
|
* ```proto
|
|
4537
4537
|
* message MySFixed64 {
|
|
4538
|
-
* //
|
|
4538
|
+
* // must be less than or equal to 10
|
|
4539
4539
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
|
|
4540
4540
|
* }
|
|
4541
4541
|
* ```
|
|
@@ -4561,13 +4561,13 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
|
|
|
4561
4561
|
*
|
|
4562
4562
|
* ```proto
|
|
4563
4563
|
* message MySFixed64 {
|
|
4564
|
-
* //
|
|
4564
|
+
* // must be greater than 5 [sfixed64.gt]
|
|
4565
4565
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
|
|
4566
4566
|
*
|
|
4567
|
-
* //
|
|
4567
|
+
* // must be greater than 5 and less than 10 [sfixed64.gt_lt]
|
|
4568
4568
|
* sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
|
|
4569
4569
|
*
|
|
4570
|
-
* //
|
|
4570
|
+
* // must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
|
|
4571
4571
|
* sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
|
|
4572
4572
|
* }
|
|
4573
4573
|
* ```
|
|
@@ -4586,13 +4586,13 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
|
|
|
4586
4586
|
*
|
|
4587
4587
|
* ```proto
|
|
4588
4588
|
* message MySFixed64 {
|
|
4589
|
-
* //
|
|
4589
|
+
* // must be greater than or equal to 5 [sfixed64.gte]
|
|
4590
4590
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
|
|
4591
4591
|
*
|
|
4592
|
-
* //
|
|
4592
|
+
* // must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
|
|
4593
4593
|
* sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
|
|
4594
4594
|
*
|
|
4595
|
-
* //
|
|
4595
|
+
* // must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
|
|
4596
4596
|
* sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
|
|
4597
4597
|
* }
|
|
4598
4598
|
* ```
|
|
@@ -4612,7 +4612,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
|
|
|
4612
4612
|
*
|
|
4613
4613
|
* ```proto
|
|
4614
4614
|
* message MySFixed64 {
|
|
4615
|
-
* //
|
|
4615
|
+
* // must be in list [1, 2, 3]
|
|
4616
4616
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
|
|
4617
4617
|
* }
|
|
4618
4618
|
* ```
|
|
@@ -4680,7 +4680,7 @@ export type SFixed64RulesJson = {
|
|
|
4680
4680
|
*
|
|
4681
4681
|
* ```proto
|
|
4682
4682
|
* message MySFixed64 {
|
|
4683
|
-
* //
|
|
4683
|
+
* // must be less than 10
|
|
4684
4684
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
|
|
4685
4685
|
* }
|
|
4686
4686
|
* ```
|
|
@@ -4695,7 +4695,7 @@ export type SFixed64RulesJson = {
|
|
|
4695
4695
|
*
|
|
4696
4696
|
* ```proto
|
|
4697
4697
|
* message MySFixed64 {
|
|
4698
|
-
* //
|
|
4698
|
+
* // must be less than or equal to 10
|
|
4699
4699
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
|
|
4700
4700
|
* }
|
|
4701
4701
|
* ```
|
|
@@ -4712,13 +4712,13 @@ export type SFixed64RulesJson = {
|
|
|
4712
4712
|
*
|
|
4713
4713
|
* ```proto
|
|
4714
4714
|
* message MySFixed64 {
|
|
4715
|
-
* //
|
|
4715
|
+
* // must be greater than 5 [sfixed64.gt]
|
|
4716
4716
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
|
|
4717
4717
|
*
|
|
4718
|
-
* //
|
|
4718
|
+
* // must be greater than 5 and less than 10 [sfixed64.gt_lt]
|
|
4719
4719
|
* sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
|
|
4720
4720
|
*
|
|
4721
|
-
* //
|
|
4721
|
+
* // must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
|
|
4722
4722
|
* sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
|
|
4723
4723
|
* }
|
|
4724
4724
|
* ```
|
|
@@ -4735,13 +4735,13 @@ export type SFixed64RulesJson = {
|
|
|
4735
4735
|
*
|
|
4736
4736
|
* ```proto
|
|
4737
4737
|
* message MySFixed64 {
|
|
4738
|
-
* //
|
|
4738
|
+
* // must be greater than or equal to 5 [sfixed64.gte]
|
|
4739
4739
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
|
|
4740
4740
|
*
|
|
4741
|
-
* //
|
|
4741
|
+
* // must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
|
|
4742
4742
|
* sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
|
|
4743
4743
|
*
|
|
4744
|
-
* //
|
|
4744
|
+
* // must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
|
|
4745
4745
|
* sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
|
|
4746
4746
|
* }
|
|
4747
4747
|
* ```
|
|
@@ -4756,7 +4756,7 @@ export type SFixed64RulesJson = {
|
|
|
4756
4756
|
*
|
|
4757
4757
|
* ```proto
|
|
4758
4758
|
* message MySFixed64 {
|
|
4759
|
-
* //
|
|
4759
|
+
* // must be in list [1, 2, 3]
|
|
4760
4760
|
* sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
|
|
4761
4761
|
* }
|
|
4762
4762
|
* ```
|
|
@@ -5088,7 +5088,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5088
5088
|
*
|
|
5089
5089
|
* ```proto
|
|
5090
5090
|
* message MyString {
|
|
5091
|
-
* //
|
|
5091
|
+
* // must be in list ["apple", "banana"]
|
|
5092
5092
|
* string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
|
|
5093
5093
|
* }
|
|
5094
5094
|
* ```
|
|
@@ -5130,7 +5130,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5130
5130
|
*
|
|
5131
5131
|
* ```proto
|
|
5132
5132
|
* message MyString {
|
|
5133
|
-
* //
|
|
5133
|
+
* // must be a valid email address
|
|
5134
5134
|
* string value = 1 [(buf.validate.field).string.email = true];
|
|
5135
5135
|
* }
|
|
5136
5136
|
* ```
|
|
@@ -5156,7 +5156,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5156
5156
|
*
|
|
5157
5157
|
* ```proto
|
|
5158
5158
|
* message MyString {
|
|
5159
|
-
* //
|
|
5159
|
+
* // must be a valid hostname
|
|
5160
5160
|
* string value = 1 [(buf.validate.field).string.hostname = true];
|
|
5161
5161
|
* }
|
|
5162
5162
|
* ```
|
|
@@ -5181,7 +5181,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5181
5181
|
*
|
|
5182
5182
|
* ```proto
|
|
5183
5183
|
* message MyString {
|
|
5184
|
-
* //
|
|
5184
|
+
* // must be a valid IP address
|
|
5185
5185
|
* string value = 1 [(buf.validate.field).string.ip = true];
|
|
5186
5186
|
* }
|
|
5187
5187
|
* ```
|
|
@@ -5198,7 +5198,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5198
5198
|
*
|
|
5199
5199
|
* ```proto
|
|
5200
5200
|
* message MyString {
|
|
5201
|
-
* //
|
|
5201
|
+
* // must be a valid IPv4 address
|
|
5202
5202
|
* string value = 1 [(buf.validate.field).string.ipv4 = true];
|
|
5203
5203
|
* }
|
|
5204
5204
|
* ```
|
|
@@ -5215,7 +5215,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5215
5215
|
*
|
|
5216
5216
|
* ```proto
|
|
5217
5217
|
* message MyString {
|
|
5218
|
-
* //
|
|
5218
|
+
* // must be a valid IPv6 address
|
|
5219
5219
|
* string value = 1 [(buf.validate.field).string.ipv6 = true];
|
|
5220
5220
|
* }
|
|
5221
5221
|
* ```
|
|
@@ -5236,7 +5236,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5236
5236
|
*
|
|
5237
5237
|
* ```proto
|
|
5238
5238
|
* message MyString {
|
|
5239
|
-
* //
|
|
5239
|
+
* // must be a valid URI
|
|
5240
5240
|
* string value = 1 [(buf.validate.field).string.uri = true];
|
|
5241
5241
|
* }
|
|
5242
5242
|
* ```
|
|
@@ -5260,7 +5260,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5260
5260
|
*
|
|
5261
5261
|
* ```proto
|
|
5262
5262
|
* message MyString {
|
|
5263
|
-
* //
|
|
5263
|
+
* // must be a valid URI Reference
|
|
5264
5264
|
* string value = 1 [(buf.validate.field).string.uri_ref = true];
|
|
5265
5265
|
* }
|
|
5266
5266
|
* ```
|
|
@@ -5278,7 +5278,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5278
5278
|
*
|
|
5279
5279
|
* ```proto
|
|
5280
5280
|
* message MyString {
|
|
5281
|
-
* //
|
|
5281
|
+
* // must be a valid hostname, or ip address
|
|
5282
5282
|
* string value = 1 [(buf.validate.field).string.address = true];
|
|
5283
5283
|
* }
|
|
5284
5284
|
* ```
|
|
@@ -5295,7 +5295,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5295
5295
|
*
|
|
5296
5296
|
* ```proto
|
|
5297
5297
|
* message MyString {
|
|
5298
|
-
* //
|
|
5298
|
+
* // must be a valid UUID
|
|
5299
5299
|
* string value = 1 [(buf.validate.field).string.uuid = true];
|
|
5300
5300
|
* }
|
|
5301
5301
|
* ```
|
|
@@ -5313,7 +5313,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5313
5313
|
*
|
|
5314
5314
|
* ```proto
|
|
5315
5315
|
* message MyString {
|
|
5316
|
-
* //
|
|
5316
|
+
* // must be a valid trimmed UUID
|
|
5317
5317
|
* string value = 1 [(buf.validate.field).string.tuuid = true];
|
|
5318
5318
|
* }
|
|
5319
5319
|
* ```
|
|
@@ -5331,7 +5331,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5331
5331
|
*
|
|
5332
5332
|
* ```proto
|
|
5333
5333
|
* message MyString {
|
|
5334
|
-
* //
|
|
5334
|
+
* // must be a valid IP with prefix length
|
|
5335
5335
|
* string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
|
|
5336
5336
|
* }
|
|
5337
5337
|
* ```
|
|
@@ -5349,7 +5349,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5349
5349
|
*
|
|
5350
5350
|
* ```proto
|
|
5351
5351
|
* message MyString {
|
|
5352
|
-
* //
|
|
5352
|
+
* // must be a valid IPv4 address with prefix length
|
|
5353
5353
|
* string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
|
|
5354
5354
|
* }
|
|
5355
5355
|
* ```
|
|
@@ -5367,7 +5367,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5367
5367
|
*
|
|
5368
5368
|
* ```proto
|
|
5369
5369
|
* message MyString {
|
|
5370
|
-
* //
|
|
5370
|
+
* // must be a valid IPv6 address prefix length
|
|
5371
5371
|
* string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
|
|
5372
5372
|
* }
|
|
5373
5373
|
* ```
|
|
@@ -5390,7 +5390,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5390
5390
|
*
|
|
5391
5391
|
* ```proto
|
|
5392
5392
|
* message MyString {
|
|
5393
|
-
* //
|
|
5393
|
+
* // must be a valid IP prefix
|
|
5394
5394
|
* string value = 1 [(buf.validate.field).string.ip_prefix = true];
|
|
5395
5395
|
* }
|
|
5396
5396
|
* ```
|
|
@@ -5413,7 +5413,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5413
5413
|
*
|
|
5414
5414
|
* ```proto
|
|
5415
5415
|
* message MyString {
|
|
5416
|
-
* //
|
|
5416
|
+
* // must be a valid IPv4 prefix
|
|
5417
5417
|
* string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
|
|
5418
5418
|
* }
|
|
5419
5419
|
* ```
|
|
@@ -5436,7 +5436,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5436
5436
|
*
|
|
5437
5437
|
* ```proto
|
|
5438
5438
|
* message MyString {
|
|
5439
|
-
* //
|
|
5439
|
+
* // must be a valid IPv6 prefix
|
|
5440
5440
|
* string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
|
|
5441
5441
|
* }
|
|
5442
5442
|
* ```
|
|
@@ -5447,7 +5447,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5447
5447
|
case: "ipv6Prefix";
|
|
5448
5448
|
} | {
|
|
5449
5449
|
/**
|
|
5450
|
-
* `host_and_port` specifies that the field value must be valid host/port
|
|
5450
|
+
* `host_and_port` specifies that the field value must be a valid host/port
|
|
5451
5451
|
* pair—for example, "example.com:8080".
|
|
5452
5452
|
*
|
|
5453
5453
|
* The host can be one of:
|
|
@@ -5470,7 +5470,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5470
5470
|
*
|
|
5471
5471
|
* ```proto
|
|
5472
5472
|
* message MyString {
|
|
5473
|
-
* //
|
|
5473
|
+
* // must be a valid ULID
|
|
5474
5474
|
* string value = 1 [(buf.validate.field).string.ulid = true];
|
|
5475
5475
|
* }
|
|
5476
5476
|
* ```
|
|
@@ -5479,6 +5479,68 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5479
5479
|
*/
|
|
5480
5480
|
value: boolean;
|
|
5481
5481
|
case: "ulid";
|
|
5482
|
+
} | {
|
|
5483
|
+
/**
|
|
5484
|
+
* `protobuf_fqn` specifies that the field value must be a valid fully-qualified
|
|
5485
|
+
* Protobuf name as defined by the [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
|
|
5486
|
+
*
|
|
5487
|
+
* A fully-qualified Protobuf name is a dot-separated list of Protobuf identifiers,
|
|
5488
|
+
* where each identifier starts with a letter or underscore and is followed by zero or
|
|
5489
|
+
* more letters, underscores, or digits.
|
|
5490
|
+
*
|
|
5491
|
+
* Examples: "buf.validate", "google.protobuf.Timestamp", "my_package.MyMessage".
|
|
5492
|
+
*
|
|
5493
|
+
* Note: historically, fully-qualified Protobuf names were represented with a leading
|
|
5494
|
+
* dot (for example, ".buf.validate.StringRules"). Modern Protobuf does not use the
|
|
5495
|
+
* leading dot, and most fully-qualified names are represented without it. Use
|
|
5496
|
+
* `protobuf_dot_fqn` if a leading dot is required.
|
|
5497
|
+
*
|
|
5498
|
+
* If the field value isn't a valid fully-qualified Protobuf name, an error message
|
|
5499
|
+
* will be generated.
|
|
5500
|
+
*
|
|
5501
|
+
* ```proto
|
|
5502
|
+
* message MyString {
|
|
5503
|
+
* // value must be a valid fully-qualified Protobuf name
|
|
5504
|
+
* string value = 1 [(buf.validate.field).string.protobuf_fqn = true];
|
|
5505
|
+
* }
|
|
5506
|
+
* ```
|
|
5507
|
+
*
|
|
5508
|
+
* @generated from field: bool protobuf_fqn = 37;
|
|
5509
|
+
*/
|
|
5510
|
+
value: boolean;
|
|
5511
|
+
case: "protobufFqn";
|
|
5512
|
+
} | {
|
|
5513
|
+
/**
|
|
5514
|
+
* `protobuf_dot_fqn` specifies that the field value must be a valid fully-qualified
|
|
5515
|
+
* Protobuf name with a leading dot, as defined by the
|
|
5516
|
+
* [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
|
|
5517
|
+
*
|
|
5518
|
+
* A fully-qualified Protobuf name with a leading dot is a dot followed by a
|
|
5519
|
+
* dot-separated list of Protobuf identifiers, where each identifier starts with a
|
|
5520
|
+
* letter or underscore and is followed by zero or more letters, underscores, or
|
|
5521
|
+
* digits.
|
|
5522
|
+
*
|
|
5523
|
+
* Examples: ".buf.validate", ".google.protobuf.Timestamp", ".my_package.MyMessage".
|
|
5524
|
+
*
|
|
5525
|
+
* Note: this is the historical representation of fully-qualified Protobuf names,
|
|
5526
|
+
* where a leading dot denotes an absolute reference. Modern Protobuf does not use
|
|
5527
|
+
* the leading dot, and most fully-qualified names are represented without it. Most
|
|
5528
|
+
* users will want to use `protobuf_fqn` instead.
|
|
5529
|
+
*
|
|
5530
|
+
* If the field value isn't a valid fully-qualified Protobuf name with a leading dot,
|
|
5531
|
+
* an error message will be generated.
|
|
5532
|
+
*
|
|
5533
|
+
* ```proto
|
|
5534
|
+
* message MyString {
|
|
5535
|
+
* // value must be a valid fully-qualified Protobuf name with a leading dot
|
|
5536
|
+
* string value = 1 [(buf.validate.field).string.protobuf_dot_fqn = true];
|
|
5537
|
+
* }
|
|
5538
|
+
* ```
|
|
5539
|
+
*
|
|
5540
|
+
* @generated from field: bool protobuf_dot_fqn = 38;
|
|
5541
|
+
*/
|
|
5542
|
+
value: boolean;
|
|
5543
|
+
case: "protobufDotFqn";
|
|
5482
5544
|
} | {
|
|
5483
5545
|
/**
|
|
5484
5546
|
* `well_known_regex` specifies a common well-known pattern
|
|
@@ -5487,7 +5549,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5487
5549
|
*
|
|
5488
5550
|
* ```proto
|
|
5489
5551
|
* message MyString {
|
|
5490
|
-
* //
|
|
5552
|
+
* // must be a valid HTTP header value
|
|
5491
5553
|
* string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
|
|
5492
5554
|
* }
|
|
5493
5555
|
* ```
|
|
@@ -5744,7 +5806,7 @@ export type StringRulesJson = {
|
|
|
5744
5806
|
*
|
|
5745
5807
|
* ```proto
|
|
5746
5808
|
* message MyString {
|
|
5747
|
-
* //
|
|
5809
|
+
* // must be in list ["apple", "banana"]
|
|
5748
5810
|
* string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
|
|
5749
5811
|
* }
|
|
5750
5812
|
* ```
|
|
@@ -5779,7 +5841,7 @@ export type StringRulesJson = {
|
|
|
5779
5841
|
*
|
|
5780
5842
|
* ```proto
|
|
5781
5843
|
* message MyString {
|
|
5782
|
-
* //
|
|
5844
|
+
* // must be a valid email address
|
|
5783
5845
|
* string value = 1 [(buf.validate.field).string.email = true];
|
|
5784
5846
|
* }
|
|
5785
5847
|
* ```
|
|
@@ -5803,7 +5865,7 @@ export type StringRulesJson = {
|
|
|
5803
5865
|
*
|
|
5804
5866
|
* ```proto
|
|
5805
5867
|
* message MyString {
|
|
5806
|
-
* //
|
|
5868
|
+
* // must be a valid hostname
|
|
5807
5869
|
* string value = 1 [(buf.validate.field).string.hostname = true];
|
|
5808
5870
|
* }
|
|
5809
5871
|
* ```
|
|
@@ -5826,7 +5888,7 @@ export type StringRulesJson = {
|
|
|
5826
5888
|
*
|
|
5827
5889
|
* ```proto
|
|
5828
5890
|
* message MyString {
|
|
5829
|
-
* //
|
|
5891
|
+
* // must be a valid IP address
|
|
5830
5892
|
* string value = 1 [(buf.validate.field).string.ip = true];
|
|
5831
5893
|
* }
|
|
5832
5894
|
* ```
|
|
@@ -5841,7 +5903,7 @@ export type StringRulesJson = {
|
|
|
5841
5903
|
*
|
|
5842
5904
|
* ```proto
|
|
5843
5905
|
* message MyString {
|
|
5844
|
-
* //
|
|
5906
|
+
* // must be a valid IPv4 address
|
|
5845
5907
|
* string value = 1 [(buf.validate.field).string.ipv4 = true];
|
|
5846
5908
|
* }
|
|
5847
5909
|
* ```
|
|
@@ -5856,7 +5918,7 @@ export type StringRulesJson = {
|
|
|
5856
5918
|
*
|
|
5857
5919
|
* ```proto
|
|
5858
5920
|
* message MyString {
|
|
5859
|
-
* //
|
|
5921
|
+
* // must be a valid IPv6 address
|
|
5860
5922
|
* string value = 1 [(buf.validate.field).string.ipv6 = true];
|
|
5861
5923
|
* }
|
|
5862
5924
|
* ```
|
|
@@ -5875,7 +5937,7 @@ export type StringRulesJson = {
|
|
|
5875
5937
|
*
|
|
5876
5938
|
* ```proto
|
|
5877
5939
|
* message MyString {
|
|
5878
|
-
* //
|
|
5940
|
+
* // must be a valid URI
|
|
5879
5941
|
* string value = 1 [(buf.validate.field).string.uri = true];
|
|
5880
5942
|
* }
|
|
5881
5943
|
* ```
|
|
@@ -5897,7 +5959,7 @@ export type StringRulesJson = {
|
|
|
5897
5959
|
*
|
|
5898
5960
|
* ```proto
|
|
5899
5961
|
* message MyString {
|
|
5900
|
-
* //
|
|
5962
|
+
* // must be a valid URI Reference
|
|
5901
5963
|
* string value = 1 [(buf.validate.field).string.uri_ref = true];
|
|
5902
5964
|
* }
|
|
5903
5965
|
* ```
|
|
@@ -5913,7 +5975,7 @@ export type StringRulesJson = {
|
|
|
5913
5975
|
*
|
|
5914
5976
|
* ```proto
|
|
5915
5977
|
* message MyString {
|
|
5916
|
-
* //
|
|
5978
|
+
* // must be a valid hostname, or ip address
|
|
5917
5979
|
* string value = 1 [(buf.validate.field).string.address = true];
|
|
5918
5980
|
* }
|
|
5919
5981
|
* ```
|
|
@@ -5928,7 +5990,7 @@ export type StringRulesJson = {
|
|
|
5928
5990
|
*
|
|
5929
5991
|
* ```proto
|
|
5930
5992
|
* message MyString {
|
|
5931
|
-
* //
|
|
5993
|
+
* // must be a valid UUID
|
|
5932
5994
|
* string value = 1 [(buf.validate.field).string.uuid = true];
|
|
5933
5995
|
* }
|
|
5934
5996
|
* ```
|
|
@@ -5944,7 +6006,7 @@ export type StringRulesJson = {
|
|
|
5944
6006
|
*
|
|
5945
6007
|
* ```proto
|
|
5946
6008
|
* message MyString {
|
|
5947
|
-
* //
|
|
6009
|
+
* // must be a valid trimmed UUID
|
|
5948
6010
|
* string value = 1 [(buf.validate.field).string.tuuid = true];
|
|
5949
6011
|
* }
|
|
5950
6012
|
* ```
|
|
@@ -5960,7 +6022,7 @@ export type StringRulesJson = {
|
|
|
5960
6022
|
*
|
|
5961
6023
|
* ```proto
|
|
5962
6024
|
* message MyString {
|
|
5963
|
-
* //
|
|
6025
|
+
* // must be a valid IP with prefix length
|
|
5964
6026
|
* string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
|
|
5965
6027
|
* }
|
|
5966
6028
|
* ```
|
|
@@ -5976,7 +6038,7 @@ export type StringRulesJson = {
|
|
|
5976
6038
|
*
|
|
5977
6039
|
* ```proto
|
|
5978
6040
|
* message MyString {
|
|
5979
|
-
* //
|
|
6041
|
+
* // must be a valid IPv4 address with prefix length
|
|
5980
6042
|
* string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
|
|
5981
6043
|
* }
|
|
5982
6044
|
* ```
|
|
@@ -5992,7 +6054,7 @@ export type StringRulesJson = {
|
|
|
5992
6054
|
*
|
|
5993
6055
|
* ```proto
|
|
5994
6056
|
* message MyString {
|
|
5995
|
-
* //
|
|
6057
|
+
* // must be a valid IPv6 address prefix length
|
|
5996
6058
|
* string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
|
|
5997
6059
|
* }
|
|
5998
6060
|
* ```
|
|
@@ -6013,7 +6075,7 @@ export type StringRulesJson = {
|
|
|
6013
6075
|
*
|
|
6014
6076
|
* ```proto
|
|
6015
6077
|
* message MyString {
|
|
6016
|
-
* //
|
|
6078
|
+
* // must be a valid IP prefix
|
|
6017
6079
|
* string value = 1 [(buf.validate.field).string.ip_prefix = true];
|
|
6018
6080
|
* }
|
|
6019
6081
|
* ```
|
|
@@ -6034,7 +6096,7 @@ export type StringRulesJson = {
|
|
|
6034
6096
|
*
|
|
6035
6097
|
* ```proto
|
|
6036
6098
|
* message MyString {
|
|
6037
|
-
* //
|
|
6099
|
+
* // must be a valid IPv4 prefix
|
|
6038
6100
|
* string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
|
|
6039
6101
|
* }
|
|
6040
6102
|
* ```
|
|
@@ -6055,7 +6117,7 @@ export type StringRulesJson = {
|
|
|
6055
6117
|
*
|
|
6056
6118
|
* ```proto
|
|
6057
6119
|
* message MyString {
|
|
6058
|
-
* //
|
|
6120
|
+
* // must be a valid IPv6 prefix
|
|
6059
6121
|
* string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
|
|
6060
6122
|
* }
|
|
6061
6123
|
* ```
|
|
@@ -6064,7 +6126,7 @@ export type StringRulesJson = {
|
|
|
6064
6126
|
*/
|
|
6065
6127
|
ipv6Prefix?: boolean;
|
|
6066
6128
|
/**
|
|
6067
|
-
* `host_and_port` specifies that the field value must be valid host/port
|
|
6129
|
+
* `host_and_port` specifies that the field value must be a valid host/port
|
|
6068
6130
|
* pair—for example, "example.com:8080".
|
|
6069
6131
|
*
|
|
6070
6132
|
* The host can be one of:
|
|
@@ -6085,7 +6147,7 @@ export type StringRulesJson = {
|
|
|
6085
6147
|
*
|
|
6086
6148
|
* ```proto
|
|
6087
6149
|
* message MyString {
|
|
6088
|
-
* //
|
|
6150
|
+
* // must be a valid ULID
|
|
6089
6151
|
* string value = 1 [(buf.validate.field).string.ulid = true];
|
|
6090
6152
|
* }
|
|
6091
6153
|
* ```
|
|
@@ -6093,6 +6155,64 @@ export type StringRulesJson = {
|
|
|
6093
6155
|
* @generated from field: bool ulid = 35;
|
|
6094
6156
|
*/
|
|
6095
6157
|
ulid?: boolean;
|
|
6158
|
+
/**
|
|
6159
|
+
* `protobuf_fqn` specifies that the field value must be a valid fully-qualified
|
|
6160
|
+
* Protobuf name as defined by the [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
|
|
6161
|
+
*
|
|
6162
|
+
* A fully-qualified Protobuf name is a dot-separated list of Protobuf identifiers,
|
|
6163
|
+
* where each identifier starts with a letter or underscore and is followed by zero or
|
|
6164
|
+
* more letters, underscores, or digits.
|
|
6165
|
+
*
|
|
6166
|
+
* Examples: "buf.validate", "google.protobuf.Timestamp", "my_package.MyMessage".
|
|
6167
|
+
*
|
|
6168
|
+
* Note: historically, fully-qualified Protobuf names were represented with a leading
|
|
6169
|
+
* dot (for example, ".buf.validate.StringRules"). Modern Protobuf does not use the
|
|
6170
|
+
* leading dot, and most fully-qualified names are represented without it. Use
|
|
6171
|
+
* `protobuf_dot_fqn` if a leading dot is required.
|
|
6172
|
+
*
|
|
6173
|
+
* If the field value isn't a valid fully-qualified Protobuf name, an error message
|
|
6174
|
+
* will be generated.
|
|
6175
|
+
*
|
|
6176
|
+
* ```proto
|
|
6177
|
+
* message MyString {
|
|
6178
|
+
* // value must be a valid fully-qualified Protobuf name
|
|
6179
|
+
* string value = 1 [(buf.validate.field).string.protobuf_fqn = true];
|
|
6180
|
+
* }
|
|
6181
|
+
* ```
|
|
6182
|
+
*
|
|
6183
|
+
* @generated from field: bool protobuf_fqn = 37;
|
|
6184
|
+
*/
|
|
6185
|
+
protobufFqn?: boolean;
|
|
6186
|
+
/**
|
|
6187
|
+
* `protobuf_dot_fqn` specifies that the field value must be a valid fully-qualified
|
|
6188
|
+
* Protobuf name with a leading dot, as defined by the
|
|
6189
|
+
* [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
|
|
6190
|
+
*
|
|
6191
|
+
* A fully-qualified Protobuf name with a leading dot is a dot followed by a
|
|
6192
|
+
* dot-separated list of Protobuf identifiers, where each identifier starts with a
|
|
6193
|
+
* letter or underscore and is followed by zero or more letters, underscores, or
|
|
6194
|
+
* digits.
|
|
6195
|
+
*
|
|
6196
|
+
* Examples: ".buf.validate", ".google.protobuf.Timestamp", ".my_package.MyMessage".
|
|
6197
|
+
*
|
|
6198
|
+
* Note: this is the historical representation of fully-qualified Protobuf names,
|
|
6199
|
+
* where a leading dot denotes an absolute reference. Modern Protobuf does not use
|
|
6200
|
+
* the leading dot, and most fully-qualified names are represented without it. Most
|
|
6201
|
+
* users will want to use `protobuf_fqn` instead.
|
|
6202
|
+
*
|
|
6203
|
+
* If the field value isn't a valid fully-qualified Protobuf name with a leading dot,
|
|
6204
|
+
* an error message will be generated.
|
|
6205
|
+
*
|
|
6206
|
+
* ```proto
|
|
6207
|
+
* message MyString {
|
|
6208
|
+
* // value must be a valid fully-qualified Protobuf name with a leading dot
|
|
6209
|
+
* string value = 1 [(buf.validate.field).string.protobuf_dot_fqn = true];
|
|
6210
|
+
* }
|
|
6211
|
+
* ```
|
|
6212
|
+
*
|
|
6213
|
+
* @generated from field: bool protobuf_dot_fqn = 38;
|
|
6214
|
+
*/
|
|
6215
|
+
protobufDotFqn?: boolean;
|
|
6096
6216
|
/**
|
|
6097
6217
|
* `well_known_regex` specifies a common well-known pattern
|
|
6098
6218
|
* defined as a regex. If the field value doesn't match the well-known
|
|
@@ -6100,7 +6220,7 @@ export type StringRulesJson = {
|
|
|
6100
6220
|
*
|
|
6101
6221
|
* ```proto
|
|
6102
6222
|
* message MyString {
|
|
6103
|
-
* //
|
|
6223
|
+
* // must be a valid HTTP header value
|
|
6104
6224
|
* string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
|
|
6105
6225
|
* }
|
|
6106
6226
|
* ```
|
|
@@ -6173,7 +6293,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
6173
6293
|
*
|
|
6174
6294
|
* ```proto
|
|
6175
6295
|
* message MyBytes {
|
|
6176
|
-
* //
|
|
6296
|
+
* // must be "\x01\x02\x03\x04"
|
|
6177
6297
|
* bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
|
|
6178
6298
|
* }
|
|
6179
6299
|
* ```
|
|
@@ -6217,7 +6337,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
6217
6337
|
*
|
|
6218
6338
|
* ```proto
|
|
6219
6339
|
* message MyBytes {
|
|
6220
|
-
* //
|
|
6340
|
+
* // must be at most 6 bytes.
|
|
6221
6341
|
* optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
|
|
6222
6342
|
* }
|
|
6223
6343
|
* ```
|
|
@@ -6331,7 +6451,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
6331
6451
|
*
|
|
6332
6452
|
* ```proto
|
|
6333
6453
|
* message MyBytes {
|
|
6334
|
-
* //
|
|
6454
|
+
* // must be a valid IP address
|
|
6335
6455
|
* optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
|
|
6336
6456
|
* }
|
|
6337
6457
|
* ```
|
|
@@ -6347,7 +6467,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
6347
6467
|
*
|
|
6348
6468
|
* ```proto
|
|
6349
6469
|
* message MyBytes {
|
|
6350
|
-
* //
|
|
6470
|
+
* // must be a valid IPv4 address
|
|
6351
6471
|
* optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
|
|
6352
6472
|
* }
|
|
6353
6473
|
* ```
|
|
@@ -6362,7 +6482,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
6362
6482
|
* If the field value doesn't meet this rule, an error message is generated.
|
|
6363
6483
|
* ```proto
|
|
6364
6484
|
* message MyBytes {
|
|
6365
|
-
* //
|
|
6485
|
+
* // must be a valid IPv6 address
|
|
6366
6486
|
* optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
|
|
6367
6487
|
* }
|
|
6368
6488
|
* ```
|
|
@@ -6373,15 +6493,14 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
6373
6493
|
case: "ipv6";
|
|
6374
6494
|
} | {
|
|
6375
6495
|
/**
|
|
6376
|
-
* `uuid` ensures that the field
|
|
6377
|
-
*
|
|
6378
|
-
* The field must contain exactly 16 bytes
|
|
6379
|
-
*
|
|
6380
|
-
* message will be generated.
|
|
6496
|
+
* `uuid` ensures that the field value encodes 128-bit UUID data as defined
|
|
6497
|
+
* by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
|
|
6498
|
+
* The field must contain exactly 16 bytes representing the UUID. If the
|
|
6499
|
+
* field value isn't a valid UUID, an error message will be generated.
|
|
6381
6500
|
*
|
|
6382
6501
|
* ```proto
|
|
6383
6502
|
* message MyBytes {
|
|
6384
|
-
* //
|
|
6503
|
+
* // must be a valid UUID
|
|
6385
6504
|
* optional bytes value = 1 [(buf.validate.field).bytes.uuid = true];
|
|
6386
6505
|
* }
|
|
6387
6506
|
* ```
|
|
@@ -6425,7 +6544,7 @@ export type BytesRulesJson = {
|
|
|
6425
6544
|
*
|
|
6426
6545
|
* ```proto
|
|
6427
6546
|
* message MyBytes {
|
|
6428
|
-
* //
|
|
6547
|
+
* // must be "\x01\x02\x03\x04"
|
|
6429
6548
|
* bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
|
|
6430
6549
|
* }
|
|
6431
6550
|
* ```
|
|
@@ -6469,7 +6588,7 @@ export type BytesRulesJson = {
|
|
|
6469
6588
|
*
|
|
6470
6589
|
* ```proto
|
|
6471
6590
|
* message MyBytes {
|
|
6472
|
-
* //
|
|
6591
|
+
* // must be at most 6 bytes.
|
|
6473
6592
|
* optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
|
|
6474
6593
|
* }
|
|
6475
6594
|
* ```
|
|
@@ -6576,7 +6695,7 @@ export type BytesRulesJson = {
|
|
|
6576
6695
|
*
|
|
6577
6696
|
* ```proto
|
|
6578
6697
|
* message MyBytes {
|
|
6579
|
-
* //
|
|
6698
|
+
* // must be a valid IP address
|
|
6580
6699
|
* optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
|
|
6581
6700
|
* }
|
|
6582
6701
|
* ```
|
|
@@ -6590,7 +6709,7 @@ export type BytesRulesJson = {
|
|
|
6590
6709
|
*
|
|
6591
6710
|
* ```proto
|
|
6592
6711
|
* message MyBytes {
|
|
6593
|
-
* //
|
|
6712
|
+
* // must be a valid IPv4 address
|
|
6594
6713
|
* optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
|
|
6595
6714
|
* }
|
|
6596
6715
|
* ```
|
|
@@ -6603,7 +6722,7 @@ export type BytesRulesJson = {
|
|
|
6603
6722
|
* If the field value doesn't meet this rule, an error message is generated.
|
|
6604
6723
|
* ```proto
|
|
6605
6724
|
* message MyBytes {
|
|
6606
|
-
* //
|
|
6725
|
+
* // must be a valid IPv6 address
|
|
6607
6726
|
* optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
|
|
6608
6727
|
* }
|
|
6609
6728
|
* ```
|
|
@@ -6612,15 +6731,14 @@ export type BytesRulesJson = {
|
|
|
6612
6731
|
*/
|
|
6613
6732
|
ipv6?: boolean;
|
|
6614
6733
|
/**
|
|
6615
|
-
* `uuid` ensures that the field
|
|
6616
|
-
*
|
|
6617
|
-
* The field must contain exactly 16 bytes
|
|
6618
|
-
*
|
|
6619
|
-
* message will be generated.
|
|
6734
|
+
* `uuid` ensures that the field value encodes 128-bit UUID data as defined
|
|
6735
|
+
* by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
|
|
6736
|
+
* The field must contain exactly 16 bytes representing the UUID. If the
|
|
6737
|
+
* field value isn't a valid UUID, an error message will be generated.
|
|
6620
6738
|
*
|
|
6621
6739
|
* ```proto
|
|
6622
6740
|
* message MyBytes {
|
|
6623
|
-
* //
|
|
6741
|
+
* // must be a valid UUID
|
|
6624
6742
|
* optional bytes value = 1 [(buf.validate.field).bytes.uuid = true];
|
|
6625
6743
|
* }
|
|
6626
6744
|
* ```
|
|
@@ -6955,7 +7073,7 @@ export type RepeatedRules = Message<"buf.validate.RepeatedRules"> & {
|
|
|
6955
7073
|
*
|
|
6956
7074
|
* @generated from field: optional buf.validate.FieldRules items = 4;
|
|
6957
7075
|
*/
|
|
6958
|
-
items?: FieldRules;
|
|
7076
|
+
items?: FieldRules | undefined;
|
|
6959
7077
|
};
|
|
6960
7078
|
/**
|
|
6961
7079
|
* RepeatedRules describe the rules applied to `repeated` values.
|
|
@@ -7094,7 +7212,7 @@ export type MapRules = Message<"buf.validate.MapRules"> & {
|
|
|
7094
7212
|
*
|
|
7095
7213
|
* @generated from field: optional buf.validate.FieldRules keys = 4;
|
|
7096
7214
|
*/
|
|
7097
|
-
keys?: FieldRules;
|
|
7215
|
+
keys?: FieldRules | undefined;
|
|
7098
7216
|
/**
|
|
7099
7217
|
* Specifies the rules to be applied to the value of each key in the
|
|
7100
7218
|
* field. Message values will still have their validations evaluated unless
|
|
@@ -7115,7 +7233,7 @@ export type MapRules = Message<"buf.validate.MapRules"> & {
|
|
|
7115
7233
|
*
|
|
7116
7234
|
* @generated from field: optional buf.validate.FieldRules values = 5;
|
|
7117
7235
|
*/
|
|
7118
|
-
values?: FieldRules;
|
|
7236
|
+
values?: FieldRules | undefined;
|
|
7119
7237
|
};
|
|
7120
7238
|
/**
|
|
7121
7239
|
* MapRules describe the rules applied to `map` values.
|
|
@@ -7224,7 +7342,7 @@ export type AnyRules = Message<"buf.validate.AnyRules"> & {
|
|
|
7224
7342
|
*/
|
|
7225
7343
|
in: string[];
|
|
7226
7344
|
/**
|
|
7227
|
-
* 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.
|
|
7345
|
+
* `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.
|
|
7228
7346
|
*
|
|
7229
7347
|
* ```proto
|
|
7230
7348
|
* message MyAny {
|
|
@@ -7263,7 +7381,7 @@ export type AnyRulesJson = {
|
|
|
7263
7381
|
*/
|
|
7264
7382
|
in?: string[];
|
|
7265
7383
|
/**
|
|
7266
|
-
* 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.
|
|
7384
|
+
* `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.
|
|
7267
7385
|
*
|
|
7268
7386
|
* ```proto
|
|
7269
7387
|
* message MyAny {
|
|
@@ -7305,7 +7423,7 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
7305
7423
|
*
|
|
7306
7424
|
* @generated from field: optional google.protobuf.Duration const = 2;
|
|
7307
7425
|
*/
|
|
7308
|
-
const?: Duration;
|
|
7426
|
+
const?: Duration | undefined;
|
|
7309
7427
|
/**
|
|
7310
7428
|
* @generated from oneof buf.validate.DurationRules.less_than
|
|
7311
7429
|
*/
|
|
@@ -7317,7 +7435,7 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
7317
7435
|
*
|
|
7318
7436
|
* ```proto
|
|
7319
7437
|
* message MyDuration {
|
|
7320
|
-
* //
|
|
7438
|
+
* // must be less than 5s
|
|
7321
7439
|
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
|
|
7322
7440
|
* }
|
|
7323
7441
|
* ```
|
|
@@ -7334,7 +7452,7 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
7334
7452
|
*
|
|
7335
7453
|
* ```proto
|
|
7336
7454
|
* message MyDuration {
|
|
7337
|
-
* //
|
|
7455
|
+
* // must be less than or equal to 10s
|
|
7338
7456
|
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
|
|
7339
7457
|
* }
|
|
7340
7458
|
* ```
|
|
@@ -7411,7 +7529,7 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
7411
7529
|
*
|
|
7412
7530
|
* ```proto
|
|
7413
7531
|
* message MyDuration {
|
|
7414
|
-
* //
|
|
7532
|
+
* // must be in list [1s, 2s, 3s]
|
|
7415
7533
|
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
|
|
7416
7534
|
* }
|
|
7417
7535
|
* ```
|
|
@@ -7481,7 +7599,7 @@ export type DurationRulesJson = {
|
|
|
7481
7599
|
*
|
|
7482
7600
|
* ```proto
|
|
7483
7601
|
* message MyDuration {
|
|
7484
|
-
* //
|
|
7602
|
+
* // must be less than 5s
|
|
7485
7603
|
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
|
|
7486
7604
|
* }
|
|
7487
7605
|
* ```
|
|
@@ -7496,7 +7614,7 @@ export type DurationRulesJson = {
|
|
|
7496
7614
|
*
|
|
7497
7615
|
* ```proto
|
|
7498
7616
|
* message MyDuration {
|
|
7499
|
-
* //
|
|
7617
|
+
* // must be less than or equal to 10s
|
|
7500
7618
|
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
|
|
7501
7619
|
* }
|
|
7502
7620
|
* ```
|
|
@@ -7557,7 +7675,7 @@ export type DurationRulesJson = {
|
|
|
7557
7675
|
*
|
|
7558
7676
|
* ```proto
|
|
7559
7677
|
* message MyDuration {
|
|
7560
|
-
* //
|
|
7678
|
+
* // must be in list [1s, 2s, 3s]
|
|
7561
7679
|
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
|
|
7562
7680
|
* }
|
|
7563
7681
|
* ```
|
|
@@ -7628,7 +7746,7 @@ export type FieldMaskRules = Message<"buf.validate.FieldMaskRules"> & {
|
|
|
7628
7746
|
*
|
|
7629
7747
|
* @generated from field: optional google.protobuf.FieldMask const = 1;
|
|
7630
7748
|
*/
|
|
7631
|
-
const?: FieldMask;
|
|
7749
|
+
const?: FieldMask | undefined;
|
|
7632
7750
|
/**
|
|
7633
7751
|
* `in` requires the field value to only contain paths matching specified
|
|
7634
7752
|
* values or their subpaths.
|
|
@@ -7789,18 +7907,18 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
|
|
|
7789
7907
|
*
|
|
7790
7908
|
* @generated from field: optional google.protobuf.Timestamp const = 2;
|
|
7791
7909
|
*/
|
|
7792
|
-
const?: Timestamp;
|
|
7910
|
+
const?: Timestamp | undefined;
|
|
7793
7911
|
/**
|
|
7794
7912
|
* @generated from oneof buf.validate.TimestampRules.less_than
|
|
7795
7913
|
*/
|
|
7796
7914
|
lessThan: {
|
|
7797
7915
|
/**
|
|
7798
|
-
* requires the
|
|
7916
|
+
* `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.
|
|
7799
7917
|
*
|
|
7800
7918
|
* ```proto
|
|
7801
|
-
* message
|
|
7802
|
-
* //
|
|
7803
|
-
* google.protobuf.
|
|
7919
|
+
* message MyTimestamp {
|
|
7920
|
+
* // timestamp must be less than '2023-01-01T00:00:00Z' [timestamp.lt]
|
|
7921
|
+
* google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lt = { seconds: 1672444800 }];
|
|
7804
7922
|
* }
|
|
7805
7923
|
* ```
|
|
7806
7924
|
*
|
|
@@ -7810,7 +7928,7 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
|
|
|
7810
7928
|
case: "lt";
|
|
7811
7929
|
} | {
|
|
7812
7930
|
/**
|
|
7813
|
-
* 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.
|
|
7931
|
+
* `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.
|
|
7814
7932
|
*
|
|
7815
7933
|
* ```proto
|
|
7816
7934
|
* message MyTimestamp {
|
|
@@ -7829,7 +7947,7 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
|
|
|
7829
7947
|
*
|
|
7830
7948
|
* ```proto
|
|
7831
7949
|
* message MyTimestamp {
|
|
7832
|
-
* //
|
|
7950
|
+
* // must be less than now
|
|
7833
7951
|
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
|
|
7834
7952
|
* }
|
|
7835
7953
|
* ```
|
|
@@ -7901,7 +8019,7 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
|
|
|
7901
8019
|
*
|
|
7902
8020
|
* ```proto
|
|
7903
8021
|
* message MyTimestamp {
|
|
7904
|
-
* //
|
|
8022
|
+
* // must be greater than now
|
|
7905
8023
|
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
|
|
7906
8024
|
* }
|
|
7907
8025
|
* ```
|
|
@@ -7919,14 +8037,14 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
|
|
|
7919
8037
|
*
|
|
7920
8038
|
* ```proto
|
|
7921
8039
|
* message MyTimestamp {
|
|
7922
|
-
* //
|
|
8040
|
+
* // must be within 1 hour of now
|
|
7923
8041
|
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
|
|
7924
8042
|
* }
|
|
7925
8043
|
* ```
|
|
7926
8044
|
*
|
|
7927
8045
|
* @generated from field: optional google.protobuf.Duration within = 9;
|
|
7928
8046
|
*/
|
|
7929
|
-
within?: Duration;
|
|
8047
|
+
within?: Duration | undefined;
|
|
7930
8048
|
/**
|
|
7931
8049
|
* `example` specifies values that the field may have. These values SHOULD
|
|
7932
8050
|
* conform to other rules. `example` values will not impact validation
|
|
@@ -7965,12 +8083,12 @@ export type TimestampRulesJson = {
|
|
|
7965
8083
|
*/
|
|
7966
8084
|
const?: TimestampJson;
|
|
7967
8085
|
/**
|
|
7968
|
-
* requires the
|
|
8086
|
+
* `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.
|
|
7969
8087
|
*
|
|
7970
8088
|
* ```proto
|
|
7971
|
-
* message
|
|
7972
|
-
* //
|
|
7973
|
-
* google.protobuf.
|
|
8089
|
+
* message MyTimestamp {
|
|
8090
|
+
* // timestamp must be less than '2023-01-01T00:00:00Z' [timestamp.lt]
|
|
8091
|
+
* google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lt = { seconds: 1672444800 }];
|
|
7974
8092
|
* }
|
|
7975
8093
|
* ```
|
|
7976
8094
|
*
|
|
@@ -7978,7 +8096,7 @@ export type TimestampRulesJson = {
|
|
|
7978
8096
|
*/
|
|
7979
8097
|
lt?: TimestampJson;
|
|
7980
8098
|
/**
|
|
7981
|
-
* 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.
|
|
8099
|
+
* `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.
|
|
7982
8100
|
*
|
|
7983
8101
|
* ```proto
|
|
7984
8102
|
* message MyTimestamp {
|
|
@@ -7995,7 +8113,7 @@ export type TimestampRulesJson = {
|
|
|
7995
8113
|
*
|
|
7996
8114
|
* ```proto
|
|
7997
8115
|
* message MyTimestamp {
|
|
7998
|
-
* //
|
|
8116
|
+
* // must be less than now
|
|
7999
8117
|
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
|
|
8000
8118
|
* }
|
|
8001
8119
|
* ```
|
|
@@ -8054,7 +8172,7 @@ export type TimestampRulesJson = {
|
|
|
8054
8172
|
*
|
|
8055
8173
|
* ```proto
|
|
8056
8174
|
* message MyTimestamp {
|
|
8057
|
-
* //
|
|
8175
|
+
* // must be greater than now
|
|
8058
8176
|
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
|
|
8059
8177
|
* }
|
|
8060
8178
|
* ```
|
|
@@ -8067,7 +8185,7 @@ export type TimestampRulesJson = {
|
|
|
8067
8185
|
*
|
|
8068
8186
|
* ```proto
|
|
8069
8187
|
* message MyTimestamp {
|
|
8070
|
-
* //
|
|
8188
|
+
* // must be within 1 hour of now
|
|
8071
8189
|
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
|
|
8072
8190
|
* }
|
|
8073
8191
|
* ```
|
|
@@ -8208,7 +8326,7 @@ export type Violation = Message<"buf.validate.Violation"> & {
|
|
|
8208
8326
|
*
|
|
8209
8327
|
* @generated from field: optional buf.validate.FieldPath field = 5;
|
|
8210
8328
|
*/
|
|
8211
|
-
field?: FieldPath;
|
|
8329
|
+
field?: FieldPath | undefined;
|
|
8212
8330
|
/**
|
|
8213
8331
|
* `rule` is a machine-readable path that points to the specific rule that failed validation.
|
|
8214
8332
|
* This will be a nested field starting from the FieldRules of the field that failed validation.
|
|
@@ -8241,7 +8359,7 @@ export type Violation = Message<"buf.validate.Violation"> & {
|
|
|
8241
8359
|
*
|
|
8242
8360
|
* @generated from field: optional buf.validate.FieldPath rule = 6;
|
|
8243
8361
|
*/
|
|
8244
|
-
rule?: FieldPath;
|
|
8362
|
+
rule?: FieldPath | undefined;
|
|
8245
8363
|
/**
|
|
8246
8364
|
* `rule_id` is the unique identifier of the `Rule` that was not fulfilled.
|
|
8247
8365
|
* This is the same `id` that was specified in the `Rule` message, allowing easy tracing of which rule was violated.
|
|
@@ -8804,7 +8922,7 @@ export declare const field: GenExtension<FieldOptions, FieldRules>;
|
|
|
8804
8922
|
* extend buf.validate.Int32Rules {
|
|
8805
8923
|
* bool is_zero [(buf.validate.predefined).cel = {
|
|
8806
8924
|
* id: "int32.is_zero",
|
|
8807
|
-
* message: "
|
|
8925
|
+
* message: "must be zero",
|
|
8808
8926
|
* expression: "!rule || this == 0",
|
|
8809
8927
|
* }];
|
|
8810
8928
|
* }
|