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

Method ConvertToJsonObject

common/values/parsed_message_value.cc:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125absl::Status ParsedMessageValue::ConvertToJsonObject(
126 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
127 google::protobuf::MessageFactory* absl_nonnull message_factory,
128 google::protobuf::Message* absl_nonnull json) const {
129 ABSL_DCHECK(descriptor_pool != nullptr);
130 ABSL_DCHECK(message_factory != nullptr);
131 ABSL_DCHECK(json != nullptr);
132 ABSL_DCHECK_EQ(json->GetDescriptor()->well_known_type(),
133 google::protobuf::Descriptor::WELLKNOWNTYPE_STRUCT);
134
135 return internal::MessageToJson(*value_, descriptor_pool, message_factory,
136 json);
137}
138
139absl::Status ParsedMessageValue::Equal(
140 const Value& other,

Callers

nothing calls this directly

Calls 2

MessageToJsonFunction · 0.85
GetDescriptorMethod · 0.45

Tested by

no test coverage detected