| 1171 | } |
| 1172 | |
| 1173 | CustomMapValue Clone(google::protobuf::Arena* absl_nonnull arena) const override { |
| 1174 | ABSL_DCHECK(arena != nullptr); |
| 1175 | |
| 1176 | MapValueBuilderImpl builder(arena); |
| 1177 | builder.Reserve(map_.size()); |
| 1178 | for (const auto& entry : map_) { |
| 1179 | builder.UnsafePut(entry.first.Clone(arena), entry.second.Clone(arena)); |
| 1180 | } |
| 1181 | return std::move(builder).BuildCustom(); |
| 1182 | } |
| 1183 | |
| 1184 | size_t Size() const override { return map_.size(); } |
| 1185 |
nothing calls this directly
no test coverage detected