Class Decl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Decl,Decl.Builder>
com.google.api.expr.v1alpha1.Decl.Builder
All Implemented Interfaces:
DeclOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
Decl

public static final class Decl.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Decl,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 google.api.expr.v1alpha1.Decl
  • Method Details

    • 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 `google.api.expr.Decl`.
      
       Declarations used as
       [FunctionDecl.Overload][google.api.expr.v1alpha1.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][google.api.expr.v1alpha1.Expr].
       
      string name = 1 [json_name = "name"];
      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 `google.api.expr.Decl`.
      
       Declarations used as
       [FunctionDecl.Overload][google.api.expr.v1alpha1.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][google.api.expr.v1alpha1.Expr].
       
      string name = 1 [json_name = "name"];
      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 `google.api.expr.Decl`.
      
       Declarations used as
       [FunctionDecl.Overload][google.api.expr.v1alpha1.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][google.api.expr.v1alpha1.Expr].
       
      string name = 1 [json_name = "name"];
      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 `google.api.expr.Decl`.
      
       Declarations used as
       [FunctionDecl.Overload][google.api.expr.v1alpha1.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][google.api.expr.v1alpha1.Expr].
       
      string name = 1 [json_name = "name"];
      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 `google.api.expr.Decl`.
      
       Declarations used as
       [FunctionDecl.Overload][google.api.expr.v1alpha1.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][google.api.expr.v1alpha1.Expr].
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasIdent

      public boolean hasIdent()
       Identifier declaration.
       
      .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
      Specified by:
      hasIdent in interface DeclOrBuilder
      Returns:
      Whether the ident field is set.
    • getIdent

      public Decl.IdentDecl getIdent()
       Identifier declaration.
       
      .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
      Specified by:
      getIdent in interface DeclOrBuilder
      Returns:
      The ident.
    • setIdent

      public Decl.Builder setIdent(Decl.IdentDecl value)
       Identifier declaration.
       
      .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
    • setIdent

      public Decl.Builder setIdent(Decl.IdentDecl.Builder builderForValue)
       Identifier declaration.
       
      .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
    • mergeIdent

      public Decl.Builder mergeIdent(Decl.IdentDecl value)
       Identifier declaration.
       
      .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
    • clearIdent

      public Decl.Builder clearIdent()
       Identifier declaration.
       
      .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
    • hasFunction

      public boolean hasFunction()
       Function declaration.
       
      .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
      Specified by:
      hasFunction in interface DeclOrBuilder
      Returns:
      Whether the function field is set.
    • getFunction

      public Decl.FunctionDecl getFunction()
       Function declaration.
       
      .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
      Specified by:
      getFunction in interface DeclOrBuilder
      Returns:
      The function.
    • setFunction

      public Decl.Builder setFunction(Decl.FunctionDecl value)
       Function declaration.
       
      .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
    • setFunction

      public Decl.Builder setFunction(Decl.FunctionDecl.Builder builderForValue)
       Function declaration.
       
      .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
    • mergeFunction

      public Decl.Builder mergeFunction(Decl.FunctionDecl value)
       Function declaration.
       
      .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
    • clearFunction

      public Decl.Builder clearFunction()
       Function declaration.
       
      .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];