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

Function EnumMapFieldValueAccessor

common/value.cc:654–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654void EnumMapFieldValueAccessor(
655 const google::protobuf::MapValueConstRef& value,
656 const google::protobuf::Message* absl_nonnull message,
657 const google::protobuf::FieldDescriptor* absl_nonnull field,
658 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
659 google::protobuf::MessageFactory* absl_nonnull message_factory,
660 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) {
661 ABSL_DCHECK(message != nullptr);
662 ABSL_DCHECK(field != nullptr);
663 ABSL_DCHECK(descriptor_pool != nullptr);
664 ABSL_DCHECK(message_factory != nullptr);
665 ABSL_DCHECK(arena != nullptr);
666 ABSL_DCHECK(result != nullptr);
667 ABSL_DCHECK(!field->is_repeated());
668 ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_ENUM);
669
670 *result = NonNullEnumValue(field->enum_type(), value.GetEnumValue());
671}
672
673void NullMapFieldValueAccessor(
674 const google::protobuf::MapValueConstRef& value,

Callers

nothing calls this directly

Calls 2

NonNullEnumValueFunction · 0.85
GetEnumValueMethod · 0.45

Tested by

no test coverage detected