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.GeneratedMessageV3.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
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Decl.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>
      • setField

        public Decl.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                     java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>
      • clearField

        public Decl.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>
      • clearOneof

        public Decl.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>
      • setRepeatedField

        public Decl.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             int index,
                                             java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>
      • addRepeatedField

        public Decl.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>
      • 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.GeneratedMessageV3.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;
      • setUnknownFields

        public final Decl.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>
      • mergeUnknownFields

        public final Decl.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.Builder>