T - The type to validate@FunctionalInterface public interface ValidatorImpl<T>
Validator is the base interface for all generated PGV validators.| Modifier and Type | Field and Description |
|---|---|
static ValidatorImpl |
ALWAYS_VALID |
| Modifier and Type | Method and Description |
|---|---|
void |
assertValid(T proto,
ValidatorIndex index)
Asserts validation rules on a protobuf object.
|
static final ValidatorImpl ALWAYS_VALID
void assertValid(T proto, ValidatorIndex index) throws ValidationException
proto - the protobuf object to validate.ValidationException - with the first validation error encountered.Copyright © 2022. All rights reserved.