java.lang.Object
build.buf.protovalidate.internal.expression.Expression

public class Expression extends Object
Expression represents a single CEL expression.
  • Field Details

    • id

      public final String id
      The id of the constraint.
    • message

      public final String message
      The message of the constraint.
    • expression

      public final String expression
      The expression of the constraint.
  • Method Details

    • fromPrivConstraints

      public static List<Expression> fromPrivConstraints(List<Constraint> constraints)
      Constructs a new list of Expression from the given list of private constraints.
      Parameters:
      constraints - The list of private constraints.
      Returns:
      The list of expressions.
    • fromConstraints

      public static List<Expression> fromConstraints(List<Constraint> constraints)
      Constructs a new list of Expression from the given list of constraints.
      Parameters:
      constraints - The list of constraints.
      Returns:
      The list of expressions.