|
9 | 9 | #include <iostream>
|
10 | 10 | #include <memory>
|
11 | 11 | #include <string>
|
12 |
| -#include <type_traits> |
13 | 12 | #include <utility>
|
| 13 | +#include <vector> |
14 | 14 |
|
15 | 15 | #include "google/protobuf/descriptor.pb.h"
|
16 |
| -#include "google/protobuf/descriptor.h" |
17 |
| -#include "google/protobuf/dynamic_message.h" |
18 |
| -#include "google/protobuf/message.h" |
19 |
| -#include "python/google/protobuf/proto_api.h" |
20 | 16 | #include "absl/container/flat_hash_map.h"
|
21 |
| -#include "absl/strings/numbers.h" |
| 17 | +#include "absl/log/check.h" |
| 18 | +#include "absl/log/log.h" |
| 19 | +#include "absl/memory/memory.h" |
22 | 20 | #include "absl/strings/str_replace.h"
|
23 |
| -#include "absl/strings/str_split.h" |
24 | 21 | #include "absl/strings/string_view.h"
|
25 | 22 | #include "absl/types/optional.h"
|
| 23 | +#include "google/protobuf/descriptor.h" |
| 24 | +#include "google/protobuf/descriptor_database.h" |
| 25 | +#include "google/protobuf/dynamic_message.h" |
| 26 | +#include "python/google/protobuf/proto_api.h" |
26 | 27 | #include "pybind11_protobuf/check_unknown_fields.h"
|
27 | 28 |
|
| 29 | +#if defined(GOOGLE_PROTOBUF_VERSION) |
| 30 | +#include "absl/strings/numbers.h" |
| 31 | +#include "absl/strings/str_split.h" |
| 32 | +#endif |
| 33 | + |
28 | 34 | namespace py = pybind11;
|
29 | 35 |
|
30 | 36 | using ::google::protobuf::Descriptor;
|
31 | 37 | using ::google::protobuf::DescriptorDatabase;
|
32 | 38 | using ::google::protobuf::DescriptorPool;
|
33 |
| -using ::google::protobuf::DescriptorProto; |
34 | 39 | using ::google::protobuf::DynamicMessageFactory;
|
35 | 40 | using ::google::protobuf::FileDescriptor;
|
36 | 41 | using ::google::protobuf::FileDescriptorProto;
|
|
0 commit comments