Class Decl.FunctionDecl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Decl.FunctionDecl,Decl.FunctionDecl.Builder>
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"];
    • getDoc

      public String getDoc()
       Documentation string for the function that indicates the general purpose
       of the function and its behavior.
      
       Documentation strings for the function should be general purpose with
       specific examples provided in the overload doc string.
      
       Examples:
      
       The 'in' operator tests whether an item exists in a collection.
      
       The 'substring' function returns a substring of a target string.
       
      string doc = 2 [json_name = "doc"];
      Specified by:
      getDoc in interface Decl.FunctionDeclOrBuilder
      Returns:
      The doc.
    • getDocBytes

      public com.google.protobuf.ByteString getDocBytes()
       Documentation string for the function that indicates the general purpose
       of the function and its behavior.
      
       Documentation strings for the function should be general purpose with
       specific examples provided in the overload doc string.
      
       Examples:
      
       The 'in' operator tests whether an item exists in a collection.
      
       The 'substring' function returns a substring of a target string.
       
      string doc = 2 [json_name = "doc"];
      Specified by:
      getDocBytes in interface Decl.FunctionDeclOrBuilder
      Returns:
      The bytes for doc.
    • setDoc

      public Decl.FunctionDecl.Builder setDoc(String value)
       Documentation string for the function that indicates the general purpose
       of the function and its behavior.
      
       Documentation strings for the function should be general purpose with
       specific examples provided in the overload doc string.
      
       Examples:
      
       The 'in' operator tests whether an item exists in a collection.
      
       The 'substring' function returns a substring of a target string.
       
      string doc = 2 [json_name = "doc"];
      Parameters:
      value - The doc to set.
      Returns:
      This builder for chaining.
    • clearDoc

      public Decl.FunctionDecl.Builder clearDoc()
       Documentation string for the function that indicates the general purpose
       of the function and its behavior.
      
       Documentation strings for the function should be general purpose with
       specific examples provided in the overload doc string.
      
       Examples:
      
       The 'in' operator tests whether an item exists in a collection.
      
       The 'substring' function returns a substring of a target string.
       
      string doc = 2 [json_name = "doc"];
      Returns:
      This builder for chaining.
    • setDocBytes

      public Decl.FunctionDecl.Builder setDocBytes(com.google.protobuf.ByteString value)
       Documentation string for the function that indicates the general purpose
       of the function and its behavior.
      
       Documentation strings for the function should be general purpose with
       specific examples provided in the overload doc string.
      
       Examples:
      
       The 'in' operator tests whether an item exists in a collection.
      
       The 'substring' function returns a substring of a target string.
       
      string doc = 2 [json_name = "doc"];
      Parameters:
      value - The bytes for doc to set.
      Returns:
      This builder for chaining.