From d9727cd657feacb1ef83ba06c5efa117195b3a87 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 19 Mar 2024 10:36:35 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 617220518 --- protos/protos.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protos/protos.h b/protos/protos.h index 5c57aae163..0bac4b683e 100644 --- a/protos/protos.h +++ b/protos/protos.h @@ -137,6 +137,10 @@ struct PrivateAccess { static auto CProxy(const upb_Message* p, upb_Arena* arena) { return typename T::CProxy(p, arena); } + template + static auto CreateMessage(upb_Arena* arena) { + return typename T::Proxy(upb_Message_New(T::minitable(), arena), arena); + } }; template