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