class Message implements Serializable {

    public static Builder builder(String text, Severity severity) {
        Objects.requireNonNull(text, "text must not be null");
        Objects.requireNonNull(severity, "severity must not be null");

        return new Builder(text, severity);
    }

    public  Message(@CheckForNull String code, String text, Severity severity);
      Message(@CheckForNull String code, String text, Severity severity,
            @CheckForNull List<ObjectProperty> invalidObjectProperties, @CheckForNull Set<ValidationMarker> markers);

}