package validate
- Alphabetic
- Public
- All
Type Members
-
final
case class
Dummy(dummy: Option[FieldRules] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Dummy] with Product with Serializable
- Annotations
- @SerialVersionUID()
-
final
case class
FieldValidationOptions(skipUniqueCheck: Option[Boolean] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[FieldValidationOptions] with Product with Serializable
- skipUniqueCheck
not implemented yet
- Annotations
- @SerialVersionUID()
-
final
case class
FileValidationOptions(insertValidatorInstance: Option[Boolean] = _root_.scala.None, validateAtConstruction: Option[Boolean] = _root_.scala.None, uniqueToSet: Option[Boolean] = _root_.scala.None, catsTransforms: Option[Boolean] = _root_.scala.None, skip: Option[Boolean] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[FileValidationOptions] with Product with Serializable
- uniqueToSet
The following options inject field transformations in the proto they are defined on. In order to take effect, scalapb-validate's preprocessor need to be enabled in the same file where these options are set. Example: import "scalapb/validate.proto"; import "scalapb/scalapb.proto"; option (scalapb.options) = { scope : PACKAGE // makes the FieldTransformations available for the entire package preprocessors : [ "scalapb-validate-preprocessor" ] [scalapb.validate.file] { cats_transforms : true unique_to_set : true } } transform "repeated.unique: true" to sets.
- catsTransforms
transform to non-empty map, list and set.
- skip
Set
skip
to true to avoid generating validators for this file. This option is also useful to be set a package-scoped option for third-party protos that do not come with validator classes and your messages reference them.
- Annotations
- @SerialVersionUID()
-
final
case class
MessageValidationOptions(insertValidatorInstance: Option[Boolean] = _root_.scala.None, validateAtConstruction: Option[Boolean] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[MessageValidationOptions] with Product with Serializable
Falls back on file validation options (where default exists)
Falls back on file validation options (where default exists)
- Annotations
- @SerialVersionUID()
Value Members
- object Dummy extends GeneratedMessageCompanion[Dummy] with JavaProtoSupport[Dummy, Validate.Dummy] with Serializable
- object FieldValidationOptions extends GeneratedMessageCompanion[FieldValidationOptions] with JavaProtoSupport[FieldValidationOptions, Validate.FieldValidationOptions] with Serializable
- object FileValidationOptions extends GeneratedMessageCompanion[FileValidationOptions] with JavaProtoSupport[FileValidationOptions, Validate.FileValidationOptions] with Serializable
- object MessageValidationOptions extends GeneratedMessageCompanion[MessageValidationOptions] with JavaProtoSupport[MessageValidationOptions, Validate.MessageValidationOptions] with Serializable
- object ValidateProto extends GeneratedFileObject