Package dev.cel.expr

Class Decl.Builder

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

    public static final class Decl.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
    implements DeclOrBuilder
     Represents a declaration of a named value or function.
    
     A declaration is part of the contract between the expression, the agent
     evaluating that expression, and the caller requesting evaluation.
     
    Protobuf type cel.expr.Decl
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • 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.Builder>
      • clear

        public Decl.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.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.Builder>
      • getDefaultInstanceForType

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

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

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

        private void buildPartial0​(Decl result)
      • buildPartialOneofs

        private void buildPartialOneofs​(Decl result)
      • mergeFrom

        public Decl.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.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.Builder>
      • mergeFrom

        public Decl.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.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         The fully qualified name of the declaration.
        
         Declarations are organized in containers and this represents the full path
         to the declaration in its container, as in `cel.expr.Decl`.
        
         Declarations used as
         [FunctionDecl.Overload][cel.expr.Decl.FunctionDecl.Overload]
         parameters may or may not have a name depending on whether the overload is
         function declaration or a function definition containing a result
         [Expr][cel.expr.Expr].
         
        string name = 1;
        Specified by:
        getName in interface DeclOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The fully qualified name of the declaration.
        
         Declarations are organized in containers and this represents the full path
         to the declaration in its container, as in `cel.expr.Decl`.
        
         Declarations used as
         [FunctionDecl.Overload][cel.expr.Decl.FunctionDecl.Overload]
         parameters may or may not have a name depending on whether the overload is
         function declaration or a function definition containing a result
         [Expr][cel.expr.Expr].
         
        string name = 1;
        Specified by:
        getNameBytes in interface DeclOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Decl.Builder setName​(java.lang.String value)
         The fully qualified name of the declaration.
        
         Declarations are organized in containers and this represents the full path
         to the declaration in its container, as in `cel.expr.Decl`.
        
         Declarations used as
         [FunctionDecl.Overload][cel.expr.Decl.FunctionDecl.Overload]
         parameters may or may not have a name depending on whether the overload is
         function declaration or a function definition containing a result
         [Expr][cel.expr.Expr].
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Decl.Builder clearName()
         The fully qualified name of the declaration.
        
         Declarations are organized in containers and this represents the full path
         to the declaration in its container, as in `cel.expr.Decl`.
        
         Declarations used as
         [FunctionDecl.Overload][cel.expr.Decl.FunctionDecl.Overload]
         parameters may or may not have a name depending on whether the overload is
         function declaration or a function definition containing a result
         [Expr][cel.expr.Expr].
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Decl.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The fully qualified name of the declaration.
        
         Declarations are organized in containers and this represents the full path
         to the declaration in its container, as in `cel.expr.Decl`.
        
         Declarations used as
         [FunctionDecl.Overload][cel.expr.Decl.FunctionDecl.Overload]
         parameters may or may not have a name depending on whether the overload is
         function declaration or a function definition containing a result
         [Expr][cel.expr.Expr].
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasIdent

        public boolean hasIdent()
         Identifier declaration.
         
        .cel.expr.Decl.IdentDecl ident = 2;
        Specified by:
        hasIdent in interface DeclOrBuilder
        Returns:
        Whether the ident field is set.
      • getIdent

        public Decl.IdentDecl getIdent()
         Identifier declaration.
         
        .cel.expr.Decl.IdentDecl ident = 2;
        Specified by:
        getIdent in interface DeclOrBuilder
        Returns:
        The ident.
      • mergeIdent

        public Decl.Builder mergeIdent​(Decl.IdentDecl value)
         Identifier declaration.
         
        .cel.expr.Decl.IdentDecl ident = 2;
      • clearIdent

        public Decl.Builder clearIdent()
         Identifier declaration.
         
        .cel.expr.Decl.IdentDecl ident = 2;
      • getIdentBuilder

        public Decl.IdentDecl.Builder getIdentBuilder()
         Identifier declaration.
         
        .cel.expr.Decl.IdentDecl ident = 2;
      • hasFunction

        public boolean hasFunction()
         Function declaration.
         
        .cel.expr.Decl.FunctionDecl function = 3;
        Specified by:
        hasFunction in interface DeclOrBuilder
        Returns:
        Whether the function field is set.
      • clearFunction

        public Decl.Builder clearFunction()
         Function declaration.
         
        .cel.expr.Decl.FunctionDecl function = 3;
      • getFunctionBuilder

        public Decl.FunctionDecl.Builder getFunctionBuilder()
         Function declaration.
         
        .cel.expr.Decl.FunctionDecl function = 3;