CreateTimestamp creates CelValue from a non-null protobuf timestamp value.
| 31 | |
| 32 | // CreateTimestamp creates CelValue from a non-null protobuf timestamp value. |
| 33 | static CelValue CreateTimestamp(const google::protobuf::Timestamp* value) { |
| 34 | return CelValue(cel::internal::DecodeTime(*value)); |
| 35 | } |
| 36 | |
| 37 | // MaybeWrapValue attempts to wrap the input value in a proto message with |
| 38 | // the given type_name. If the value can be wrapped, it is returned as a |
nothing calls this directly
no test coverage detected