Class CelFunctionDecl


  • @Immutable
    public abstract class CelFunctionDecl
    extends java.lang.Object
    Abstract representation of a CEL Function declaration.
    • Constructor Detail

      • CelFunctionDecl

        public CelFunctionDecl()
    • Method Detail

      • name

        public abstract java.lang.String name()
        Fully qualified name of the function.
      • overloads

        public abstract com.google.common.collect.ImmutableSet<CelOverloadDecl> overloads()
        Required. List of function overloads. Must contain at least one overload.
      • newBuilder

        public static CelFunctionDecl.Builder newBuilder()
        Create a new builder to construct a CelFunctionDecl instance.
      • newFunctionDeclaration

        public static CelFunctionDecl newFunctionDeclaration​(java.lang.String functionName,
                                                             java.lang.Iterable<CelOverloadDecl> overloads)
        Constructs a function declaration with an iterable of CelOverloadDecl
      • celFunctionDeclToDecl

        @Internal
        public static dev.cel.expr.Decl celFunctionDeclToDecl​(CelFunctionDecl celFunctionDecl)
        Converts a CelFunctionDecl to a protobuf equivalent form Decl.FunctionDecl