#include <google/protobuf/message.h>
#include <iostream>
#include <stack>
#include <unordered_map>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/map_field.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/parse_context.h>
#include <google/protobuf/reflection_internal.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/stubs/stl_util.h>
#include <google/protobuf/stubs/hash.h>
#include <google/protobuf/port_def.inc>
namespace google {
namespace protobuf {
namespace internal {
void RegisterFileLevelMetadata(const DescriptorTable* descriptor_table);
}
ReflectionOps;
WireFormat;
WireFormatLite;
void Message::MergeFrom(const Message& from) { … }
void Message::CheckTypeAndMergeFrom(const MessageLite& other) { … }
void Message::CopyFrom(const Message& from) { … }
void Message::CopyWithSourceCheck(Message& to, const Message& from) { … }
void Message::FailIfCopyFromDescendant(Message& to, const Message& from) { … }
std::string Message::GetTypeName() const { … }
void Message::Clear() { … }
bool Message::IsInitialized() const { … }
void Message::FindInitializationErrors(std::vector<std::string>* errors) const { … }
std::string Message::InitializationErrorString() const { … }
void Message::CheckInitialized() const { … }
void Message::DiscardUnknownFields() { … }
const char* Message::_InternalParse(const char* ptr,
internal::ParseContext* ctx) { … }
uint8_t* Message::_InternalSerialize(uint8_t* target,
io::EpsCopyOutputStream* stream) const { … }
size_t Message::ByteSizeLong() const { … }
void Message::SetCachedSize(int ) const { … }
size_t Message::ComputeUnknownFieldsSize(
size_t total_size, internal::CachedSize* cached_size) const { … }
size_t Message::MaybeComputeUnknownFieldsSize(
size_t total_size, internal::CachedSize* cached_size) const { … }
size_t Message::SpaceUsedLong() const { … }
uint64_t Message::GetInvariantPerBuild(uint64_t salt) { … }
MessageFactory::~MessageFactory() { … }
namespace {
#define HASH_MAP …
#define STR_HASH_FXN …
class GeneratedMessageFactory final : public MessageFactory { … };
GeneratedMessageFactory* GeneratedMessageFactory::singleton() { … }
void GeneratedMessageFactory::RegisterFile(
const google::protobuf::internal::DescriptorTable* table) { … }
void GeneratedMessageFactory::RegisterType(const Descriptor* descriptor,
const Message* prototype) { … }
const Message* GeneratedMessageFactory::GetPrototype(const Descriptor* type) { … }
}
MessageFactory* MessageFactory::generated_factory() { … }
void MessageFactory::InternalRegisterGeneratedFile(
const google::protobuf::internal::DescriptorTable* table) { … }
void MessageFactory::InternalRegisterGeneratedMessage(
const Descriptor* descriptor, const Message* prototype) { … }
namespace {
template <typename T>
T* GetSingleton() { … }
}
const internal::RepeatedFieldAccessor* Reflection::RepeatedFieldAccessor(
const FieldDescriptor* field) const { … }
namespace internal {
template <>
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
PROTOBUF_NOINLINE
#endif
Message*
GenericTypeHandler<Message>::NewFromPrototype(const Message* prototype,
Arena* arena) { … }
template <>
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
PROTOBUF_NOINLINE
#endif
Arena*
GenericTypeHandler<Message>::GetOwningArena(Message* value) { … }
}
}
}
#include <google/protobuf/port_undef.inc>