Package dev.cel.expr

Class Decl.FunctionDecl.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Decl.FunctionDeclOrBuilder, java.lang.Cloneable
    Enclosing class:
    Decl.FunctionDecl

    public static final class Decl.FunctionDecl.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
    implements Decl.FunctionDeclOrBuilder
     Function declaration specifies one or more overloads which indicate the
     function's parameter types and return type.
    
     Functions have no observable side-effects (there may be side-effects like
     logging which are not observable from CEL).
     
    Protobuf type cel.expr.Decl.FunctionDecl
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
      • clear

        public Decl.FunctionDecl.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
      • getDefaultInstanceForType

        public Decl.FunctionDecl getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Decl.FunctionDecl build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Decl.FunctionDecl buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public Decl.FunctionDecl.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
      • mergeFrom

        public Decl.FunctionDecl.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Builder>
        Throws:
        java.io.IOException
      • getOverloadsCount

        public int getOverloadsCount()
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
        Specified by:
        getOverloadsCount in interface Decl.FunctionDeclOrBuilder
      • addAllOverloads

        public Decl.FunctionDecl.Builder addAllOverloads​(java.lang.Iterable<? extends Decl.FunctionDecl.Overload> values)
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      • clearOverloads

        public Decl.FunctionDecl.Builder clearOverloads()
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      • removeOverloads

        public Decl.FunctionDecl.Builder removeOverloads​(int index)
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      • getOverloadsBuilder

        public Decl.FunctionDecl.Overload.Builder getOverloadsBuilder​(int index)
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      • addOverloadsBuilder

        public Decl.FunctionDecl.Overload.Builder addOverloadsBuilder()
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      • addOverloadsBuilder

        public Decl.FunctionDecl.Overload.Builder addOverloadsBuilder​(int index)
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      • getOverloadsBuilderList

        public java.util.List<Decl.FunctionDecl.Overload.Builder> getOverloadsBuilderList()
         Required. List of function overloads, must contain at least one overload.
         
        repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      • getDoc

        public java.lang.String getDoc()
         Documentation string for the function that indicates the general purpose
         of the function and its behavior.
        
         Documentation strings for the function should be general purpose with
         specific examples provided in the overload doc string.
        
         Examples:
        
         The 'in' operator tests whether an item exists in a collection.
        
         The 'substring' function returns a substring of a target string.
         
        string doc = 2;
        Specified by:
        getDoc in interface Decl.FunctionDeclOrBuilder
        Returns:
        The doc.
      • getDocBytes

        public com.google.protobuf.ByteString getDocBytes()
         Documentation string for the function that indicates the general purpose
         of the function and its behavior.
        
         Documentation strings for the function should be general purpose with
         specific examples provided in the overload doc string.
        
         Examples:
        
         The 'in' operator tests whether an item exists in a collection.
        
         The 'substring' function returns a substring of a target string.
         
        string doc = 2;
        Specified by:
        getDocBytes in interface Decl.FunctionDeclOrBuilder
        Returns:
        The bytes for doc.
      • setDoc

        public Decl.FunctionDecl.Builder setDoc​(java.lang.String value)
         Documentation string for the function that indicates the general purpose
         of the function and its behavior.
        
         Documentation strings for the function should be general purpose with
         specific examples provided in the overload doc string.
        
         Examples:
        
         The 'in' operator tests whether an item exists in a collection.
        
         The 'substring' function returns a substring of a target string.
         
        string doc = 2;
        Parameters:
        value - The doc to set.
        Returns:
        This builder for chaining.
      • clearDoc

        public Decl.FunctionDecl.Builder clearDoc()
         Documentation string for the function that indicates the general purpose
         of the function and its behavior.
        
         Documentation strings for the function should be general purpose with
         specific examples provided in the overload doc string.
        
         Examples:
        
         The 'in' operator tests whether an item exists in a collection.
        
         The 'substring' function returns a substring of a target string.
         
        string doc = 2;
        Returns:
        This builder for chaining.
      • setDocBytes

        public Decl.FunctionDecl.Builder setDocBytes​(com.google.protobuf.ByteString value)
         Documentation string for the function that indicates the general purpose
         of the function and its behavior.
        
         Documentation strings for the function should be general purpose with
         specific examples provided in the overload doc string.
        
         Examples:
        
         The 'in' operator tests whether an item exists in a collection.
        
         The 'substring' function returns a substring of a target string.
         
        string doc = 2;
        Parameters:
        value - The bytes for doc to set.
        Returns:
        This builder for chaining.