IsRequiredConstraint

public final class IsRequiredConstraint implements Constraint

A oneof group constraint which signifies that one of the fields must be set.

Functions

Link copied to clipboard
public void accept(ConstraintTranslator<? extends Object> visitor)
Accepts the given ConstraintTranslator.
Link copied to clipboard
public OneofDeclaration declaration()
Obtains the oneof declaration.
Link copied to clipboard
public String errorMessage(FieldContext field)
Produces an error message for the given field validation context.
Link copied to clipboard
public FieldName oneofName()
Obtains the name of the oneof group.
Link copied to clipboard
public MessageType targetType()
The associated message type.