| 144 | } |
| 145 | |
| 146 | absl::StatusOr<bool> Next1( |
| 147 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 148 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 149 | google::protobuf::Arena* absl_nonnull arena, |
| 150 | Value* absl_nonnull key_or_value) override { |
| 151 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 152 | ABSL_DCHECK(message_factory != nullptr); |
| 153 | ABSL_DCHECK(arena != nullptr); |
| 154 | ABSL_DCHECK(key_or_value != nullptr); |
| 155 | |
| 156 | if (index_ >= elements_.size()) { |
| 157 | return false; |
| 158 | } |
| 159 | *key_or_value = elements_[index_]; |
| 160 | ++index_; |
| 161 | return true; |
| 162 | } |
| 163 | |
| 164 | absl::StatusOr<bool> Next2( |
| 165 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |