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.GeneratedMessage.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,java.lang.Cloneable
- Enclosing class:
- Decl.FunctionDecl
public static final class Decl.FunctionDecl.Builder extends com.google.protobuf.GeneratedMessage.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 typecel.expr.Decl.FunctionDecl
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Decl.FunctionDecl.BuilderaddAllOverloads(java.lang.Iterable<? extends Decl.FunctionDecl.Overload> values)Required.Decl.FunctionDecl.BuilderaddOverloads(int index, Decl.FunctionDecl.Overload value)Required.Decl.FunctionDecl.BuilderaddOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue)Required.Decl.FunctionDecl.BuilderaddOverloads(Decl.FunctionDecl.Overload value)Required.Decl.FunctionDecl.BuilderaddOverloads(Decl.FunctionDecl.Overload.Builder builderForValue)Required.Decl.FunctionDecl.Overload.BuilderaddOverloadsBuilder()Required.Decl.FunctionDecl.Overload.BuilderaddOverloadsBuilder(int index)Required.Decl.FunctionDeclbuild()Decl.FunctionDeclbuildPartial()Decl.FunctionDecl.Builderclear()Decl.FunctionDecl.BuilderclearDoc()Documentation string for the function that indicates the general purpose of the function and its behavior.Decl.FunctionDecl.BuilderclearOverloads()Required.Decl.FunctionDeclgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetDoc()Documentation string for the function that indicates the general purpose of the function and its behavior.com.google.protobuf.ByteStringgetDocBytes()Documentation string for the function that indicates the general purpose of the function and its behavior.Decl.FunctionDecl.OverloadgetOverloads(int index)Required.Decl.FunctionDecl.Overload.BuildergetOverloadsBuilder(int index)Required.java.util.List<Decl.FunctionDecl.Overload.Builder>getOverloadsBuilderList()Required.intgetOverloadsCount()Required.java.util.List<Decl.FunctionDecl.Overload>getOverloadsList()Required.Decl.FunctionDecl.OverloadOrBuildergetOverloadsOrBuilder(int index)Required.java.util.List<? extends Decl.FunctionDecl.OverloadOrBuilder>getOverloadsOrBuilderList()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Decl.FunctionDecl.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Decl.FunctionDecl.BuildermergeFrom(com.google.protobuf.Message other)Decl.FunctionDecl.BuildermergeFrom(Decl.FunctionDecl other)Decl.FunctionDecl.BuilderremoveOverloads(int index)Required.Decl.FunctionDecl.BuildersetDoc(java.lang.String value)Documentation string for the function that indicates the general purpose of the function and its behavior.Decl.FunctionDecl.BuildersetDocBytes(com.google.protobuf.ByteString value)Documentation string for the function that indicates the general purpose of the function and its behavior.Decl.FunctionDecl.BuildersetOverloads(int index, Decl.FunctionDecl.Overload value)Required.Decl.FunctionDecl.BuildersetOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue)Required.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
-
clear
public Decl.FunctionDecl.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
-
getDefaultInstanceForType
public Decl.FunctionDecl getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Decl.FunctionDecl build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Decl.FunctionDecl buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Decl.FunctionDecl.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Builder>
-
mergeFrom
public Decl.FunctionDecl.Builder mergeFrom(Decl.FunctionDecl other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
-
mergeFrom
public Decl.FunctionDecl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Decl.FunctionDecl.Builder>- Throws:
java.io.IOException
-
getOverloadsList
public java.util.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:
getOverloadsListin interfaceDecl.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:
getOverloadsCountin interfaceDecl.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:
getOverloadsin interfaceDecl.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
public Decl.FunctionDecl.Builder addOverloads(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(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(java.lang.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:
getOverloadsOrBuilderin interfaceDecl.FunctionDeclOrBuilder
-
getOverloadsOrBuilderList
public java.util.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:
getOverloadsOrBuilderListin interfaceDecl.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 java.util.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 java.lang.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:
getDocin interfaceDecl.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:
getDocBytesin interfaceDecl.FunctionDeclOrBuilder- Returns:
- The bytes for doc.
-
setDoc
public Decl.FunctionDecl.Builder setDoc(java.lang.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.
-
-