Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 705614549
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Dec 12, 2024
1 parent e68fa26 commit 7f75289
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/google/protobuf/generated_message_bases.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
#include "google/protobuf/generated_message_bases.h"

#include <cstddef>
#include <cstdint>

#include "absl/base/optimization.h"
#include "absl/log/absl_check.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/parse_context.h"
#include "google/protobuf/unknown_field_set.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/wire_format_lite.h"

// Must be last:
#include "google/protobuf/port_def.inc"
Expand Down
13 changes: 8 additions & 5 deletions src/google/protobuf/generated_message_bases.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
#ifndef GOOGLE_PROTOBUF_GENERATED_MESSAGE_BASES_H__
#define GOOGLE_PROTOBUF_GENERATED_MESSAGE_BASES_H__

#include <cstddef>
#include <cstdint>

#include "absl/base/attributes.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/message.h"
#include "google/protobuf/parse_context.h"

// Must come last:
#include "google/protobuf/port_def.inc"
Expand Down Expand Up @@ -46,14 +48,15 @@ class PROTOBUF_EXPORT ZeroFieldsBase : public Message {
static void CopyImpl(Message& to, const Message& from);
void InternalSwap(ZeroFieldsBase* other);
static void Clear(MessageLite& msg);
static size_t ByteSizeLong(const MessageLite& msg);
static size_t ByteSizeLong(const MessageLite& base);
static ::uint8_t* _InternalSerialize(const MessageLite& msg,
::uint8_t* target,
io::EpsCopyOutputStream* stream);

// The following naming is required to match protobuf naming conventions.
struct {
internal::CachedSize _cached_size_;
} _impl_;
internal::CachedSize _cached_size_; // NOLINT
} _impl_; // NOLINT
};

} // namespace internal
Expand Down

0 comments on commit 7f75289

Please sign in to comment.