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

Method ConvertToJsonObject

common/values/parsed_map_field_value.cc:98–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98absl::Status ParsedMapFieldValue::ConvertToJsonObject(
99 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
100 google::protobuf::MessageFactory* absl_nonnull message_factory,
101 google::protobuf::Message* absl_nonnull json) const {
102 ABSL_DCHECK(descriptor_pool != nullptr);
103 ABSL_DCHECK(message_factory != nullptr);
104 ABSL_DCHECK(json != nullptr);
105 ABSL_DCHECK_EQ(json->GetDescriptor()->well_known_type(),
106 google::protobuf::Descriptor::WELLKNOWNTYPE_STRUCT);
107 ABSL_DCHECK(*this);
108
109 if (ABSL_PREDICT_FALSE(field_ == nullptr)) {
110 json->Clear();
111 return absl::OkStatus();
112 }
113 return internal::MessageFieldToJson(*message_, field_, descriptor_pool,
114 message_factory, json);
115}
116
117absl::Status ParsedMapFieldValue::Equal(
118 const Value& other,

Callers

nothing calls this directly

Calls 3

MessageFieldToJsonFunction · 0.85
GetDescriptorMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected