Class DynamicProto


  • @Immutable
    @CheckReturnValue
    @Internal
    public final class DynamicProto
    extends java.lang.Object
    The DynamicProto class supports the conversion of Any values to concrete Message types based on provided descriptors.

    CEL Library Internals. Do Not Use.

    • Method Detail

      • getProtoMessageFactory

        public ProtoMessageFactory getProtoMessageFactory()
        Gets the underlying message factory used to construct new protobuf messages upon unpacking an Any message.
      • maybeUnpackAny

        public java.util.Optional<Message> maybeUnpackAny​(Message msg)
        Attempts to unpack an Any message.
      • maybeAdaptDynamicMessage

        public Message maybeAdaptDynamicMessage​(DynamicMessage input)
        This method will attempt to adapt a DynamicMessage instance to a generated Message instance if possible. This scenario can occur during field selection on a higher level dynamic message whose type isn't linked in the binary, but the field's type is.