Class BaseProtoCelValueConverter

  • Direct Known Subclasses:
    ProtoCelValueConverter

    @Immutable
    @Internal
    public abstract class BaseProtoCelValueConverter
    extends dev.cel.common.values.CelValueConverter
    BaseProtoCelValueConverter contains the common logic for converting between native Java and protobuf objects to CelValue. This base class is inherited by ProtoCelValueConverter and ProtoLiteCelValueConverter to perform the conversion using full and lite variants of protobuf messages respectively.

    CEL Library Internals. Do Not Use.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object fromWellKnownProto​(com.google.protobuf.MessageLiteOrBuilder message, dev.cel.common.internal.WellKnownProto wellKnownProto)  
      java.lang.Object toRuntimeValue​(java.lang.Object value)
      Protobuf semantics take precedence for conversion.
      • Methods inherited from class dev.cel.common.values.CelValueConverter

        getDefaultInstance, mapContainer, maybeUnwrap, normalizePrimitive
      • Methods inherited from class java.lang.Object

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

      • BaseProtoCelValueConverter

        protected BaseProtoCelValueConverter()
    • Method Detail

      • toRuntimeValue

        public java.lang.Object toRuntimeValue​(java.lang.Object value)
        Protobuf semantics take precedence for conversion.
        Overrides:
        toRuntimeValue in class dev.cel.common.values.CelValueConverter
      • fromWellKnownProto

        protected java.lang.Object fromWellKnownProto​(com.google.protobuf.MessageLiteOrBuilder message,
                                                      dev.cel.common.internal.WellKnownProto wellKnownProto)