Package dev.cel.expr

Interface Decl.FunctionDecl.OverloadOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getDoc()
      Documentation string for the overload.
      com.google.protobuf.ByteString getDocBytes()
      Documentation string for the overload.
      boolean getIsInstanceFunction()
      Whether the function is to be used in a method call-style `x.f(...)` of a function call-style `f(x, ...)`.
      java.lang.String getOverloadId()
      Required.
      com.google.protobuf.ByteString getOverloadIdBytes()
      Required.
      Type getParams​(int index)
      List of function parameter [Type][cel.expr.Type] values.
      int getParamsCount()
      List of function parameter [Type][cel.expr.Type] values.
      java.util.List<Type> getParamsList()
      List of function parameter [Type][cel.expr.Type] values.
      TypeOrBuilder getParamsOrBuilder​(int index)
      List of function parameter [Type][cel.expr.Type] values.
      java.util.List<? extends TypeOrBuilder> getParamsOrBuilderList()
      List of function parameter [Type][cel.expr.Type] values.
      Type getResultType()
      Required.
      TypeOrBuilder getResultTypeOrBuilder()
      Required.
      java.lang.String getTypeParams​(int index)
      The type param names associated with the function declaration.
      com.google.protobuf.ByteString getTypeParamsBytes​(int index)
      The type param names associated with the function declaration.
      int getTypeParamsCount()
      The type param names associated with the function declaration.
      java.util.List<java.lang.String> getTypeParamsList()
      The type param names associated with the function declaration.
      boolean hasResultType()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getOverloadId

        java.lang.String getOverloadId()
         Required. Globally unique overload name of the function which reflects
         the function name and argument types.
        
         This will be used by a [Reference][cel.expr.Reference] to
         indicate the `overload_id` that was resolved for the function `name`.
         
        string overload_id = 1;
        Returns:
        The overloadId.
      • getOverloadIdBytes

        com.google.protobuf.ByteString getOverloadIdBytes()
         Required. Globally unique overload name of the function which reflects
         the function name and argument types.
        
         This will be used by a [Reference][cel.expr.Reference] to
         indicate the `overload_id` that was resolved for the function `name`.
         
        string overload_id = 1;
        Returns:
        The bytes for overloadId.
      • getParamsList

        java.util.List<Type> getParamsList()
         List of function parameter [Type][cel.expr.Type] values.
        
         Param types are disjoint after generic type parameters have been
         replaced with the type `DYN`. Since the `DYN` type is compatible with
         any other type, this means that if `A` is a type parameter, the
         function types `int<A>` and `int<int>` are not disjoint. Likewise,
         `map<string, string>` is not disjoint from `map<K, V>`.
        
         When the `result_type` of a function is a generic type param, the
         type param name also appears as the `type` of on at least one params.
         
        repeated .cel.expr.Type params = 2;
      • getParams

        Type getParams​(int index)
         List of function parameter [Type][cel.expr.Type] values.
        
         Param types are disjoint after generic type parameters have been
         replaced with the type `DYN`. Since the `DYN` type is compatible with
         any other type, this means that if `A` is a type parameter, the
         function types `int<A>` and `int<int>` are not disjoint. Likewise,
         `map<string, string>` is not disjoint from `map<K, V>`.
        
         When the `result_type` of a function is a generic type param, the
         type param name also appears as the `type` of on at least one params.
         
        repeated .cel.expr.Type params = 2;
      • getParamsCount

        int getParamsCount()
         List of function parameter [Type][cel.expr.Type] values.
        
         Param types are disjoint after generic type parameters have been
         replaced with the type `DYN`. Since the `DYN` type is compatible with
         any other type, this means that if `A` is a type parameter, the
         function types `int<A>` and `int<int>` are not disjoint. Likewise,
         `map<string, string>` is not disjoint from `map<K, V>`.
        
         When the `result_type` of a function is a generic type param, the
         type param name also appears as the `type` of on at least one params.
         
        repeated .cel.expr.Type params = 2;
      • getParamsOrBuilderList

        java.util.List<? extends TypeOrBuilder> getParamsOrBuilderList()
         List of function parameter [Type][cel.expr.Type] values.
        
         Param types are disjoint after generic type parameters have been
         replaced with the type `DYN`. Since the `DYN` type is compatible with
         any other type, this means that if `A` is a type parameter, the
         function types `int<A>` and `int<int>` are not disjoint. Likewise,
         `map<string, string>` is not disjoint from `map<K, V>`.
        
         When the `result_type` of a function is a generic type param, the
         type param name also appears as the `type` of on at least one params.
         
        repeated .cel.expr.Type params = 2;
      • getParamsOrBuilder

        TypeOrBuilder getParamsOrBuilder​(int index)
         List of function parameter [Type][cel.expr.Type] values.
        
         Param types are disjoint after generic type parameters have been
         replaced with the type `DYN`. Since the `DYN` type is compatible with
         any other type, this means that if `A` is a type parameter, the
         function types `int<A>` and `int<int>` are not disjoint. Likewise,
         `map<string, string>` is not disjoint from `map<K, V>`.
        
         When the `result_type` of a function is a generic type param, the
         type param name also appears as the `type` of on at least one params.
         
        repeated .cel.expr.Type params = 2;
      • getTypeParamsList

        java.util.List<java.lang.String> getTypeParamsList()
         The type param names associated with the function declaration.
        
         For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield
         the type params of `K, V`.
         
        repeated string type_params = 3;
        Returns:
        A list containing the typeParams.
      • getTypeParamsCount

        int getTypeParamsCount()
         The type param names associated with the function declaration.
        
         For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield
         the type params of `K, V`.
         
        repeated string type_params = 3;
        Returns:
        The count of typeParams.
      • getTypeParams

        java.lang.String getTypeParams​(int index)
         The type param names associated with the function declaration.
        
         For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield
         the type params of `K, V`.
         
        repeated string type_params = 3;
        Parameters:
        index - The index of the element to return.
        Returns:
        The typeParams at the given index.
      • getTypeParamsBytes

        com.google.protobuf.ByteString getTypeParamsBytes​(int index)
         The type param names associated with the function declaration.
        
         For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield
         the type params of `K, V`.
         
        repeated string type_params = 3;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the typeParams at the given index.
      • hasResultType

        boolean hasResultType()
         Required. The result type of the function. For example, the operator
         `string.isEmpty()` would have `result_type` of `kind: BOOL`.
         
        .cel.expr.Type result_type = 4;
        Returns:
        Whether the resultType field is set.
      • getResultType

        Type getResultType()
         Required. The result type of the function. For example, the operator
         `string.isEmpty()` would have `result_type` of `kind: BOOL`.
         
        .cel.expr.Type result_type = 4;
        Returns:
        The resultType.
      • getResultTypeOrBuilder

        TypeOrBuilder getResultTypeOrBuilder()
         Required. The result type of the function. For example, the operator
         `string.isEmpty()` would have `result_type` of `kind: BOOL`.
         
        .cel.expr.Type result_type = 4;
      • getIsInstanceFunction

        boolean getIsInstanceFunction()
         Whether the function is to be used in a method call-style `x.f(...)`
         of a function call-style `f(x, ...)`.
        
         For methods, the first parameter declaration, `params[0]` is the
         expected type of the target receiver.
         
        bool is_instance_function = 5;
        Returns:
        The isInstanceFunction.
      • getDoc

        java.lang.String getDoc()
         Documentation string for the overload.
         
        string doc = 6;
        Returns:
        The doc.
      • getDocBytes

        com.google.protobuf.ByteString getDocBytes()
         Documentation string for the overload.
         
        string doc = 6;
        Returns:
        The bytes for doc.