// Protocol Buffers - Google's data interchange format // Copyright 2025 Google LLC. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #ifndef GOOGLE_PROTOBUF_HPB_BACKEND_CPP_CPP_H__ #define GOOGLE_PROTOBUF_HPB_BACKEND_CPP_CPP_H__ #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "hpb/arena.h" #include "hpb/extension.h" #include "hpb/internal/template_help.h" #include "hpb/ptr.h" namespace hpb::internal::backend::cpp { // hpb(cpp) backend stubs. template typename T::Proxy CreateMessage(hpb::Arena& arena) { return typename T::Proxy(); } template typename T::Proxy CloneMessage(Ptr message, hpb::Arena& arena) { abort(); } template void ClearMessage(PtrOrRawMutable message) { abort(); } template void DeepCopy(Ptr source_message, Ptr target_message) { abort(); } template absl::string_view Serialize(PtrOrRaw message, hpb::Arena& arena) { abort(); } template bool Parse(PtrOrRaw message, absl::string_view bytes, const ExtensionRegistry& extension_registry) { abort(); } template absl::StatusOr Parse(absl::string_view bytes, const ExtensionRegistry& extension_registry) { abort(); } } // namespace hpb::internal::backend::cpp #endif // GOOGLE_PROTOBUF_HPB_BACKEND_CPP_CPP_H__