diff --git a/hpb/hpb.h b/hpb/hpb.h index f3807a197f39..233c97147d82 100644 --- a/hpb/hpb.h +++ b/hpb/hpb.h @@ -129,15 +129,8 @@ absl::StatusOr Parse(absl::string_view bytes, } template -absl::StatusOr Serialize(const T* message, hpb::Arena& arena, - int options = 0) { - return ::hpb::internal::Serialize(hpb::interop::upb::GetMessage(message), - ::hpb::interop::upb::GetMiniTable(message), - arena.ptr(), options); -} - -template -absl::StatusOr Serialize(Ptr message, hpb::Arena& arena, +absl::StatusOr Serialize(internal::PtrOrRaw message, + hpb::Arena& arena, int options = 0) { return ::hpb::internal::Serialize(hpb::interop::upb::GetMessage(message), ::hpb::interop::upb::GetMiniTable(message),