Class ProtoMessageValueProvider

  • All Implemented Interfaces:
    CelValueProvider

    @Immutable
    @Internal
    public class ProtoMessageValueProvider
    extends java.lang.Object
    implements CelValueProvider
    ProtoMessageValueProvider constructs new instances of a protobuf message given its fully qualified name and its fields to populate.

    CEL Library Internals. Do Not Use.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      dev.cel.common.values.CelValueConverter celValueConverter()  
      static ProtoMessageValueProvider newInstance​(dev.cel.common.CelOptions celOptions, DynamicProto dynamicProto)  
      java.util.Optional<java.lang.Object> newValue​(java.lang.String structType, java.util.Map<java.lang.String,​java.lang.Object> fields)
      Constructs a new struct value, or a primitive value in case the fully qualified struct name is a wrapper.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newValue

        public java.util.Optional<java.lang.Object> newValue​(java.lang.String structType,
                                                             java.util.Map<java.lang.String,​java.lang.Object> fields)
        Description copied from interface: CelValueProvider
        Constructs a new struct value, or a primitive value in case the fully qualified struct name is a wrapper.
        Specified by:
        newValue in interface CelValueProvider