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

Method MessageOrDie

eval/public/cel_value.h:310–314  ·  view source on GitHub ↗

Returns stored const Message* value. Fails if stored value type is not const Message*.

Source from the content-addressed store, hash-verified

308 // Returns stored const Message* value.
309 // Fails if stored value type is not const Message*.
310 const google::protobuf::Message* MessageOrDie() const {
311 MessageWrapper wrapped = MessageWrapperOrDie();
312 ABSL_ASSERT(wrapped.HasFullProto());
313 return static_cast<const google::protobuf::Message*>(wrapped.message_ptr());
314 }
315
316 ABSL_DEPRECATED("Use MessageOrDie")
317 MessageWrapper MessageWrapperOrDie() const {

Callers 15

BetweenToDStrFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
ExportAsProtoValueFunction · 0.80
CelValueToValueFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
IsAlreadyWrappedFunction · 0.80
ExpectWrappedMessageMethod · 0.80

Calls 1

message_ptrMethod · 0.80

Tested by 11

TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
ExpectWrappedMessageMethod · 0.64
TEST_PFunction · 0.64
TEST_PFunction · 0.64