CreateDuration creates CelValue from a non-null protobuf duration value.
| 26 | |
| 27 | // CreateDuration creates CelValue from a non-null protobuf duration value. |
| 28 | static CelValue CreateDuration(const google::protobuf::Duration* value) { |
| 29 | return CelValue(cel::internal::DecodeDuration(*value)); |
| 30 | } |
| 31 | |
| 32 | // CreateTimestamp creates CelValue from a non-null protobuf timestamp value. |
| 33 | static CelValue CreateTimestamp(const google::protobuf::Timestamp* value) { |
nothing calls this directly
no test coverage detected