CreateMessage creates CelValue from google::protobuf::Message. As some of CEL basic types are subclassing google::protobuf::Message, this method contains type checking and downcasts.
| 42 | // As some of CEL basic types are subclassing google::protobuf::Message, |
| 43 | // this method contains type checking and downcasts. |
| 44 | CelValue CelProtoWrapper::CreateMessage(const Message* value, Arena* arena) { |
| 45 | return internal::UnwrapMessageToValue(value, &InternalWrapMessage, arena); |
| 46 | } |
| 47 | |
| 48 | absl::optional<CelValue> CelProtoWrapper::MaybeWrapValue( |
| 49 | const Descriptor* descriptor, google::protobuf::MessageFactory* factory, |
nothing calls this directly
no test coverage detected