validate library Null safety
Functions
-
checkValid(
GeneratedMessage message) → void -
Validates the given message according to the constraints defined in Protobuf and throws
an InvalidMessageError if the
messageis invalid. -
isDefault(
GeneratedMessage message) → bool -
Checks if the given
messageis in the default state. -
validate(
GeneratedMessage message) → Optional< ValidationError> - Validates the given message according to the constraints defined in Protobuf.
Exceptions / Errors
- InvalidMessageError
- An error which occurs when validating an invalid message.