| 453 | namespace { |
| 454 | |
| 455 | void DoubleMapFieldValueAccessor( |
| 456 | const google::protobuf::MapValueConstRef& value, |
| 457 | const google::protobuf::Message* absl_nonnull message, |
| 458 | const google::protobuf::FieldDescriptor* absl_nonnull field, |
| 459 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 460 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 461 | google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) { |
| 462 | ABSL_DCHECK(message != nullptr); |
| 463 | ABSL_DCHECK(field != nullptr); |
| 464 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 465 | ABSL_DCHECK(message_factory != nullptr); |
| 466 | ABSL_DCHECK(arena != nullptr); |
| 467 | ABSL_DCHECK(result != nullptr); |
| 468 | ABSL_DCHECK(!field->is_repeated()); |
| 469 | ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_DOUBLE); |
| 470 | |
| 471 | *result = DoubleValue(value.GetDoubleValue()); |
| 472 | } |
| 473 | |
| 474 | void FloatMapFieldValueAccessor( |
| 475 | const google::protobuf::MapValueConstRef& value, |
nothing calls this directly
no test coverage detected