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

Method IsZeroValue

common/legacy_value.cc:909–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907}
908
909bool LegacyStructValue::IsZeroValue() const {
910 auto message_wrapper = AsMessageWrapper(message_ptr_, legacy_type_info_);
911 const auto* access_apis =
912 message_wrapper.legacy_type_info()->GetAccessApis(message_wrapper);
913 if (ABSL_PREDICT_FALSE(access_apis == nullptr)) {
914 return false;
915 }
916 return access_apis->ListFields(message_wrapper).empty();
917}
918
919absl::Status LegacyStructValue::GetFieldByName(
920 absl::string_view name, ProtoWrapperTypeOptions unboxing_options,

Callers

nothing calls this directly

Calls 5

AsMessageWrapperFunction · 0.85
legacy_type_infoMethod · 0.80
GetAccessApisMethod · 0.45
emptyMethod · 0.45
ListFieldsMethod · 0.45

Tested by

no test coverage detected