| 46 | } |
| 47 | |
| 48 | absl::optional<CelValue> CelProtoWrapper::MaybeWrapValue( |
| 49 | const Descriptor* descriptor, google::protobuf::MessageFactory* factory, |
| 50 | const CelValue& value, Arena* arena) { |
| 51 | const Message* msg = |
| 52 | internal::MaybeWrapValueToMessage(descriptor, factory, value, arena); |
| 53 | if (msg != nullptr) { |
| 54 | return InternalWrapMessage(msg); |
| 55 | } else { |
| 56 | return absl::nullopt; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | } // namespace google::api::expr::runtime |
nothing calls this directly
no test coverage detected