| 652 | } |
| 653 | |
| 654 | void 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 | |
| 673 | void NullMapFieldValueAccessor( |
| 674 | const google::protobuf::MapValueConstRef& value, |
nothing calls this directly
no test coverage detected