| 92 | } |
| 93 | |
| 94 | absl::Status DescriptorPoolBuilder::AddFileDescriptor( |
| 95 | const google::protobuf::FileDescriptorProto& file) { |
| 96 | if (!state_->extensions.Add(file)) { |
| 97 | return absl::InvalidArgumentError( |
| 98 | absl::StrCat("proto descriptor conflict: ", file.name())); |
| 99 | } |
| 100 | return absl::OkStatus(); |
| 101 | } |
| 102 | |
| 103 | absl::Status DescriptorPoolBuilder::AddFileDescriptorSet( |
| 104 | const google::protobuf::FileDescriptorSet& file) { |