Class ProtoLiteAdapter


  • @Internal
    @Immutable
    public final class ProtoLiteAdapter
    extends java.lang.Object
    ProtoLiteAdapter utilities handle conversion between native Java objects which represent CEL values and well-known protobuf counterparts.

    This adapter does not leverage descriptors, thus is compatible with lite-variants of protobuf messages.

    CEL Library Internals. Do Not Use.

    • Constructor Summary

      Constructors 
      Constructor Description
      ProtoLiteAdapter​(dev.cel.common.CelOptions celOptions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.protobuf.Any adaptValueToAny​(java.lang.Object value, java.lang.String typeName)  
      com.google.protobuf.MessageLite adaptValueToWellKnownProto​(java.lang.Object value, dev.cel.common.internal.WellKnownProto wellKnownProto)  
      java.lang.Object adaptWellKnownProtoToValue​(com.google.protobuf.MessageLiteOrBuilder proto, dev.cel.common.internal.WellKnownProto wellKnownProto)  
      • Methods inherited from class java.lang.Object

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

      • ProtoLiteAdapter

        public ProtoLiteAdapter​(dev.cel.common.CelOptions celOptions)
    • Method Detail

      • adaptValueToWellKnownProto

        public com.google.protobuf.MessageLite adaptValueToWellKnownProto​(java.lang.Object value,
                                                                          dev.cel.common.internal.WellKnownProto wellKnownProto)
      • adaptValueToAny

        public com.google.protobuf.Any adaptValueToAny​(java.lang.Object value,
                                                       java.lang.String typeName)
      • adaptWellKnownProtoToValue

        public java.lang.Object adaptWellKnownProtoToValue​(com.google.protobuf.MessageLiteOrBuilder proto,
                                                           dev.cel.common.internal.WellKnownProto wellKnownProto)