Skip to content

Commit 179a3ec

Browse files
rwgkcopybara-github
authored andcommitted
Internal change.
PiperOrigin-RevId: 468261275
1 parent 9750a61 commit 179a3ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pybind11_protobuf/native_proto_caster.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <utility>
1818

1919
#include "google/protobuf/message.h"
20+
#include "absl/strings/string_view.h"
2021
#include "pybind11_protobuf/enum_type_caster.h"
2122
#include "pybind11_protobuf/proto_caster_impl.h"
2223

@@ -57,6 +58,13 @@ namespace pybind11_protobuf {
5758
// is required to be called from a PYBIND11_MODULE definition before use.
5859
inline void ImportNativeProtoCasters() { InitializePybindProtoCastUtil(); }
5960

61+
inline void AllowUnknownFieldsFor(
62+
absl::string_view top_message_descriptor_full_name,
63+
absl::string_view unknown_field_parent_message_fqn) {
64+
// Preparation for cl/467099971.
65+
// TODO(240452999): Submit cl/464678844.
66+
}
67+
6068
} // namespace pybind11_protobuf
6169
namespace pybind11 {
6270
namespace detail {

0 commit comments

Comments
 (0)