Package dev.cel.expr

Class Decl.FunctionDecl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
dev.cel.expr.Decl.FunctionDecl.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Decl.FunctionDeclOrBuilder, Cloneable
Enclosing class:
Decl.FunctionDecl

public static final class Decl.FunctionDecl.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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 cel.expr.Decl.FunctionDecl
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • clear

      public Decl.FunctionDecl.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • getDefaultInstanceForType

      public Decl.FunctionDecl getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Decl.FunctionDecl build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Decl.FunctionDecl buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Decl.FunctionDecl.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • setField

      public Decl.FunctionDecl.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • clearField

      public Decl.FunctionDecl.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • clearOneof

      public Decl.FunctionDecl.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • setRepeatedField

      public Decl.FunctionDecl.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • addRepeatedField

      public Decl.FunctionDecl.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • mergeFrom

      public Decl.FunctionDecl.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Builder>
    • mergeFrom

      public Decl.FunctionDecl.Builder mergeFrom(Decl.FunctionDecl other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • mergeFrom

      public Decl.FunctionDecl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Builder>
      Throws:
      IOException
    • getOverloadsList

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

      public int getOverloadsCount()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      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 .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      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 .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • 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 .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • addOverloads

       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • addOverloads

      public Decl.FunctionDecl.Builder addOverloads(int index, Decl.FunctionDecl.Overload value)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • addOverloads

      public Decl.FunctionDecl.Builder addOverloads(Decl.FunctionDecl.Overload.Builder builderForValue)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • 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 .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • addAllOverloads

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

      public Decl.FunctionDecl.Builder clearOverloads()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • removeOverloads

      public Decl.FunctionDecl.Builder removeOverloads(int index)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • getOverloadsBuilder

      public Decl.FunctionDecl.Overload.Builder getOverloadsBuilder(int index)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • getOverloadsOrBuilder

      public Decl.FunctionDecl.OverloadOrBuilder getOverloadsOrBuilder(int index)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      Specified by:
      getOverloadsOrBuilder in interface Decl.FunctionDeclOrBuilder
    • getOverloadsOrBuilderList

      public List<? extends Decl.FunctionDecl.OverloadOrBuilder> getOverloadsOrBuilderList()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
      Specified by:
      getOverloadsOrBuilderList in interface Decl.FunctionDeclOrBuilder
    • addOverloadsBuilder

      public Decl.FunctionDecl.Overload.Builder addOverloadsBuilder()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • addOverloadsBuilder

      public Decl.FunctionDecl.Overload.Builder addOverloadsBuilder(int index)
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • getOverloadsBuilderList

      public List<Decl.FunctionDecl.Overload.Builder> getOverloadsBuilderList()
       Required. List of function overloads, must contain at least one overload.
       
      repeated .cel.expr.Decl.FunctionDecl.Overload overloads = 1;
    • 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;
      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;
      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;
      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;
      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;
      Parameters:
      value - The bytes for doc to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Decl.FunctionDecl.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>
    • mergeUnknownFields

      public final Decl.FunctionDecl.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Builder>