Abrogate protos::internal::ExtensionIdentifier in favor of hpb::internal::ExtensionIdentifier

PiperOrigin-RevId: 670690046
pull/18027/head
Hong Shin 3 months ago committed by Copybara-Service
parent 1abef5b9e1
commit 1f237eff07
  1. 4
      hpb_generator/gen_extensions.cc
  2. 1
      protos/protos.h

@ -67,14 +67,14 @@ void WriteExtensionIdentifier(const protobuf::FieldDescriptor* ext,
if (ext->extension_scope()) {
output(
R"cc(
const ::protos::internal::ExtensionIdentifier<$0, $3> $4::$2(&$1);
const hpb::internal::ExtensionIdentifier<$0, $3> $4::$2(&$1);
)cc",
ContainingTypeName(ext), mini_table_name, ext->name(),
CppTypeParameterName(ext), ClassName(ext->extension_scope()));
} else {
output(
R"cc(
const ::protos::internal::ExtensionIdentifier<$0, $3> $2(&$1);
const hpb::internal::ExtensionIdentifier<$0, $3> $2(&$1);
)cc",
ContainingTypeName(ext), mini_table_name, ext->name(),
CppTypeParameterName(ext));

@ -9,7 +9,6 @@
#include "google/protobuf/hpb/hpb.h"
namespace protos {
namespace internal {
using hpb::internal::ExtensionIdentifier;
using hpb::internal::GetInternalMsg;
using hpb::internal::PrivateAccess;
using hpb::internal::Serialize;

Loading…
Cancel
Save