Package dev.cel.expr

Class Decl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Decl.Builder>
com.google.protobuf.GeneratedMessage.Builder<Decl.Builder>
dev.cel.expr.Decl.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DeclOrBuilder, 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
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • 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>
    • mergeFrom

      public Decl.Builder mergeFrom(Decl other)
    • 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 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:
      IOException
    • getDeclKindCase

      public Decl.DeclKindCase getDeclKindCase()
      Specified by:
      getDeclKindCase in interface DeclOrBuilder
    • clearDeclKind

      public Decl.Builder clearDeclKind()
    • getName

      public 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(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.
    • setIdent

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

      public Decl.Builder setIdent(Decl.IdentDecl.Builder builderForValue)
       Identifier declaration.
       
      .cel.expr.Decl.IdentDecl ident = 2;
    • 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;
    • getIdentOrBuilder

      public Decl.IdentDeclOrBuilder getIdentOrBuilder()
       Identifier declaration.
       
      .cel.expr.Decl.IdentDecl ident = 2;
      Specified by:
      getIdentOrBuilder in interface DeclOrBuilder
    • internalGetIdentFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Decl.IdentDecl,Decl.IdentDecl.Builder,Decl.IdentDeclOrBuilder> internalGetIdentFieldBuilder()
       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.
    • getFunction

      public Decl.FunctionDecl getFunction()
       Function declaration.
       
      .cel.expr.Decl.FunctionDecl function = 3;
      Specified by:
      getFunction in interface DeclOrBuilder
      Returns:
      The function.
    • setFunction

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

      public Decl.Builder setFunction(Decl.FunctionDecl.Builder builderForValue)
       Function declaration.
       
      .cel.expr.Decl.FunctionDecl function = 3;
    • mergeFunction

      public Decl.Builder mergeFunction(Decl.FunctionDecl value)
       Function declaration.
       
      .cel.expr.Decl.FunctionDecl function = 3;
    • 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;
    • getFunctionOrBuilder

      public Decl.FunctionDeclOrBuilder getFunctionOrBuilder()
       Function declaration.
       
      .cel.expr.Decl.FunctionDecl function = 3;
      Specified by:
      getFunctionOrBuilder in interface DeclOrBuilder
    • internalGetFunctionFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Decl.FunctionDecl,Decl.FunctionDecl.Builder,Decl.FunctionDeclOrBuilder> internalGetFunctionFieldBuilder()
       Function declaration.
       
      .cel.expr.Decl.FunctionDecl function = 3;