| 1339 | } |
| 1340 | |
| 1341 | bool IsAlreadyWrapped(google::protobuf::Descriptor::WellKnownType wkt, |
| 1342 | const CelValue& value) { |
| 1343 | if (value.IsMessage()) { |
| 1344 | const auto* msg = value.MessageOrDie(); |
| 1345 | if (wkt == msg->GetDescriptor()->well_known_type()) { |
| 1346 | return true; |
| 1347 | } |
| 1348 | } |
| 1349 | return false; |
| 1350 | } |
| 1351 | |
| 1352 | // MessageFromValueMaker makes a specific protobuf Message instance based on |
| 1353 | // the desired protobuf type name and an input CelValue. |
no test coverage detected