| 88 | } |
| 89 | |
| 90 | absl::Status DoubleValue::ConvertToJson( |
| 91 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 92 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 93 | google::protobuf::Message* absl_nonnull json) const { |
| 94 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 95 | ABSL_DCHECK(message_factory != nullptr); |
| 96 | ABSL_DCHECK(json != nullptr); |
| 97 | ABSL_DCHECK_EQ(json->GetDescriptor()->well_known_type(), |
| 98 | google::protobuf::Descriptor::WELLKNOWNTYPE_VALUE); |
| 99 | |
| 100 | ValueReflection value_reflection; |
| 101 | CEL_RETURN_IF_ERROR(value_reflection.Initialize(json->GetDescriptor())); |
| 102 | value_reflection.SetNumberValue(json, NativeValue()); |
| 103 | |
| 104 | return absl::OkStatus(); |
| 105 | } |
| 106 | |
| 107 | absl::Status DoubleValue::Equal( |
| 108 | const Value& other, |
nothing calls this directly
no test coverage detected