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

Method CreateDuration

eval/public/structs/cel_proto_wrapper.h:28–30  ·  view source on GitHub ↗

CreateDuration creates CelValue from a non-null protobuf duration value.

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

CelValueClass · 0.85
DecodeDurationFunction · 0.85

Tested by

no test coverage detected