All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.pgv.RequiredValidation Maven / Gradle / Ivy

The newest version!
package io.envoyproxy.pgv;

import com.google.protobuf.Message;

/**
 * {@code RequiredValidation} implements PGV validation for required fields.
 */
public final class RequiredValidation {
    private RequiredValidation() {
    }

    public static void required(String field, Message value) throws ValidationException {
        if (value == null) {
            throw new ValidationException(field, "null", "is required");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy