MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / CreateMessage

Method CreateMessage

eval/public/structs/cel_proto_wrapper.cc:44–46  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

UnwrapMessageToValueFunction · 0.85

Tested by

no test coverage detected