| 131 | bool HasNext() override { return index_ < elements_.size(); } |
| 132 | |
| 133 | absl::Status Next(const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 134 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 135 | google::protobuf::Arena* absl_nonnull arena, |
| 136 | Value* absl_nonnull result) override { |
| 137 | if (ABSL_PREDICT_FALSE(index_ >= elements_.size())) { |
| 138 | return absl::FailedPreconditionError( |
| 139 | "ValueManager::Next called after ValueManager::HasNext returned " |
| 140 | "false"); |
| 141 | } |
| 142 | *result = elements_[index_++]; |
| 143 | return absl::OkStatus(); |
| 144 | } |
| 145 | |
| 146 | absl::StatusOr<bool> Next1( |
| 147 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |