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.Builder
addAllOverloads(java.lang.Iterable<? extends Decl.FunctionDecl.Overload> values)
Required.Decl.FunctionDecl.Builder
addOverloads(int index, Decl.FunctionDecl.Overload value)
Required.Decl.FunctionDecl.Builder
addOverloads(int index, Decl.FunctionDecl.Overload.Builder builderForValue)
Required.Decl.FunctionDecl.Builder
addOverloads(Decl.FunctionDecl.Overload value)
Required.Decl.FunctionDecl.Builder
addOverloads(Decl.FunctionDecl.Overload.Builder builderForValue)
Required.Decl.FunctionDecl.Overload.Builder
addOverloadsBuilder()
Required.Decl.FunctionDecl.Overload.Builder
addOverloadsBuilder(int index)
Required.Decl.FunctionDecl
build()
Decl.FunctionDecl
buildPartial()
Decl.FunctionDecl.Builder
clear()
Decl.FunctionDecl.Builder
clearDoc()
Documentation string for the function that indicates the general purpose of the function and its behavior.Decl.FunctionDecl.Builder
clearOverloads()
Required.Decl.FunctionDecl
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getDoc()
Documentation string for the function that indicates the general purpose of the function and its behavior.com.google.protobuf.ByteString
getDocBytes()
Documentation string for the function that indicates the general purpose of the function and its behavior.Decl.FunctionDecl.Overload
getOverloads(int index)
Required.Decl.FunctionDecl.Overload.Builder
getOverloadsBuilder(int index)
Required.java.util.List<Decl.FunctionDecl.Overload.Builder>
getOverloadsBuilderList()
Required.int
getOverloadsCount()
Required.java.util.List<Decl.FunctionDecl.Overload>
getOverloadsList()
Required.Decl.FunctionDecl.OverloadOrBuilder
getOverloadsOrBuilder(int index)
Required.java.util.List<? extends Decl.FunctionDecl.OverloadOrBuilder>
getOverloadsOrBuilderList()
Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Decl.FunctionDecl.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Decl.FunctionDecl.Builder
mergeFrom(com.google.protobuf.Message other)
Decl.FunctionDecl.Builder
mergeFrom(Decl.FunctionDecl other)
Decl.FunctionDecl.Builder
removeOverloads(int index)
Required.Decl.FunctionDecl.Builder
setDoc(java.lang.String value)
Documentation string for the function that indicates the general purpose of the function and its behavior.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.Decl.FunctionDecl.Builder
setOverloads(int index, Decl.FunctionDecl.Overload value)
Required.Decl.FunctionDecl.Builder
setOverloads(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
-
clear
public Decl.FunctionDecl.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Decl.FunctionDecl.Builder>
-
getDefaultInstanceForType
public Decl.FunctionDecl getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Decl.FunctionDecl build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Decl.FunctionDecl buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Decl.FunctionDecl.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.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 interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getOverloadsList
in 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:
getOverloadsCount
in 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:
getOverloads
in 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:
getOverloadsOrBuilder
in 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:
getOverloadsOrBuilderList
in 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:
getDoc
in 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:
getDocBytes
in 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.
-
-