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