Class FunctionDecl.Builder

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

public static final class FunctionDecl.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<FunctionDecl,FunctionDecl.Builder> implements FunctionDeclOrBuilder
 A function declaration.
 
Protobuf type google.api.expr.v1beta1.FunctionDecl
  • Method Details

    • getArgsList

      public List<IdentDecl> getArgsList()
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
      Specified by:
      getArgsList in interface FunctionDeclOrBuilder
    • getArgsCount

      public int getArgsCount()
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
      Specified by:
      getArgsCount in interface FunctionDeclOrBuilder
    • getArgs

      public IdentDecl getArgs(int index)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
      Specified by:
      getArgs in interface FunctionDeclOrBuilder
    • setArgs

      public FunctionDecl.Builder setArgs(int index, IdentDecl value)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • setArgs

      public FunctionDecl.Builder setArgs(int index, IdentDecl.Builder builderForValue)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • addArgs

      public FunctionDecl.Builder addArgs(IdentDecl value)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • addArgs

      public FunctionDecl.Builder addArgs(int index, IdentDecl value)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • addArgs

      public FunctionDecl.Builder addArgs(IdentDecl.Builder builderForValue)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • addArgs

      public FunctionDecl.Builder addArgs(int index, IdentDecl.Builder builderForValue)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • addAllArgs

      public FunctionDecl.Builder addAllArgs(Iterable<? extends IdentDecl> values)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • clearArgs

      public FunctionDecl.Builder clearArgs()
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • removeArgs

      public FunctionDecl.Builder removeArgs(int index)
       The function arguments.
       
      repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];
    • hasReturnType

      public boolean hasReturnType()
       Optional declared return type.
       
      .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];
      Specified by:
      hasReturnType in interface FunctionDeclOrBuilder
      Returns:
      Whether the returnType field is set.
    • getReturnType

      public DeclType getReturnType()
       Optional declared return type.
       
      .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];
      Specified by:
      getReturnType in interface FunctionDeclOrBuilder
      Returns:
      The returnType.
    • setReturnType

      public FunctionDecl.Builder setReturnType(DeclType value)
       Optional declared return type.
       
      .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];
    • setReturnType

      public FunctionDecl.Builder setReturnType(DeclType.Builder builderForValue)
       Optional declared return type.
       
      .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];
    • mergeReturnType

      public FunctionDecl.Builder mergeReturnType(DeclType value)
       Optional declared return type.
       
      .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];
    • clearReturnType

      public FunctionDecl.Builder clearReturnType()
       Optional declared return type.
       
      .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];
    • getReceiverFunction

      public boolean getReceiverFunction()
       If the first argument of the function is the receiver.
       
      bool receiver_function = 3 [json_name = "receiverFunction"];
      Specified by:
      getReceiverFunction in interface FunctionDeclOrBuilder
      Returns:
      The receiverFunction.
    • setReceiverFunction

      public FunctionDecl.Builder setReceiverFunction(boolean value)
       If the first argument of the function is the receiver.
       
      bool receiver_function = 3 [json_name = "receiverFunction"];
      Parameters:
      value - The receiverFunction to set.
      Returns:
      This builder for chaining.
    • clearReceiverFunction

      public FunctionDecl.Builder clearReceiverFunction()
       If the first argument of the function is the receiver.
       
      bool receiver_function = 3 [json_name = "receiverFunction"];
      Returns:
      This builder for chaining.