Package dev.cel.common.values
Class ProtoMessageValueProvider
- java.lang.Object
-
- dev.cel.common.values.ProtoMessageValueProvider
-
- All Implemented Interfaces:
CelValueProvider
@Immutable @Internal public class ProtoMessageValueProvider extends java.lang.Object implements CelValueProvider
ProtoMessageValueProviderconstructs new instances of a protobuf message given its fully qualified name and its fields to populate.CEL Library Internals. Do Not Use.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.cel.common.values.CelValueProvider
CelValueProvider.CombinedCelValueProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtoMessageValueProvidernewInstance(DynamicProto dynamicProto, CelOptions celOptions)java.util.Optional<CelValue>newValue(java.lang.String structType, java.util.Map<java.lang.String,java.lang.Object> fields)Constructs a new struct value.
-
-
-
Method Detail
-
newValue
public java.util.Optional<CelValue> newValue(java.lang.String structType, java.util.Map<java.lang.String,java.lang.Object> fields)
Description copied from interface:CelValueProviderConstructs a new struct value.Note that the return type is defined as CelValue rather than StructValue to account for special cases such as wrappers where its primitive is returned.
- Specified by:
newValuein interfaceCelValueProvider
-
newInstance
public static ProtoMessageValueProvider newInstance(DynamicProto dynamicProto, CelOptions celOptions)
-
-