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

Function GetDescriptor

common/values/struct_value_builder.cc:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54namespace {
55
56absl::StatusOr<const google::protobuf::Descriptor* absl_nonnull> GetDescriptor(
57 const google::protobuf::Message& message) {
58 const auto* desc = message.GetDescriptor();
59 if (ABSL_PREDICT_FALSE(desc == nullptr)) {
60 return absl::InvalidArgumentError(
61 absl::StrCat(message.GetTypeName(), " is missing descriptor"));
62 }
63 return desc;
64}
65
66absl::StatusOr<absl::optional<ErrorValue>> ProtoMessageCopyUsingSerialization(
67 google::protobuf::MessageLite* to, const google::protobuf::MessageLite* from) {

Callers 11

TESTFunction · 0.85
TESTFunction · 0.85
GetMessageTypeMethod · 0.85
GetTypeNameMethod · 0.85
GetRuntimeTypeMethod · 0.85
GetTypeNameMethod · 0.85
GetRuntimeTypeMethod · 0.85
GetFieldByNameMethod · 0.85
GetFieldByNumberMethod · 0.85
HasFieldByNameMethod · 0.85
HasFieldByNumberMethod · 0.85

Calls 2

GetDescriptorMethod · 0.45
GetTypeNameMethod · 0.45

Tested by 3

TESTFunction · 0.68
TESTFunction · 0.68
GetMessageTypeMethod · 0.68