| 43 | } |
| 44 | |
| 45 | absl::Status UintValue::SerializeTo( |
| 46 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 47 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 48 | google::protobuf::io::ZeroCopyOutputStream* absl_nonnull output) const { |
| 49 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 50 | ABSL_DCHECK(message_factory != nullptr); |
| 51 | ABSL_DCHECK(output != nullptr); |
| 52 | |
| 53 | google::protobuf::UInt64Value message; |
| 54 | message.set_value(NativeValue()); |
| 55 | if (!message.SerializePartialToZeroCopyStream(output)) { |
| 56 | return absl::UnknownError( |
| 57 | absl::StrCat("failed to serialize message: ", message.GetTypeName())); |
| 58 | } |
| 59 | |
| 60 | return absl::OkStatus(); |
| 61 | } |
| 62 | |
| 63 | absl::Status UintValue::ConvertToJson( |
| 64 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
nothing calls this directly
no test coverage detected