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

Method HasField

common/values/parsed_message_value.cc:400–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400bool ParsedMessageValue::HasField(
401 const google::protobuf::FieldDescriptor* absl_nonnull field) const {
402 ABSL_DCHECK(field != nullptr);
403
404 const auto* reflection = GetReflection();
405 if (field->is_map() || field->is_repeated()) {
406 return reflection->FieldSize(*value_, field) > 0;
407 }
408 return reflection->HasField(*value_, field);
409}
410
411} // namespace cel

Callers 4

ReleaseListValueMethod · 0.45
ReleaseStructValueMethod · 0.45
WrapFieldImplFunction · 0.45
HasFieldByNameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected