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

Method GetDescriptor

common/values/message_value.cc:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace cel {
44
45const google::protobuf::Descriptor* absl_nonnull MessageValue::GetDescriptor() const {
46 ABSL_CHECK(*this); // Crash OK
47 return absl::visit(
48 absl::Overload(
49 [](absl::monostate) -> const google::protobuf::Descriptor* absl_nonnull {
50 ABSL_UNREACHABLE();
51 },
52 [](const ParsedMessageValue& alternative)
53 -> const google::protobuf::Descriptor* absl_nonnull {
54 return alternative.GetDescriptor();
55 }),
56 variant_);
57}
58
59std::string MessageValue::DebugString() const {
60 return absl::visit(

Callers 15

ConvertToJsonMethod · 0.45
ConvertToJsonArrayMethod · 0.45
ConvertToJsonObjectMethod · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36