File indexing completed on 2026-09-10 09:12:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef GOOGLE_PROTOBUF_GENERATED_MESSAGE_BASES_H__
0013 #define GOOGLE_PROTOBUF_GENERATED_MESSAGE_BASES_H__
0014
0015 #include <cstddef>
0016 #include <cstdint>
0017
0018 #include "absl/base/attributes.h"
0019 #include "google/protobuf/arena.h"
0020 #include "google/protobuf/generated_message_util.h"
0021 #include "google/protobuf/message.h"
0022
0023
0024 #include "google/protobuf/port_def.inc"
0025
0026 namespace google {
0027 namespace protobuf {
0028 namespace internal {
0029
0030
0031
0032 class PROTOBUF_EXPORT ZeroFieldsBase : public Message {
0033 public:
0034 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL { Clear(*this); }
0035 size_t ByteSizeLong() const PROTOBUF_FINAL { return ByteSizeLong(*this); }
0036 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0037 ::uint8_t* _InternalSerialize(
0038 ::uint8_t* target, io::EpsCopyOutputStream* stream) const PROTOBUF_FINAL {
0039 return _InternalSerialize(*this, target, stream);
0040 }
0041
0042 protected:
0043 using Message::Message;
0044 ~ZeroFieldsBase() PROTOBUF_OVERRIDE;
0045
0046 static void SharedDtor(MessageLite& msg);
0047 static void MergeImpl(MessageLite& to, const MessageLite& from);
0048 static void CopyImpl(Message& to, const Message& from);
0049 void InternalSwap(ZeroFieldsBase* other);
0050 static void Clear(MessageLite& msg);
0051 static size_t ByteSizeLong(const MessageLite& base);
0052 static ::uint8_t* _InternalSerialize(const MessageLite& msg,
0053 ::uint8_t* target,
0054 io::EpsCopyOutputStream* stream);
0055
0056
0057 struct {
0058 internal::CachedSize _cached_size_;
0059 } _impl_;
0060 };
0061
0062 }
0063 }
0064 }
0065
0066 #include "google/protobuf/port_undef.inc"
0067
0068 #endif