Const specifies that this field must be exactly the specified value
Len specifies that this field must be the specified number of bytes
MinLen specifies that this field must be the specified number of bytes at a minimum
MaxLen specifies that this field must be the specified number of bytes at a maximum
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
Prefix specifies that this field must have the specified bytes at the beginning of the string.
Suffix specifies that this field must have the specified bytes at the end of the string.
Contains specifies that this field must have the specified bytes anywhere in the string.
In specifies that this field must be equal to one of the specified values
NotIn specifies that this field cannot be equal to one of the specified values
Const specifies that this field must be exactly the specified value
Contains specifies that this field must have the specified bytes anywhere in the string.
In specifies that this field must be equal to one of the specified values
Len specifies that this field must be the specified number of bytes
MaxLen specifies that this field must be the specified number of bytes at a maximum
MinLen specifies that this field must be the specified number of bytes at a minimum
NotIn specifies that this field cannot be equal to one of the specified values
Pattern specifes that this field must match against the specified regular expression (RE2 syntax).
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
Prefix specifies that this field must have the specified bytes at the beginning of the string.
Suffix specifies that this field must have the specified bytes at the end of the string.
(Since version 0.6.0) Use toPMessage
(Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue
BytesRules describe the constraints applied to
bytes
valuesConst specifies that this field must be exactly the specified value
Len specifies that this field must be the specified number of bytes
MinLen specifies that this field must be the specified number of bytes at a minimum
MaxLen specifies that this field must be the specified number of bytes at a maximum
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
Prefix specifies that this field must have the specified bytes at the beginning of the string.
Suffix specifies that this field must have the specified bytes at the end of the string.
Contains specifies that this field must have the specified bytes anywhere in the string.
In specifies that this field must be equal to one of the specified values
NotIn specifies that this field cannot be equal to one of the specified values