From 574868376302d2b318425c62e91b120be80b1d9c Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 10 Dec 2024 08:00:39 -0800 Subject: [PATCH] Internal changes PiperOrigin-RevId: 704710864 --- src/google/protobuf/extension_set.h | 2 ++ src/google/protobuf/extension_set_heavy.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/src/google/protobuf/extension_set.h b/src/google/protobuf/extension_set.h index e7e407b66c11..1da569cdde1c 100644 --- a/src/google/protobuf/extension_set.h +++ b/src/google/protobuf/extension_set.h @@ -33,6 +33,7 @@ #include "absl/base/prefetch.h" #include "absl/container/btree_map.h" #include "absl/log/absl_check.h" +#include "absl/strings/cord.h" #include "google/protobuf/generated_enum_util.h" #include "google/protobuf/internal_visibility.h" #include "google/protobuf/port.h" @@ -655,6 +656,7 @@ class PROTOBUF_EXPORT ExtensionSet { virtual std::variant UnparsedSizeOrMessage() const = 0; + virtual absl::Cord GetEncoded() const = 0; virtual void MergeFrom(const MessageLite* prototype, const LazyMessageExtension& other, Arena* arena, diff --git a/src/google/protobuf/extension_set_heavy.cc b/src/google/protobuf/extension_set_heavy.cc index 36e94d95e182..6aa6af7a131b 100644 --- a/src/google/protobuf/extension_set_heavy.cc +++ b/src/google/protobuf/extension_set_heavy.cc @@ -20,6 +20,7 @@ #include "absl/base/attributes.h" #include "absl/log/absl_check.h" +#include "absl/strings/cord.h" #include "google/protobuf/arena.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/descriptor.pb.h"