| 70 | } |
| 71 | |
| 72 | absl::Status DoubleValue::SerializeTo( |
| 73 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 74 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 75 | google::protobuf::io::ZeroCopyOutputStream* absl_nonnull output) const { |
| 76 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 77 | ABSL_DCHECK(message_factory != nullptr); |
| 78 | ABSL_DCHECK(output != nullptr); |
| 79 | |
| 80 | google::protobuf::DoubleValue message; |
| 81 | message.set_value(NativeValue()); |
| 82 | if (!message.SerializePartialToZeroCopyStream(output)) { |
| 83 | return absl::UnknownError( |
| 84 | absl::StrCat("failed to serialize message: ", message.GetTypeName())); |
| 85 | } |
| 86 | |
| 87 | return absl::OkStatus(); |
| 88 | } |
| 89 | |
| 90 | absl::Status DoubleValue::ConvertToJson( |
| 91 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
nothing calls this directly
no test coverage detected