| 132 | } |
| 133 | |
| 134 | absl::Status Value::SerializeTo( |
| 135 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 136 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 137 | google::protobuf::io::ZeroCopyOutputStream* absl_nonnull output) const { |
| 138 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 139 | ABSL_DCHECK(message_factory != nullptr); |
| 140 | ABSL_DCHECK(output != nullptr); |
| 141 | |
| 142 | return variant_.Visit([&](const auto& alternative) -> absl::Status { |
| 143 | return alternative.SerializeTo(descriptor_pool, message_factory, output); |
| 144 | }); |
| 145 | } |
| 146 | |
| 147 | absl::Status Value::ConvertToJson( |
| 148 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |