Class Decl.FunctionDecl.Builder

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

public static final class Decl.FunctionDecl.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Decl.FunctionDecl,Decl.FunctionDecl.Builder> implements Decl.FunctionDeclOrBuilder
 Function declaration specifies one or more overloads which indicate the
 function's parameter types and return type.

 Functions have no observable side-effects (there may be side-effects like
 logging which are not observable from CEL).
 
Protobuf type google.api.expr.v1alpha1.Decl.FunctionDecl
  • Method Details

    • getOverloadsList

      public List<Decl.FunctionDecl.Overload> getOverloadsList()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
      Specified by:
      getOverloadsList in interface Decl.FunctionDeclOrBuilder
    • getOverloadsCount

      public int getOverloadsCount()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
      Specified by:
      getOverloadsCount in interface Decl.FunctionDeclOrBuilder
    • getOverloads

      public Decl.FunctionDecl.Overload getOverloads(int index)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
      Specified by:
      getOverloads in interface Decl.FunctionDeclOrBuilder
    • setOverloads

      public Decl.FunctionDecl.Builder setOverloads(int index, Decl.FunctionDecl.Overload value)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • setOverloads

      public Decl.FunctionDecl.Builder setOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • addOverloads

       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • addOverloads

      public Decl.FunctionDecl.Builder addOverloads(int index, Decl.FunctionDecl.Overload value)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • addOverloads

      public Decl.FunctionDecl.Builder addOverloads(Decl.FunctionDecl.Overload.Builder builderForValue)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • addOverloads

      public Decl.FunctionDecl.Builder addOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • addAllOverloads

      public Decl.FunctionDecl.Builder addAllOverloads(Iterable<? extends Decl.FunctionDecl.Overload> values)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • clearOverloads

      public Decl.FunctionDecl.Builder clearOverloads()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];
    • removeOverloads

      public Decl.FunctionDecl.Builder removeOverloads(int index)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"];