
io.envoyproxy.pgv.RequiredValidation Maven / Gradle / Ivy
package io.envoyproxy.pgv;
import com.google.protobuf.GeneratedMessageV3;
/**
* {@code RequiredValidation} implements PGV validation for required fields.
*/
public final class RequiredValidation {
private RequiredValidation() {
}
public static void required(String field, GeneratedMessageV3 value) throws ValidationException {
if (value == null) {
throw new ValidationException(field, "null", "is required");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy