Package build.buf.protovalidate
Class ValidatorFactory
java.lang.Object
build.buf.protovalidate.ValidatorFactory
ValidatorFactory is used to create a validator.
Validators can be created with an optional Config to customize behavior. They can also
be created with a list of seed descriptors to warmup the validator cache ahead of time as well as
an indicator to lazily-load any descriptors not provided into the cache.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class used for building a validator. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder for a validator.
-
Method Details
-
newBuilder
Creates a new builder for a validator.- Returns:
- A Validator builder
-