Fixed64Rules describes the rules applied to fixed64 values.
Fixed64Rules describes the rules applied to fixed64 values.
Optional[customReturns a safe value for JSON logs.
Returns a safe value for JSON logs.
Optional[unknownPreserves protobuf fields that this SDK version does not recognize.
Contains the fully qualified protobuf type name.
Optionalconstconst requires the field value to exactly match the specified value. If
the field value doesn't match, an error message is generated.
message MyFixed64 {
// value must equal 42
fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
}
example specifies values that the field may have. These values SHOULD
conform to other rules. example values will not impact validation
but may be used as helpful guidance on how to populate the given field.
message MyFixed64 {
fixed64 value = 1 [
(buf.validate.field).fixed64.example = 1,
(buf.validate.field).fixed64.example = 2
];
}
OptionalgreaterContains the selected value for the greater_than protobuf oneof.
Contains the case.
Contains the gt.
Contains the case.
Contains the gte.
in requires the field value to be equal to one of the specified values.
If the field value isn't one of the specified values, an error message is
generated.
message MyFixed64 {
// value must be in list [1, 2, 3]
fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
}
OptionallessContains the selected value for the less_than protobuf oneof.
Contains the case.
Contains the lt.
Contains the case.
Contains the lte.
not_in requires the field value to not be equal to any of the specified
values. If the field value is one of the specified values, an error
message is generated.
message MyFixed64 {
// value must not be in list [1, 2, 3]
fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
}
Fixed64Rules describes the rules applied to
fixed64values.