| 319 | bool GeoStatistics::is_valid() const { return impl_->is_valid(); } |
| 320 | |
| 321 | std::optional<EncodedGeoStatistics> GeoStatistics::Encode() const { |
| 322 | if (is_valid()) { |
| 323 | return impl_->Encode(); |
| 324 | } else { |
| 325 | return std::nullopt; |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | void GeoStatistics::Decode(const EncodedGeoStatistics& encoded) { |
| 330 | impl_->Decode(encoded); |