Package dev.cel.expr
Class Decl.FunctionDecl.Overload.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
- dev.cel.expr.Decl.FunctionDecl.Overload.Builder
-
- All Implemented Interfaces:
Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,Decl.FunctionDecl.OverloadOrBuilder,java.lang.Cloneable
- Enclosing class:
- Decl.FunctionDecl.Overload
public static final class Decl.FunctionDecl.Overload.Builder extends GeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder> implements Decl.FunctionDecl.OverloadOrBuilder
An overload indicates a function's parameter types and return type, and may optionally include a function body described in terms of [Expr][cel.expr.Expr] values. Functions overloads are declared in either a function or method call-style. For methods, the `params[0]` is the expected type of the target receiver. Overloads must have non-overlapping argument types after erasure of all parameterized type variables (similar as type erasure in Java).
Protobuf typecel.expr.Decl.FunctionDecl.Overload
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Decl.FunctionDecl.Overload.BuilderaddAllParams(java.lang.Iterable<? extends Type> values)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuilderaddAllTypeParams(java.lang.Iterable<java.lang.String> values)The type param names associated with the function declaration.Decl.FunctionDecl.Overload.BuilderaddParams(int index, Type value)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuilderaddParams(int index, Type.Builder builderForValue)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuilderaddParams(Type value)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuilderaddParams(Type.Builder builderForValue)List of function parameter [Type][cel.expr.Type] values.Type.BuilderaddParamsBuilder()List of function parameter [Type][cel.expr.Type] values.Type.BuilderaddParamsBuilder(int index)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.Decl.FunctionDecl.Overload.BuilderaddTypeParams(java.lang.String value)The type param names associated with the function declaration.Decl.FunctionDecl.Overload.BuilderaddTypeParamsBytes(ByteString value)The type param names associated with the function declaration.Decl.FunctionDecl.Overloadbuild()Constructs the message based on the state of the Builder.Decl.FunctionDecl.OverloadbuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.Decl.FunctionDecl.Overload.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.Decl.FunctionDecl.Overload.BuilderclearDoc()Documentation string for the overload.Decl.FunctionDecl.Overload.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.Decl.FunctionDecl.Overload.BuilderclearIsInstanceFunction()Whether the function is to be used in a method call-style `x.f(...)` of a function call-style `f(x, ...)`.Decl.FunctionDecl.Overload.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.Decl.FunctionDecl.Overload.BuilderclearOverloadId()Required.Decl.FunctionDecl.Overload.BuilderclearParams()List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuilderclearResultType()Required.Decl.FunctionDecl.Overload.BuilderclearTypeParams()The type param names associated with the function declaration.Decl.FunctionDecl.Overload.Builderclone()Clones the Builder.Decl.FunctionDecl.OverloadgetDefaultInstanceForType()Get an instance of the type with no fields set.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.java.lang.StringgetDoc()Documentation string for the overload.ByteStringgetDocBytes()Documentation string for the overload.booleangetIsInstanceFunction()Whether the function is to be used in a method call-style `x.f(...)` of a function call-style `f(x, ...)`.java.lang.StringgetOverloadId()Required.ByteStringgetOverloadIdBytes()Required.TypegetParams(int index)List of function parameter [Type][cel.expr.Type] values.Type.BuildergetParamsBuilder(int index)List of function parameter [Type][cel.expr.Type] values.java.util.List<Type.Builder>getParamsBuilderList()List of function parameter [Type][cel.expr.Type] values.intgetParamsCount()List of function parameter [Type][cel.expr.Type] values.java.util.List<Type>getParamsList()List of function parameter [Type][cel.expr.Type] values.TypeOrBuildergetParamsOrBuilder(int index)List of function parameter [Type][cel.expr.Type] values.java.util.List<? extends TypeOrBuilder>getParamsOrBuilderList()List of function parameter [Type][cel.expr.Type] values.TypegetResultType()Required.Type.BuildergetResultTypeBuilder()Required.TypeOrBuildergetResultTypeOrBuilder()Required.java.lang.StringgetTypeParams(int index)The type param names associated with the function declaration.ByteStringgetTypeParamsBytes(int index)The type param names associated with the function declaration.intgetTypeParamsCount()The type param names associated with the function declaration.ProtocolStringListgetTypeParamsList()The type param names associated with the function declaration.booleanhasResultType()Required.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.Decl.FunctionDecl.Overload.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Decl.FunctionDecl.Overload.BuildermergeFrom(Message other)Mergeotherinto the message being built.Decl.FunctionDecl.Overload.BuildermergeFrom(Decl.FunctionDecl.Overload other)Decl.FunctionDecl.Overload.BuildermergeResultType(Type value)Required.Decl.FunctionDecl.Overload.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.Decl.FunctionDecl.Overload.BuilderremoveParams(int index)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuildersetDoc(java.lang.String value)Documentation string for the overload.Decl.FunctionDecl.Overload.BuildersetDocBytes(ByteString value)Documentation string for the overload.Decl.FunctionDecl.Overload.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.Decl.FunctionDecl.Overload.BuildersetIsInstanceFunction(boolean value)Whether the function is to be used in a method call-style `x.f(...)` of a function call-style `f(x, ...)`.Decl.FunctionDecl.Overload.BuildersetOverloadId(java.lang.String value)Required.Decl.FunctionDecl.Overload.BuildersetOverloadIdBytes(ByteString value)Required.Decl.FunctionDecl.Overload.BuildersetParams(int index, Type value)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuildersetParams(int index, Type.Builder builderForValue)List of function parameter [Type][cel.expr.Type] values.Decl.FunctionDecl.Overload.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.Decl.FunctionDecl.Overload.BuildersetResultType(Type value)Required.Decl.FunctionDecl.Overload.BuildersetResultType(Type.Builder builderForValue)Required.Decl.FunctionDecl.Overload.BuildersetTypeParams(int index, java.lang.String value)The type param names associated with the function declaration.Decl.FunctionDecl.Overload.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
clear
public Decl.FunctionDecl.Overload.Builder clear()
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
getDefaultInstanceForType
public Decl.FunctionDecl.Overload getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
public Decl.FunctionDecl.Overload build()
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
public Decl.FunctionDecl.Overload buildPartial()
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
public Decl.FunctionDecl.Overload.Builder clone()
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>- See Also:
Object.clone()
-
setField
public Decl.FunctionDecl.Overload.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, that is, the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)returns.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
clearField
public Decl.FunctionDecl.Overload.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
clearOneof
public Decl.FunctionDecl.Overload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
setRepeatedField
public Decl.FunctionDecl.Overload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field; that is, the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)returns.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
addRepeatedField
public Decl.FunctionDecl.Overload.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
mergeFrom
public Decl.FunctionDecl.Overload.Builder mergeFrom(Message other)
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.This is equivalent to the
Message::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Decl.FunctionDecl.Overload.Builder>
-
mergeFrom
public Decl.FunctionDecl.Overload.Builder mergeFrom(Decl.FunctionDecl.Overload other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
mergeFrom
public Decl.FunctionDecl.Overload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Decl.FunctionDecl.Overload.Builder>- Throws:
InvalidProtocolBufferException- the bytes read are not syntactically correct according to the protobuf wire format specification. The data is corrupt, incomplete, or was never a protobuf in the first place.java.io.IOException- an I/O error reading from the stream
-
getOverloadId
public java.lang.String getOverloadId()
Required. Globally unique overload name of the function which reflects the function name and argument types. This will be used by a [Reference][cel.expr.Reference] to indicate the `overload_id` that was resolved for the function `name`.
string overload_id = 1;- Specified by:
getOverloadIdin interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- The overloadId.
-
getOverloadIdBytes
public ByteString getOverloadIdBytes()
Required. Globally unique overload name of the function which reflects the function name and argument types. This will be used by a [Reference][cel.expr.Reference] to indicate the `overload_id` that was resolved for the function `name`.
string overload_id = 1;- Specified by:
getOverloadIdBytesin interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- The bytes for overloadId.
-
setOverloadId
public Decl.FunctionDecl.Overload.Builder setOverloadId(java.lang.String value)
Required. Globally unique overload name of the function which reflects the function name and argument types. This will be used by a [Reference][cel.expr.Reference] to indicate the `overload_id` that was resolved for the function `name`.
string overload_id = 1;- Parameters:
value- The overloadId to set.- Returns:
- This builder for chaining.
-
clearOverloadId
public Decl.FunctionDecl.Overload.Builder clearOverloadId()
Required. Globally unique overload name of the function which reflects the function name and argument types. This will be used by a [Reference][cel.expr.Reference] to indicate the `overload_id` that was resolved for the function `name`.
string overload_id = 1;- Returns:
- This builder for chaining.
-
setOverloadIdBytes
public Decl.FunctionDecl.Overload.Builder setOverloadIdBytes(ByteString value)
Required. Globally unique overload name of the function which reflects the function name and argument types. This will be used by a [Reference][cel.expr.Reference] to indicate the `overload_id` that was resolved for the function `name`.
string overload_id = 1;- Parameters:
value- The bytes for overloadId to set.- Returns:
- This builder for chaining.
-
getParamsList
public java.util.List<Type> getParamsList()
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;- Specified by:
getParamsListin interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getParamsCount
public int getParamsCount()
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;- Specified by:
getParamsCountin interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getParams
public Type getParams(int index)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;- Specified by:
getParamsin interfaceDecl.FunctionDecl.OverloadOrBuilder
-
setParams
public Decl.FunctionDecl.Overload.Builder setParams(int index, Type value)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
setParams
public Decl.FunctionDecl.Overload.Builder setParams(int index, Type.Builder builderForValue)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
addParams
public Decl.FunctionDecl.Overload.Builder addParams(Type value)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
addParams
public Decl.FunctionDecl.Overload.Builder addParams(int index, Type value)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
addParams
public Decl.FunctionDecl.Overload.Builder addParams(Type.Builder builderForValue)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
addParams
public Decl.FunctionDecl.Overload.Builder addParams(int index, Type.Builder builderForValue)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
addAllParams
public Decl.FunctionDecl.Overload.Builder addAllParams(java.lang.Iterable<? extends Type> values)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
clearParams
public Decl.FunctionDecl.Overload.Builder clearParams()
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
removeParams
public Decl.FunctionDecl.Overload.Builder removeParams(int index)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
getParamsBuilder
public Type.Builder getParamsBuilder(int index)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
getParamsOrBuilder
public TypeOrBuilder getParamsOrBuilder(int index)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;- Specified by:
getParamsOrBuilderin interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getParamsOrBuilderList
public java.util.List<? extends TypeOrBuilder> getParamsOrBuilderList()
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;- Specified by:
getParamsOrBuilderListin interfaceDecl.FunctionDecl.OverloadOrBuilder
-
addParamsBuilder
public Type.Builder addParamsBuilder()
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
addParamsBuilder
public Type.Builder addParamsBuilder(int index)
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
getParamsBuilderList
public java.util.List<Type.Builder> getParamsBuilderList()
List of function parameter [Type][cel.expr.Type] values. Param types are disjoint after generic type parameters have been replaced with the type `DYN`. Since the `DYN` type is compatible with any other type, this means that if `A` is a type parameter, the function types `int<A>` and `int<int>` are not disjoint. Likewise, `map<string, string>` is not disjoint from `map<K, V>`. When the `result_type` of a function is a generic type param, the type param name also appears as the `type` of on at least one params.
repeated .cel.expr.Type params = 2;
-
getTypeParamsList
public ProtocolStringList getTypeParamsList()
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Specified by:
getTypeParamsListin interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- A list containing the typeParams.
-
getTypeParamsCount
public int getTypeParamsCount()
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Specified by:
getTypeParamsCountin interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- The count of typeParams.
-
getTypeParams
public java.lang.String getTypeParams(int index)
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Specified by:
getTypeParamsin interfaceDecl.FunctionDecl.OverloadOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The typeParams at the given index.
-
getTypeParamsBytes
public ByteString getTypeParamsBytes(int index)
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Specified by:
getTypeParamsBytesin interfaceDecl.FunctionDecl.OverloadOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the typeParams at the given index.
-
setTypeParams
public Decl.FunctionDecl.Overload.Builder setTypeParams(int index, java.lang.String value)
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Parameters:
index- The index to set the value at.value- The typeParams to set.- Returns:
- This builder for chaining.
-
addTypeParams
public Decl.FunctionDecl.Overload.Builder addTypeParams(java.lang.String value)
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Parameters:
value- The typeParams to add.- Returns:
- This builder for chaining.
-
addAllTypeParams
public Decl.FunctionDecl.Overload.Builder addAllTypeParams(java.lang.Iterable<java.lang.String> values)
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Parameters:
values- The typeParams to add.- Returns:
- This builder for chaining.
-
clearTypeParams
public Decl.FunctionDecl.Overload.Builder clearTypeParams()
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Returns:
- This builder for chaining.
-
addTypeParamsBytes
public Decl.FunctionDecl.Overload.Builder addTypeParamsBytes(ByteString value)
The type param names associated with the function declaration. For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield the type params of `K, V`.
repeated string type_params = 3;- Parameters:
value- The bytes of the typeParams to add.- Returns:
- This builder for chaining.
-
hasResultType
public boolean hasResultType()
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;- Specified by:
hasResultTypein interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- Whether the resultType field is set.
-
getResultType
public Type getResultType()
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;- Specified by:
getResultTypein interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- The resultType.
-
setResultType
public Decl.FunctionDecl.Overload.Builder setResultType(Type value)
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;
-
setResultType
public Decl.FunctionDecl.Overload.Builder setResultType(Type.Builder builderForValue)
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;
-
mergeResultType
public Decl.FunctionDecl.Overload.Builder mergeResultType(Type value)
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;
-
clearResultType
public Decl.FunctionDecl.Overload.Builder clearResultType()
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;
-
getResultTypeBuilder
public Type.Builder getResultTypeBuilder()
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;
-
getResultTypeOrBuilder
public TypeOrBuilder getResultTypeOrBuilder()
Required. The result type of the function. For example, the operator `string.isEmpty()` would have `result_type` of `kind: BOOL`.
.cel.expr.Type result_type = 4;- Specified by:
getResultTypeOrBuilderin interfaceDecl.FunctionDecl.OverloadOrBuilder
-
getIsInstanceFunction
public boolean getIsInstanceFunction()
Whether the function is to be used in a method call-style `x.f(...)` of a function call-style `f(x, ...)`. For methods, the first parameter declaration, `params[0]` is the expected type of the target receiver.
bool is_instance_function = 5;- Specified by:
getIsInstanceFunctionin interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- The isInstanceFunction.
-
setIsInstanceFunction
public Decl.FunctionDecl.Overload.Builder setIsInstanceFunction(boolean value)
Whether the function is to be used in a method call-style `x.f(...)` of a function call-style `f(x, ...)`. For methods, the first parameter declaration, `params[0]` is the expected type of the target receiver.
bool is_instance_function = 5;- Parameters:
value- The isInstanceFunction to set.- Returns:
- This builder for chaining.
-
clearIsInstanceFunction
public Decl.FunctionDecl.Overload.Builder clearIsInstanceFunction()
Whether the function is to be used in a method call-style `x.f(...)` of a function call-style `f(x, ...)`. For methods, the first parameter declaration, `params[0]` is the expected type of the target receiver.
bool is_instance_function = 5;- Returns:
- This builder for chaining.
-
getDoc
public java.lang.String getDoc()
Documentation string for the overload.
string doc = 6;- Specified by:
getDocin interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- The doc.
-
getDocBytes
public ByteString getDocBytes()
Documentation string for the overload.
string doc = 6;- Specified by:
getDocBytesin interfaceDecl.FunctionDecl.OverloadOrBuilder- Returns:
- The bytes for doc.
-
setDoc
public Decl.FunctionDecl.Overload.Builder setDoc(java.lang.String value)
Documentation string for the overload.
string doc = 6;- Parameters:
value- The doc to set.- Returns:
- This builder for chaining.
-
clearDoc
public Decl.FunctionDecl.Overload.Builder clearDoc()
Documentation string for the overload.
string doc = 6;- Returns:
- This builder for chaining.
-
setDocBytes
public Decl.FunctionDecl.Overload.Builder setDocBytes(ByteString value)
Documentation string for the overload.
string doc = 6;- Parameters:
value- The bytes for doc to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Decl.FunctionDecl.Overload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
mergeUnknownFields
public final Decl.FunctionDecl.Overload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Decl.FunctionDecl.Overload.Builder>
-
-