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.v1beta1.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
 A declaration.
 
Protobuf type google.api.expr.v1beta1.Decl
  • Method Details

    • getKindCase

      public Decl.KindCase getKindCase()
      Specified by:
      getKindCase in interface DeclOrBuilder
    • clearKind

      public Decl.Builder clearKind()
    • getId

      public int getId()
       The id of the declaration.
       
      int32 id = 1 [json_name = "id"];
      Specified by:
      getId in interface DeclOrBuilder
      Returns:
      The id.
    • setId

      public Decl.Builder setId(int value)
       The id of the declaration.
       
      int32 id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Decl.Builder clearId()
       The id of the declaration.
       
      int32 id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       The name of the declaration.
       
      string name = 2 [json_name = "name"];
      Specified by:
      getName in interface DeclOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the declaration.
       
      string name = 2 [json_name = "name"];
      Specified by:
      getNameBytes in interface DeclOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Decl.Builder setName(String value)
       The name of the declaration.
       
      string name = 2 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Decl.Builder clearName()
       The name of the declaration.
       
      string name = 2 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Decl.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the declaration.
       
      string name = 2 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDoc

      public String getDoc()
       The documentation string for the declaration.
       
      string doc = 3 [json_name = "doc"];
      Specified by:
      getDoc in interface DeclOrBuilder
      Returns:
      The doc.
    • getDocBytes

      public com.google.protobuf.ByteString getDocBytes()
       The documentation string for the declaration.
       
      string doc = 3 [json_name = "doc"];
      Specified by:
      getDocBytes in interface DeclOrBuilder
      Returns:
      The bytes for doc.
    • setDoc

      public Decl.Builder setDoc(String value)
       The documentation string for the declaration.
       
      string doc = 3 [json_name = "doc"];
      Parameters:
      value - The doc to set.
      Returns:
      This builder for chaining.
    • clearDoc

      public Decl.Builder clearDoc()
       The documentation string for the declaration.
       
      string doc = 3 [json_name = "doc"];
      Returns:
      This builder for chaining.
    • setDocBytes

      public Decl.Builder setDocBytes(com.google.protobuf.ByteString value)
       The documentation string for the declaration.
       
      string doc = 3 [json_name = "doc"];
      Parameters:
      value - The bytes for doc to set.
      Returns:
      This builder for chaining.
    • hasIdent

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

      public IdentDecl getIdent()
       An identifier declaration.
       
      .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
      Specified by:
      getIdent in interface DeclOrBuilder
      Returns:
      The ident.
    • setIdent

      public Decl.Builder setIdent(IdentDecl value)
       An identifier declaration.
       
      .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
    • setIdent

      public Decl.Builder setIdent(IdentDecl.Builder builderForValue)
       An identifier declaration.
       
      .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
    • mergeIdent

      public Decl.Builder mergeIdent(IdentDecl value)
       An identifier declaration.
       
      .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
    • clearIdent

      public Decl.Builder clearIdent()
       An identifier declaration.
       
      .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
    • hasFunction

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

      public FunctionDecl getFunction()
       A function declaration.
       
      .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
      Specified by:
      getFunction in interface DeclOrBuilder
      Returns:
      The function.
    • setFunction

      public Decl.Builder setFunction(FunctionDecl value)
       A function declaration.
       
      .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
    • setFunction

      public Decl.Builder setFunction(FunctionDecl.Builder builderForValue)
       A function declaration.
       
      .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
    • mergeFunction

      public Decl.Builder mergeFunction(FunctionDecl value)
       A function declaration.
       
      .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
    • clearFunction

      public Decl.Builder clearFunction()
       A function declaration.
       
      .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];