// Generated by the protocol buffer compiler. DO NOT EDIT! // source: mp.body.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_mp_2ebody_2eproto #define GOOGLE_PROTOBUF_INCLUDED_mp_2ebody_2eproto #include #include #include #if PROTOBUF_VERSION < 3012000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3012004 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "mp.mph.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_mp_2ebody_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_mp_2ebody_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mp_2ebody_2eproto; namespace mp { class body; class bodyDefaultTypeInternal; extern bodyDefaultTypeInternal _body_default_instance_; } // namespace mp PROTOBUF_NAMESPACE_OPEN template<> ::mp::body* Arena::CreateMaybeMessage<::mp::body>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace mp { // =================================================================== class body PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mp.body) */ { public: inline body() : body(nullptr) {}; virtual ~body(); body(const body& from); body(body&& from) noexcept : body() { *this = ::std::move(from); } inline body& operator=(const body& from) { CopyFrom(from); return *this; } inline body& operator=(body&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const body& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const body* internal_default_instance() { return reinterpret_cast( &_body_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(body& a, body& b) { a.Swap(&b); } inline void Swap(body* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(body* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline body* New() const final { return CreateMaybeMessage(nullptr); } body* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const body& from); void MergeFrom(const body& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(body* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "mp.body"; } protected: explicit body(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_mp_2ebody_2eproto); return ::descriptor_table_mp_2ebody_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kAccountFieldNumber = 2, kPasswordFieldNumber = 3, kDataFieldNumber = 6, kTargetFieldNumber = 4, kSourceFieldNumber = 5, kSubcommandFieldNumber = 1, }; // string account = 2; void clear_account(); const std::string& account() const; void set_account(const std::string& value); void set_account(std::string&& value); void set_account(const char* value); void set_account(const char* value, size_t size); std::string* mutable_account(); std::string* release_account(); void set_allocated_account(std::string* account); GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" " string fields are deprecated and will be removed in a" " future release.") std::string* unsafe_arena_release_account(); GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" " string fields are deprecated and will be removed in a" " future release.") void unsafe_arena_set_allocated_account( std::string* account); private: const std::string& _internal_account() const; void _internal_set_account(const std::string& value); std::string* _internal_mutable_account(); public: // string password = 3; void clear_password(); const std::string& password() const; void set_password(const std::string& value); void set_password(std::string&& value); void set_password(const char* value); void set_password(const char* value, size_t size); std::string* mutable_password(); std::string* release_password(); void set_allocated_password(std::string* password); GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" " string fields are deprecated and will be removed in a" " future release.") std::string* unsafe_arena_release_password(); GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" " string fields are deprecated and will be removed in a" " future release.") void unsafe_arena_set_allocated_password( std::string* password); private: const std::string& _internal_password() const; void _internal_set_password(const std::string& value); std::string* _internal_mutable_password(); public: // string data = 6; void clear_data(); const std::string& data() const; void set_data(const std::string& value); void set_data(std::string&& value); void set_data(const char* value); void set_data(const char* value, size_t size); std::string* mutable_data(); std::string* release_data(); void set_allocated_data(std::string* data); GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" " string fields are deprecated and will be removed in a" " future release.") std::string* unsafe_arena_release_data(); GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" " string fields are deprecated and will be removed in a" " future release.") void unsafe_arena_set_allocated_data( std::string* data); private: const std::string& _internal_data() const; void _internal_set_data(const std::string& value); std::string* _internal_mutable_data(); public: // uint64 target = 4; void clear_target(); ::PROTOBUF_NAMESPACE_ID::uint64 target() const; void set_target(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_target() const; void _internal_set_target(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // uint64 source = 5; void clear_source(); ::PROTOBUF_NAMESPACE_ID::uint64 source() const; void set_source(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_source() const; void _internal_set_source(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // .mp.MP_SUB_TYPE subcommand = 1; void clear_subcommand(); ::mp::MP_SUB_TYPE subcommand() const; void set_subcommand(::mp::MP_SUB_TYPE value); private: ::mp::MP_SUB_TYPE _internal_subcommand() const; void _internal_set_subcommand(::mp::MP_SUB_TYPE value); public: // @@protoc_insertion_point(class_scope:mp.body) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr account_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; ::PROTOBUF_NAMESPACE_ID::uint64 target_; ::PROTOBUF_NAMESPACE_ID::uint64 source_; int subcommand_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_mp_2ebody_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // body // .mp.MP_SUB_TYPE subcommand = 1; inline void body::clear_subcommand() { subcommand_ = 0; } inline ::mp::MP_SUB_TYPE body::_internal_subcommand() const { return static_cast< ::mp::MP_SUB_TYPE >(subcommand_); } inline ::mp::MP_SUB_TYPE body::subcommand() const { // @@protoc_insertion_point(field_get:mp.body.subcommand) return _internal_subcommand(); } inline void body::_internal_set_subcommand(::mp::MP_SUB_TYPE value) { subcommand_ = value; } inline void body::set_subcommand(::mp::MP_SUB_TYPE value) { _internal_set_subcommand(value); // @@protoc_insertion_point(field_set:mp.body.subcommand) } // string account = 2; inline void body::clear_account() { account_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& body::account() const { // @@protoc_insertion_point(field_get:mp.body.account) return _internal_account(); } inline void body::set_account(const std::string& value) { _internal_set_account(value); // @@protoc_insertion_point(field_set:mp.body.account) } inline std::string* body::mutable_account() { // @@protoc_insertion_point(field_mutable:mp.body.account) return _internal_mutable_account(); } inline const std::string& body::_internal_account() const { return account_.Get(); } inline void body::_internal_set_account(const std::string& value) { account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); } inline void body::set_account(std::string&& value) { account_.Set( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:mp.body.account) } inline void body::set_account(const char* value) { GOOGLE_DCHECK(value != nullptr); account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:mp.body.account) } inline void body::set_account(const char* value, size_t size) { account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:mp.body.account) } inline std::string* body::_internal_mutable_account() { return account_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* body::release_account() { // @@protoc_insertion_point(field_release:mp.body.account) return account_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void body::set_allocated_account(std::string* account) { if (account != nullptr) { } else { } account_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), account, GetArena()); // @@protoc_insertion_point(field_set_allocated:mp.body.account) } inline std::string* body::unsafe_arena_release_account() { // @@protoc_insertion_point(field_unsafe_arena_release:mp.body.account) GOOGLE_DCHECK(GetArena() != nullptr); return account_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void body::unsafe_arena_set_allocated_account( std::string* account) { GOOGLE_DCHECK(GetArena() != nullptr); if (account != nullptr) { } else { } account_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), account, GetArena()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.body.account) } // string password = 3; inline void body::clear_password() { password_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& body::password() const { // @@protoc_insertion_point(field_get:mp.body.password) return _internal_password(); } inline void body::set_password(const std::string& value) { _internal_set_password(value); // @@protoc_insertion_point(field_set:mp.body.password) } inline std::string* body::mutable_password() { // @@protoc_insertion_point(field_mutable:mp.body.password) return _internal_mutable_password(); } inline const std::string& body::_internal_password() const { return password_.Get(); } inline void body::_internal_set_password(const std::string& value) { password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); } inline void body::set_password(std::string&& value) { password_.Set( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:mp.body.password) } inline void body::set_password(const char* value) { GOOGLE_DCHECK(value != nullptr); password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:mp.body.password) } inline void body::set_password(const char* value, size_t size) { password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:mp.body.password) } inline std::string* body::_internal_mutable_password() { return password_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* body::release_password() { // @@protoc_insertion_point(field_release:mp.body.password) return password_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void body::set_allocated_password(std::string* password) { if (password != nullptr) { } else { } password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, GetArena()); // @@protoc_insertion_point(field_set_allocated:mp.body.password) } inline std::string* body::unsafe_arena_release_password() { // @@protoc_insertion_point(field_unsafe_arena_release:mp.body.password) GOOGLE_DCHECK(GetArena() != nullptr); return password_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void body::unsafe_arena_set_allocated_password( std::string* password) { GOOGLE_DCHECK(GetArena() != nullptr); if (password != nullptr) { } else { } password_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, GetArena()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.body.password) } // uint64 target = 4; inline void body::clear_target() { target_ = PROTOBUF_ULONGLONG(0); } inline ::PROTOBUF_NAMESPACE_ID::uint64 body::_internal_target() const { return target_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 body::target() const { // @@protoc_insertion_point(field_get:mp.body.target) return _internal_target(); } inline void body::_internal_set_target(::PROTOBUF_NAMESPACE_ID::uint64 value) { target_ = value; } inline void body::set_target(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_target(value); // @@protoc_insertion_point(field_set:mp.body.target) } // uint64 source = 5; inline void body::clear_source() { source_ = PROTOBUF_ULONGLONG(0); } inline ::PROTOBUF_NAMESPACE_ID::uint64 body::_internal_source() const { return source_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 body::source() const { // @@protoc_insertion_point(field_get:mp.body.source) return _internal_source(); } inline void body::_internal_set_source(::PROTOBUF_NAMESPACE_ID::uint64 value) { source_ = value; } inline void body::set_source(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_source(value); // @@protoc_insertion_point(field_set:mp.body.source) } // string data = 6; inline void body::clear_data() { data_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& body::data() const { // @@protoc_insertion_point(field_get:mp.body.data) return _internal_data(); } inline void body::set_data(const std::string& value) { _internal_set_data(value); // @@protoc_insertion_point(field_set:mp.body.data) } inline std::string* body::mutable_data() { // @@protoc_insertion_point(field_mutable:mp.body.data) return _internal_mutable_data(); } inline const std::string& body::_internal_data() const { return data_.Get(); } inline void body::_internal_set_data(const std::string& value) { data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); } inline void body::set_data(std::string&& value) { data_.Set( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); // @@protoc_insertion_point(field_set_rvalue:mp.body.data) } inline void body::set_data(const char* value) { GOOGLE_DCHECK(value != nullptr); data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArena()); // @@protoc_insertion_point(field_set_char:mp.body.data) } inline void body::set_data(const char* value, size_t size) { data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArena()); // @@protoc_insertion_point(field_set_pointer:mp.body.data) } inline std::string* body::_internal_mutable_data() { return data_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* body::release_data() { // @@protoc_insertion_point(field_release:mp.body.data) return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void body::set_allocated_data(std::string* data) { if (data != nullptr) { } else { } data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, GetArena()); // @@protoc_insertion_point(field_set_allocated:mp.body.data) } inline std::string* body::unsafe_arena_release_data() { // @@protoc_insertion_point(field_unsafe_arena_release:mp.body.data) GOOGLE_DCHECK(GetArena() != nullptr); return data_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void body::unsafe_arena_set_allocated_data( std::string* data) { GOOGLE_DCHECK(GetArena() != nullptr); if (data != nullptr) { } else { } data_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, GetArena()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.body.data) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace mp // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_mp_2ebody_2eproto